@microsoft/m365agentstoolkit-cli 1.1.18 → 1.1.19-alpha.1ba10daa01.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.
Files changed (37) hide show
  1. package/README.md +9 -0
  2. package/json-schemas/copilot/declarative-agent/v1.9/schema.json +1356 -0
  3. package/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json +1869 -1362
  4. package/lib/140.js +1 -1
  5. package/lib/140.js.map +1 -1
  6. package/lib/index.js +8 -2
  7. package/lib/index.js.LICENSE.txt +2 -0
  8. package/lib/index.js.map +2 -2
  9. package/package.json +7 -7
  10. package/resource/package.nls.cs.json +79 -71
  11. package/resource/package.nls.de.json +79 -71
  12. package/resource/package.nls.es.json +79 -71
  13. package/resource/package.nls.fr.json +79 -71
  14. package/resource/package.nls.it.json +79 -71
  15. package/resource/package.nls.ja.json +79 -71
  16. package/resource/package.nls.json +23 -62
  17. package/resource/package.nls.ko.json +79 -71
  18. package/resource/package.nls.pl.json +79 -71
  19. package/resource/package.nls.pt-BR.json +79 -71
  20. package/resource/package.nls.ru.json +79 -71
  21. package/resource/package.nls.tr.json +79 -71
  22. package/resource/package.nls.zh-Hans.json +79 -71
  23. package/resource/package.nls.zh-Hant.json +79 -71
  24. package/resource/yaml-schema/v1.13/yaml.schema.json +122 -33
  25. package/resource/yaml-schema/yaml.schema.json +122 -33
  26. package/templates/fallback/common.zip +0 -0
  27. package/templates/fallback/csharp.zip +0 -0
  28. package/templates/fallback/js.zip +0 -0
  29. package/templates/fallback/python.zip +0 -0
  30. package/templates/fallback/ts.zip +0 -0
  31. package/templates/metadata.zip +0 -0
  32. package/templates/ui/tdpNode.json +1 -2
  33. package/templates/ui/wizardNode.json +1 -2
  34. package/templates/v4/create-selector.json +1 -2
  35. package/templates/v4/floor.json +1 -1
  36. package/templates/v4/templates-metadata.zip +0 -0
  37. package/templates/v4/templates.zip +0 -0
@@ -10,7 +10,7 @@
10
10
  "environmentFolderPath": {
11
11
  "type": "string",
12
12
  "description": "The folder path of .env files used for variables and different environments."
13
- },
13
+ },
14
14
  "version": {
15
15
  "type": "string",
16
16
  "description": "The version of the yaml file schema",
@@ -22,7 +22,7 @@
22
22
  "additionalProperties": true,
23
23
  "properties": {
24
24
  "sampleTag": {
25
- "type": ["number","string","boolean","object","array", "null", "integer"],
25
+ "type": ["number", "string", "boolean", "object", "array", "null", "integer"],
26
26
  "description": "A tag for the sample app used to track telemetry events sent by Microsoft 365 Agents Toolkit associated with that sample. Pattern: <sample-repo>:<sample-name>"
27
27
  }
28
28
  }
@@ -76,16 +76,17 @@
76
76
  { "$ref": "#/definitions/spfxDeploy" },
77
77
  { "$ref": "#/definitions/teamsAppCopyAppPackageToSPFx" },
78
78
  { "$ref": "#/definitions/script" },
79
- { "$ref": "#/definitions/apiKeyRegister"},
80
- { "$ref": "#/definitions/azureStaticWebAppGetDeploymentKey"},
81
- { "$ref": "#/definitions/apiKeyUpdate"},
82
- { "$ref": "#/definitions/oauthRegister"},
83
- { "$ref": "#/definitions/oauthUpdate"},
84
- { "$ref": "#/definitions/dcrRegister"},
85
- { "$ref": "#/definitions/devChannelCreate"},
86
- { "$ref": "#/definitions/devChannelInstallApp"},
87
- { "$ref": "#/definitions/typeSpecCompile"},
88
- { "$ref": "#/definitions/copilotAgentPublish"}
79
+ { "$ref": "#/definitions/apiKeyRegister" },
80
+ { "$ref": "#/definitions/azureStaticWebAppGetDeploymentKey" },
81
+ { "$ref": "#/definitions/apiKeyUpdate" },
82
+ { "$ref": "#/definitions/oauthRegister" },
83
+ { "$ref": "#/definitions/oauthUpdate" },
84
+ { "$ref": "#/definitions/dcrRegister" },
85
+ { "$ref": "#/definitions/dcrUpdate" },
86
+ { "$ref": "#/definitions/devChannelCreate" },
87
+ { "$ref": "#/definitions/devChannelInstallApp" },
88
+ { "$ref": "#/definitions/typeSpecCompile" },
89
+ { "$ref": "#/definitions/copilotAgentPublish" }
89
90
  ]
