Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+128
View File
@@ -0,0 +1,128 @@
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
/**
* The schema of TeamsFx configuration.
*/
export interface EnvConfig {
$schema?: string;
description?: string;
/**
* Existing AAD app configuration.
*/
auth?: {
/**
* The client id of existing AAD app for Teams app.
*/
clientId?: string;
/**
* The client secret of existing AAD app for Teams app.
*/
clientSecret?: string;
/**
* The object id of existing AAD app for Teams app.
*/
objectId?: string;
/**
* The access_as_user scope id of existing AAD app for Teams app.
*/
accessAsUserScopeId?: string;
/**
* The frontend domain for redirect URLs of existing AAD app for Teams app.
*/
frontendDomain?: string;
/**
* The bot id for identifier URIs of existing AAD app for Teams app.
*/
botId?: string;
/**
* The bot endpoint for redirect URLs of existing AAD app for Teams app.
*/
botEndpoint?: string;
[k: string]: unknown;
};
/**
* The Azure resource related configuration.
*/
azure?: {
/**
* The default subscription to provision Azure resources.
*/
subscriptionId?: string;
/**
* The default resource group of Azure resources.
*/
resourceGroupName?: string;
[k: string]: unknown;
};
/**
* Existing bot AAD app configuration.
*/
bot?: {
/**
* The id of existing bot AAD app.
*/
appId?: string;
/**
* The password of existing bot AAD app.
*/
appPassword?: string;
[k: string]: unknown;
};
/**
* The Teams App manifest related configuration.
*/
manifest: {
/**
* Teams app name.
*/
appName: {
/**
* A short display name for teams app.
*/
short: string;
/**
* The full name for teams app.
*/
full?: string;
[k: string]: unknown;
};
/**
* Description for Teams app.
*/
description?: {
/**
* A short description of the app used when space is limited. Maximum length is 80 characters.
*/
short?: string;
/**
* The full description of the app. Maximum length is 4000 characters.
*/
full?: string;
[k: string]: unknown;
};
/**
* Icons for Teams App.
*/
icons?: {
/**
* A relative file path to a full color PNG icon. Size 192x192.
*/
color?: string;
/**
* A relative file path to a transparent PNG outline icon. The border color needs to be white. Size 32x32.
*/
outline?: string;
[k: string]: unknown;
};
[k: string]: unknown;
};
/**
* Skip to add user during SQL provision.
*/
skipAddingSqlUser?: boolean;
[k: string]: unknown;
}
//# sourceMappingURL=envConfig.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"envConfig.d.ts","sourceRoot":"","sources":["../../src/schemas/envConfig.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE;QACL;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF;;OAEG;IACH,KAAK,CAAC,EAAE;QACN;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF;;OAEG;IACH,GAAG,CAAC,EAAE;QACJ;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF;;OAEG;IACH,QAAQ,EAAE;QACR;;WAEG;QACH,OAAO,EAAE;YACP;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YACd;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;SACtB,CAAC;QACF;;WAEG;QACH,WAAW,CAAC,EAAE;YACZ;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;YACf;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;SACtB,CAAC;QACF;;WAEG;QACH,KAAK,CAAC,EAAE;YACN;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;YACf;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;SACtB,CAAC;QACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
+9
View File
@@ -0,0 +1,9 @@
"use strict";
/* tslint:disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=envConfig.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"envConfig.js","sourceRoot":"","sources":["../../src/schemas/envConfig.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;;;GAIG"}
+162
View File
@@ -0,0 +1,162 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"description": "The schema of TeamsFx configuration.",
"properties": {
"$schema": {
"type": "string"
},
"description": {
"type": "string"
},
"auth": {
"type": "object",
"description": "Existing AAD app configuration.",
"properties": {
"clientId": {
"type": "string",
"description": "The client id of existing AAD app for Teams app.",
"minLength": 1
},
"clientSecret": {
"type": "string",
"description": "The client secret of existing AAD app for Teams app.",
"minLength": 1
},
"objectId": {
"type": "string",
"description": "The object id of existing AAD app for Teams app.",
"minLength": 1
},
"accessAsUserScopeId": {
"type": "string",
"description": "The access_as_user scope id of existing AAD app for Teams app.",
"minLength": 1
},
"frontendDomain": {
"type": "string",
"description": "The frontend domain for redirect URLs of existing AAD app for Teams app.",
"minLength": 1
},
"botId": {
"type": "string",
"description": "The bot id for identifier URIs of existing AAD app for Teams app.",
"minLength": 1
},
"botEndpoint": {
"type": "string",
"description": "The bot endpoint for redirect URLs of existing AAD app for Teams app.",
"minLength": 1
}
},
"dependencies": {
"clientId": ["clientSecret", "objectId"],
"clientSecret": ["clientId", "objectId"],
"objectId": ["clientId", "clientSecret"],
"accessAsUserScopeId": ["clientId", "clientSecret", "objectId"],
"botId": ["botEndpoint"],
"botEndpoint": ["botId"]
}
},
"azure": {
"type": "object",
"description": "The Azure resource related configuration.",
"properties": {
"subscriptionId": {
"type": "string",
"description": "The default subscription to provision Azure resources.",
"minLength": 1,
"pattern": "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
},
"resourceGroupName": {
"type": "string",
"description": "The default resource group of Azure resources.",
"minLength": 1,
"pattern": "^[-\\w\\._\\(\\)]+$"
}
}
},
"bot": {
"type": "object",
"description": "Existing bot AAD app configuration.",
"properties": {
"appId": {
"type": "string",
"description": "The id of existing bot AAD app.",
"minLength": 1
},
"appPassword": {
"type": "string",
"description": "The password of existing bot AAD app.",
"minLength": 1
}
},
"dependencies": {
"appId": ["appPassword"],
"appPassword": ["appId"]
}
},
"manifest": {
"type": "object",
"description": "The Teams App manifest related configuration.",
"properties": {
"appName": {
"type": "object",
"description": "Teams app name.",
"properties": {
"short": {
"type": "string",
"description": "A short display name for teams app.",
"maxLength": 30,
"minLength": 1
},
"full": {
"type": "string",
"description": "The full name for teams app.",
"maxLength": 100
}
},
"required": ["short"]
},
"description": {
"type": "object",
"description": "Description for Teams app.",
"properties": {
"short": {
"type": "string",
"description": "A short description of the app used when space is limited. Maximum length is 80 characters.",
"maxLength": 80
},
"full": {
"type": "string",
"description": "The full description of the app. Maximum length is 4000 characters.",
"maxLength": 4000
}
}
},
"icons": {
"type": "object",
"description": "Icons for Teams App.",
"properties": {
"color": {
"type": "string",
"description": "A relative file path to a full color PNG icon. Size 192x192.",
"minLength": 1
},
"outline": {
"type": "string",
"description": "A relative file path to a transparent PNG outline icon. The border color needs to be white. Size 32x32.",
"minLength": 1
}
}
}
},
"required": ["appName"]
},
"skipAddingSqlUser": {
"type": "boolean",
"description": "Skip to add user during SQL provision."
}
},
"required": ["manifest"]
}
+4
View File
@@ -0,0 +1,4 @@
export * from "./envConfig";
import * as EnvConfigSchema from "./envConfig.json";
export { EnvConfigSchema };
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,eAAe,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,CAAC"}
+10
View File
@@ -0,0 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnvConfigSchema = void 0;
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./envConfig"), exports);
const EnvConfigSchema = tslib_1.__importStar(require("./envConfig.json"));
exports.EnvConfigSchema = EnvConfigSchema;
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;;AAEb,sDAA4B;AAC5B,0EAAoD;AAC3C,0CAAe"}
@@ -0,0 +1,162 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"description": "The schema of TeamsFx configuration.",
"properties": {
"$schema": {
"type": "string"
},
"description": {
"type": "string"
},
"auth": {
"type": "object",
"description": "Existing AAD app configuration.",
"properties": {
"clientId": {
"type": "string",
"description": "The client id of existing AAD app for Teams app.",
"minLength": 1
},
"clientSecret": {
"type": "string",
"description": "The client secret of existing AAD app for Teams app.",
"minLength": 1
},
"objectId": {
"type": "string",
"description": "The object id of existing AAD app for Teams app.",
"minLength": 1
},
"accessAsUserScopeId": {
"type": "string",
"description": "The access_as_user scope id of existing AAD app for Teams app.",
"minLength": 1
},
"frontendDomain": {
"type": "string",
"description": "The frontend domain for redirect URLs of existing AAD app for Teams app.",
"minLength": 1
},
"botId": {
"type": "string",
"description": "The bot id for identifier URIs of existing AAD app for Teams app.",
"minLength": 1
},
"botEndpoint": {
"type": "string",
"description": "The bot endpoint for redirect URLs of existing AAD app for Teams app.",
"minLength": 1
}
},
"dependencies": {
"clientId": ["clientSecret", "objectId"],
"clientSecret": ["clientId", "objectId"],
"objectId": ["clientId", "clientSecret"],
"accessAsUserScopeId": ["clientId", "clientSecret", "objectId"],
"botId": ["botEndpoint"],
"botEndpoint": ["botId"]
}
},
"azure": {
"type": "object",
"description": "The Azure resource related configuration.",
"properties": {
"subscriptionId": {
"type": "string",
"description": "The default subscription to provision Azure resources.",
"minLength": 1,
"pattern": "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
},
"resourceGroupName": {
"type": "string",
"description": "The default resource group of Azure resources.",
"minLength": 1,
"pattern": "^[-\\w\\._\\(\\)]+$"
}
}
},
"bot": {
"type": "object",
"description": "Existing bot AAD app configuration.",
"properties": {
"appId": {
"type": "string",
"description": "The id of existing bot AAD app.",
"minLength": 1
},
"appPassword": {
"type": "string",
"description": "The password of existing bot AAD app.",
"minLength": 1
}
},
"dependencies": {
"appId": ["appPassword"],
"appPassword": ["appId"]
}
},
"manifest": {
"type": "object",
"description": "The Teams App manifest related configuration.",
"properties": {
"appName": {
"type": "object",
"description": "Teams app name.",
"properties": {
"short": {
"type": "string",
"description": "A short display name for teams app.",
"maxLength": 30,
"minLength": 1
},
"full": {
"type": "string",
"description": "The full name for teams app.",
"maxLength": 100
}
},
"required": ["short"]
},
"description": {
"type": "object",
"description": "Description for Teams app.",
"properties": {
"short": {
"type": "string",
"description": "A short description of the app used when space is limited. Maximum length is 80 characters.",
"maxLength": 80
},
"full": {
"type": "string",
"description": "The full description of the app. Maximum length is 4000 characters.",
"maxLength": 4000
}
}
},
"icons": {
"type": "object",
"description": "Icons for Teams App.",
"properties": {
"color": {
"type": "string",
"description": "A relative file path to a full color PNG icon. Size 192x192.",
"minLength": 1
},
"outline": {
"type": "string",
"description": "A relative file path to a transparent PNG outline icon. The border color needs to be white. Size 32x32.",
"minLength": 1
}
}
}
},
"required": ["appName"]
},
"skipAddingSqlUser": {
"type": "boolean",
"description": "Skip to add user during SQL provision."
}
},
"required": ["manifest"]
}