@transcend-io/mcp-server-dsr 0.3.20 → 0.4.1

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-DUMlDtdi.mjs","names":["types.DsrListRequestsDocument","types.DsrGetRequestDocument","types.DsrEmployeeMakeRequestDocument","types.DsrCancelDocument"],"sources":["../src/tools/dsr_analyze.ts","../src/tools/dsr_cancel.ts","../src/tools/dsr_download_keys.ts","../src/tools/dsr_enrich_identifiers.ts","../src/tools/dsr_get_details.ts","../src/tools/dsr_list.ts","../src/tools/dsr_list_identifiers.ts","../src/tools/dsr_poll_status.ts","../src/tools/dsr_respond_access.ts","../src/tools/dsr_respond_erasure.ts","../src/tools/dsr_submit.ts","../src/tools/dsr_submit_on_behalf.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 groupBy,\n type ToolClients,\n z,\n} from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const analyzeDsrSchema = z.object({\n days: z.coerce\n .number()\n .optional()\n .describe(\n 'Filter analysis to requests within N days (default: 30). Only analyzes from the 100 most recent requests.',\n ),\n});\nexport type AnalyzeDsrInput = z.infer<typeof analyzeDsrSchema>;\n\nexport function createDsrAnalyzeTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_analyze',\n description:\n 'Summarize the 100 most recent DSRs: counts by type and status, completion rate, and a configurable recent-days window (default 30). For full-fleet analytics, page through dsr_list and aggregate yourself.',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: analyzeDsrSchema,\n handler: async ({ days }) => {\n const result = await graphql.listRequests({ first: 100 });\n const requests = result.nodes;\n const periodDays = days ?? 30;\n const cutoffDate = new Date(Date.now() - periodDays * 24 * 60 * 60 * 1000);\n\n const recentRequests = requests.filter((r) => new Date(r.createdAt) > cutoffDate);\n const completedRequests = requests.filter((r) => r.status === 'COMPLETED');\n const pendingRequests = requests.filter((r) =>\n [\n 'REQUEST_MADE',\n 'ENRICHING',\n 'ON_HOLD',\n 'WAITING',\n 'COMPILING',\n 'APPROVING',\n 'DELAYED',\n 'SECONDARY',\n 'SECONDARY_APPROVING',\n ].includes(r.status),\n );\n\n return createToolResult(true, {\n summary: {\n analyzedRequests: requests.length,\n totalRequestsInSystem: result.totalCount,\n recentRequests: recentRequests.length,\n completedRequests: completedRequests.length,\n pendingRequests: pendingRequests.length,\n completionRate:\n requests.length > 0\n ? Math.round((completedRequests.length / requests.length) * 100)\n : 0,\n },\n breakdown: {\n byType: groupBy(requests, 'type'),\n byStatus: groupBy(requests, 'status'),\n recentByType: groupBy(recentRequests, 'type'),\n recentByStatus: groupBy(recentRequests, 'status'),\n },\n period: {\n days: periodDays,\n startDate: cutoffDate.toISOString(),\n endDate: new Date().toISOString(),\n },\n limitation:\n (result.totalCount || 0) > 100\n ? `This analysis is based on the 100 most recent requests out of ${result.totalCount} total. For complete analysis, use dsr_list with pagination to fetch all requests.`\n : undefined,\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const cancelDsrSchema = z.object({\n requestId: z.string().describe('ID of the DSR to cancel'),\n reason: z.string().optional().describe('Reason for cancellation (optional)'),\n});\nexport type CancelDsrInput = z.infer<typeof cancelDsrSchema>;\n\nexport function createDsrCancelTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_cancel',\n description: 'Cancel a Data Subject Request',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Cancels the specified request permanently',\n annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false },\n zodSchema: cancelDsrSchema,\n handler: async ({ requestId, reason }) => {\n const input: { requestId: string; template?: string; subject?: string } = {\n requestId,\n };\n if (reason) {\n input.subject = reason;\n }\n const result = await graphql.cancelRequest(input);\n return createToolResult(true, {\n request: result.request,\n message: 'DSR canceled successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const downloadKeysSchema = z.object({\n requestId: z.string().describe('ID of the completed DSR'),\n});\nexport type DownloadKeysInput = z.infer<typeof downloadKeysSchema>;\n\nexport function createDsrDownloadKeysTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_download_keys',\n description:\n 'Get download keys for a completed Data Subject Request. These keys can be used to download the DSR results.',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: downloadKeysSchema,\n handler: async ({ requestId }) => {\n const keys = await rest.getDSRDownloadKeys(requestId);\n return createToolResult(true, {\n downloadKeys: keys,\n count: keys.length,\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const enrichIdentifiersSchema = z.object({\n requestId: z.string().describe('ID of the DSR to enrich'),\n identifiers: z\n .record(z.string(), z.string())\n .describe('Key-value pairs of identifier names and values to add'),\n});\nexport type EnrichIdentifiersInput = z.infer<typeof enrichIdentifiersSchema>;\n\nexport function createDsrEnrichIdentifiersTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_enrich_identifiers',\n description:\n 'Enrich a Data Subject Request with additional identifiers during preflight processing',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Adds identifiers to the DSR during preflight',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: enrichIdentifiersSchema,\n handler: async ({ requestId, identifiers }) => {\n const result = await rest.enrichIdentifiers({\n requestId,\n identifiers,\n });\n return createToolResult(true, {\n ...result,\n message: 'Identifiers enriched successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const getDetailsSchema = z.object({\n requestId: z.string().describe('ID of the DSR to retrieve'),\n});\nexport type GetDetailsInput = z.infer<typeof getDetailsSchema>;\n\nexport function createDsrGetDetailsTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_get_details',\n description: 'Get detailed information about a specific Data Subject Request',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: getDetailsSchema,\n handler: async ({ requestId }) => {\n const result = await graphql.getRequest(requestId);\n return createToolResult(true, result);\n },\n });\n}\n","import {\n createListResult,\n defineTool,\n PaginationSchema,\n type ToolClients,\n} from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport function createDsrListTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_list',\n description:\n 'List all Data Subject Requests. Use cursor pagination to retrieve all results (max 100 per page). Note: Server-side date filtering is not available - filter results client-side if needed.',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: PaginationSchema,\n handler: async ({ limit, cursor }) => {\n const result = await graphql.listRequests({\n first: limit,\n after: cursor,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n cursor: result.pageInfo?.endCursor,\n paginationNote: result.pageInfo?.hasNextPage\n ? 'More results available. Pass the cursor value to fetch the next page.'\n : 'No more results.',\n });\n },\n });\n}\n","import {\n createListResult,\n defineTool,\n PaginationSchema,\n type ToolClients,\n z,\n} from '@transcend-io/mcp-server-base';\n\nexport const listIdentifiersSchema = z\n .object({\n requestId: z.string().describe('ID of the DSR'),\n })\n .merge(PaginationSchema);\nexport type ListIdentifiersInput = z.infer<typeof listIdentifiersSchema>;\n\nexport function createDsrListIdentifiersTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_list_identifiers',\n description: 'List all identifiers attached to a Data Subject Request',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: listIdentifiersSchema,\n handler: async ({ requestId }) => {\n const identifiers = await rest.listRequestIdentifiers(requestId);\n return createListResult(identifiers);\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const pollStatusSchema = z.object({\n requestId: z.string().describe('ID of the DSR to check'),\n});\nexport type PollStatusInput = z.infer<typeof pollStatusSchema>;\n\nexport function createDsrPollStatusTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_poll_status',\n description: 'Poll the current status of a Data Subject Request',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: pollStatusSchema,\n handler: async ({ requestId }) => {\n const result = await rest.getDSRStatus(requestId);\n return createToolResult(true, result);\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const respondAccessSchema = z.object({\n requestId: z.string().describe('ID of the DSR'),\n dataSiloId: z.string().describe('ID of the data silo responding'),\n profiles: z\n .array(z.record(z.string(), z.unknown()))\n .optional()\n .describe('Array of profile data objects to return'),\n});\nexport type RespondAccessInput = z.infer<typeof respondAccessSchema>;\n\nexport function createDsrRespondAccessTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_respond_access',\n description: 'Respond to an ACCESS request by uploading user data',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Uploads access response data for the DSR',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: respondAccessSchema,\n handler: async ({ requestId, dataSiloId, profiles }) => {\n const result = await rest.respondToAccess({\n requestId,\n dataSiloId,\n profiles: profiles as Record<string, unknown>[] | undefined,\n });\n return createToolResult(true, {\n ...result,\n message: 'Access response submitted successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const respondErasureSchema = z.object({\n requestId: z.string().describe('ID of the DSR'),\n dataSiloId: z.string().describe('ID of the data silo that completed erasure'),\n profileIds: z\n .array(z.string())\n .optional()\n .describe('IDs of profiles that were erased (optional)'),\n});\nexport type RespondErasureInput = z.infer<typeof respondErasureSchema>;\n\nexport function createDsrRespondErasureTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_respond_erasure',\n description: 'Confirm that data erasure has been completed for a data silo',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Confirms erasure completion for the data silo',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true },\n zodSchema: respondErasureSchema,\n handler: async ({ requestId, dataSiloId, profileIds }) => {\n const result = await rest.confirmErasure({\n requestId,\n dataSiloId,\n profileIds,\n });\n return createToolResult(true, {\n ...result,\n message: 'Erasure confirmation submitted successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\nimport { RequestAction } from '@transcend-io/privacy-types';\n\nexport const submitDsrSchema = z.object({\n type: z.nativeEnum(RequestAction).describe('Type of DSR request'),\n email: z.string().describe('Email address of the data subject'),\n subjectType: z\n .string()\n .describe(\n 'Type of data subject (e.g., customer, employee, prospect). Required by the Transcend API.',\n ),\n coreIdentifier: z\n .string()\n .optional()\n .describe('Core identifier for the data subject (defaults to email if not provided)'),\n name: z.string().optional().describe('Name of the data subject (optional)'),\n locale: z.string().optional().describe('Locale for communications (e.g., en-US)'),\n isSilent: z.boolean().optional().describe('Whether to suppress email notifications'),\n});\nexport type SubmitDsrInput = z.infer<typeof submitDsrSchema>;\n\nexport function createDsrSubmitTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_submit',\n description:\n 'Submit a Data Subject Request as the data subject (public DSR API; e.g. Privacy Center flow). Supports ACCESS, ERASURE, RECTIFICATION, etc. coreIdentifier defaults to email. Use dsr_submit_on_behalf when an admin is filing on behalf of a data subject.',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Creates a new data subject request',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: submitDsrSchema,\n handler: async ({ type, email, subjectType, coreIdentifier, name, locale, isSilent }) => {\n const result = await rest.submitDSR({\n type,\n email,\n subjectType,\n coreIdentifier,\n name,\n locale,\n isSilent,\n });\n return createToolResult(true, {\n request: result,\n message: `DSR of type ${type} submitted successfully`,\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\nimport { RequestAction } from '@transcend-io/privacy-types';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const submitDsrOnBehalfSchema = z.object({\n type: z.nativeEnum(RequestAction).describe('Type of DSR request'),\n email: z.string().describe('Email address of the data subject'),\n subjectType: z\n .string()\n .describe('Type of data subject (e.g., customer, employee). Required by the Transcend API.'),\n coreIdentifier: z.string().optional().describe('Core identifier for the data subject (optional)'),\n locale: z.string().optional().describe('Locale for communications (e.g., en-US)'),\n isSilent: z.boolean().optional().describe('Whether to suppress email notifications'),\n});\nexport type SubmitDsrOnBehalfInput = z.infer<typeof submitDsrOnBehalfSchema>;\n\nexport function createDsrSubmitOnBehalfTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_submit_on_behalf',\n description:\n 'Submit a Data Subject Request as an admin on behalf of a data subject (admin-dashboard flow). Use dsr_submit when the data subject is submitting their own.',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Creates a new data subject request on behalf of a data subject',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: submitDsrOnBehalfSchema,\n handler: async ({ type, email, subjectType, coreIdentifier, locale, isSilent }) => {\n const result = await graphql.employeeMakeDataSubjectRequest({\n type,\n email,\n subjectType,\n coreIdentifier,\n locale,\n isSilent,\n });\n return createToolResult(true, {\n request: result.request,\n clientMutationId: result.clientMutationId,\n message: `DSR of type ${type} submitted on behalf of data subject`,\n });\n },\n });\n}\n","import type { ToolDefinition, ToolClients } from '@transcend-io/mcp-server-base';\n\nimport { createDsrAnalyzeTool } from './dsr_analyze.js';\nimport { createDsrCancelTool } from './dsr_cancel.js';\nimport { createDsrDownloadKeysTool } from './dsr_download_keys.js';\nimport { createDsrEnrichIdentifiersTool } from './dsr_enrich_identifiers.js';\nimport { createDsrGetDetailsTool } from './dsr_get_details.js';\nimport { createDsrListTool } from './dsr_list.js';\nimport { createDsrListIdentifiersTool } from './dsr_list_identifiers.js';\nimport { createDsrPollStatusTool } from './dsr_poll_status.js';\nimport { createDsrRespondAccessTool } from './dsr_respond_access.js';\nimport { createDsrRespondErasureTool } from './dsr_respond_erasure.js';\nimport { createDsrSubmitTool } from './dsr_submit.js';\nimport { createDsrSubmitOnBehalfTool } from './dsr_submit_on_behalf.js';\n\nexport function getDSRTools(clients: ToolClients): ToolDefinition[] {\n return [\n createDsrSubmitTool(clients),\n createDsrPollStatusTool(clients),\n createDsrListTool(clients),\n createDsrGetDetailsTool(clients),\n createDsrDownloadKeysTool(clients),\n createDsrListIdentifiersTool(clients),\n createDsrEnrichIdentifiersTool(clients),\n createDsrRespondAccessTool(clients),\n createDsrRespondErasureTool(clients),\n createDsrCancelTool(clients),\n createDsrSubmitOnBehalfTool(clients),\n createDsrAnalyzeTool(clients),\n ];\n}\n","import { ScopeName } from '@transcend-io/privacy-types';\n\n/** OAuth scopes required for DSR MCP tools (offline_access added by base). */\nexport const DSR_OAUTH_SCOPES = [\n ScopeName.ViewRequests,\n ScopeName.ViewAssignedRequests,\n ScopeName.MakeDataSubjectRequest,\n ScopeName.ManageAssignedRequests,\n ScopeName.ViewRequestCompilation,\n ScopeName.ManageRequestCompilation,\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 CommunicationInput = {\n requestId: string | number;\n subject?: string | null | undefined;\n template?: string | null | undefined;\n};\n\nexport type CompletedRequestStatus =\n | 'CANCELED'\n | 'COMPLETED'\n | 'FAILED_VERIFICATION'\n | 'REVOKED'\n | 'SECONDARY_COMPLETED';\n\nexport type DeprecatedRequestIdentifierInput = {\n name?: string | null | undefined;\n value: string;\n};\n\nexport type DeprecatedRequestIdentifiersInput = {\n adobeAdvertisingCloudId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n adobeAudienceManagerId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n adobeExperienceCloudId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n adobeTargetId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n advertisingId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n amazonFireAdvertisingId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n braintreeCustomerId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n browserId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n chargebeeId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n coreIdentifier?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n custom?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n customerIoId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n email?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n filestackHandle?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n gaid?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n idfa?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n idfv?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n linkedInURL?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n microsoftAdvertisingId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n onfidoApplicantId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n personaReferenceId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n phone?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n plaidProcessorToken?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n recurlyId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n rida?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n sprigVisitorId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n streamUserId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n stripeId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n talkableUUID?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n thriveTrmContactId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n transcend?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n veroUserId?: Array<DeprecatedRequestIdentifierInput> | null | undefined;\n};\n\nexport type EmployeeRequestInput = {\n attributes?: Array<AttributeInput> | null | undefined;\n completedAt?: string | null | undefined;\n completedRequestStatus?: CompletedRequestStatus | null | undefined;\n createdAt?: string | null | undefined;\n dataSiloIds?: Array<string | number> | null | undefined;\n details?: string | null | undefined;\n emailReceiptTemplateId?: string | number | null | undefined;\n encryptedCEKContext?: string | null | undefined;\n idempotencyKey?: string | null | undefined;\n ignoreDataSiloIds?: Array<string | number> | null | undefined;\n isRestart?: boolean | null | undefined;\n isSilent?: boolean | null | undefined;\n isTest?: boolean | null | undefined;\n locale?: string | null | undefined;\n partitionKey?: string | null | undefined;\n postCompileStatus?: PostCompileStatus | null | undefined;\n region?: RegionInput | null | undefined;\n replyToEmailAddresses?: Array<string> | null | undefined;\n requestId?: string | number | null | undefined;\n requestIdentifiers?: DeprecatedRequestIdentifiersInput | null | undefined;\n restartIdentifierStrategy?: RestartIdentifierStrategy | null | undefined;\n signedRequestIdentifiers?: SignedRequestIdentifiersInput | null | undefined;\n skipEnrichmentChecks?: Array<string | number> | null | undefined;\n skipSendingReceipt?: boolean | null | undefined;\n skipWaitingPeriod?: boolean | null | undefined;\n subjectType: string;\n type: RequestAction;\n};\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 PostCompileStatus =\n | 'DOWNLOADABLE'\n | 'VIEW_CATEGORIES';\n\nexport type RegionInput = {\n country?: IsoCountryCode | null | undefined;\n countrySubDivision?: string | null | undefined;\n};\n\nexport type RequestAction =\n | 'ACCESS'\n | 'AUTOMATED_DECISION_MAKING_OPT_IN'\n | 'AUTOMATED_DECISION_MAKING_OPT_OUT'\n | 'BUSINESS_PURPOSE'\n | 'CONTACT_OPT_IN'\n | 'CONTACT_OPT_OUT'\n | 'CUSTOM_OPT_IN'\n | 'CUSTOM_OPT_OUT'\n | 'ERASURE'\n | 'PLACE_ON_LEGAL_HOLD'\n | 'RECTIFICATION'\n | 'REMOVE_FROM_LEGAL_HOLD'\n | 'RESTRICTION'\n | 'SALE_OPT_IN'\n | 'SALE_OPT_OUT'\n | 'TRACKING_OPT_IN'\n | 'TRACKING_OPT_OUT'\n | 'USE_OF_SENSITIVE_INFORMATION_OPT_IN'\n | 'USE_OF_SENSITIVE_INFORMATION_OPT_OUT';\n\nexport type RequestStatus =\n | 'APPROVING'\n | 'CANCELED'\n | 'COMPILING'\n | 'COMPLETED'\n | 'DELAYED'\n | 'DOWNLOADABLE'\n | 'ENRICHING'\n | 'FAILED_VERIFICATION'\n | 'ON_HOLD'\n | 'REQUEST_MADE'\n | 'REVOKED'\n | 'SECONDARY'\n | 'SECONDARY_APPROVING'\n | 'SECONDARY_COMPLETED'\n | 'VIEW_CATEGORIES'\n | 'WAITING';\n\nexport type RestartIdentifierStrategy =\n | 'PRESERVE_ALL_VERIFICATIONS'\n | 'PRESERVE_INITIAL_VERIFICATIONS_ONLY'\n | 'REMOVE_ENRICHED_IDENTIFIERS';\n\nexport type SignedRequestIdentifierInput = {\n jwt: string;\n};\n\nexport type SignedRequestIdentifiersInput = {\n adobeAdvertisingCloudId?: Array<SignedRequestIdentifierInput> | null | undefined;\n adobeAudienceManagerId?: Array<SignedRequestIdentifierInput> | null | undefined;\n adobeExperienceCloudId?: Array<SignedRequestIdentifierInput> | null | undefined;\n adobeTargetId?: Array<SignedRequestIdentifierInput> | null | undefined;\n advertisingId?: Array<SignedRequestIdentifierInput> | null | undefined;\n amazonFireAdvertisingId?: Array<SignedRequestIdentifierInput> | null | undefined;\n braintreeCustomerId?: Array<SignedRequestIdentifierInput> | null | undefined;\n browserId?: Array<SignedRequestIdentifierInput> | null | undefined;\n chargebeeId?: Array<SignedRequestIdentifierInput> | null | undefined;\n coreIdentifier?: Array<SignedRequestIdentifierInput> | null | undefined;\n custom?: Array<SignedRequestIdentifierInput> | null | undefined;\n customerIoId?: Array<SignedRequestIdentifierInput> | null | undefined;\n email?: Array<SignedRequestIdentifierInput> | null | undefined;\n filestackHandle?: Array<SignedRequestIdentifierInput> | null | undefined;\n gaid?: Array<SignedRequestIdentifierInput> | null | undefined;\n idfa?: Array<SignedRequestIdentifierInput> | null | undefined;\n idfv?: Array<SignedRequestIdentifierInput> | null | undefined;\n linkedInURL?: Array<SignedRequestIdentifierInput> | null | undefined;\n microsoftAdvertisingId?: Array<SignedRequestIdentifierInput> | null | undefined;\n onfidoApplicantId?: Array<SignedRequestIdentifierInput> | null | undefined;\n personaReferenceId?: Array<SignedRequestIdentifierInput> | null | undefined;\n phone?: Array<SignedRequestIdentifierInput> | null | undefined;\n plaidProcessorToken?: Array<SignedRequestIdentifierInput> | null | undefined;\n recurlyId?: Array<SignedRequestIdentifierInput> | null | undefined;\n rida?: Array<SignedRequestIdentifierInput> | null | undefined;\n sprigVisitorId?: Array<SignedRequestIdentifierInput> | null | undefined;\n streamUserId?: Array<SignedRequestIdentifierInput> | null | undefined;\n stripeId?: Array<SignedRequestIdentifierInput> | null | undefined;\n talkableUUID?: Array<SignedRequestIdentifierInput> | null | undefined;\n thriveTrmContactId?: Array<SignedRequestIdentifierInput> | null | undefined;\n transcend?: Array<SignedRequestIdentifierInput> | null | undefined;\n veroUserId?: Array<SignedRequestIdentifierInput> | null | undefined;\n};\n\nexport type DsrListRequestsQueryVariables = Exact<{\n first?: number | null | undefined;\n after?: string | null | undefined;\n}>;\n\n\nexport type DsrListRequestsQuery = { requests: { totalCount: number, nodes: Array<{ id: string, type: RequestAction, status: RequestStatus, createdAt: string, updatedAt: string }>, pageInfo: { hasNextPage: boolean, endCursor: string | null } } };\n\nexport type DsrGetRequestQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type DsrGetRequestQuery = { request: { id: string, type: RequestAction, status: RequestStatus, createdAt: string, updatedAt: string, daysRemaining: number | null, link: string, locale: string, isSilent: boolean } };\n\nexport type DsrEmployeeMakeRequestMutationVariables = Exact<{\n input: EmployeeRequestInput;\n}>;\n\n\nexport type DsrEmployeeMakeRequestMutation = { employeeMakeDataSubjectRequest: { clientMutationId: string | null, request: { id: string, type: RequestAction, status: RequestStatus, createdAt: string, updatedAt: string } } };\n\nexport type DsrCancelMutationVariables = Exact<{\n input: CommunicationInput;\n}>;\n\n\nexport type DsrCancelMutation = { cancelRequest: { clientMutationId: string | null, request: { id: string, type: RequestAction, status: RequestStatus, createdAt: string, updatedAt: string } } };\n\n\nexport const DsrListRequestsDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"DsrListRequests\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"first\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"after\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"requests\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"first\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"first\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"after\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"after\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"nodes\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"updatedAt\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pageInfo\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hasNextPage\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"endCursor\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalCount\"}}]}}]}}]} as unknown as DocumentNode<DsrListRequestsQuery, DsrListRequestsQueryVariables>;\nexport const DsrGetRequestDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"DsrGetRequest\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"request\"},\"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\":\"type\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"updatedAt\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"daysRemaining\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isSilent\"}}]}}]}}]} as unknown as DocumentNode<DsrGetRequestQuery, DsrGetRequestQueryVariables>;\nexport const DsrEmployeeMakeRequestDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"DsrEmployeeMakeRequest\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"EmployeeRequestInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"employeeMakeDataSubjectRequest\"},\"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\":\"clientMutationId\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"request\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"updatedAt\"}}]}}]}}]}}]} as unknown as DocumentNode<DsrEmployeeMakeRequestMutation, DsrEmployeeMakeRequestMutationVariables>;\nexport const DsrCancelDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"DsrCancel\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"CommunicationInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cancelRequest\"},\"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\":\"clientMutationId\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"request\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"updatedAt\"}}]}}]}}]}}]} as unknown as DocumentNode<DsrCancelMutation, DsrCancelMutationVariables>;","/* 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 DsrListRequests($first: Int, $after: String) {\\n requests(first: $first, after: $after) {\\n nodes {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n totalCount\\n }\\n }\\n\": typeof types.DsrListRequestsDocument,\n \"\\n query DsrGetRequest($id: ID!) {\\n request(id: $id) {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n daysRemaining\\n link\\n locale\\n isSilent\\n }\\n }\\n\": typeof types.DsrGetRequestDocument,\n \"\\n mutation DsrEmployeeMakeRequest($input: EmployeeRequestInput!) {\\n employeeMakeDataSubjectRequest(input: $input) {\\n clientMutationId\\n request {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n }\\n }\\n\": typeof types.DsrEmployeeMakeRequestDocument,\n \"\\n mutation DsrCancel($input: CommunicationInput!) {\\n cancelRequest(input: $input) {\\n clientMutationId\\n request {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n }\\n }\\n\": typeof types.DsrCancelDocument,\n};\nconst documents: Documents = {\n \"\\n query DsrListRequests($first: Int, $after: String) {\\n requests(first: $first, after: $after) {\\n nodes {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n totalCount\\n }\\n }\\n\": types.DsrListRequestsDocument,\n \"\\n query DsrGetRequest($id: ID!) {\\n request(id: $id) {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n daysRemaining\\n link\\n locale\\n isSilent\\n }\\n }\\n\": types.DsrGetRequestDocument,\n \"\\n mutation DsrEmployeeMakeRequest($input: EmployeeRequestInput!) {\\n employeeMakeDataSubjectRequest(input: $input) {\\n clientMutationId\\n request {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n }\\n }\\n\": types.DsrEmployeeMakeRequestDocument,\n \"\\n mutation DsrCancel($input: CommunicationInput!) {\\n cancelRequest(input: $input) {\\n clientMutationId\\n request {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n }\\n }\\n\": types.DsrCancelDocument,\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 DsrListRequests($first: Int, $after: String) {\\n requests(first: $first, after: $after) {\\n nodes {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n totalCount\\n }\\n }\\n\"): (typeof documents)[\"\\n query DsrListRequests($first: Int, $after: String) {\\n requests(first: $first, after: $after) {\\n nodes {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n totalCount\\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 query DsrGetRequest($id: ID!) {\\n request(id: $id) {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n daysRemaining\\n link\\n locale\\n isSilent\\n }\\n }\\n\"): (typeof documents)[\"\\n query DsrGetRequest($id: ID!) {\\n request(id: $id) {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n daysRemaining\\n link\\n locale\\n isSilent\\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 DsrEmployeeMakeRequest($input: EmployeeRequestInput!) {\\n employeeMakeDataSubjectRequest(input: $input) {\\n clientMutationId\\n request {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation DsrEmployeeMakeRequest($input: EmployeeRequestInput!) {\\n employeeMakeDataSubjectRequest(input: $input) {\\n clientMutationId\\n request {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\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 DsrCancel($input: CommunicationInput!) {\\n cancelRequest(input: $input) {\\n clientMutationId\\n request {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation DsrCancel($input: CommunicationInput!) {\\n cancelRequest(input: $input) {\\n clientMutationId\\n request {\\n id\\n type\\n status\\n createdAt\\n updatedAt\\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 ListOptions,\n type PaginatedResponse,\n type Request,\n type RequestDetails,\n type RequestType,\n} from '@transcend-io/mcp-server-base';\n\nimport { graphql } from './__generated__/gql.js';\n\nconst ListRequestsDoc = graphql(/* GraphQL */ `\n query DsrListRequests($first: Int, $after: String) {\n requests(first: $first, after: $after) {\n nodes {\n id\n type\n status\n createdAt\n updatedAt\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n totalCount\n }\n }\n`);\n\nconst GetRequestDoc = graphql(/* GraphQL */ `\n query DsrGetRequest($id: ID!) {\n request(id: $id) {\n id\n type\n status\n createdAt\n updatedAt\n daysRemaining\n link\n locale\n isSilent\n }\n }\n`);\n\nconst EmployeeMakeDataSubjectRequestDoc = graphql(/* GraphQL */ `\n mutation DsrEmployeeMakeRequest($input: EmployeeRequestInput!) {\n employeeMakeDataSubjectRequest(input: $input) {\n clientMutationId\n request {\n id\n type\n status\n createdAt\n updatedAt\n }\n }\n }\n`);\n\nconst CancelRequestDoc = graphql(/* GraphQL */ `\n mutation DsrCancel($input: CommunicationInput!) {\n cancelRequest(input: $input) {\n clientMutationId\n request {\n id\n type\n status\n createdAt\n updatedAt\n }\n }\n }\n`);\n\nexport class DSRMixin extends TranscendGraphQLBase {\n async listRequests(options?: ListOptions): Promise<PaginatedResponse<Request>> {\n const data = await this.makeRequest(ListRequestsDoc, {\n first: Math.min(options?.first ?? 50, 100),\n after: options?.after ?? null,\n });\n return {\n nodes: data.requests.nodes.map((node) => ({\n id: node.id,\n type: node.type as RequestType,\n status: node.status as Request['status'],\n createdAt: node.createdAt,\n updatedAt: node.updatedAt,\n })),\n pageInfo: {\n hasNextPage: data.requests.pageInfo.hasNextPage,\n hasPreviousPage: false,\n endCursor: data.requests.pageInfo.endCursor ?? undefined,\n },\n totalCount: data.requests.totalCount,\n };\n }\n\n async getRequest(id: string): Promise<RequestDetails> {\n const data = await this.makeRequest(GetRequestDoc, { id });\n const r = data.request;\n return {\n id: r.id,\n type: r.type as RequestType,\n status: r.status as Request['status'],\n createdAt: r.createdAt,\n updatedAt: r.updatedAt,\n daysRemaining: r.daysRemaining ?? undefined,\n link: r.link,\n locale: r.locale,\n isSilent: r.isSilent,\n };\n }\n\n async employeeMakeDataSubjectRequest(input: {\n type: RequestType;\n email: string;\n coreIdentifier?: string;\n locale?: string;\n isSilent?: boolean;\n subjectType: string;\n attributes?: Record<string, unknown>;\n clientMutationId?: string;\n }): Promise<{ request: Request; clientMutationId?: string }> {\n const data = await this.makeRequest(EmployeeMakeDataSubjectRequestDoc, {\n input: input as never,\n });\n const payload = data.employeeMakeDataSubjectRequest;\n return {\n request: {\n id: payload.request.id,\n type: payload.request.type as RequestType,\n status: payload.request.status as Request['status'],\n createdAt: payload.request.createdAt,\n updatedAt: payload.request.updatedAt,\n },\n clientMutationId: payload.clientMutationId ?? undefined,\n };\n }\n\n async cancelRequest(input: {\n requestId: string;\n template?: string;\n subject?: string;\n }): Promise<{ request: Request; clientMutationId?: string }> {\n const data = await this.makeRequest(CancelRequestDoc, { input: input as never });\n const payload = data.cancelRequest;\n return {\n request: {\n id: payload.request.id,\n type: payload.request.type as RequestType,\n status: payload.request.status as Request['status'],\n createdAt: payload.request.createdAt,\n updatedAt: payload.request.updatedAt,\n },\n clientMutationId: payload.clientMutationId ?? undefined,\n };\n }\n}\n"],"mappings":";;;AAUA,MAAa,mBAAmB,EAAE,OAAO,EACvC,MAAM,EAAE,OACL,QAAQ,CACR,UAAU,CACV,SACC,4GACD,EACJ,CAAC;AAGF,SAAgB,qBAAqB,SAAsB;CACz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,QAAQ;IAC5B;GACD,kBAAkB,QAAQ,oBAAoB,KAAA;GAC/C"}
package/dist/index.d.mts CHANGED
@@ -1,8 +1,13 @@
1
1
  import { ListOptions, PaginatedResponse, Request, RequestDetails, RequestType, ToolClients, ToolDefinition, TranscendGraphQLBase, 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 getDSRTools(clients: ToolClients): ToolDefinition[];
5
6
  //#endregion
7
+ //#region src/scopes.d.ts
8
+ /** OAuth scopes required for DSR MCP tools (offline_access added by base). */
9
+ declare const DSR_OAUTH_SCOPES: readonly [ScopeName.ViewRequests, ScopeName.ViewAssignedRequests, ScopeName.MakeDataSubjectRequest, ScopeName.ManageAssignedRequests, ScopeName.ViewRequestCompilation, ScopeName.ManageRequestCompilation];
10
+ //#endregion
6
11
  //#region src/graphql.d.ts
7
12
  declare class DSRMixin extends TranscendGraphQLBase {
8
13
  listRequests(options?: ListOptions): Promise<PaginatedResponse<Request>>;
@@ -95,55 +100,55 @@ type SubmitDsrOnBehalfInput = z.infer<typeof submitDsrOnBehalfSchema>;
95
100
  //#endregion
96
101
  //#region src/tools/dsr_cancel.d.ts
97
102
  declare const cancelDsrSchema: z.ZodObject<{
98
- request_id: z.ZodString;
103
+ requestId: z.ZodString;
99
104
  reason: z.ZodOptional<z.ZodString>;
100
105
  }, z.core.$strip>;
101
106
  type CancelDsrInput = z.infer<typeof cancelDsrSchema>;
102
107
  //#endregion
103
108
  //#region src/tools/dsr_download_keys.d.ts
104
109
  declare const downloadKeysSchema: z.ZodObject<{
105
- request_id: z.ZodString;
110
+ requestId: z.ZodString;
106
111
  }, z.core.$strip>;
107
112
  type DownloadKeysInput = z.infer<typeof downloadKeysSchema>;
108
113
  //#endregion
109
114
  //#region src/tools/dsr_get_details.d.ts
110
115
  declare const getDetailsSchema: z.ZodObject<{
111
- request_id: z.ZodString;
116
+ requestId: z.ZodString;
112
117
  }, z.core.$strip>;
113
118
  type GetDetailsInput = z.infer<typeof getDetailsSchema>;
114
119
  //#endregion
115
120
  //#region src/tools/dsr_poll_status.d.ts
116
121
  declare const pollStatusSchema: z.ZodObject<{
117
- request_id: z.ZodString;
122
+ requestId: z.ZodString;
118
123
  }, z.core.$strip>;
119
124
  type PollStatusInput = z.infer<typeof pollStatusSchema>;
120
125
  //#endregion
121
126
  //#region src/tools/dsr_enrich_identifiers.d.ts
122
127
  declare const enrichIdentifiersSchema: z.ZodObject<{
123
- request_id: z.ZodString;
128
+ requestId: z.ZodString;
124
129
  identifiers: z.ZodRecord<z.ZodString, z.ZodString>;
125
130
  }, z.core.$strip>;
126
131
  type EnrichIdentifiersInput = z.infer<typeof enrichIdentifiersSchema>;
127
132
  //#endregion
128
133
  //#region src/tools/dsr_respond_access.d.ts
129
134
  declare const respondAccessSchema: z.ZodObject<{
130
- request_id: z.ZodString;
131
- data_silo_id: z.ZodString;
135
+ requestId: z.ZodString;
136
+ dataSiloId: z.ZodString;
132
137
  profiles: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
133
138
  }, z.core.$strip>;
134
139
  type RespondAccessInput = z.infer<typeof respondAccessSchema>;
135
140
  //#endregion
136
141
  //#region src/tools/dsr_respond_erasure.d.ts
137
142
  declare const respondErasureSchema: z.ZodObject<{
138
- request_id: z.ZodString;
139
- data_silo_id: z.ZodString;
140
- profile_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ requestId: z.ZodString;
144
+ dataSiloId: z.ZodString;
145
+ profileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
146
  }, z.core.$strip>;
142
147
  type RespondErasureInput = z.infer<typeof respondErasureSchema>;
143
148
  //#endregion
144
149
  //#region src/tools/dsr_list_identifiers.d.ts
145
150
  declare const listIdentifiersSchema: z.ZodObject<{
146
- request_id: z.ZodString;
151
+ requestId: z.ZodString;
147
152
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
148
153
  cursor: z.ZodOptional<z.ZodString>;
149
154
  }, z.core.$strip>;
@@ -155,5 +160,5 @@ declare const analyzeDsrSchema: z.ZodObject<{
155
160
  }, z.core.$strip>;
156
161
  type AnalyzeDsrInput = z.infer<typeof analyzeDsrSchema>;
157
162
  //#endregion
158
- export { type AnalyzeDsrInput, type CancelDsrInput, DSRMixin, type DownloadKeysInput, type EnrichIdentifiersInput, type GetDetailsInput, type ListIdentifiersInput, type PollStatusInput, type RespondAccessInput, type RespondErasureInput, type SubmitDsrInput, type SubmitDsrOnBehalfInput, analyzeDsrSchema, cancelDsrSchema, downloadKeysSchema, enrichIdentifiersSchema, getDSRTools, getDetailsSchema, listIdentifiersSchema, pollStatusSchema, respondAccessSchema, respondErasureSchema, submitDsrOnBehalfSchema, submitDsrSchema };
163
+ export { type AnalyzeDsrInput, type CancelDsrInput, DSRMixin, DSR_OAUTH_SCOPES, type DownloadKeysInput, type EnrichIdentifiersInput, type GetDetailsInput, type ListIdentifiersInput, type PollStatusInput, type RespondAccessInput, type RespondErasureInput, type SubmitDsrInput, type SubmitDsrOnBehalfInput, analyzeDsrSchema, cancelDsrSchema, downloadKeysSchema, enrichIdentifiersSchema, getDSRTools, getDetailsSchema, listIdentifiersSchema, pollStatusSchema, respondAccessSchema, respondErasureSchema, submitDsrOnBehalfSchema, submitDsrSchema };
159
164
  //# 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/dsr_submit.ts","../src/tools/dsr_submit_on_behalf.ts","../src/tools/dsr_cancel.ts","../src/tools/dsr_download_keys.ts","../src/tools/dsr_get_details.ts","../src/tools/dsr_poll_status.ts","../src/tools/dsr_enrich_identifiers.ts","../src/tools/dsr_respond_access.ts","../src/tools/dsr_respond_erasure.ts","../src/tools/dsr_list_identifiers.ts","../src/tools/dsr_analyze.ts"],"mappings":";;;iBAegB,WAAA,CAAY,OAAA,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,QAAa,uBAAA;;;cCNvC,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;KAQpB,kBAAA,GAAqB,CAAA,CAAE,KAAA,QAAa,mBAAA;;;cCRnC,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;KAQrB,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,oBAAA;;;cCFpC,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;KAKtB,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,qBAAA;;;cCHrC,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;KAQjB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,gBAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/tools/index.ts","../src/scopes.ts","../src/graphql.ts","../src/tools/dsr_submit.ts","../src/tools/dsr_submit_on_behalf.ts","../src/tools/dsr_cancel.ts","../src/tools/dsr_download_keys.ts","../src/tools/dsr_get_details.ts","../src/tools/dsr_poll_status.ts","../src/tools/dsr_enrich_identifiers.ts","../src/tools/dsr_respond_access.ts","../src/tools/dsr_respond_erasure.ts","../src/tools/dsr_list_identifiers.ts","../src/tools/dsr_analyze.ts"],"mappings":";;;;iBAegB,WAAA,CAAY,OAAA,EAAS,WAAA,GAAc,cAAA;;;;cCZtC,gBAAA,YAAgB,SAAA,CAAA,YAAA,EAAA,SAAA,CAAA,oBAAA,EAAA,SAAA,CAAA,sBAAA,EAAA,SAAA,CAAA,sBAAA,EAAA,SAAA,CAAA,sBAAA,EAAA,SAAA,CAAA,wBAAA;;;cCyEhB,QAAA,SAAiB,oBAAA;EACtB,YAAA,CAAa,OAAA,GAAU,WAAA,GAAc,OAAA,CAAQ,iBAAA,CAAkB,OAAA;EAsB/D,UAAA,CAAW,EAAA,WAAa,OAAA,CAAQ,cAAA;EAgBhC,8BAAA,CAA+B,KAAA;IACnC,IAAA,EAAM,WAAA;IACN,KAAA;IACA,cAAA;IACA,MAAA;IACA,QAAA;IACA,WAAA;IAC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AE,KAAA,QAAa,qBAAA;;;cCHrC,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;KAQjB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,gBAAA"}
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as respondErasureSchema, c as listIdentifiersSchema, d as downloadKeysSchema, f as cancelDsrSchema, i as submitDsrSchema, l as getDetailsSchema, n as getDSRTools, o as respondAccessSchema, p as analyzeDsrSchema, r as submitDsrOnBehalfSchema, s as pollStatusSchema, t as DSRMixin, u as enrichIdentifiersSchema } from "./graphql-CSrIBjNn.mjs";
2
- export { DSRMixin, analyzeDsrSchema, cancelDsrSchema, downloadKeysSchema, enrichIdentifiersSchema, getDSRTools, getDetailsSchema, listIdentifiersSchema, pollStatusSchema, respondAccessSchema, respondErasureSchema, submitDsrOnBehalfSchema, submitDsrSchema };
1
+ import { a as submitDsrSchema, c as pollStatusSchema, d as enrichIdentifiersSchema, f as downloadKeysSchema, i as submitDsrOnBehalfSchema, l as listIdentifiersSchema, m as analyzeDsrSchema, n as DSR_OAUTH_SCOPES, o as respondErasureSchema, p as cancelDsrSchema, r as getDSRTools, s as respondAccessSchema, t as DSRMixin, u as getDetailsSchema } from "./graphql-DUMlDtdi.mjs";
2
+ export { DSRMixin, DSR_OAUTH_SCOPES, analyzeDsrSchema, cancelDsrSchema, downloadKeysSchema, enrichIdentifiersSchema, getDSRTools, getDetailsSchema, listIdentifiersSchema, pollStatusSchema, respondAccessSchema, respondErasureSchema, submitDsrOnBehalfSchema, submitDsrSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transcend-io/mcp-server-dsr",
3
- "version": "0.3.20",
3
+ "version": "0.4.1",
4
4
  "description": "Transcend MCP Server — DSR Automation tools.",
5
5
  "homepage": "https://github.com/transcend-io/tools/tree/main/packages/mcp/mcp-server-dsr",
6
6
  "license": "Apache-2.0",
@@ -30,10 +30,12 @@
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.5",
36
- "@transcend-io/privacy-types": "5.3.2"
37
+ "@transcend-io/mcp-server-base": "0.5.0",
38
+ "@transcend-io/privacy-types": "5.4.0"
37
39
  },
38
40
  "devDependencies": {
39
41
  "@arethetypeswrong/cli": "^0.18.2",