90
91
  }
91
92
  },
@@ -115,7 +116,7 @@
115
116
  "aadAppCreateWithSecret": {
116
117
  "type": "object",
117
118
  "additionalProperties": false,
118
- "allOf": [ { "$ref": "#/definitions/aadAppCreateBase" } ],
119
+ "allOf": [{ "$ref": "#/definitions/aadAppCreateBase" }],
119
120
  "required": ["with", "writeToEnvironmentFile"],
120
121
  "properties": {
121
122
  "name": {},
@@ -144,7 +145,12 @@
144
145
  "signInAudience": {
145
146
  "type": "string",
146
147
  "description": "Specifies what Microsoft accounts are supported for the current application.",
147
- "enum": ["AzureADMyOrg", "AzureADMultipleOrgs", "AzureADandPersonalMicrosoftAccount", "PersonalMicrosoftAccount"]
148
+ "enum": [
149
+ "AzureADMyOrg",
150
+ "AzureADMultipleOrgs",
151
+ "AzureADandPersonalMicrosoftAccount",
152
+ "PersonalMicrosoftAccount"
153
+ ]
148
154
  },
149
155
  "serviceManagementReference": {
150
156
  "type": "string",
@@ -197,7 +203,7 @@
197
203
  },
198
204
  "aadAppCreateWithoutSecret": {
199
205
  "type": "object",
200
- "allOf": [ { "$ref": "#/definitions/aadAppCreateBase" } ],
206
+ "allOf": [{ "$ref": "#/definitions/aadAppCreateBase" }],
201
207
  "required": ["with", "writeToEnvironmentFile"],
202
208
  "additionalProperties": false,
203
209
  "properties": {
@@ -227,7 +233,12 @@
227
233
  "signInAudience": {
228
234
  "type": "string",
229
235
  "description": "Specifies what Microsoft accounts are supported for the current application.",
230
- "enum": ["AzureADMyOrg", "AzureADMultipleOrgs", "AzureADandPersonalMicrosoftAccount", "PersonalMicrosoftAccount"]
236
+ "enum": [
237
+ "AzureADMyOrg",
238
+ "AzureADMultipleOrgs",
239
+ "AzureADandPersonalMicrosoftAccount",
240
+ "PersonalMicrosoftAccount"
241
+ ]
231
242
  },
232
243
  "serviceManagementReference": {
233
244
  "type": "string",
@@ -1049,7 +1060,7 @@
1049
1060
  "$ref": "#/definitions/secretEnvVarName"
1050
1061
  }
1051
1062
  }
1052
- }
1063
+ }
1053
1064
  }
1054
1065
  },
1055
1066
  "botframeworkCreate": {
@@ -1104,7 +1115,10 @@
1104
1115
  "type": "array",
1105
1116
  "description": "the channel(s) to be enabled of the bot",
1106
1117
  "items": {
1107
- "oneOf": [{ "$ref": "#/definitions/MsTeamsChannel" }, { "$ref": "#/definitions/M365ExtensionsChannel" }]
1118
+ "oneOf": [
1119
+ { "$ref": "#/definitions/MsTeamsChannel" },
1120
+ { "$ref": "#/definitions/M365ExtensionsChannel" }
1121
+ ]
1108
1122
  }
1109
1123
  }
1110
1124
  }
@@ -1281,9 +1295,7 @@
1281
1295
  "type": "object",
1282
1296
  "description": "Install Azure Functions Core Tools. This will output environment variable specified by `funcPath` to current environment's .env file.",
1283
1297
  "additionalProperties": false,
1284
- "required": [
1285
- "version"
1286
- ],
1298
+ "required": ["version"],
1287
1299
  "properties": {
1288
1300
  "version": {
1289
1301
  "oneOf": [
@@ -1557,7 +1569,7 @@
1557
1569
  "description": "redirect stdout and stderr to a file"
1558
1570
  }
1559
1571
  }
1560
- }
1572
+ }
1561
1573
  }
