@transcend-io/mcp-server-inventory 0.3.4 → 0.4.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-BJIrpomr.mjs","names":["types.InventoryGetDataSiloDocument","types.InventoryCreateDataSilosDocument","types.InventoryUpdateDataSilosDocument"],"sources":["../src/tools/inventory_analyze.ts","../src/tools/inventory_create_data_silo.ts","../src/tools/inventory_get_data_silo.ts","../src/tools/inventory_list_categories.ts","../src/tools/inventory_list_data_points.ts","../src/tools/inventory_list_data_silos.ts","../src/tools/inventory_list_identifiers.ts","../src/tools/inventory_list_sub_data_points.ts","../src/tools/inventory_list_vendors.ts","../src/tools/inventory_update_data_silo.ts","../src/tools/index.ts","../src/scopes.ts","../src/__generated__/graphql.ts","../src/__generated__/gql.ts","../src/graphql.ts"],"sourcesContent":["import {\n createToolResult,\n defineTool,\n EmptySchema,\n groupBy,\n type ToolClients,\n} from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport function createInventoryAnalyzeTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_analyze',\n description:\n 'Analyze your data inventory including data silos by type, vendor distribution, and data point coverage',\n category: 'Data Inventory',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: EmptySchema,\n handler: async (_args) => {\n // `all: true` fully paginates each entity so the reported totals and\n // breakdowns are accurate for orgs with >100 of any.\n const [dataSilosResult, vendorsResult, identifiersResult, categoriesResult] =\n await Promise.all([\n graphql.listDataSilos({ all: true }),\n graphql.listVendors({ all: true }),\n graphql.listIdentifiers({ all: true }),\n graphql.listDataCategories({ all: true }),\n ]);\n\n const dataSilos = dataSilosResult.nodes;\n const vendors = vendorsResult.nodes;\n const identifiers = identifiersResult.nodes;\n const categories = categoriesResult.nodes;\n const totalCategories = categories.length;\n\n const liveDataSilos = dataSilos.filter((ds) => ds.isLive);\n\n return createToolResult(true, {\n summary: {\n totalDataSilos: dataSilos.length,\n liveDataSilos: liveDataSilos.length,\n totalVendors: vendors.length,\n totalIdentifiers: identifiers.length,\n totalCategories,\n },\n breakdown: {\n dataSilosByType: groupBy(dataSilos, 'type'),\n dataSilosByOuterType: groupBy(\n dataSilos.filter((ds) => ds.outerType),\n 'outerType' as keyof (typeof dataSilos)[0],\n ),\n },\n topIdentifiers: identifiers.slice(0, 10).map((id) => ({\n name: id.name,\n type: id.type,\n isRequired: id.isRequiredInForm,\n })),\n topCategories: categories.slice(0, 10).map((cat) => ({\n name: cat.name,\n category: cat.category,\n })),\n recommendations: [\n dataSilos.length === 0 ? 'Add data silos to map your data landscape' : null,\n liveDataSilos.length < dataSilos.length\n ? `${dataSilos.length - liveDataSilos.length} data silos are not live - consider activating them`\n : null,\n vendors.length === 0 ? 'Add vendors to track third-party data processors' : null,\n ].filter(Boolean),\n });\n },\n });\n}\n","import { createToolResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport const CreateDataSiloSchema = z.object({\n title: z\n .string()\n .describe(\n 'Name/title of the data silo (must match an integrationName in the Transcend catalog, e.g. \"Salesforce\", \"Stripe\")',\n ),\n});\nexport type CreateDataSiloInput = z.infer<typeof CreateDataSiloSchema>;\n\nexport function createInventoryCreateDataSiloTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_create_data_silo',\n description:\n 'Create a new data silo (data system or integration). The name must match an integration name from the Transcend catalog.',\n category: 'Data Inventory',\n readOnly: false,\n confirmationHint: 'Creates a new data silo in the inventory',\n annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false },\n zodSchema: CreateDataSiloSchema,\n handler: async ({ title }) => {\n const result = await graphql.createDataSilo({\n name: title,\n });\n return createToolResult(true, {\n dataSilo: result,\n message: `Data silo \"${title}\" created successfully`,\n });\n },\n });\n}\n","import { createToolResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport const GetDataSiloSchema = z.object({\n dataSiloId: z.string().describe('ID of the data silo to retrieve'),\n});\nexport type GetDataSiloInput = z.infer<typeof GetDataSiloSchema>;\n\nexport function createInventoryGetDataSiloTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_get_data_silo',\n description:\n 'Get detailed information about a specific data silo including its data points and identifiers',\n category: 'Data Inventory',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: GetDataSiloSchema,\n handler: async ({ dataSiloId }) => {\n const result = await graphql.getDataSilo(dataSiloId);\n return createToolResult(true, result);\n },\n });\n}\n","import { createListResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport const ListCategoriesSchema = z.object({\n limit: z.coerce\n .number()\n .min(1)\n .max(100)\n .optional()\n .default(50)\n .describe('Results per page (1-100, default: 50)'),\n offset: z.coerce\n .number()\n .min(0)\n .optional()\n .default(0)\n .describe('Number of results to skip for pagination (default: 0)'),\n});\nexport type ListCategoriesInput = z.infer<typeof ListCategoriesSchema>;\n\nexport function createInventoryListCategoriesTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_list_categories',\n description:\n 'List data categories (PII types) configured in your organization. Paginate with `offset` (increment by `limit`) until `hasNextPage` is false; `totalCount` is the full count.',\n category: 'Data Inventory',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: ListCategoriesSchema,\n handler: async ({ limit, offset }) => {\n const result = await graphql.listDataCategories({\n first: limit,\n offset,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n });\n },\n });\n}\n","import { createListResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport const ListDataPointsSchema = z.object({\n limit: z.coerce\n .number()\n .min(1)\n .max(100)\n .optional()\n .default(50)\n .describe('Results per page (1-100, default: 50)'),\n offset: z.coerce\n .number()\n .min(0)\n .optional()\n .default(0)\n .describe('Number of results to skip for pagination (default: 0)'),\n});\nexport type ListDataPointsInput = z.infer<typeof ListDataPointsSchema>;\n\nexport function createInventoryListDataPointsTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_list_data_points',\n description:\n 'List data points (collections of personal data). Paginate with `offset` (increment by `limit`) until `hasNextPage` is false; `totalCount` is the full count. Note: data_silo filtering is not supported.',\n category: 'Data Inventory',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: ListDataPointsSchema,\n handler: async ({ limit, offset }) => {\n const result = await graphql.listDataPoints(\n undefined, // dataSiloId not supported by API\n {\n first: limit,\n offset,\n },\n );\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n });\n },\n });\n}\n","import { createListResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport const ListDataSilosSchema = z.object({\n limit: z.coerce\n .number()\n .min(1)\n .max(100)\n .optional()\n .default(50)\n .describe('Results per page (1-100, default: 50)'),\n offset: z.coerce\n .number()\n .min(0)\n .optional()\n .default(0)\n .describe('Number of results to skip for pagination (default: 0)'),\n});\nexport type ListDataSilosInput = z.infer<typeof ListDataSilosSchema>;\n\nexport function createInventoryListDataSilosTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_list_data_silos',\n description:\n 'List data silos (data systems and integrations) in your organization. Paginate with `offset` (increment by `limit`) until `hasNextPage` is false, `totalCount` is the full count.',\n category: 'Data Inventory',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: ListDataSilosSchema,\n handler: async ({ limit, offset }) => {\n const result = await graphql.listDataSilos({\n first: limit,\n offset,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n });\n },\n });\n}\n","import { createListResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport const ListIdentifiersSchema = z.object({\n limit: z.coerce\n .number()\n .min(1)\n .max(100)\n .optional()\n .default(50)\n .describe('Results per page (1-100, default: 50)'),\n offset: z.coerce\n .number()\n .min(0)\n .optional()\n .default(0)\n .describe('Number of results to skip for pagination (default: 0)'),\n});\nexport type ListIdentifiersInput = z.infer<typeof ListIdentifiersSchema>;\n\nexport function createInventoryListIdentifiersTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_list_identifiers',\n description:\n 'List identifier types (email, user ID, etc.) configured in your organization. Paginate with `offset` (increment by `limit`) until `hasNextPage` is false; `totalCount` is the full count.',\n category: 'Data Inventory',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: ListIdentifiersSchema,\n handler: async ({ limit, offset }) => {\n const result = await graphql.listIdentifiers({\n first: limit,\n offset,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n });\n },\n });\n}\n","import { createListResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport const ListSubDataPointsSchema = z.object({\n dataPointId: z.string().describe('ID of the parent data point'),\n limit: z.coerce\n .number()\n .min(1)\n .max(100)\n .optional()\n .default(50)\n .describe('Results per page (1-100, default: 50)'),\n offset: z.coerce\n .number()\n .min(0)\n .optional()\n .default(0)\n .describe('Number of results to skip (default: 0)'),\n});\nexport type ListSubDataPointsInput = z.infer<typeof ListSubDataPointsSchema>;\n\nexport function createInventoryListSubDataPointsTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_list_sub_data_points',\n description:\n 'List sub-data points (individual data fields) for a specific data point. Note: This feature may have limited availability.',\n category: 'Data Inventory',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: ListSubDataPointsSchema,\n handler: async ({ dataPointId, limit, offset }) => {\n const result = await graphql.listSubDataPoints(dataPointId, {\n first: limit,\n offset,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n });\n },\n });\n}\n","import { createListResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport const ListVendorsSchema = z.object({\n limit: z.coerce\n .number()\n .min(1)\n .max(100)\n .optional()\n .default(50)\n .describe('Results per page (1-100, default: 50)'),\n offset: z.coerce\n .number()\n .min(0)\n .optional()\n .default(0)\n .describe('Number of results to skip for pagination (default: 0)'),\n});\nexport type ListVendorsInput = z.infer<typeof ListVendorsSchema>;\n\nexport function createInventoryListVendorsTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_list_vendors',\n description:\n 'List vendors (third-party data processors) in your organization. Paginate with `offset` (increment by `limit`) until `hasNextPage` is false; `totalCount` is the full count.',\n category: 'Data Inventory',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: ListVendorsSchema,\n handler: async ({ limit, offset }) => {\n const result = await graphql.listVendors({\n first: limit,\n offset,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n });\n },\n });\n}\n","import { createToolResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { InventoryMixin } from '../graphql.js';\n\nexport const UpdateDataSiloSchema = z.object({\n dataSiloId: z.string().describe('ID of the data silo to update'),\n title: z.string().optional().describe('New title for the data silo'),\n description: z.string().optional().describe('New description'),\n});\nexport type UpdateDataSiloInput = z.infer<typeof UpdateDataSiloSchema>;\n\nexport function createInventoryUpdateDataSiloTool(clients: ToolClients) {\n const graphql = clients.graphql as InventoryMixin;\n return defineTool({\n name: 'inventory_update_data_silo',\n description: 'Update an existing data silo',\n category: 'Data Inventory',\n readOnly: false,\n confirmationHint: 'Updates the data silo configuration',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true },\n zodSchema: UpdateDataSiloSchema,\n handler: async ({ dataSiloId, title, description }) => {\n const result = await graphql.updateDataSilo({\n id: dataSiloId,\n title,\n description,\n });\n return createToolResult(true, {\n dataSilo: result,\n message: 'Data silo updated successfully',\n });\n },\n });\n}\n","import type { ToolDefinition, ToolClients } from '@transcend-io/mcp-server-base';\n\nimport { createInventoryAnalyzeTool } from './inventory_analyze.js';\nimport { createInventoryCreateDataSiloTool } from './inventory_create_data_silo.js';\nimport { createInventoryGetDataSiloTool } from './inventory_get_data_silo.js';\nimport { createInventoryListCategoriesTool } from './inventory_list_categories.js';\nimport { createInventoryListDataPointsTool } from './inventory_list_data_points.js';\nimport { createInventoryListDataSilosTool } from './inventory_list_data_silos.js';\nimport { createInventoryListIdentifiersTool } from './inventory_list_identifiers.js';\nimport { createInventoryListSubDataPointsTool } from './inventory_list_sub_data_points.js';\nimport { createInventoryListVendorsTool } from './inventory_list_vendors.js';\nimport { createInventoryUpdateDataSiloTool } from './inventory_update_data_silo.js';\n\nexport function getInventoryTools(clients: ToolClients): ToolDefinition[] {\n return [\n createInventoryListDataSilosTool(clients),\n createInventoryGetDataSiloTool(clients),\n createInventoryCreateDataSiloTool(clients),\n createInventoryUpdateDataSiloTool(clients),\n createInventoryListVendorsTool(clients),\n createInventoryListDataPointsTool(clients),\n createInventoryListSubDataPointsTool(clients),\n createInventoryListIdentifiersTool(clients),\n createInventoryListCategoriesTool(clients),\n createInventoryAnalyzeTool(clients),\n ];\n}\n","import { ScopeName } from '@transcend-io/privacy-types';\n\n/** OAuth scopes required for Inventory MCP tools (offline_access added by base). */\nexport const INVENTORY_OAUTH_SCOPES = [\n ScopeName.ViewDataMap,\n ScopeName.ViewAssignedIntegrations,\n ScopeName.ManageDataMap,\n ScopeName.ManageAssignedIntegrations,\n ScopeName.ViewDataInventory,\n ScopeName.ViewAssignedDataInventory,\n ScopeName.ManageDataInventory,\n ScopeName.ManageAssignedDataInventory,\n] as const;\n","/* eslint-disable */\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type AttributeInput = {\n key: string;\n values: Array<string>;\n};\n\nexport type ConsentManagerConnectionStatus =\n | 'DETECTED'\n | 'NOT_RECOMMENDED'\n | 'PARTIALLY_REGULATED'\n | 'PENDING_REGULATION'\n | 'POSSIBLE'\n | 'REGULATED'\n | 'UNDETERMINED'\n | 'VERY_LIKELY';\n\nexport type Controllership =\n | 'CONTROLLER'\n | 'JOINT_CONTROLLER'\n | 'PROCESSOR';\n\nexport type CreateDataSilosInput = {\n allowDsrProcessingEndTime?: string | null | undefined;\n allowDsrProcessingStartTime?: string | null | undefined;\n businessEntityIds?: Array<string | number> | null | undefined;\n businessEntityTitles?: Array<string> | null | undefined;\n controllerships?: Array<Controllership> | null | undefined;\n country?: string | null | undefined;\n countrySubDivision?: string | null | undefined;\n dataSiloDiscoveryResultId?: string | number | null | undefined;\n description?: string | null | undefined;\n name: string;\n plaintextContext?: string | null | undefined;\n pluginConfigurations?: string | null | undefined;\n pluginId?: string | number | null | undefined;\n region?: string | null | undefined;\n resourceId?: string | null | undefined;\n saaSCategoryIds?: Array<string | number> | null | undefined;\n sombraId?: string | number | null | undefined;\n title?: string | null | undefined;\n transferRegions?: Array<RegionInput> | null | undefined;\n};\n\nexport type CustomHeaderInput = {\n isSecret: boolean;\n name: string;\n value: string;\n};\n\nexport type CustomSiloConnectionStrategy =\n | 'CUSTOM_FUNCTION'\n | 'WEBHOOK';\n\nexport type DataProcessingAgreementStatus =\n | 'CUSTOM_DPA'\n | 'MISSING'\n | 'NOT_REQUIRED'\n | 'ONLINE_DPA'\n | 'REQUIRES_UPDATE';\n\nexport type DataSiloConnectionState =\n | 'CONNECTED'\n | 'EXPIRED'\n | 'INDEXING'\n | 'NOT_CONFIGURED'\n | 'PARTIAL'\n | 'PERMISSIONS_UPDATED';\n\nexport type DataSiloDeprecationState =\n | 'DEPRECATED'\n | 'IMPLEMENTATION'\n | 'IN_USE';\n\nexport type HasPersonalDataStatus =\n | 'LIKELY'\n | 'NO'\n | 'UNLIKELY'\n | 'UNSPECIFIED'\n | 'YES';\n\nexport type IdentifierType =\n | 'adobeAdvertisingCloudId'\n | 'adobeAudienceManagerId'\n | 'adobeExperienceCloudId'\n | 'adobeTargetId'\n | 'advertisingId'\n | 'amazonFireAdvertisingId'\n | 'braintreeCustomerId'\n | 'browserId'\n | 'chargebeeId'\n | 'coreIdentifier'\n | 'custom'\n | 'customerIoId'\n | 'email'\n | 'filestackHandle'\n | 'gaid'\n | 'idfa'\n | 'idfv'\n | 'linkedInURL'\n | 'microsoftAdvertisingId'\n | 'onfidoApplicantId'\n | 'personaReferenceId'\n | 'phone'\n | 'plaidProcessorToken'\n | 'recurlyId'\n | 'rida'\n | 'sprigVisitorId'\n | 'streamUserId'\n | 'stripeId'\n | 'talkableUUID'\n | 'thriveTrmContactId'\n | 'transcend'\n | 'veroUserId';\n\nexport type IsoCountryCode =\n | 'AD'\n | 'AE'\n | 'AF'\n | 'AG'\n | 'AI'\n | 'AL'\n | 'AM'\n | 'AO'\n | 'AQ'\n | 'AR'\n | 'AS'\n | 'AT'\n | 'AU'\n | 'AW'\n | 'AX'\n | 'AZ'\n | 'BA'\n | 'BB'\n | 'BD'\n | 'BE'\n | 'BF'\n | 'BG'\n | 'BH'\n | 'BI'\n | 'BJ'\n | 'BL'\n | 'BM'\n | 'BN'\n | 'BO'\n | 'BQ'\n | 'BR'\n | 'BS'\n | 'BT'\n | 'BV'\n | 'BW'\n | 'BY'\n | 'BZ'\n | 'CA'\n | 'CC'\n | 'CD'\n | 'CF'\n | 'CG'\n | 'CH'\n | 'CI'\n | 'CK'\n | 'CL'\n | 'CM'\n | 'CN'\n | 'CO'\n | 'CR'\n | 'CU'\n | 'CV'\n | 'CW'\n | 'CX'\n | 'CY'\n | 'CZ'\n | 'DE'\n | 'DJ'\n | 'DK'\n | 'DM'\n | 'DO'\n | 'DZ'\n | 'EC'\n | 'EE'\n | 'EG'\n | 'EH'\n | 'ER'\n | 'ES'\n | 'ET'\n | 'EU'\n | 'FI'\n | 'FJ'\n | 'FK'\n | 'FM'\n | 'FO'\n | 'FR'\n | 'GA'\n | 'GB'\n | 'GD'\n | 'GE'\n | 'GF'\n | 'GG'\n | 'GH'\n | 'GI'\n | 'GL'\n | 'GM'\n | 'GN'\n | 'GP'\n | 'GQ'\n | 'GR'\n | 'GS'\n | 'GT'\n | 'GU'\n | 'GW'\n | 'GY'\n | 'HK'\n | 'HM'\n | 'HN'\n | 'HR'\n | 'HT'\n | 'HU'\n | 'ID'\n | 'IE'\n | 'IL'\n | 'IM'\n | 'IN'\n | 'IO'\n | 'IQ'\n | 'IR'\n | 'IS'\n | 'IT'\n | 'JE'\n | 'JM'\n | 'JO'\n | 'JP'\n | 'KE'\n | 'KG'\n | 'KH'\n | 'KI'\n | 'KM'\n | 'KN'\n | 'KP'\n | 'KR'\n | 'KW'\n | 'KY'\n | 'KZ'\n | 'LA'\n | 'LB'\n | 'LC'\n | 'LI'\n | 'LK'\n | 'LR'\n | 'LS'\n | 'LT'\n | 'LU'\n | 'LV'\n | 'LY'\n | 'MA'\n | 'MC'\n | 'MD'\n | 'ME'\n | 'MF'\n | 'MG'\n | 'MH'\n | 'MK'\n | 'ML'\n | 'MM'\n | 'MN'\n | 'MO'\n | 'MP'\n | 'MQ'\n | 'MR'\n | 'MS'\n | 'MT'\n | 'MU'\n | 'MV'\n | 'MW'\n | 'MX'\n | 'MY'\n | 'MZ'\n | 'NA'\n | 'NC'\n | 'NE'\n | 'NF'\n | 'NG'\n | 'NI'\n | 'NL'\n | 'NO'\n | 'NP'\n | 'NR'\n | 'NU'\n | 'NZ'\n | 'OM'\n | 'PA'\n | 'PE'\n | 'PF'\n | 'PG'\n | 'PH'\n | 'PK'\n | 'PL'\n | 'PM'\n | 'PN'\n | 'PR'\n | 'PS'\n | 'PT'\n | 'PW'\n | 'PY'\n | 'QA'\n | 'RE'\n | 'RO'\n | 'RS'\n | 'RU'\n | 'RW'\n | 'SA'\n | 'SB'\n | 'SC'\n | 'SD'\n | 'SE'\n | 'SG'\n | 'SH'\n | 'SI'\n | 'SJ'\n | 'SK'\n | 'SL'\n | 'SM'\n | 'SN'\n | 'SO'\n | 'SR'\n | 'SS'\n | 'ST'\n | 'SV'\n | 'SX'\n | 'SY'\n | 'SZ'\n | 'TC'\n | 'TD'\n | 'TF'\n | 'TG'\n | 'TH'\n | 'TJ'\n | 'TK'\n | 'TL'\n | 'TM'\n | 'TN'\n | 'TO'\n | 'TR'\n | 'TT'\n | 'TV'\n | 'TW'\n | 'TZ'\n | 'UA'\n | 'UG'\n | 'UM'\n | 'US'\n | 'UY'\n | 'UZ'\n | 'VA'\n | 'VC'\n | 'VE'\n | 'VG'\n | 'VI'\n | 'VN'\n | 'VU'\n | 'WF'\n | 'WS'\n | 'YE'\n | 'YT'\n | 'ZA'\n | 'ZM'\n | 'ZW';\n\nexport type PlaintextContextInput = {\n name: string;\n value: string;\n};\n\nexport type PrivacyRequestConnectionStatus =\n | 'CONNECTED'\n | 'LIKELY'\n | 'NOT_RECOMMENDED'\n | 'PENDING_CONNECTION'\n | 'POSSIBLE'\n | 'UNDETERMINED'\n | 'VERY_LIKELY';\n\nexport type PromptAVendorEmailCompletionLinkType =\n | 'LOGGED_IN_USER'\n | 'NO_LINK_MARK_DATAPOINT_AS_RESOLVED'\n | 'UNAUTHENTICATED_EXTERNAL_USER';\n\nexport type PromptAVendorEmailSendType =\n | 'CROSS_DSR'\n | 'PER_DSR';\n\nexport type RegionInput = {\n country?: IsoCountryCode | null | undefined;\n countrySubDivision?: string | null | undefined;\n};\n\nexport type UpdateDataSiloInput = {\n allowDsrProcessingEndTime?: string | null | undefined;\n allowDsrProcessingStartTime?: string | null | undefined;\n apiKeyId?: string | number | null | undefined;\n attributes?: Array<AttributeInput> | null | undefined;\n businessEntityIds?: Array<string | number> | null | undefined;\n businessEntityTitles?: Array<string> | null | undefined;\n contactEmail?: string | null | undefined;\n contactName?: string | null | undefined;\n controllerships?: Array<Controllership> | null | undefined;\n country?: IsoCountryCode | null | undefined;\n countrySubDivision?: string | null | undefined;\n customSiloConnectionStrategy?: CustomSiloConnectionStrategy | null | undefined;\n dataProcessingAgreementLink?: string | null | undefined;\n dataProcessingAgreementStatus?: DataProcessingAgreementStatus | null | undefined;\n dataRetentionNote?: string | null | undefined;\n dataSubCategoryIds?: Array<string | number> | null | undefined;\n dataSubjectBlockListIds?: Array<string | number> | null | undefined;\n defaultAccessRequestVisibility?: boolean | null | undefined;\n dependedOnDataSiloIds?: Array<string | number> | null | undefined;\n dependedOnDataSiloTitles?: Array<string> | null | undefined;\n deprecationState?: DataSiloDeprecationState | null | undefined;\n description?: string | null | undefined;\n dsrProcessingDocumentation?: string | null | undefined;\n hasPersonalData?: HasPersonalDataStatus | null | undefined;\n headers?: Array<CustomHeaderInput> | null | undefined;\n id: string | number;\n identifiers?: Array<string> | null | undefined;\n isLive?: boolean | null | undefined;\n isPausedForDsrs?: boolean | null | undefined;\n manualWorkRetryFrequency?: string | null | undefined;\n manualWorkRetryStartAt?: string | null | undefined;\n notes?: string | null | undefined;\n notifyEmailAddress?: string | null | undefined;\n notifyWebhookUrl?: string | null | undefined;\n ownerEmails?: Array<string> | null | undefined;\n ownerIds?: Array<string | number> | null | undefined;\n plaintextContext?: Array<PlaintextContextInput> | null | undefined;\n processingActivityIds?: Array<string | number> | null | undefined;\n processingPurposeSubCategoryIds?: Array<string | number> | null | undefined;\n promptAVendorEmailCompletionLinkType?: PromptAVendorEmailCompletionLinkType | null | undefined;\n promptAVendorEmailIncludeIdentifiersAttachment?: boolean | null | undefined;\n promptAVendorEmailSendFrequency?: number | null | undefined;\n promptAVendorEmailSendType?: PromptAVendorEmailSendType | null | undefined;\n promptAVendorEmailStartAt?: string | null | undefined;\n promptEmailTemplateId?: string | number | null | undefined;\n receiverDataSiloIds?: Array<string | number> | null | undefined;\n recommendedForConsent?: ConsentManagerConnectionStatus | null | undefined;\n recommendedForPrivacy?: PrivacyRequestConnectionStatus | null | undefined;\n saaSCategoryIds?: Array<string | number> | null | undefined;\n sombraId?: string | number | null | undefined;\n teamNames?: Array<string> | null | undefined;\n teams?: Array<string | number> | null | undefined;\n title?: string | null | undefined;\n transferRegions?: Array<RegionInput> | null | undefined;\n url?: string | null | undefined;\n vendorId?: string | number | null | undefined;\n websiteUrl?: string | null | undefined;\n};\n\nexport type UpdateDataSilosInput = {\n dataSilos: Array<UpdateDataSiloInput>;\n};\n\nexport type InventoryGetDataSiloQueryVariables = Exact<{\n id: string;\n}>;\n\n\nexport type InventoryGetDataSiloQuery = { dataSilo: { id: string, title: string, type: string, description: string, link: string, isLive: boolean, outerType: string | null, createdAt: string, connectionState: DataSiloConnectionState, identifiers: Array<{ id: string, name: string, type: IdentifierType, isRequiredInForm: boolean }> } };\n\nexport type InventoryCreateDataSilosMutationVariables = Exact<{\n input: Array<CreateDataSilosInput> | CreateDataSilosInput;\n}>;\n\n\nexport type InventoryCreateDataSilosMutation = { createDataSilos: { dataSilos: Array<{ id: string, title: string, type: string, description: string, isLive: boolean, createdAt: string }> } };\n\nexport type InventoryUpdateDataSilosMutationVariables = Exact<{\n input: UpdateDataSilosInput;\n}>;\n\n\nexport type InventoryUpdateDataSilosMutation = { updateDataSilos: { dataSilos: Array<{ id: string, title: string, type: string, description: string, isLive: boolean, createdAt: string }> } };\n\n\nexport const InventoryGetDataSiloDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"InventoryGetDataSilo\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dataSilo\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isLive\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"outerType\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"connectionState\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"identifiers\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isRequiredInForm\"}}]}}]}}]}}]} as unknown as DocumentNode<InventoryGetDataSiloQuery, InventoryGetDataSiloQueryVariables>;\nexport const InventoryCreateDataSilosDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"InventoryCreateDataSilos\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"ListType\",\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"CreateDataSilosInput\"}}}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createDataSilos\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dataSilos\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isLive\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"}}]}}]}}]}}]} as unknown as DocumentNode<InventoryCreateDataSilosMutation, InventoryCreateDataSilosMutationVariables>;\nexport const InventoryUpdateDataSilosDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"InventoryUpdateDataSilos\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"UpdateDataSilosInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"updateDataSilos\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dataSilos\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isLive\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"}}]}}]}}]}}]} as unknown as DocumentNode<InventoryUpdateDataSilosMutation, InventoryUpdateDataSilosMutationVariables>;","/* eslint-disable */\nimport * as types from './graphql.js';\nimport type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size\n */\ntype Documents = {\n \"\\n query InventoryGetDataSilo($id: String!) {\\n dataSilo(id: $id) {\\n id\\n title\\n type\\n description\\n link\\n isLive\\n outerType\\n createdAt\\n connectionState\\n identifiers {\\n id\\n name\\n type\\n isRequiredInForm\\n }\\n }\\n }\\n\": typeof types.InventoryGetDataSiloDocument,\n \"\\n mutation InventoryCreateDataSilos($input: [CreateDataSilosInput!]!) {\\n createDataSilos(input: $input) {\\n dataSilos {\\n id\\n title\\n type\\n description\\n isLive\\n createdAt\\n }\\n }\\n }\\n\": typeof types.InventoryCreateDataSilosDocument,\n \"\\n mutation InventoryUpdateDataSilos($input: UpdateDataSilosInput!) {\\n updateDataSilos(input: $input) {\\n dataSilos {\\n id\\n title\\n type\\n description\\n isLive\\n createdAt\\n }\\n }\\n }\\n\": typeof types.InventoryUpdateDataSilosDocument,\n};\nconst documents: Documents = {\n \"\\n query InventoryGetDataSilo($id: String!) {\\n dataSilo(id: $id) {\\n id\\n title\\n type\\n description\\n link\\n isLive\\n outerType\\n createdAt\\n connectionState\\n identifiers {\\n id\\n name\\n type\\n isRequiredInForm\\n }\\n }\\n }\\n\": types.InventoryGetDataSiloDocument,\n \"\\n mutation InventoryCreateDataSilos($input: [CreateDataSilosInput!]!) {\\n createDataSilos(input: $input) {\\n dataSilos {\\n id\\n title\\n type\\n description\\n isLive\\n createdAt\\n }\\n }\\n }\\n\": types.InventoryCreateDataSilosDocument,\n \"\\n mutation InventoryUpdateDataSilos($input: UpdateDataSilosInput!) {\\n updateDataSilos(input: $input) {\\n dataSilos {\\n id\\n title\\n type\\n description\\n isLive\\n createdAt\\n }\\n }\\n }\\n\": types.InventoryUpdateDataSilosDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function graphql(source: string): unknown;\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query InventoryGetDataSilo($id: String!) {\\n dataSilo(id: $id) {\\n id\\n title\\n type\\n description\\n link\\n isLive\\n outerType\\n createdAt\\n connectionState\\n identifiers {\\n id\\n name\\n type\\n isRequiredInForm\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query InventoryGetDataSilo($id: String!) {\\n dataSilo(id: $id) {\\n id\\n title\\n type\\n description\\n link\\n isLive\\n outerType\\n createdAt\\n connectionState\\n identifiers {\\n id\\n name\\n type\\n isRequiredInForm\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation InventoryCreateDataSilos($input: [CreateDataSilosInput!]!) {\\n createDataSilos(input: $input) {\\n dataSilos {\\n id\\n title\\n type\\n description\\n isLive\\n createdAt\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation InventoryCreateDataSilos($input: [CreateDataSilosInput!]!) {\\n createDataSilos(input: $input) {\\n dataSilos {\\n id\\n title\\n type\\n description\\n isLive\\n createdAt\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation InventoryUpdateDataSilos($input: UpdateDataSilosInput!) {\\n updateDataSilos(input: $input) {\\n dataSilos {\\n id\\n title\\n type\\n description\\n isLive\\n createdAt\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation InventoryUpdateDataSilos($input: UpdateDataSilosInput!) {\\n updateDataSilos(input: $input) {\\n dataSilos {\\n id\\n title\\n type\\n description\\n isLive\\n createdAt\\n }\\n }\\n }\\n\"];\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;","import {\n TranscendGraphQLBase,\n type DataCategory,\n type DataPoint,\n type DataSilo,\n type DataSiloCreateInput,\n type DataSiloDetails,\n type DataSiloType,\n type DataSiloUpdateInput,\n type Identifier,\n type ListOptions,\n type PaginatedResponse,\n type SubDataPoint,\n type Vendor,\n} from '@transcend-io/mcp-server-base';\n\nimport { graphql } from './__generated__/gql.js';\n\n// The single-fetch operations (get/create/update) use the typed `graphql()`\n// tag so drift fails at compile time. The `list*` methods below intentionally\n// keep raw query strings because they route through `listConnection`, the\n// shared offset-pagination engine in mcp-server-base that also powers the\n// `all` (fetch-every-page) option.\nconst GetDataSiloDoc = graphql(/* GraphQL */ `\n query InventoryGetDataSilo($id: String!) {\n dataSilo(id: $id) {\n id\n title\n type\n description\n link\n isLive\n outerType\n createdAt\n connectionState\n identifiers {\n id\n name\n type\n isRequiredInForm\n }\n }\n }\n`);\n\nconst CreateDataSilosDoc = graphql(/* GraphQL */ `\n mutation InventoryCreateDataSilos($input: [CreateDataSilosInput!]!) {\n createDataSilos(input: $input) {\n dataSilos {\n id\n title\n type\n description\n isLive\n createdAt\n }\n }\n }\n`);\n\n// `DataSilo.updatedAt` does not exist in the schema (only `createdAt` and\n// `deletedAt`). The previous selection requested it and would have errored\n// at runtime if Transcend's API used strict validation.\nconst UpdateDataSilosDoc = graphql(/* GraphQL */ `\n mutation InventoryUpdateDataSilos($input: UpdateDataSilosInput!) {\n updateDataSilos(input: $input) {\n dataSilos {\n id\n title\n type\n description\n isLive\n createdAt\n }\n }\n }\n`);\n\nfunction mapDataSilo<\n T extends {\n id: string;\n title: string;\n type: string;\n description?: string | null;\n isLive: boolean;\n createdAt: string;\n },\n>(node: T): DataSilo {\n return {\n id: node.id,\n title: node.title,\n type: node.type as DataSiloType,\n description: node.description ?? undefined,\n isLive: node.isLive,\n createdAt: node.createdAt,\n };\n}\n\nexport class InventoryMixin extends TranscendGraphQLBase {\n async listDataSilos(options?: ListOptions): Promise<PaginatedResponse<DataSilo>> {\n const query = `\n query ListDataSilos($first: Int, $offset: Int) {\n dataSilos(first: $first, offset: $offset) {\n nodes {\n id\n title\n type\n isLive\n outerType\n createdAt\n }\n totalCount\n }\n }\n `;\n return this.listConnection<DataSilo>(query, 'dataSilos', options);\n }\n\n async getDataSilo(id: string): Promise<DataSiloDetails> {\n const data = await this.makeRequest(GetDataSiloDoc, { id });\n const silo = data.dataSilo;\n return {\n id: silo.id,\n title: silo.title,\n type: silo.type as DataSiloType,\n description: silo.description ?? undefined,\n link: silo.link ?? undefined,\n isLive: silo.isLive,\n outerType: silo.outerType ?? undefined,\n createdAt: silo.createdAt,\n identifiers: silo.identifiers?.map((idf) => ({\n id: idf.id,\n name: idf.name,\n type: idf.type,\n isRequiredInForm: idf.isRequiredInForm ?? undefined,\n })),\n };\n }\n\n async createDataSilo(input: DataSiloCreateInput): Promise<DataSilo> {\n const data = await this.makeRequest(CreateDataSilosDoc, { input: [input as never] });\n const created = data.createDataSilos.dataSilos[0];\n if (!created) throw new Error('createDataSilos returned an empty array');\n return mapDataSilo(created);\n }\n\n async updateDataSilo(input: DataSiloUpdateInput): Promise<DataSilo> {\n const data = await this.makeRequest(UpdateDataSilosDoc, {\n input: { dataSilos: [input as never] },\n });\n const updated = data.updateDataSilos.dataSilos[0];\n if (!updated) throw new Error('updateDataSilos returned an empty array');\n return mapDataSilo(updated);\n }\n\n async listVendors(options?: ListOptions): Promise<PaginatedResponse<Vendor>> {\n const query = `\n query ListVendors($first: Int, $offset: Int) {\n vendors(first: $first, offset: $offset) {\n nodes {\n id\n title\n }\n totalCount\n }\n }\n `;\n return this.listConnection<Vendor>(query, 'vendors', options);\n }\n\n async listDataPoints(\n _dataSiloId?: string,\n options?: ListOptions,\n ): Promise<PaginatedResponse<DataPoint>> {\n const query = `\n query ListDataPoints($first: Int, $offset: Int) {\n dataPoints(first: $first, offset: $offset) {\n nodes {\n id\n name\n title {\n defaultMessage\n }\n description {\n defaultMessage\n }\n }\n totalCount\n }\n }\n `;\n type RawDataPoint = {\n id: string;\n name: string;\n title: { defaultMessage: string };\n description: { defaultMessage: string } | null;\n };\n const toDataPoint = (dp: RawDataPoint): DataPoint => ({\n id: dp.id,\n name: dp.name,\n title: dp.title?.defaultMessage,\n description: dp.description?.defaultMessage,\n createdAt: new Date().toISOString(),\n updatedAt: new Date().toISOString(),\n });\n return this.listConnection<RawDataPoint, DataPoint>(query, 'dataPoints', options, {\n mapNode: toDataPoint,\n });\n }\n\n async listSubDataPoints(\n dataPointId: string,\n options?: ListOptions,\n ): Promise<PaginatedResponse<SubDataPoint>> {\n const query = `\n query ListSubDataPoints($first: Int, $offset: Int, $filterBy: SubDataPointFiltersInput) {\n subDataPoints(first: $first, offset: $offset, filterBy: $filterBy) {\n nodes {\n id\n name\n description\n accessRequestVisibilityEnabled\n }\n totalCount\n }\n }\n `;\n return this.listConnection<SubDataPoint>(query, 'subDataPoints', options, {\n variables: { filterBy: { dataPoints: [dataPointId] } },\n });\n }\n\n async listIdentifiers(options?: ListOptions): Promise<PaginatedResponse<Identifier>> {\n const query = `\n query ListIdentifiers($first: Int, $offset: Int) {\n identifiers(first: $first, offset: $offset) {\n nodes {\n id\n name\n type\n isRequiredInForm\n }\n totalCount\n }\n }\n `;\n return this.listConnection<Identifier>(query, 'identifiers', options);\n }\n\n async listDataCategories(options?: ListOptions): Promise<PaginatedResponse<DataCategory>> {\n const query = `\n query ListDataCategories($first: Int, $offset: Int) {\n dataCategories(first: $first, offset: $offset) {\n nodes {\n name\n category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ts CHANGED
@@ -1,8 +1,13 @@
1
1
  import { DataCategory, DataPoint, DataSilo, DataSiloCreateInput, DataSiloDetails, DataSiloUpdateInput, Identifier, ListOptions, PaginatedResponse, SubDataPoint, ToolClients, ToolDefinition, TranscendGraphQLBase, Vendor, z } from "@transcend-io/mcp-server-base";
2
+ import { ScopeName } from "@transcend-io/privacy-types";
2
3
 
3
4
  //#region src/tools/index.d.ts
4
5
  declare function getInventoryTools(clients: ToolClients): ToolDefinition[];
5
6
  //#endregion
7
+ //#region src/scopes.d.ts
8
+ /** OAuth scopes required for Inventory MCP tools (offline_access added by base). */
9
+ declare const INVENTORY_OAUTH_SCOPES: readonly [ScopeName.ViewDataMap, ScopeName.ViewAssignedIntegrations, ScopeName.ManageDataMap, ScopeName.ManageAssignedIntegrations, ScopeName.ViewDataInventory, ScopeName.ViewAssignedDataInventory, ScopeName.ManageDataInventory, ScopeName.ManageAssignedDataInventory];
10
+ //#endregion
6
11
  //#region src/graphql.d.ts
7
12
  declare class InventoryMixin extends TranscendGraphQLBase {
8
13
  listDataSilos(options?: ListOptions): Promise<PaginatedResponse<DataSilo>>;
@@ -24,41 +29,41 @@ type CreateDataSiloInput = z.infer<typeof CreateDataSiloSchema>;
24
29
  //#endregion
25
30
  //#region src/tools/inventory_get_data_silo.d.ts
26
31
  declare const GetDataSiloSchema: z.ZodObject<{
27
- data_silo_id: z.ZodString;
32
+ dataSiloId: z.ZodString;
28
33
  }, z.core.$strip>;
29
34
  type GetDataSiloInput = z.infer<typeof GetDataSiloSchema>;
30
35
  //#endregion
31
36
  //#region src/tools/inventory_list_categories.d.ts
32
37
  declare const ListCategoriesSchema: z.ZodObject<{
33
38
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
34
- cursor: z.ZodOptional<z.ZodString>;
39
+ offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
35
40
  }, z.core.$strip>;
36
41
  type ListCategoriesInput = z.infer<typeof ListCategoriesSchema>;
37
42
  //#endregion
38
43
  //#region src/tools/inventory_list_data_points.d.ts
39
44
  declare const ListDataPointsSchema: z.ZodObject<{
40
45
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
41
- cursor: z.ZodOptional<z.ZodString>;
46
+ offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
42
47
  }, z.core.$strip>;
43
48
  type ListDataPointsInput = z.infer<typeof ListDataPointsSchema>;
44
49
  //#endregion
45
50
  //#region src/tools/inventory_list_data_silos.d.ts
46
51
  declare const ListDataSilosSchema: z.ZodObject<{
47
52
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
48
- cursor: z.ZodOptional<z.ZodString>;
53
+ offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
49
54
  }, z.core.$strip>;
50
55
  type ListDataSilosInput = z.infer<typeof ListDataSilosSchema>;
51
56
  //#endregion
52
57
  //#region src/tools/inventory_list_identifiers.d.ts
53
58
  declare const ListIdentifiersSchema: z.ZodObject<{
54
59
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
55
- cursor: z.ZodOptional<z.ZodString>;
60
+ offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
56
61
  }, z.core.$strip>;
57
62
  type ListIdentifiersInput = z.infer<typeof ListIdentifiersSchema>;
58
63
  //#endregion
59
64
  //#region src/tools/inventory_list_sub_data_points.d.ts
60
65
  declare const ListSubDataPointsSchema: z.ZodObject<{
61
- data_point_id: z.ZodString;
66
+ dataPointId: z.ZodString;
62
67
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
63
68
  offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
64
69
  }, z.core.$strip>;
@@ -67,17 +72,17 @@ type ListSubDataPointsInput = z.infer<typeof ListSubDataPointsSchema>;
67
72
  //#region src/tools/inventory_list_vendors.d.ts
68
73
  declare const ListVendorsSchema: z.ZodObject<{
69
74
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
70
- cursor: z.ZodOptional<z.ZodString>;
75
+ offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
71
76
  }, z.core.$strip>;
72
77
  type ListVendorsInput = z.infer<typeof ListVendorsSchema>;
73
78
  //#endregion
74
79
  //#region src/tools/inventory_update_data_silo.d.ts
75
80
  declare const UpdateDataSiloSchema: z.ZodObject<{
76
- data_silo_id: z.ZodString;
81
+ dataSiloId: z.ZodString;
77
82
  title: z.ZodOptional<z.ZodString>;
78
83
  description: z.ZodOptional<z.ZodString>;
79
84
  }, z.core.$strip>;
80
85
  type UpdateDataSiloInput = z.infer<typeof UpdateDataSiloSchema>;
81
86
  //#endregion
82
- export { type CreateDataSiloInput, CreateDataSiloSchema, type GetDataSiloInput, GetDataSiloSchema, InventoryMixin, type ListCategoriesInput, ListCategoriesSchema, type ListDataPointsInput, ListDataPointsSchema, type ListDataSilosInput, ListDataSilosSchema, type ListIdentifiersInput, ListIdentifiersSchema, type ListSubDataPointsInput, ListSubDataPointsSchema, type ListVendorsInput, ListVendorsSchema, type UpdateDataSiloInput, UpdateDataSiloSchema, getInventoryTools };
87
+ export { type CreateDataSiloInput, CreateDataSiloSchema, type GetDataSiloInput, GetDataSiloSchema, INVENTORY_OAUTH_SCOPES, InventoryMixin, type ListCategoriesInput, ListCategoriesSchema, type ListDataPointsInput, ListDataPointsSchema, type ListDataSilosInput, ListDataSilosSchema, type ListIdentifiersInput, ListIdentifiersSchema, type ListSubDataPointsInput, ListSubDataPointsSchema, type ListVendorsInput, ListVendorsSchema, type UpdateDataSiloInput, UpdateDataSiloSchema, getInventoryTools };
83
88
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/tools/index.ts","../src/graphql.ts","../src/tools/inventory_create_data_silo.ts","../src/tools/inventory_get_data_silo.ts","../src/tools/inventory_list_categories.ts","../src/tools/inventory_list_data_points.ts","../src/tools/inventory_list_data_silos.ts","../src/tools/inventory_list_identifiers.ts","../src/tools/inventory_list_sub_data_points.ts","../src/tools/inventory_list_vendors.ts","../src/tools/inventory_update_data_silo.ts"],"mappings":";;;iBAagB,iBAAA,CAAkB,OAAA,EAAS,WAAA,GAAc,cAAA;;;cCE5C,cAAA,SAAuB,oBAAA;EAC5B,aAAA,CAAc,OAAA,GAAU,WAAA,GAAc,OAAA,CAAQ,iBAAA,CAAkB,QAAA;EA2BhE,WAAA,CAAY,EAAA,WAAa,OAAA,CAAQ,eAAA;EA0BjC,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAsB,OAAA,CAAQ,QAAA;EAuBpD,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAsB,OAAA,CAAQ,QAAA;EAyBpD,WAAA,CAAY,OAAA,GAAU,WAAA,GAAc,OAAA,CAAQ,iBAAA,CAAkB,MAAA;EA0B9D,cAAA,CACJ,WAAA,WACA,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iBAAA,CAAkB,SAAA;EA4CvB,iBAAA,CACJ,WAAA,UACA,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iBAAA,CAAkB,YAAA;EA+BvB,eAAA,CAAgB,OAAA,GAAU,WAAA,GAAc,OAAA,CAAQ,iBAAA,CAAkB,UAAA;EA0BlE,kBAAA,CAAmB,OAAA,GAAU,WAAA,GAAc,OAAA,CAAQ,iBAAA,CAAkB,YAAA;AAAA;;;cCtPhE,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;KAOrB,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,oBAAA;;;cCPpC,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;KAGlB,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,iBAAA;;;cCHjC,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;KAarB,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,oBAAA;;;cCbpC,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;KAarB,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,oBAAA;;;cCbpC,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;KAapB,kBAAA,GAAqB,CAAA,CAAE,KAAA,QAAa,mBAAA;;;cCbnC,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;KAatB,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,qBAAA;;;cCbrC,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;KAgBxB,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,uBAAA;;;cChBvC,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;KAalB,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,iBAAA;;;cCbjC,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;KAKrB,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,oBAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/tools/index.ts","../src/scopes.ts","../src/graphql.ts","../src/tools/inventory_create_data_silo.ts","../src/tools/inventory_get_data_silo.ts","../src/tools/inventory_list_categories.ts","../src/tools/inventory_list_data_points.ts","../src/tools/inventory_list_data_silos.ts","../src/tools/inventory_list_identifiers.ts","../src/tools/inventory_list_sub_data_points.ts","../src/tools/inventory_list_vendors.ts","../src/tools/inventory_update_data_silo.ts"],"mappings":";;;;iBAagB,iBAAA,CAAkB,OAAA,EAAS,WAAA,GAAc,cAAA;;;;cCV5C,sBAAA,YAAsB,SAAA,CAAA,WAAA,EAAA,SAAA,CAAA,wBAAA,EAAA,SAAA,CAAA,aAAA,EAAA,SAAA,CAAA,0BAAA,EAAA,SAAA,CAAA,iBAAA,EAAA,SAAA,CAAA,yBAAA,EAAA,SAAA,CAAA,mBAAA,EAAA,SAAA,CAAA,2BAAA;;;cC+FtB,cAAA,SAAuB,oBAAA;EAC5B,aAAA,CAAc,O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Aa,qBAAA;;;cCfrC,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;KAgBxB,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,uBAAA;;;cChBvC,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;KAelB,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,iBAAA;;;cCfjC,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;KAKrB,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,oBAAA"}
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ListSubDataPointsSchema, c as ListDataPointsSchema, d as CreateDataSiloSchema, i as ListVendorsSchema, l as ListCategoriesSchema, n as getInventoryTools, o as ListIdentifiersSchema, r as UpdateDataSiloSchema, s as ListDataSilosSchema, t as InventoryMixin, u as GetDataSiloSchema } from "./graphql-0tHfKnDD.mjs";
2
- export { CreateDataSiloSchema, GetDataSiloSchema, InventoryMixin, ListCategoriesSchema, ListDataPointsSchema, ListDataSilosSchema, ListIdentifiersSchema, ListSubDataPointsSchema, ListVendorsSchema, UpdateDataSiloSchema, getInventoryTools };
1
+ import { a as ListVendorsSchema, c as ListDataSilosSchema, d as GetDataSiloSchema, f as CreateDataSiloSchema, i as UpdateDataSiloSchema, l as ListDataPointsSchema, n as INVENTORY_OAUTH_SCOPES, o as ListSubDataPointsSchema, r as getInventoryTools, s as ListIdentifiersSchema, t as InventoryMixin, u as ListCategoriesSchema } from "./graphql-BJIrpomr.mjs";
2
+ export { CreateDataSiloSchema, GetDataSiloSchema, INVENTORY_OAUTH_SCOPES, InventoryMixin, ListCategoriesSchema, ListDataPointsSchema, ListDataSilosSchema, ListIdentifiersSchema, ListSubDataPointsSchema, ListVendorsSchema, UpdateDataSiloSchema, getInventoryTools };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transcend-io/mcp-server-inventory",
3
- "version": "0.3.4",
3
+ "version": "0.4.0",
4
4
  "description": "Transcend MCP Server — Data Inventory tools.",
5
5
  "homepage": "https://github.com/transcend-io/tools/tree/main/packages/mcp/mcp-server-inventory",
6
6
  "license": "Apache-2.0",
@@ -30,16 +30,19 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
+ "@graphql-typed-document-node/core": "^3.2.0",
33
34
  "@modelcontextprotocol/sdk": "^1.29.0",
35
+ "graphql": "^16.14.0",
34
36
  "zod": "^4.3.6",
35
- "@transcend-io/mcp-server-base": "0.4.3"
37
+ "@transcend-io/mcp-server-base": "0.5.0",
38
+ "@transcend-io/privacy-types": "5.3.2"
36
39
  },
37
40
  "devDependencies": {
38
41
  "@arethetypeswrong/cli": "^0.18.2",
39
42
  "@types/node": "^22.19.15",
40
43
  "publint": "^0.3.18",
41
44
  "tsdown": "^0.21.2",
42
- "typescript": "^5.9.3",
45
+ "typescript": "^6.0.0",
43
46
  "vitest": "^4.0.18"
44
47
  },
45
48
  "engines": {