@@ -171,6 +171,19 @@ export namespace Models {
171
171
*/
172
172
functions : Function [ ] ;
173
173
}
174
+ /**
175
+ * Function Templates List
176
+ */
177
+ export type TemplateFunctionList = {
178
+ /**
179
+ * Total number of templates documents that matched your query.
180
+ */
181
+ total : number ;
182
+ /**
183
+ * List of templates.
184
+ */
185
+ templates : TemplateFunction [ ] ;
186
+ }
174
187
/**
175
188
* Runtimes List
176
189
*/
@@ -1716,6 +1729,129 @@ export namespace Models {
1716
1729
*/
1717
1730
providerSilentMode : boolean ;
1718
1731
}
1732
+ /**
1733
+ * Template Function
1734
+ */
1735
+ export type TemplateFunction = {
1736
+ /**
1737
+ * Function Template Icon.
1738
+ */
1739
+ icon : string ;
1740
+ /**
1741
+ * Function Template ID.
1742
+ */
1743
+ id : string ;
1744
+ /**
1745
+ * Function Template Name.
1746
+ */
1747
+ name : string ;
1748
+ /**
1749
+ * Function Template Tagline.
1750
+ */
1751
+ tagline : string ;
1752
+ /**
1753
+ * Execution permissions.
1754
+ */
1755
+ permissions : string [ ] ;
1756
+ /**
1757
+ * Function trigger events.
1758
+ */
1759
+ events : string [ ] ;
1760
+ /**
1761
+ * Function execution schedult in CRON format.
1762
+ */
1763
+ cron : string ;
1764
+ /**
1765
+ * Function execution timeout in seconds.
1766
+ */
1767
+ timeout : number ;
1768
+ /**
1769
+ * Function use cases.
1770
+ */
1771
+ useCases : string [ ] ;
1772
+ /**
1773
+ * List of runtimes that can be used with this template.
1774
+ */
1775
+ runtimes : TemplateRuntime [ ] ;
1776
+ /**
1777
+ * Function Template Instructions.
1778
+ */
1779
+ instructions : string ;
1780
+ /**
1781
+ * VCS (Version Control System) Provider.
1782
+ */
1783
+ vcsProvider : string ;
1784
+ /**
1785
+ * VCS (Version Control System) Repository ID
1786
+ */
1787
+ providerRepositoryId : string ;
1788
+ /**
1789
+ * VCS (Version Control System) Owner.
1790
+ */
1791
+ providerOwner : string ;
1792
+ /**
1793
+ * VCS (Version Control System) branch version (tag).
1794
+ */
1795
+ providerVersion : string ;
1796
+ /**
1797
+ * Function variables.
1798
+ */
1799
+ variables : TemplateVariable [ ] ;
1800
+ /**
1801
+ * Function scopes.
1802
+ */
1803
+ scopes : string [ ] ;
1804
+ }
1805
+ /**
1806
+ * Template Runtime
1807
+ */
1808
+ export type TemplateRuntime = {
1809
+ /**
1810
+ * Runtime Name.
1811
+ */
1812
+ name : string ;
1813
+ /**
1814
+ * The build command used to build the deployment.
1815
+ */
1816
+ commands : string ;
1817
+ /**
1818
+ * The entrypoint file used to execute the deployment.
1819
+ */
1820
+ entrypoint : string ;
1821
+ /**
1822
+ * Path to function in VCS (Version Control System) repository
1823
+ */
1824
+ providerRootDirectory : string ;
1825
+ }
1826
+ /**
1827
+ * Template Variable
1828
+ */
1829
+ export type TemplateVariable = {
1830
+ /**
1831
+ * Variable Name.
1832
+ */
1833
+ name : string ;
1834
+ /**
1835
+ * Variable Description.
1836
+ */
1837
+ description : string ;
1838
+ /**
1839
+ * Variable Value.
1840
+ */
1841
+ value : string ;
1842
+ /**
1843
+ * Variable Placeholder.
1844
+ */
1845
+ placeholder : string ;
1846
+ /**
1847
+ * Is the variable required?
1848
+ */
1849
+ required : boolean ;
1850
+ /**
1851
+ * Variable Type.
1852
+ */
1853
+ type : string ;
1854
+ }
1719
1855
/**
1720
1856
* Runtime
1721
1857
*/
@@ -1724,6 +1860,10 @@ export namespace Models {
1724
1860
* Runtime ID.
1725
1861
*/
1726
1862
$id : string ;
1863
+ /**
1864
+ * Parent runtime key.
1865
+ */
1866
+ key : string ;
1727
1867
/**
1728
1868
* Runtime Name.
1729
1869
*/
@@ -1914,6 +2054,10 @@ export namespace Models {
1914
2054
* Function execution duration in seconds.
1915
2055
*/
1916
2056
duration : number ;
2057
+ /**
2058
+ * The scheduled time for execution. If left empty, execution will be queued immediately.
2059
+ */
2060
+ scheduledAt ?: string ;
1917
2061
}
1918
2062
/**
1919
2063
* Build
0 commit comments