1562
1574
  },
1563
1575
  "relativePath": {
@@ -1841,6 +1853,10 @@
1841
1853
  "type": "string",
1842
1854
  "description": "Token exchange method type, can be BasicAuthorizationHeader or PostRequestBody. BasicAuthorizationHeader: token exchange via HTTP headers, PostRequestBody: token exchange via request body. Default is BasicAuthorizationHeader.",
1843
1855
  "enum": ["BasicAuthorizationHeader", "PostRequestBody"]
1856
+ },
1857
+ "includePersonalMicrosoftAccounts": {
1858
+ "type": "boolean",
1859
+ "description": "Whether to allow personal Microsoft accounts in addition to work or school accounts. If omitted when registering, only work or school accounts are allowed."
1844
1860
  }
1845
1861
  }
1846
1862
  },
@@ -1941,6 +1957,10 @@
1941
1957
  "type": "string",
1942
1958
  "description": "Token exchange method type, can be BasicAuthorizationHeader or PostRequestBody. BasicAuthorizationHeader: token exchange via HTTP headers, PostRequestBody: token exchange via request body. Default is BasicAuthorizationHeader.",
1943
1959
  "enum": ["BasicAuthorizationHeader", "PostRequestBody"]
1960
+ },
1961
+ "includePersonalMicrosoftAccounts": {
1962
+ "type": "boolean",
1963
+ "description": "Whether to allow personal Microsoft accounts in addition to work or school accounts. If omitted during an update, the existing account support remains unchanged."
1944
1964
  }
1945
1965
  }
1946
1966
  }
