@@ -168,6 +168,19 @@ export namespace Models {
168168 */
169169 functions : Function [ ] ;
170170 }
171+ /**
172+ * Function Templates List
173+ */
174+ export type TemplateFunctionList = {
175+ /**
176+ * Total number of templates documents that matched your query.
177+ */
178+ total : number ;
179+ /**
180+ * List of templates.
181+ */
182+ templates : TemplateFunction [ ] ;
183+ }
171184 /**
172185 * Runtimes List
173186 */
@@ -1711,6 +1724,129 @@ export namespace Models {
17111724 */
17121725 providerSilentMode : boolean ;
17131726 }
1727+ /**
1728+ * Template Function
1729+ */
1730+ export type TemplateFunction = {
1731+ /**
1732+ * Function Template Icon.
1733+ */
1734+ icon : string ;
1735+ /**
1736+ * Function Template ID.
1737+ */
1738+ id : string ;
1739+ /**
1740+ * Function Template Name.
1741+ */
1742+ name : string ;
1743+ /**
1744+ * Function Template Tagline.
1745+ */
1746+ tagline : string ;
1747+ /**
1748+ * Execution permissions.
1749+ */
1750+ permissions : string [ ] ;
1751+ /**
1752+ * Function trigger events.
1753+ */
1754+ events : string [ ] ;
1755+ /**
1756+ * Function execution schedult in CRON format.
1757+ */
1758+ cron : string ;
1759+ /**
1760+ * Function execution timeout in seconds.
1761+ */
1762+ timeout : number ;
1763+ /**
1764+ * Function use cases.
1765+ */
1766+ useCases : string [ ] ;
1767+ /**
1768+ * List of runtimes that can be used with this template.
1769+ */
1770+ runtimes : TemplateRuntime [ ] ;
1771+ /**
1772+ * Function Template Instructions.
1773+ */
1774+ instructions : string ;
1775+ /**
1776+ * VCS (Version Control System) Provider.
1777+ */
1778+ vcsProvider : string ;
1779+ /**
1780+ * VCS (Version Control System) Repository ID
1781+ */
1782+ providerRepositoryId : string ;
1783+ /**
1784+ * VCS (Version Control System) Owner.
1785+ */
1786+ providerOwner : string ;
1787+ /**
1788+ * VCS (Version Control System) branch version (tag).
1789+ */
1790+ providerVersion : string ;
1791+ /**
1792+ * Function variables.
1793+ */
1794+ variables : TemplateVariable [ ] ;
1795+ /**
1796+ * Function scopes.
1797+ */
1798+ scopes : string [ ] ;
1799+ }
1800+ /**
1801+ * Template Runtime
1802+ */
1803+ export type TemplateRuntime = {
1804+ /**
1805+ * Runtime Name.
1806+ */
1807+ name : string ;
1808+ /**
1809+ * The build command used to build the deployment.
1810+ */
1811+ commands : string ;
1812+ /**
1813+ * The entrypoint file used to execute the deployment.
1814+ */
1815+ entrypoint : string ;
1816+ /**
1817+ * Path to function in VCS (Version Control System) repository
1818+ */
1819+ providerRootDirectory : string ;
1820+ }
1821+ /**
1822+ * Template Variable
1823+ */
1824+ export type TemplateVariable = {
1825+ /**
1826+ * Variable Name.
1827+ */
1828+ name : string ;
1829+ /**
1830+ * Variable Description.
1831+ */
1832+ description : string ;
1833+ /**
1834+ * Variable Value.
1835+ */
1836+ value : string ;
1837+ /**
1838+ * Variable Placeholder.
1839+ */
1840+ placeholder : string ;
1841+ /**
1842+ * Is the variable required?
1843+ */
1844+ required : boolean ;
1845+ /**
1846+ * Variable Type.
1847+ */
1848+ type : string ;
1849+ }
17141850 /**
17151851 * Runtime
17161852 */
@@ -1719,6 +1855,10 @@ export namespace Models {
17191855 * Runtime ID.
17201856 */
17211857 $id : string ;
1858+ /**
1859+ * Parent runtime key.
1860+ */
1861+ key : string ;
17221862 /**
17231863 * Runtime Name.
17241864 */
@@ -1909,6 +2049,10 @@ export namespace Models {
19092049 * Function execution duration in seconds.
19102050 */
19112051 duration : number ;
2052+ /**
2053+ * The scheduled time for execution. If left empty, execution will be queued immediately.
2054+ */
2055+ scheduledAt ?: string ;
19122056 }
19132057 /**
19142058 * Build
0 commit comments