@mcp-consultant-tools/powerplatform 32.0.0 → 33.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli/commands/metadata-commands.js +2 -2
- package/build/cli/commands/metadata-commands.js.map +1 -1
- package/build/cli.js +0 -0
- package/build/http-server.js +0 -0
- package/build/index.js +0 -0
- package/package.json +3 -3
- package/build/PowerPlatformService.d.ts +0 -201
- package/build/PowerPlatformService.js +0 -305
- package/build/PowerPlatformService.js.map +0 -1
- package/build/auth/index.d.ts +0 -64
- package/build/auth/index.d.ts.map +0 -1
- package/build/auth/index.js +0 -39
- package/build/auth/index.js.map +0 -1
- package/build/auth/interactive-auth.d.ts +0 -60
- package/build/auth/interactive-auth.d.ts.map +0 -1
- package/build/auth/interactive-auth.js +0 -429
- package/build/auth/interactive-auth.js.map +0 -1
- package/build/auth/service-principal-auth.d.ts +0 -26
- package/build/auth/service-principal-auth.d.ts.map +0 -1
- package/build/auth/service-principal-auth.js +0 -60
- package/build/auth/service-principal-auth.js.map +0 -1
- package/build/auth/token-cache.d.ts +0 -40
- package/build/auth/token-cache.d.ts.map +0 -1
- package/build/auth/token-cache.js +0 -108
- package/build/auth/token-cache.js.map +0 -1
- package/build/cli/commands/app-commands.d.ts +0 -7
- package/build/cli/commands/field-security-commands.d.ts +0 -8
- package/build/cli/commands/flow-commands.d.ts +0 -7
- package/build/cli/commands/form-commands.d.ts +0 -7
- package/build/cli/commands/index.d.ts +0 -16
- package/build/cli/commands/index.js +0 -33
- package/build/cli/commands/index.js.map +0 -1
- package/build/cli/commands/integration-commands.d.ts +0 -7
- package/build/cli/commands/metadata-commands.d.ts +0 -7
- package/build/cli/commands/plugin-commands.d.ts +0 -7
- package/build/cli/commands/security-commands.d.ts +0 -7
- package/build/cli/commands/solution-commands.d.ts +0 -7
- package/build/cli/output.d.ts +0 -11
- package/build/cli.d.ts +0 -9
- package/build/context-factory.d.ts +0 -11
- package/build/context-factory.js +0 -39
- package/build/context-factory.js.map +0 -1
- package/build/http-server.d.ts +0 -3
- package/build/index.d.ts +0 -18
- package/build/prompts/analysis-prompts.d.ts +0 -3
- package/build/prompts/analysis-prompts.js +0 -286
- package/build/prompts/analysis-prompts.js.map +0 -1
- package/build/prompts/entity-prompts.d.ts +0 -3
- package/build/prompts/entity-prompts.js +0 -304
- package/build/prompts/entity-prompts.js.map +0 -1
- package/build/prompts/index.d.ts +0 -8
- package/build/prompts/index.js +0 -11
- package/build/prompts/index.js.map +0 -1
- package/build/services/index.d.ts +0 -5
- package/build/services/index.js +0 -5
- package/build/services/index.js.map +0 -1
- package/build/tool-examples.d.ts +0 -48
- package/build/tools/app-tools.d.ts +0 -3
- package/build/tools/app-tools.js +0 -127
- package/build/tools/app-tools.js.map +0 -1
- package/build/tools/field-security-tools.d.ts +0 -3
- package/build/tools/field-security-tools.js +0 -84
- package/build/tools/field-security-tools.js.map +0 -1
- package/build/tools/flow-tools.d.ts +0 -3
- package/build/tools/flow-tools.js +0 -374
- package/build/tools/flow-tools.js.map +0 -1
- package/build/tools/form-view-tools.d.ts +0 -3
- package/build/tools/form-view-tools.js +0 -162
- package/build/tools/form-view-tools.js.map +0 -1
- package/build/tools/index.d.ts +0 -14
- package/build/tools/index.js +0 -31
- package/build/tools/index.js.map +0 -1
- package/build/tools/integration-tools.d.ts +0 -3
- package/build/tools/integration-tools.js +0 -325
- package/build/tools/integration-tools.js.map +0 -1
- package/build/tools/metadata-tools.d.ts +0 -3
- package/build/tools/metadata-tools.js +0 -166
- package/build/tools/metadata-tools.js.map +0 -1
- package/build/tools/plugin-tools.d.ts +0 -3
- package/build/tools/plugin-tools.js +0 -138
- package/build/tools/plugin-tools.js.map +0 -1
- package/build/tools/security-tools.d.ts +0 -3
- package/build/tools/security-tools.js +0 -188
- package/build/tools/security-tools.js.map +0 -1
- package/build/tools/solution-tools.d.ts +0 -3
- package/build/tools/solution-tools.js +0 -318
- package/build/tools/solution-tools.js.map +0 -1
- package/build/types.d.ts +0 -9
- package/build/types.js +0 -2
- package/build/types.js.map +0 -1
- package/build/utils/best-practices-formatters.d.ts +0 -26
- package/build/utils/best-practices-formatters.d.ts.map +0 -1
- package/build/utils/best-practices-formatters.js +0 -238
- package/build/utils/best-practices-formatters.js.map +0 -1
- package/build/utils/bestPractices.d.ts +0 -152
- package/build/utils/bestPractices.d.ts.map +0 -1
- package/build/utils/bestPractices.js +0 -338
- package/build/utils/bestPractices.js.map +0 -1
- package/build/utils/iconManager.d.ts +0 -84
- package/build/utils/iconManager.d.ts.map +0 -1
- package/build/utils/iconManager.js +0 -342
- package/build/utils/iconManager.js.map +0 -1
- package/build/utils/prompt-templates.d.ts +0 -9
- package/build/utils/prompt-templates.d.ts.map +0 -1
- package/build/utils/prompt-templates.js +0 -31
- package/build/utils/prompt-templates.js.map +0 -1
- package/build/utils/rate-limiter.d.ts +0 -108
- package/build/utils/rate-limiter.d.ts.map +0 -1
- package/build/utils/rate-limiter.js +0 -241
- package/build/utils/rate-limiter.js.map +0 -1
|
@@ -8,7 +8,7 @@ export function registerMetadataCommands(program, ctx) {
|
|
|
8
8
|
metadata
|
|
9
9
|
.command('get')
|
|
10
10
|
.description('Get metadata for a Dataverse entity')
|
|
11
|
-
.argument('<entityName>', 'Entity logical name (e.g., account, contact,
|
|
11
|
+
.argument('<entityName>', 'Entity logical name (e.g., account, contact, new_customentity)')
|
|
12
12
|
.action(async (entityName) => {
|
|
13
13
|
try {
|
|
14
14
|
const result = await ctx.pp.getEntityMetadata(entityName);
|
|
@@ -69,7 +69,7 @@ export function registerMetadataCommands(program, ctx) {
|
|
|
69
69
|
metadata
|
|
70
70
|
.command('option-set')
|
|
71
71
|
.description('Get a global option set by name')
|
|
72
|
-
.argument('<optionSetName>', 'Global option set name (e.g.,
|
|
72
|
+
.argument('<optionSetName>', 'Global option set name (e.g., new_applicationstatus)')
|
|
73
73
|
.action(async (optionSetName) => {
|
|
74
74
|
try {
|
|
75
75
|
const result = await ctx.pp.getGlobalOptionSet(optionSetName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-commands.js","sourceRoot":"","sources":["../../../src/cli/commands/metadata-commands.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,GAAmB;IAC5E,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAEvF,QAAQ;SACL,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,qCAAqC,CAAC;SAClD,QAAQ,CAAC,cAAc,EAAE
|
|
1
|
+
{"version":3,"file":"metadata-commands.js","sourceRoot":"","sources":["../../../src/cli/commands/metadata-commands.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,GAAmB;IAC5E,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAEvF,QAAQ;SACL,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,qCAAqC,CAAC;SAClD,QAAQ,CAAC,cAAc,EAAE,gEAAgE,CAAC;SAC1F,MAAM,CAAC,KAAK,EAAE,UAAkB,EAAE,EAAE;QACnC,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YAC1D,YAAY,CACV,EAAE,QAAQ,EAAE,YAAY,UAAU,EAAE,EAAE,IAAI,EAAE,MA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QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAAC,cAAc,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAC;QAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEL,QAAQ;SACL,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,iCAAiC,CAAC;SAC9C,QAAQ,CAAC,iBAAiB,EAAE,sDAAsD,CAAC;SACnF,MAAM,CAAC,KAAK,EAAE,aAAqB,EAAE,EAAE;QACtC,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;YAC9D,YAAY,CACV,EAAE,QAAQ,EAAE,aAAa,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,aAAa,GAAG,EAAE,EACzG,cAAc,CAAC,OAAO,CAAC,CACxB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAAC,cAAc,CAAC,KAAK,EAAE,uBAAuB,CAAC,CAAC;QAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/build/cli.js
CHANGED
|
File without changes
|
package/build/http-server.js
CHANGED
|
File without changes
|
package/build/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-consultant-tools/powerplatform",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.0",
|
|
4
4
|
"description": "MCP server for Microsoft PowerPlatform/Dataverse - read-only access (production-safe)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"node": ">=16.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@mcp-consultant-tools/core": "
|
|
48
|
-
"@mcp-consultant-tools/powerplatform-core": "
|
|
47
|
+
"@mcp-consultant-tools/core": "33.0.0",
|
|
48
|
+
"@mcp-consultant-tools/powerplatform-core": "33.0.0",
|
|
49
49
|
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
50
50
|
"commander": "^14.0.3",
|
|
51
51
|
"express": "^4.21.0",
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PowerPlatformService - Slim Read-Only Facade
|
|
3
|
-
*
|
|
4
|
-
* This is a facade that delegates to services in @mcp-consultant-tools/powerplatform-core.
|
|
5
|
-
* It provides READ-ONLY access to PowerPlatform/Dataverse entities.
|
|
6
|
-
*
|
|
7
|
-
* For data CRUD operations, use @mcp-consultant-tools/powerplatform-data.
|
|
8
|
-
* For customization operations, use @mcp-consultant-tools/powerplatform-customization.
|
|
9
|
-
*/
|
|
10
|
-
import { type PowerPlatformConfig, type ApiCollectionResponse, type FlowFilterOptions, type FlowListResult, type FlowSummary, type FlowRunFilterOptions, type FlowRunsResult, type BestPracticesValidationResult, type DbmlGeneratorOptions, type DbmlResult, type ServiceEndpointsResult, type ServiceEndpointsValidatedResult, type EnvironmentVariablesResult, type WebhookRegistrationsResult, type FlowComplexityResult_Full, type IntegrationAuditReport, type ConnectionReferencesResult, type SecurityRolesResult, type SecurityRolePrivilegesResult, type SecurityRolesBySolutionResult, type FieldSecurityProfileSummary, type FieldSecurityProfileDetail, type SecuredColumnInfo, type AuthProvider } from '@mcp-consultant-tools/powerplatform-core';
|
|
11
|
-
export type { PowerPlatformConfig, ApiCollectionResponse, FlowFilterOptions, FlowListResult, FlowSummary, BestPracticesValidationResult, DbmlGeneratorOptions, DbmlResult, ServiceEndpointsResult, ServiceEndpointsValidatedResult, EnvironmentVariablesResult, WebhookRegistrationsResult, FlowComplexityResult_Full, IntegrationAuditReport, ConnectionReferencesResult, SecurityRolesResult, SecurityRolePrivilegesResult, SecurityRolesBySolutionResult, FieldSecurityProfileSummary, FieldSecurityProfileDetail, SecuredColumnInfo, };
|
|
12
|
-
export declare class PowerPlatformService {
|
|
13
|
-
private client;
|
|
14
|
-
private metadata;
|
|
15
|
-
private plugin;
|
|
16
|
-
private flow;
|
|
17
|
-
private workflow;
|
|
18
|
-
private businessRule;
|
|
19
|
-
private app;
|
|
20
|
-
private validation;
|
|
21
|
-
private dbmlGenerator;
|
|
22
|
-
private form;
|
|
23
|
-
private view;
|
|
24
|
-
private webResource;
|
|
25
|
-
private solution;
|
|
26
|
-
private dependency;
|
|
27
|
-
private publishing;
|
|
28
|
-
private relationship;
|
|
29
|
-
private integrationAudit;
|
|
30
|
-
private connectionReference;
|
|
31
|
-
private securityRole;
|
|
32
|
-
private fieldSecurity;
|
|
33
|
-
constructor(config: PowerPlatformConfig, authProvider?: AuthProvider);
|
|
34
|
-
getAuthMode(): 'service-principal' | 'interactive';
|
|
35
|
-
getUserInfo(): Promise<{
|
|
36
|
-
name: string;
|
|
37
|
-
email: string;
|
|
38
|
-
oid: string;
|
|
39
|
-
} | null>;
|
|
40
|
-
logout(): Promise<void>;
|
|
41
|
-
getEntityMetadata(entityName: string): Promise<unknown>;
|
|
42
|
-
getEntityAttributes(entityName: string, options?: {
|
|
43
|
-
prefix?: string;
|
|
44
|
-
attributeType?: string;
|
|
45
|
-
maxAttributes?: number;
|
|
46
|
-
}): Promise<{
|
|
47
|
-
value: unknown[];
|
|
48
|
-
hasMore: boolean;
|
|
49
|
-
returnedCount: number;
|
|
50
|
-
totalBeforeFilter?: number;
|
|
51
|
-
}>;
|
|
52
|
-
getEntityAttribute(entityName: string, attributeName: string): Promise<unknown>;
|
|
53
|
-
getEntityRelationships(entityName: string): Promise<{
|
|
54
|
-
oneToMany: ApiCollectionResponse<unknown>;
|
|
55
|
-
manyToMany: ApiCollectionResponse<unknown>;
|
|
56
|
-
}>;
|
|
57
|
-
getGlobalOptionSet(optionSetName: string): Promise<unknown>;
|
|
58
|
-
getGlobalOptionSets(options?: {
|
|
59
|
-
maxRecords?: number;
|
|
60
|
-
prefix?: string;
|
|
61
|
-
}): Promise<{
|
|
62
|
-
value: unknown[];
|
|
63
|
-
hasMore: boolean;
|
|
64
|
-
totalCount: number;
|
|
65
|
-
}>;
|
|
66
|
-
getPluginAssemblies(includeManaged?: boolean, maxRecords?: number): Promise<{
|
|
67
|
-
totalCount: number;
|
|
68
|
-
assemblies: unknown[];
|
|
69
|
-
}>;
|
|
70
|
-
getPluginAssemblyComplete(assemblyName: string, includeDisabled?: boolean): Promise<{
|
|
71
|
-
assembly: unknown;
|
|
72
|
-
pluginTypes: unknown[];
|
|
73
|
-
steps: unknown[];
|
|
74
|
-
validation: {
|
|
75
|
-
hasDisabledSteps: boolean;
|
|
76
|
-
hasAsyncSteps: boolean;
|
|
77
|
-
hasSyncSteps: boolean;
|
|
78
|
-
stepsWithoutFilteringAttributes: string[];
|
|
79
|
-
stepsWithoutImages: string[];
|
|
80
|
-
potentialIssues: string[];
|
|
81
|
-
};
|
|
82
|
-
}>;
|
|
83
|
-
getEntityPluginPipeline(entityName: string, messageFilter?: string, includeDisabled?: boolean): Promise<{
|
|
84
|
-
entity: string;
|
|
85
|
-
messages: unknown[];
|
|
86
|
-
steps: unknown[];
|
|
87
|
-
executionOrder: string[];
|
|
88
|
-
}>;
|
|
89
|
-
getPluginTraceLogs(options: {
|
|
90
|
-
entityName?: string;
|
|
91
|
-
messageName?: string;
|
|
92
|
-
correlationId?: string;
|
|
93
|
-
pluginStepId?: string;
|
|
94
|
-
exceptionOnly?: boolean;
|
|
95
|
-
hoursBack?: number;
|
|
96
|
-
maxRecords?: number;
|
|
97
|
-
}): Promise<{
|
|
98
|
-
totalCount: number;
|
|
99
|
-
logs: unknown[];
|
|
100
|
-
}>;
|
|
101
|
-
getFlows(options?: FlowFilterOptions): Promise<FlowListResult>;
|
|
102
|
-
searchWorkflows(options?: {
|
|
103
|
-
name?: string;
|
|
104
|
-
primaryEntity?: string;
|
|
105
|
-
description?: string;
|
|
106
|
-
category?: number;
|
|
107
|
-
statecode?: number;
|
|
108
|
-
includeDescription?: boolean;
|
|
109
|
-
maxResults?: number;
|
|
110
|
-
}): Promise<{
|
|
111
|
-
totalCount: number;
|
|
112
|
-
hasMore: boolean;
|
|
113
|
-
requestedMax: number;
|
|
114
|
-
workflows: unknown[];
|
|
115
|
-
}>;
|
|
116
|
-
getFlowDefinition(flowId: string, summary?: boolean): Promise<unknown>;
|
|
117
|
-
getFlowRuns(flowId: string, options?: FlowRunFilterOptions): Promise<FlowRunsResult>;
|
|
118
|
-
getFlowRunDetails(flowId: string, runId: string): Promise<unknown>;
|
|
119
|
-
getWorkflows(activeOnly?: boolean, maxRecords?: number): Promise<{
|
|
120
|
-
totalCount: number;
|
|
121
|
-
hasMore: boolean;
|
|
122
|
-
requestedMax: number;
|
|
123
|
-
workflows: unknown[];
|
|
124
|
-
}>;
|
|
125
|
-
getWorkflowDefinition(workflowId: string, summary?: boolean): Promise<unknown>;
|
|
126
|
-
getBusinessRules(activeOnly?: boolean, maxRecords?: number): Promise<{
|
|
127
|
-
totalCount: number;
|
|
128
|
-
businessRules: unknown[];
|
|
129
|
-
}>;
|
|
130
|
-
getBusinessRule(workflowId: string): Promise<unknown>;
|
|
131
|
-
getApps(activeOnly?: boolean, maxRecords?: number, includeUnpublished?: boolean, solutionUniqueName?: string): Promise<{
|
|
132
|
-
totalCount: number;
|
|
133
|
-
apps: unknown[];
|
|
134
|
-
filters: {
|
|
135
|
-
activeOnly: boolean;
|
|
136
|
-
includeUnpublished: boolean;
|
|
137
|
-
solutionUniqueName: string;
|
|
138
|
-
};
|
|
139
|
-
}>;
|
|
140
|
-
getApp(appId: string): Promise<unknown>;
|
|
141
|
-
getAppComponents(appId: string): Promise<{
|
|
142
|
-
totalCount: number;
|
|
143
|
-
components: unknown[];
|
|
144
|
-
groupedByType: Record<string, unknown[]>;
|
|
145
|
-
}>;
|
|
146
|
-
getAppSitemap(appId: string): Promise<unknown>;
|
|
147
|
-
getForms(entityLogicalName: string): Promise<unknown>;
|
|
148
|
-
getViews(entityLogicalName: string): Promise<unknown>;
|
|
149
|
-
getViewFetchXml(viewId: string): Promise<unknown>;
|
|
150
|
-
getWebResource(webResourceId: string): Promise<unknown>;
|
|
151
|
-
getWebResources(nameFilter?: string): Promise<unknown>;
|
|
152
|
-
getWebResourceDependencies(webResourceId: string): Promise<unknown>;
|
|
153
|
-
getPublishers(): Promise<unknown>;
|
|
154
|
-
getSolutions(): Promise<unknown>;
|
|
155
|
-
getSolution(uniqueName: string): Promise<unknown>;
|
|
156
|
-
getSolutionComponents(solutionUniqueName: string): Promise<unknown>;
|
|
157
|
-
checkDependencies(componentId: string, componentType: number): Promise<unknown>;
|
|
158
|
-
checkDeleteEligibility(componentId: string, componentType: number): Promise<{
|
|
159
|
-
canDelete: boolean;
|
|
160
|
-
dependencies: unknown[];
|
|
161
|
-
error?: string;
|
|
162
|
-
}>;
|
|
163
|
-
checkComponentDependencies(componentId: string, componentType: number): Promise<unknown>;
|
|
164
|
-
checkUnpublishedChanges(): Promise<unknown>;
|
|
165
|
-
previewUnpublishedChanges(): Promise<unknown>;
|
|
166
|
-
validateBestPractices(solutionUniqueName: string | undefined, entityLogicalNames: string[] | undefined, publisherPrefix: string, recentDays?: number, includeRefDataTables?: boolean, rules?: string[], maxEntities?: number, requiredColumns?: string[]): Promise<BestPracticesValidationResult>;
|
|
167
|
-
validateSchemaName(schemaName: string, prefix: string): {
|
|
168
|
-
valid: boolean;
|
|
169
|
-
errors: string[];
|
|
170
|
-
};
|
|
171
|
-
generateDbmlSchema(options: DbmlGeneratorOptions): Promise<DbmlResult>;
|
|
172
|
-
getServiceEndpoints(maxRecords?: number, excludeOotb?: boolean): Promise<ServiceEndpointsResult>;
|
|
173
|
-
getServiceEndpointsValidated(maxRecords?: number, requiredUrlStrings?: string[], excludeOotb?: boolean): Promise<ServiceEndpointsValidatedResult>;
|
|
174
|
-
getEnvironmentVariables(maxRecords?: number, requiredUrlStrings?: string[], excludeOotb?: boolean): Promise<EnvironmentVariablesResult>;
|
|
175
|
-
getWebhookRegistrations(maxRecords?: number, excludeOotb?: boolean): Promise<WebhookRegistrationsResult>;
|
|
176
|
-
analyzeFlowComplexity(flowId?: string, maxFlows?: number, excludeOotb?: boolean): Promise<FlowComplexityResult_Full>;
|
|
177
|
-
generateIntegrationAuditReport(maxFlows?: number, requiredUrlStrings?: string[], outputFormat?: 'summary' | 'full', excludeOotb?: boolean, maxRecords?: number): Promise<IntegrationAuditReport>;
|
|
178
|
-
getConnectionReferences(options?: {
|
|
179
|
-
maxRecords?: number;
|
|
180
|
-
managedOnly?: boolean;
|
|
181
|
-
hasConnection?: boolean;
|
|
182
|
-
}): Promise<ConnectionReferencesResult>;
|
|
183
|
-
getSecurityRoles(options?: {
|
|
184
|
-
solutionUniqueName?: string;
|
|
185
|
-
excludeSystemRoles?: boolean;
|
|
186
|
-
maxRecords?: number;
|
|
187
|
-
}): Promise<SecurityRolesResult>;
|
|
188
|
-
getSecurityRolePrivileges(options: {
|
|
189
|
-
roleId: string;
|
|
190
|
-
entityFilter?: string;
|
|
191
|
-
accessRightFilter?: string;
|
|
192
|
-
}): Promise<SecurityRolePrivilegesResult>;
|
|
193
|
-
getSecurityRolesBySolution(options: {
|
|
194
|
-
solutionUniqueName: string;
|
|
195
|
-
includePrivileges?: boolean;
|
|
196
|
-
}): Promise<SecurityRolesBySolutionResult>;
|
|
197
|
-
listFieldSecurityProfiles(namePattern?: string): Promise<FieldSecurityProfileSummary[]>;
|
|
198
|
-
getFieldSecurityProfile(fieldSecurityProfileId: string): Promise<FieldSecurityProfileDetail>;
|
|
199
|
-
getSecuredColumns(entityLogicalName: string): Promise<SecuredColumnInfo[]>;
|
|
200
|
-
}
|
|
201
|
-
//# sourceMappingURL=PowerPlatformService.d.ts.map
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PowerPlatformService - Slim Read-Only Facade
|
|
3
|
-
*
|
|
4
|
-
* This is a facade that delegates to services in @mcp-consultant-tools/powerplatform-core.
|
|
5
|
-
* It provides READ-ONLY access to PowerPlatform/Dataverse entities.
|
|
6
|
-
*
|
|
7
|
-
* For data CRUD operations, use @mcp-consultant-tools/powerplatform-data.
|
|
8
|
-
* For customization operations, use @mcp-consultant-tools/powerplatform-customization.
|
|
9
|
-
*/
|
|
10
|
-
import {
|
|
11
|
-
// Client and types
|
|
12
|
-
PowerPlatformClient,
|
|
13
|
-
// Read-only services
|
|
14
|
-
MetadataService, PluginService, FlowService, WorkflowService, BusinessRuleService, AppService, ValidationService, DbmlGenerator, IntegrationAuditService, ConnectionReferenceService, SecurityRoleService, FieldSecurityService,
|
|
15
|
-
// Additional services for read-only operations
|
|
16
|
-
FormService, ViewService, WebResourceService, SolutionService, DependencyService, PublishingService, RelationshipService, createAuthProvider, } from '@mcp-consultant-tools/powerplatform-core';
|
|
17
|
-
export class PowerPlatformService {
|
|
18
|
-
client;
|
|
19
|
-
metadata;
|
|
20
|
-
plugin;
|
|
21
|
-
flow;
|
|
22
|
-
workflow;
|
|
23
|
-
businessRule;
|
|
24
|
-
app;
|
|
25
|
-
validation;
|
|
26
|
-
dbmlGenerator;
|
|
27
|
-
form;
|
|
28
|
-
view;
|
|
29
|
-
webResource;
|
|
30
|
-
solution;
|
|
31
|
-
dependency;
|
|
32
|
-
publishing;
|
|
33
|
-
relationship;
|
|
34
|
-
integrationAudit;
|
|
35
|
-
connectionReference;
|
|
36
|
-
securityRole;
|
|
37
|
-
fieldSecurity;
|
|
38
|
-
constructor(config, authProvider) {
|
|
39
|
-
// Create auth provider if not provided
|
|
40
|
-
const auth = authProvider ||
|
|
41
|
-
createAuthProvider({
|
|
42
|
-
organizationUrl: config.organizationUrl,
|
|
43
|
-
clientId: config.clientId,
|
|
44
|
-
clientSecret: config.clientSecret,
|
|
45
|
-
tenantId: config.tenantId,
|
|
46
|
-
});
|
|
47
|
-
// Initialize client and services
|
|
48
|
-
this.client = new PowerPlatformClient(config, auth);
|
|
49
|
-
this.metadata = new MetadataService(this.client);
|
|
50
|
-
this.plugin = new PluginService(this.client);
|
|
51
|
-
this.flow = new FlowService(this.client);
|
|
52
|
-
this.workflow = new WorkflowService(this.client);
|
|
53
|
-
this.businessRule = new BusinessRuleService(this.client);
|
|
54
|
-
this.app = new AppService(this.client);
|
|
55
|
-
this.validation = new ValidationService(this.client);
|
|
56
|
-
this.dbmlGenerator = new DbmlGenerator(this.client);
|
|
57
|
-
this.form = new FormService(this.client);
|
|
58
|
-
this.view = new ViewService(this.client);
|
|
59
|
-
this.webResource = new WebResourceService(this.client);
|
|
60
|
-
this.solution = new SolutionService(this.client);
|
|
61
|
-
this.dependency = new DependencyService(this.client);
|
|
62
|
-
this.publishing = new PublishingService(this.client);
|
|
63
|
-
this.relationship = new RelationshipService(this.client);
|
|
64
|
-
this.integrationAudit = new IntegrationAuditService(this.client);
|
|
65
|
-
this.connectionReference = new ConnectionReferenceService(this.client);
|
|
66
|
-
this.securityRole = new SecurityRoleService(this.client);
|
|
67
|
-
this.fieldSecurity = new FieldSecurityService(this.client);
|
|
68
|
-
}
|
|
69
|
-
// =====================================================
|
|
70
|
-
// AUTH METHODS
|
|
71
|
-
// =====================================================
|
|
72
|
-
getAuthMode() {
|
|
73
|
-
return this.client.getAuthMode();
|
|
74
|
-
}
|
|
75
|
-
async getUserInfo() {
|
|
76
|
-
return this.client.getUserInfo();
|
|
77
|
-
}
|
|
78
|
-
async logout() {
|
|
79
|
-
return this.client.logout();
|
|
80
|
-
}
|
|
81
|
-
// =====================================================
|
|
82
|
-
// METADATA METHODS (MetadataService)
|
|
83
|
-
// =====================================================
|
|
84
|
-
async getEntityMetadata(entityName) {
|
|
85
|
-
return this.metadata.getEntityMetadata(entityName);
|
|
86
|
-
}
|
|
87
|
-
async getEntityAttributes(entityName, options) {
|
|
88
|
-
return this.metadata.getEntityAttributes(entityName, options);
|
|
89
|
-
}
|
|
90
|
-
async getEntityAttribute(entityName, attributeName) {
|
|
91
|
-
return this.metadata.getEntityAttribute(entityName, attributeName);
|
|
92
|
-
}
|
|
93
|
-
async getEntityRelationships(entityName) {
|
|
94
|
-
return this.metadata.getEntityRelationships(entityName);
|
|
95
|
-
}
|
|
96
|
-
async getGlobalOptionSet(optionSetName) {
|
|
97
|
-
return this.metadata.getGlobalOptionSet(optionSetName);
|
|
98
|
-
}
|
|
99
|
-
async getGlobalOptionSets(options) {
|
|
100
|
-
return this.metadata.getGlobalOptionSets(options);
|
|
101
|
-
}
|
|
102
|
-
// =====================================================
|
|
103
|
-
// PLUGIN METHODS (PluginService)
|
|
104
|
-
// =====================================================
|
|
105
|
-
async getPluginAssemblies(includeManaged = false, maxRecords = 100) {
|
|
106
|
-
return this.plugin.getPluginAssemblies(includeManaged, maxRecords);
|
|
107
|
-
}
|
|
108
|
-
async getPluginAssemblyComplete(assemblyName, includeDisabled = false) {
|
|
109
|
-
return this.plugin.getPluginAssemblyComplete(assemblyName, includeDisabled);
|
|
110
|
-
}
|
|
111
|
-
async getEntityPluginPipeline(entityName, messageFilter, includeDisabled = false) {
|
|
112
|
-
return this.plugin.getEntityPluginPipeline(entityName, messageFilter, includeDisabled);
|
|
113
|
-
}
|
|
114
|
-
async getPluginTraceLogs(options) {
|
|
115
|
-
return this.plugin.getPluginTraceLogs(options);
|
|
116
|
-
}
|
|
117
|
-
// =====================================================
|
|
118
|
-
// FLOW METHODS (FlowService)
|
|
119
|
-
// =====================================================
|
|
120
|
-
async getFlows(options = {}) {
|
|
121
|
-
return this.flow.getFlows(options);
|
|
122
|
-
}
|
|
123
|
-
async searchWorkflows(options) {
|
|
124
|
-
return this.flow.searchWorkflows(options);
|
|
125
|
-
}
|
|
126
|
-
async getFlowDefinition(flowId, summary = false) {
|
|
127
|
-
return this.flow.getFlowDefinition(flowId, summary);
|
|
128
|
-
}
|
|
129
|
-
async getFlowRuns(flowId, options = {}) {
|
|
130
|
-
return this.flow.getFlowRuns(flowId, options);
|
|
131
|
-
}
|
|
132
|
-
async getFlowRunDetails(flowId, runId) {
|
|
133
|
-
return this.flow.getFlowRunDetails(flowId, runId);
|
|
134
|
-
}
|
|
135
|
-
// =====================================================
|
|
136
|
-
// WORKFLOW METHODS (WorkflowService)
|
|
137
|
-
// =====================================================
|
|
138
|
-
async getWorkflows(activeOnly = false, maxRecords = 25) {
|
|
139
|
-
return this.workflow.getWorkflows(activeOnly, maxRecords);
|
|
140
|
-
}
|
|
141
|
-
async getWorkflowDefinition(workflowId, summary = false) {
|
|
142
|
-
return this.workflow.getWorkflowDefinition(workflowId, summary);
|
|
143
|
-
}
|
|
144
|
-
// =====================================================
|
|
145
|
-
// BUSINESS RULE METHODS (BusinessRuleService)
|
|
146
|
-
// =====================================================
|
|
147
|
-
async getBusinessRules(activeOnly = false, maxRecords = 100) {
|
|
148
|
-
return this.businessRule.getBusinessRules(activeOnly, maxRecords);
|
|
149
|
-
}
|
|
150
|
-
async getBusinessRule(workflowId) {
|
|
151
|
-
return this.businessRule.getBusinessRule(workflowId);
|
|
152
|
-
}
|
|
153
|
-
// =====================================================
|
|
154
|
-
// APP METHODS (AppService)
|
|
155
|
-
// =====================================================
|
|
156
|
-
async getApps(activeOnly = false, maxRecords = 100, includeUnpublished = true, solutionUniqueName) {
|
|
157
|
-
return this.app.getApps(activeOnly, maxRecords, includeUnpublished, solutionUniqueName);
|
|
158
|
-
}
|
|
159
|
-
async getApp(appId) {
|
|
160
|
-
return this.app.getApp(appId);
|
|
161
|
-
}
|
|
162
|
-
async getAppComponents(appId) {
|
|
163
|
-
return this.app.getAppComponents(appId);
|
|
164
|
-
}
|
|
165
|
-
async getAppSitemap(appId) {
|
|
166
|
-
return this.app.getAppSitemap(appId);
|
|
167
|
-
}
|
|
168
|
-
// =====================================================
|
|
169
|
-
// FORM METHODS (FormService) - Read-only
|
|
170
|
-
// =====================================================
|
|
171
|
-
async getForms(entityLogicalName) {
|
|
172
|
-
return this.form.getForms(entityLogicalName);
|
|
173
|
-
}
|
|
174
|
-
// =====================================================
|
|
175
|
-
// VIEW METHODS (ViewService) - Read-only
|
|
176
|
-
// =====================================================
|
|
177
|
-
async getViews(entityLogicalName) {
|
|
178
|
-
return this.view.getViews(entityLogicalName);
|
|
179
|
-
}
|
|
180
|
-
async getViewFetchXml(viewId) {
|
|
181
|
-
return this.view.getViewFetchXml(viewId);
|
|
182
|
-
}
|
|
183
|
-
// =====================================================
|
|
184
|
-
// WEB RESOURCE METHODS (WebResourceService) - Read-only
|
|
185
|
-
// =====================================================
|
|
186
|
-
async getWebResource(webResourceId) {
|
|
187
|
-
return this.webResource.getWebResource(webResourceId);
|
|
188
|
-
}
|
|
189
|
-
async getWebResources(nameFilter) {
|
|
190
|
-
return this.webResource.getWebResources(nameFilter);
|
|
191
|
-
}
|
|
192
|
-
async getWebResourceDependencies(webResourceId) {
|
|
193
|
-
return this.webResource.getWebResourceDependencies(webResourceId);
|
|
194
|
-
}
|
|
195
|
-
// =====================================================
|
|
196
|
-
// SOLUTION METHODS (SolutionService) - Read-only
|
|
197
|
-
// =====================================================
|
|
198
|
-
async getPublishers() {
|
|
199
|
-
return this.solution.getPublishers();
|
|
200
|
-
}
|
|
201
|
-
async getSolutions() {
|
|
202
|
-
return this.solution.getSolutions();
|
|
203
|
-
}
|
|
204
|
-
async getSolution(uniqueName) {
|
|
205
|
-
return this.solution.getSolution(uniqueName);
|
|
206
|
-
}
|
|
207
|
-
async getSolutionComponents(solutionUniqueName) {
|
|
208
|
-
return this.solution.getSolutionComponents(solutionUniqueName);
|
|
209
|
-
}
|
|
210
|
-
// =====================================================
|
|
211
|
-
// DEPENDENCY METHODS (DependencyService) - Read-only
|
|
212
|
-
// =====================================================
|
|
213
|
-
async checkDependencies(componentId, componentType) {
|
|
214
|
-
return this.dependency.checkDependencies(componentId, componentType);
|
|
215
|
-
}
|
|
216
|
-
async checkDeleteEligibility(componentId, componentType) {
|
|
217
|
-
return this.dependency.checkDeleteEligibility(componentId, componentType);
|
|
218
|
-
}
|
|
219
|
-
async checkComponentDependencies(componentId, componentType) {
|
|
220
|
-
return this.dependency.checkComponentDependencies(componentId, componentType);
|
|
221
|
-
}
|
|
222
|
-
// =====================================================
|
|
223
|
-
// PUBLISHING METHODS (PublishingService) - Read-only
|
|
224
|
-
// =====================================================
|
|
225
|
-
async checkUnpublishedChanges() {
|
|
226
|
-
return this.publishing.checkUnpublishedChanges();
|
|
227
|
-
}
|
|
228
|
-
async previewUnpublishedChanges() {
|
|
229
|
-
return this.publishing.previewUnpublishedChanges();
|
|
230
|
-
}
|
|
231
|
-
// =====================================================
|
|
232
|
-
// VALIDATION METHODS (ValidationService)
|
|
233
|
-
// =====================================================
|
|
234
|
-
async validateBestPractices(solutionUniqueName, entityLogicalNames, publisherPrefix, recentDays = 30, includeRefDataTables = true, rules = [
|
|
235
|
-
'prefix',
|
|
236
|
-
'lowercase',
|
|
237
|
-
'lookup',
|
|
238
|
-
'optionset',
|
|
239
|
-
'required-column',
|
|
240
|
-
'entity-icon',
|
|
241
|
-
], maxEntities = 0, requiredColumns = ['{prefix}updatedbyprocess']) {
|
|
242
|
-
return this.validation.validateBestPractices(solutionUniqueName, entityLogicalNames, publisherPrefix, recentDays, includeRefDataTables, rules, maxEntities, requiredColumns);
|
|
243
|
-
}
|
|
244
|
-
validateSchemaName(schemaName, prefix) {
|
|
245
|
-
return this.validation.validateSchemaName(schemaName, prefix);
|
|
246
|
-
}
|
|
247
|
-
// =====================================================
|
|
248
|
-
// DBML GENERATION METHODS (DbmlGenerator)
|
|
249
|
-
// =====================================================
|
|
250
|
-
async generateDbmlSchema(options) {
|
|
251
|
-
return this.dbmlGenerator.generate(options);
|
|
252
|
-
}
|
|
253
|
-
// =====================================================
|
|
254
|
-
// INTEGRATION AUDIT METHODS (IntegrationAuditService)
|
|
255
|
-
// =====================================================
|
|
256
|
-
async getServiceEndpoints(maxRecords = 100, excludeOotb = true) {
|
|
257
|
-
return this.integrationAudit.getServiceEndpoints(maxRecords, excludeOotb);
|
|
258
|
-
}
|
|
259
|
-
async getServiceEndpointsValidated(maxRecords = 100, requiredUrlStrings, excludeOotb = true) {
|
|
260
|
-
return this.integrationAudit.getServiceEndpointsValidated(maxRecords, requiredUrlStrings, excludeOotb);
|
|
261
|
-
}
|
|
262
|
-
async getEnvironmentVariables(maxRecords = 500, requiredUrlStrings, excludeOotb = true) {
|
|
263
|
-
return this.integrationAudit.getEnvironmentVariables(maxRecords, requiredUrlStrings, excludeOotb);
|
|
264
|
-
}
|
|
265
|
-
async getWebhookRegistrations(maxRecords = 100, excludeOotb = true) {
|
|
266
|
-
return this.integrationAudit.getWebhookRegistrations(maxRecords, excludeOotb);
|
|
267
|
-
}
|
|
268
|
-
async analyzeFlowComplexity(flowId, maxFlows = 0, excludeOotb = true) {
|
|
269
|
-
return this.integrationAudit.analyzeFlowComplexity(flowId, maxFlows, excludeOotb);
|
|
270
|
-
}
|
|
271
|
-
async generateIntegrationAuditReport(maxFlows = 0, requiredUrlStrings, outputFormat, excludeOotb = true, maxRecords = 100) {
|
|
272
|
-
return this.integrationAudit.generateAuditReport(maxFlows, requiredUrlStrings, outputFormat, excludeOotb, maxRecords);
|
|
273
|
-
}
|
|
274
|
-
// =====================================================
|
|
275
|
-
// CONNECTION REFERENCE METHODS (ConnectionReferenceService)
|
|
276
|
-
// =====================================================
|
|
277
|
-
async getConnectionReferences(options) {
|
|
278
|
-
return this.connectionReference.getConnectionReferences(options);
|
|
279
|
-
}
|
|
280
|
-
// =====================================================
|
|
281
|
-
// SECURITY ROLE METHODS (SecurityRoleService)
|
|
282
|
-
// =====================================================
|
|
283
|
-
async getSecurityRoles(options) {
|
|
284
|
-
return this.securityRole.getSecurityRoles(options);
|
|
285
|
-
}
|
|
286
|
-
async getSecurityRolePrivileges(options) {
|
|
287
|
-
return this.securityRole.getSecurityRolePrivileges(options);
|
|
288
|
-
}
|
|
289
|
-
async getSecurityRolesBySolution(options) {
|
|
290
|
-
return this.securityRole.getSecurityRolesBySolution(options);
|
|
291
|
-
}
|
|
292
|
-
// =====================================================
|
|
293
|
-
// FIELD SECURITY METHODS (read-only)
|
|
294
|
-
// =====================================================
|
|
295
|
-
async listFieldSecurityProfiles(namePattern) {
|
|
296
|
-
return this.fieldSecurity.listFieldSecurityProfiles(namePattern);
|
|
297
|
-
}
|
|
298
|
-
async getFieldSecurityProfile(fieldSecurityProfileId) {
|
|
299
|
-
return this.fieldSecurity.getFieldSecurityProfile(fieldSecurityProfileId);
|
|
300
|
-
}
|
|
301
|
-
async getSecuredColumns(entityLogicalName) {
|
|
302
|
-
return this.fieldSecurity.getSecuredColumns(entityLogicalName);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
//# sourceMappingURL=PowerPlatformService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PowerPlatformService.js","sourceRoot":"","sources":["../src/PowerPlatformService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO;AACL,mBAAmB;AACnB,mBAAmB;AAwBnB,qBAAqB;AACrB,eAAe,EACf,aAAa,EACb,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,oBAAoB;AAIpB,+CAA+C;AAC/C,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EAGnB,kBAAkB,GACnB,MAAM,0CAA0C,CAAC;AA+BlD,MAAM,OAAO,oBAAoB;IACvB,MAAM,CAAsB;IAC5B,QAAQ,CAAkB;IAC1B,MAAM,CAAgB;IACtB,IAAI,CAAc;IAClB,QAAQ,CAAkB;IAC1B,YAAY,CAAsB;IAClC,GAAG,CAAa;IAChB,UAAU,CAAoB;IAC9B,aAAa,CAAgB;IAC7B,IAAI,CAAc;IAClB,IAAI,CAAc;IAClB,WAAW,CAAqB;IAChC,QAAQ,CAAkB;IAC1B,UAAU,CAAoB;IAC9B,UAAU,CAAoB;IAC9B,YAAY,CAAsB;IAClC,gBAAgB,CAA0B;IAC1C,mBAAmB,CAA6B;IAChD,YAAY,CAAsB;IAClC,aAAa,CAAu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ACC,OAAO,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,OAI/B;QACC,OAAO,IAAI,CAAC,YAAY,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,0BAA0B,CAAC,OAGhC;QACC,OAAO,IAAI,CAAC,YAAY,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,wDAAwD;IACxD,qCAAqC;IACrC,wDAAwD;IAExD,KAAK,CAAC,yBAAyB,CAAC,WAAoB;QAClD,OAAO,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,sBAA8B;QAC1D,OAAO,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,iBAAyB;QAC/C,OAAO,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACjE,CAAC;CACF"}
|
package/build/auth/index.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Authentication module for PowerPlatform MCP Server
|
|
3
|
-
*
|
|
4
|
-
* Supports two authentication modes:
|
|
5
|
-
* 1. Service Principal (ConfidentialClientApplication) - when client_secret is provided
|
|
6
|
-
* 2. Interactive User Auth (PublicClientApplication) - when no client_secret is provided
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Authentication provider interface
|
|
10
|
-
* All auth implementations must provide a way to get access tokens
|
|
11
|
-
*/
|
|
12
|
-
export interface AuthProvider {
|
|
13
|
-
/**
|
|
14
|
-
* Get an access token for the specified resource
|
|
15
|
-
* @param resource - The resource URL (e.g., https://org.crm.dynamics.com)
|
|
16
|
-
* @returns Access token string
|
|
17
|
-
*/
|
|
18
|
-
getAccessToken(resource: string): Promise<string>;
|
|
19
|
-
/**
|
|
20
|
-
* Get information about the authenticated user (if available)
|
|
21
|
-
* Only available for interactive auth
|
|
22
|
-
*/
|
|
23
|
-
getUserInfo?(): Promise<{
|
|
24
|
-
name: string;
|
|
25
|
-
email: string;
|
|
26
|
-
oid: string;
|
|
27
|
-
} | null>;
|
|
28
|
-
/**
|
|
29
|
-
* Get the authentication mode being used
|
|
30
|
-
*/
|
|
31
|
-
getAuthMode(): 'service-principal' | 'interactive';
|
|
32
|
-
/**
|
|
33
|
-
* Clear cached tokens (logout)
|
|
34
|
-
* Only applicable for interactive auth
|
|
35
|
-
*/
|
|
36
|
-
clearCache?(): Promise<void>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Configuration for PowerPlatform authentication
|
|
40
|
-
*/
|
|
41
|
-
export interface PowerPlatformAuthConfig {
|
|
42
|
-
/** PowerPlatform organization URL (e.g., https://org.crm.dynamics.com) */
|
|
43
|
-
organizationUrl: string;
|
|
44
|
-
/** Azure AD application (client) ID */
|
|
45
|
-
clientId: string;
|
|
46
|
-
/** Azure AD tenant ID */
|
|
47
|
-
tenantId: string;
|
|
48
|
-
/** Client secret (optional - if provided, uses service principal auth) */
|
|
49
|
-
clientSecret?: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Create an appropriate auth provider based on configuration
|
|
53
|
-
*
|
|
54
|
-
* If clientSecret is provided → ServicePrincipalAuth (existing behavior)
|
|
55
|
-
* If no clientSecret → InteractiveAuth (browser-based SSO)
|
|
56
|
-
*
|
|
57
|
-
* @param config - PowerPlatform authentication configuration
|
|
58
|
-
* @returns Auth provider instance
|
|
59
|
-
*/
|
|
60
|
-
export declare function createAuthProvider(config: PowerPlatformAuthConfig): AuthProvider;
|
|
61
|
-
export { ServicePrincipalAuth } from './service-principal-auth.js';
|
|
62
|
-
export { InteractiveAuth } from './interactive-auth.js';
|
|
63
|
-
export { TokenCache } from './token-cache.js';
|
|
64
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElD;;;OAGG;IACH,WAAW,CAAC,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;IAE7E;;OAEG;IACH,WAAW,IAAI,mBAAmB,GAAG,aAAa,CAAC;IAEnD;;;OAGG;IACH,UAAU,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,eAAe,EAAE,MAAM,CAAC;IACxB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,uBAAuB,GAAG,YAAY,CAiBhF;AAED,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
|