@@ -1949,46 +1969,65 @@
1949
1969
  "dcrRegister": {
1950
1970
  "type": "object",
1951
1971
  "additionalProperties": false,
1952
- "description": "Create a Dynamic Client Registration (DCR) configuration.",
1972
+ "description": "Create a Dynamic Client Registration (DCR) configuration through Teams Graph Service (TGS). Registration is skipped when the mapped configurationId environment variable already has a value.",
1953
1973
  "required": ["uses", "with", "writeToEnvironmentFile"],
1954
1974
  "properties": {
1955
1975
  "uses": {
1956
1976
  "type": "string",
1957
- "description": "Register a DCR configuration.",
1977
+ "description": "Register an OAuth configuration using server-side Dynamic Client Registration.",
1958
1978
  "const": "dcr/register"
1959
1979
  },
1960
1980
  "with": {
1961
1981
  "type": "object",
1962
1982
  "additionalProperties": false,
1963
- "description": "Parameters for this action",
1964
- "required": ["name", "wellKnownAuthorizationServer"],
1983
+ "description": "DCR registration parameters. Supply mcpResourceUrl for protected resource metadata discovery, wellKnownAuthorizationServer to pin authorization-server metadata, or both.",
1984
+ "required": ["name"],
1985
+ "anyOf": [
1986
+ { "required": ["mcpResourceUrl"] },
1987
+ { "required": ["wellKnownAuthorizationServer"] }
1988
+ ],
1965
1989
  "properties": {
1966
1990
  "name": {
1967
1991
  "type": "string",
1968
- "description": "The display name of the DCR configuration. Becomes the clientName sent during RFC 7591 registration. Max 128 characters."
1992
+ "description": "Required client name sent to TGS as clientName for dynamic registration. Maximum 128 characters."
1969
1993
  },
1970
1994
  "appId": {
1971
1995
  "type": "string",
1972
- "description": "The Teams app id associated with this configuration. Only takes effect when applicableToApps is SpecificApp."
1996
+ "description": "Microsoft 365 app ID. Required when applicableToApps is SpecificApp; ignored when applicableToApps is AnyApp."
1997
+ },
1998
+ "mcpResourceUrl": {
1999
+ "type": "string",
2000
+ "minLength": 1,
2001
+ "description": "HTTPS URL of the actual MCP endpoint, including its path. Recommended for new configurations. TGS probes this endpoint and RFC 9728 well-known locations for protected resource metadata (PRM) to discover resource and scopes_supported. Unless wellKnownAuthorizationServer is supplied, TGS uses PRM's first authorization_servers entry. This is not the PRM document URL; the OAuth resource indicator comes from PRM's resource, not directly from this endpoint URL. Optional when wellKnownAuthorizationServer is supplied."
1973
2002
  },
1974
2003
  "wellKnownAuthorizationServer": {
1975
2004
  "type": "string",
1976
- "description": "URL to the authorization server's RFC 8414 metadata document. TGS fetches this to discover the registration_endpoint and performs the RFC 7591 exchange server-side."
2005
+ "minLength": 1,
2006
+ "description": "HTTPS URL of the authorization server's RFC 8414 metadata document, supported for existing configurations and explicit authorization-server selection. Optional when mcpResourceUrl is supplied. When present, this URL takes precedence for authorization-server metadata resolution. An authorization server can serve multiple resources, so this metadata alone cannot identify the intended OAuth resource. Without mcpResourceUrl, supply resource explicitly if the service requires it. If mcpResourceUrl is also supplied, TGS attempts best-effort PRM discovery for resource and scopes; failure of that enrichment does not fail registration."
2007
+ },
2008
+ "resource": {
2009
+ "type": "string",
2010
+ "minLength": 1,
2011
+ "description": "Optional explicit OAuth resource indicator: an absolute URI without a fragment. Overrides PRM's resource value. Omit this field when mcpResourceUrl enables PRM discovery of the intended resource; otherwise supply it explicitly if the service requires a resource indicator. It is not inferred from authorization-server metadata or copied from the MCP endpoint or target URL. If neither an explicit value nor PRM supplies a resource, no resource indicator is sent. TGS sends the selected resource in authorization, token and refresh-token requests."
1977
2012
  },
1978
2013
  "targetUrlsShouldStartWith": {
1979
2014
  "type": "array",
1980
- "description": "Outbound URL allowlist. TGS only allows this configuration to authorize calls whose destination URL starts with one of these prefixes.",
2015
+ "description": "Required MCP target URL array. TGS requires exactly one valid HTTPS URL; omission, a string, an empty array or multiple entries is rejected. New configurations use the actual MCP endpoint. This field does not set the OAuth resource indicator.",
1981
2016
  "items": { "type": "string" }
1982
2017
  },
1983
2018
  "applicableToApps": {
1984
2019
  "type": "string",
1985
- "description": "Which app can use this DCR configuration. Default is \"AnyApp\".",
2020
+ "description": "Applications permitted to use this configuration: AnyApp (default), or SpecificApp, which requires appId.",
1986
2021
  "enum": ["SpecificApp", "AnyApp"]
1987
2022
  },
1988
2023
  "targetAudience": {
1989
2024
  "type": "string",
1990
- "description": "Which tenant can use this DCR configuration. Default is \"HomeTenant\".",
2025
+ "description": "Tenants permitted to use this configuration: HomeTenant (default) or AnyTenant.",
1991
2026
  "enum": ["HomeTenant", "AnyTenant"]
2027
+ },
2028
+ "includePersonalMicrosoftAccounts": {
2029
+ "type": "boolean",
2030
+ "description": "Whether to allow personal Microsoft accounts in addition to work or school accounts. If omitted when registering, only work or school accounts are allowed."
1992
2031
  }
1993
2032
  }
1994
2033
  },
@@ -1999,13 +2038,63 @@
1999
2038
  "required": ["configurationId"],
2000
2039
  "properties": {
2001
2040
  "configurationId": {
2002
- "description": "Required. The configuration id of the created DCR registration.",
2041
+ "description": "Required environment variable name receiving the returned configurationRegistrationId.oAuthConfigId. This is a configuration ID, not an OAuth client ID or resource indicator. An existing value causes this action to skip registration.",
2003
2042
  "$ref": "#/definitions/envVarName"
2004
2043
  }
2005
2044
  }
2006
2045
  }
2007
2046
  }
2008
2047
  },
2048
+ "dcrUpdate": {
2049
+ "type": "object",
2050
+ "additionalProperties": false,
2051
+ "description": "Update supported policy fields of an existing Dynamic Client Registration (DCR) configuration without changing its configuration ID. Omitted settings remain unchanged.",
2052
+ "required": ["uses", "with"],
2053
+ "properties": {
2054
+ "uses": {
2055
+ "type": "string",
2056
+ "description": "Update an existing DCR configuration.",
2057
+ "const": "dcr/update"
2058
+ },
2059
+ "with": {
2060
+ "type": "object",
2061
+ "additionalProperties": false,
2062
+ "description": "DCR update parameters. Only configurationId is required; omitted settings are preserved without applying registration defaults. Name, MCP endpoint, metadata URL, and target URLs cannot be updated.",
2063
+ "required": ["configurationId"],
2064
+ "properties": {
2065
+ "configurationId": {
2066
+ "type": "string",
2067
+ "minLength": 1,
2068
+ "description": "ID of the existing DCR authentication configuration to update. This is not an OAuth client ID."
2069
+ },
2070
+ "appId": {
2071
+ "type": "string",
2072
+ "minLength": 1,
2073
+ "description": "Microsoft 365 app ID used when the effective applicableToApps setting is SpecificApp. If omitted, the existing binding is preserved unless applicableToApps explicitly changes to AnyApp."
2074
+ },
2075
+ "resource": {
2076
+ "type": "string",
2077
+ "minLength": 1,
2078
+ "description": "Replacement explicit OAuth resource indicator: an absolute URI without a fragment. Overrides the discovered resource, as in dcr/register. If omitted, the existing value is preserved; it is not inferred from another URL."
2079
+ },
2080
+ "applicableToApps": {
2081
+ "type": "string",
2082
+ "description": "Applications permitted to use the configuration: SpecificApp or AnyApp. If omitted, the existing mode is preserved. SpecificApp requires a supplied or existing appId.",
2083
+ "enum": ["SpecificApp", "AnyApp"]
2084
+ },
2085
+ "targetAudience": {
2086
+ "type": "string",
2087
+ "description": "Tenants permitted to use the configuration: HomeTenant or AnyTenant. If omitted, the existing tenant scope is preserved. Independent of includePersonalMicrosoftAccounts.",
2088
+ "enum": ["HomeTenant", "AnyTenant"]
2089
+ },
2090
+ "includePersonalMicrosoftAccounts": {
2091
+ "type": "boolean",
2092
+ "description": "Whether to allow personal Microsoft accounts in addition to work or school accounts. True enables personal accounts; false disables them while retaining work or school accounts. If omitted, existing account support remains unchanged."
2093
+ }
2094
+ }
2095
+ }
2096
+ }
2097
+ },
2009
2098
  "devChannelCreate": {
2010
2099
  "type": "object",
2011
2100
  "additionalProperties": false,
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -75,8 +75,7 @@
75
75
  "id": "skill",
76
76
  "label": "template.createProjectQuestion.addSkill.label",
77
77
  "detail": "template.createProjectQuestion.addSkill.detail",
78
- "data": "declarative-agent-with-skill",
79
- "featureFlag": "ATK_FRONTIER"
78
+ "data": "declarative-agent-with-skill"
80
79
  },
81
80
  {
82
81
  "id": "type-spec",
@@ -104,8 +104,7 @@
104
104
  "id": "skill",
105
105
  "label": "template.createProjectQuestion.addSkill.label",
106
106
  "detail": "template.createProjectQuestion.addSkill.detail",
107
- "data": "declarative-agent-with-skill",
108
- "featureFlag": "ATK_FRONTIER"
107
+ "data": "declarative-agent-with-skill"
109
108
  },
110
109
  {
111
110
  "id": "type-spec",
@@ -76,7 +76,6 @@
76
76
  { "id": "skill",
77
77
  "label": "Add an Agent Skill",
78
78
  "detail": "Create a declarative agent with an agent skill",
79
- "condition": { "featureFlag": "ATK_FRONTIER" },
80
79
  "keyPrefix": "template.createProjectQuestion.addSkill" },
81
80
  { "id": "typespec",
82
81
  "label": "Start with TypeSpec for Microsoft 365 Copilot",
@@ -349,7 +348,7 @@
349
348
  "engine": "v4"
350
349
  },
351
350
  {
352
- "when": "projectType=='copilot-agent-type' && daTemplate=='skill' && featureFlag('ATK_FRONTIER')",
351
+ "when": "projectType=='copilot-agent-type' && daTemplate=='skill'",
353
352
  "templateId": "da/skill",
354
353
  "engine": "v4"
355
354
  },
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "6.18.0"
2
+ "version": "6.18.1"
3
3
  }
Binary file
Binary file