@owbase/node 1.0.1 → 2.0.1

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 (92) hide show
  1. package/README.md +1 -1
  2. package/dist/client.js +3 -3
  3. package/dist/client.js.map +1 -1
  4. package/dist/client.mjs +3 -3
  5. package/dist/client.mjs.map +1 -1
  6. package/dist/enums/databases-index-type.d.mts +2 -1
  7. package/dist/enums/databases-index-type.d.ts +2 -1
  8. package/dist/enums/databases-index-type.js +1 -0
  9. package/dist/enums/databases-index-type.js.map +1 -1
  10. package/dist/enums/databases-index-type.mjs +1 -0
  11. package/dist/enums/databases-index-type.mjs.map +1 -1
  12. package/dist/enums/project-policy-id.d.mts +1 -0
  13. package/dist/enums/project-policy-id.d.ts +1 -0
  14. package/dist/enums/project-policy-id.js +1 -0
  15. package/dist/enums/project-policy-id.js.map +1 -1
  16. package/dist/enums/project-policy-id.mjs +1 -0
  17. package/dist/enums/project-policy-id.mjs.map +1 -1
  18. package/dist/enums/tables-db-index-type.d.mts +2 -1
  19. package/dist/enums/tables-db-index-type.d.ts +2 -1
  20. package/dist/enums/tables-db-index-type.js +1 -0
  21. package/dist/enums/tables-db-index-type.js.map +1 -1
  22. package/dist/enums/tables-db-index-type.mjs +1 -0
  23. package/dist/enums/tables-db-index-type.mjs.map +1 -1
  24. package/dist/models.d.mts +236 -3
  25. package/dist/models.d.ts +236 -3
  26. package/dist/services/account.d.mts +32 -0
  27. package/dist/services/account.d.ts +32 -0
  28. package/dist/services/account.js +27 -0
  29. package/dist/services/account.js.map +1 -1
  30. package/dist/services/account.mjs +27 -0
  31. package/dist/services/account.mjs.map +1 -1
  32. package/dist/services/databases.d.mts +211 -47
  33. package/dist/services/databases.d.ts +211 -47
  34. package/dist/services/databases.js +301 -41
  35. package/dist/services/databases.js.map +1 -1
  36. package/dist/services/databases.mjs +301 -41
  37. package/dist/services/databases.mjs.map +1 -1
  38. package/dist/services/functions.d.mts +30 -12
  39. package/dist/services/functions.d.ts +30 -12
  40. package/dist/services/functions.js +34 -4
  41. package/dist/services/functions.js.map +1 -1
  42. package/dist/services/functions.mjs +34 -4
  43. package/dist/services/functions.mjs.map +1 -1
  44. package/dist/services/messaging.d.mts +56 -44
  45. package/dist/services/messaging.d.ts +56 -44
  46. package/dist/services/messaging.js +96 -76
  47. package/dist/services/messaging.js.map +1 -1
  48. package/dist/services/messaging.mjs +96 -76
  49. package/dist/services/messaging.mjs.map +1 -1
  50. package/dist/services/organization.d.mts +4 -1
  51. package/dist/services/organization.d.ts +4 -1
  52. package/dist/services/organization.js +6 -1
  53. package/dist/services/organization.js.map +1 -1
  54. package/dist/services/organization.mjs +6 -1
  55. package/dist/services/organization.mjs.map +1 -1
  56. package/dist/services/project.d.mts +115 -65
  57. package/dist/services/project.d.ts +115 -65
  58. package/dist/services/project.js +138 -77
  59. package/dist/services/project.js.map +1 -1
  60. package/dist/services/project.mjs +138 -77
  61. package/dist/services/project.mjs.map +1 -1
  62. package/dist/services/sites.d.mts +20 -8
  63. package/dist/services/sites.d.ts +20 -8
  64. package/dist/services/sites.js +24 -4
  65. package/dist/services/sites.js.map +1 -1
  66. package/dist/services/sites.mjs +24 -4
  67. package/dist/services/sites.mjs.map +1 -1
  68. package/dist/services/storage.d.mts +16 -4
  69. package/dist/services/storage.d.ts +16 -4
  70. package/dist/services/storage.js +22 -2
  71. package/dist/services/storage.js.map +1 -1
  72. package/dist/services/storage.mjs +22 -2
  73. package/dist/services/storage.mjs.map +1 -1
  74. package/dist/services/tables-db.d.mts +210 -47
  75. package/dist/services/tables-db.d.ts +210 -47
  76. package/dist/services/tables-db.js +296 -41
  77. package/dist/services/tables-db.js.map +1 -1
  78. package/dist/services/tables-db.mjs +296 -41
  79. package/dist/services/tables-db.mjs.map +1 -1
  80. package/dist/services/teams.d.mts +4 -1
  81. package/dist/services/teams.d.ts +4 -1
  82. package/dist/services/teams.js +6 -1
  83. package/dist/services/teams.js.map +1 -1
  84. package/dist/services/teams.mjs +6 -1
  85. package/dist/services/teams.mjs.map +1 -1
  86. package/dist/services/webhooks.d.mts +16 -10
  87. package/dist/services/webhooks.d.ts +16 -10
  88. package/dist/services/webhooks.js +12 -2
  89. package/dist/services/webhooks.js.map +1 -1
  90. package/dist/services/webhooks.mjs +12 -2
  91. package/dist/services/webhooks.mjs.map +1 -1
  92. package/package.json +2 -2
@@ -72,7 +72,7 @@ declare class Functions {
72
72
  * @param {Runtime} params.runtime - Execution runtime.
73
73
  * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
74
74
  * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
75
- * @param {string} params.schedule - Schedule CRON syntax.
75
+ * @param {string} params.schedule - Schedule CRON syntax. Cannot be combined with interval.
76
76
  * @param {number} params.timeout - Function maximum execution time in seconds.
77
77
  * @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
78
78
  * @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
@@ -88,7 +88,9 @@ declare class Functions {
88
88
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
89
89
  * @param {string} params.buildSpecification - Build specification for the function deployments.
90
90
  * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
91
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
91
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
92
+ * @param {number} params.interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule.
93
+ * @param {string} params.description - Optional description for the function.
92
94
  * @throws {OwbaseException}
93
95
  * @returns {Promise<Models.Function>}
94
96
  */
@@ -115,6 +117,8 @@ declare class Functions {
115
117
  buildSpecification?: string;
116
118
  runtimeSpecification?: string;
117
119
  deploymentRetention?: number;
120
+ interval?: number;
121
+ description?: string;
118
122
  }): Promise<Models.Function>;
119
123
  /**
120
124
  * Create a new function. You can pass a list of [permissions](https://docs.owbase.dev/permissions) to allow different project users or team with access to execute the function using the client API.
@@ -124,7 +128,7 @@ declare class Functions {
124
128
  * @param {Runtime} runtime - Execution runtime.
125
129
  * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
126
130
  * @param {string[]} events - Events list. Maximum of 100 events are allowed.
127
- * @param {string} schedule - Schedule CRON syntax.
131
+ * @param {string} schedule - Schedule CRON syntax. Cannot be combined with interval.
128
132
  * @param {number} timeout - Function maximum execution time in seconds.
129
133
  * @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
130
134
  * @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
@@ -140,12 +144,14 @@ declare class Functions {
140
144
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
141
145
  * @param {string} buildSpecification - Build specification for the function deployments.
142
146
  * @param {string} runtimeSpecification - Runtime specification for the function executions.
143
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
147
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
148
+ * @param {number} interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule.
149
+ * @param {string} description - Optional description for the function.
144
150
  * @throws {OwbaseException}
145
151
  * @returns {Promise<Models.Function>}
146
152
  * @deprecated Use the object parameter style method for a better developer experience.
147
153
  */
148
- create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
154
+ create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, interval?: number, description?: string): Promise<Models.Function>;
149
155
  /**
150
156
  * Get a list of all runtimes that are currently active on your instance.
151
157
  *
@@ -214,7 +220,7 @@ declare class Functions {
214
220
  * @param {Runtime} params.runtime - Execution runtime.
215
221
  * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
216
222
  * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
217
- * @param {string} params.schedule - Schedule CRON syntax.
223
+ * @param {string} params.schedule - Schedule CRON syntax. Cannot be combined with interval.
218
224
  * @param {number} params.timeout - Maximum execution time in seconds.
219
225
  * @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
220
226
  * @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
@@ -230,7 +236,9 @@ declare class Functions {
230
236
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
231
237
  * @param {string} params.buildSpecification - Build specification for the function deployments.
232
238
  * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
233
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
239
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
240
+ * @param {number} params.interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule. When omitted, the current interval is kept unless schedule is set.
241
+ * @param {string} params.description - Optional description for the function.
234
242
  * @throws {OwbaseException}
235
243
  * @returns {Promise<Models.Function>}
236
244
  */
@@ -257,6 +265,8 @@ declare class Functions {
257
265
  buildSpecification?: string;
258
266
  runtimeSpecification?: string;
259
267
  deploymentRetention?: number;
268
+ interval?: number;
269
+ description?: string;
260
270
  }): Promise<Models.Function>;
261
271
  /**
262
272
  * Update function by its unique ID.
@@ -266,7 +276,7 @@ declare class Functions {
266
276
  * @param {Runtime} runtime - Execution runtime.
267
277
  * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
268
278
  * @param {string[]} events - Events list. Maximum of 100 events are allowed.
269
- * @param {string} schedule - Schedule CRON syntax.
279
+ * @param {string} schedule - Schedule CRON syntax. Cannot be combined with interval.
270
280
  * @param {number} timeout - Maximum execution time in seconds.
271
281
  * @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
272
282
  * @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
@@ -282,12 +292,14 @@ declare class Functions {
282
292
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
283
293
  * @param {string} buildSpecification - Build specification for the function deployments.
284
294
  * @param {string} runtimeSpecification - Runtime specification for the function executions.
285
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
295
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
296
+ * @param {number} interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule. When omitted, the current interval is kept unless schedule is set.
297
+ * @param {string} description - Optional description for the function.
286
298
  * @throws {OwbaseException}
287
299
  * @returns {Promise<Models.Function>}
288
300
  * @deprecated Use the object parameter style method for a better developer experience.
289
301
  */
290
- update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
302
+ update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, interval?: number, description?: string): Promise<Models.Function>;
291
303
  /**
292
304
  * Delete a function by its unique ID.
293
305
  *
@@ -728,6 +740,7 @@ declare class Functions {
728
740
  * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
729
741
  * @param {string} params.value - Variable value. Max length: 8192 chars.
730
742
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
743
+ * @param {string} params.description - Optional description for the variable.
731
744
  * @throws {OwbaseException}
732
745
  * @returns {Promise<Models.Variable>}
733
746
  */
@@ -737,6 +750,7 @@ declare class Functions {
737
750
  key: string;
738
751
  value: string;
739
752
  secret?: boolean;
753
+ description?: string;
740
754
  }): Promise<Models.Variable>;
741
755
  /**
742
756
  * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
@@ -746,11 +760,12 @@ declare class Functions {
746
760
  * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
747
761
  * @param {string} value - Variable value. Max length: 8192 chars.
748
762
  * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
763
+ * @param {string} description - Optional description for the variable.
749
764
  * @throws {OwbaseException}
750
765
  * @returns {Promise<Models.Variable>}
751
766
  * @deprecated Use the object parameter style method for a better developer experience.
752
767
  */
753
- createVariable(functionId: string, variableId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
768
+ createVariable(functionId: string, variableId: string, key: string, value: string, secret?: boolean, description?: string): Promise<Models.Variable>;
754
769
  /**
755
770
  * Get a variable by its unique ID.
756
771
  *
@@ -781,6 +796,7 @@ declare class Functions {
781
796
  * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
782
797
  * @param {string} params.value - Variable value. Max length: 8192 chars.
783
798
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
799
+ * @param {string} params.description - Optional description for the variable.
784
800
  * @throws {OwbaseException}
785
801
  * @returns {Promise<Models.Variable>}
786
802
  */
@@ -790,6 +806,7 @@ declare class Functions {
790
806
  key?: string;
791
807
  value?: string;
792
808
  secret?: boolean;
809
+ description?: string;
793
810
  }): Promise<Models.Variable>;
794
811
  /**
795
812
  * Update variable by its unique ID.
@@ -799,11 +816,12 @@ declare class Functions {
799
816
  * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
800
817
  * @param {string} value - Variable value. Max length: 8192 chars.
801
818
  * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
819
+ * @param {string} description - Optional description for the variable.
802
820
  * @throws {OwbaseException}
803
821
  * @returns {Promise<Models.Variable>}
804
822
  * @deprecated Use the object parameter style method for a better developer experience.
805
823
  */
806
- updateVariable(functionId: string, variableId: string, key?: string, value?: string, secret?: boolean): Promise<Models.Variable>;
824
+ updateVariable(functionId: string, variableId: string, key?: string, value?: string, secret?: boolean, description?: string): Promise<Models.Variable>;
807
825
  /**
808
826
  * Delete a variable by its unique ID.
809
827
  *
@@ -72,7 +72,7 @@ declare class Functions {
72
72
  * @param {Runtime} params.runtime - Execution runtime.
73
73
  * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
74
74
  * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
75
- * @param {string} params.schedule - Schedule CRON syntax.
75
+ * @param {string} params.schedule - Schedule CRON syntax. Cannot be combined with interval.
76
76
  * @param {number} params.timeout - Function maximum execution time in seconds.
77
77
  * @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
78
78
  * @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
@@ -88,7 +88,9 @@ declare class Functions {
88
88
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
89
89
  * @param {string} params.buildSpecification - Build specification for the function deployments.
90
90
  * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
91
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
91
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
92
+ * @param {number} params.interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule.
93
+ * @param {string} params.description - Optional description for the function.
92
94
  * @throws {OwbaseException}
93
95
  * @returns {Promise<Models.Function>}
94
96
  */
@@ -115,6 +117,8 @@ declare class Functions {
115
117
  buildSpecification?: string;
116
118
  runtimeSpecification?: string;
117
119
  deploymentRetention?: number;
120
+ interval?: number;
121
+ description?: string;
118
122
  }): Promise<Models.Function>;
119
123
  /**
120
124
  * Create a new function. You can pass a list of [permissions](https://docs.owbase.dev/permissions) to allow different project users or team with access to execute the function using the client API.
@@ -124,7 +128,7 @@ declare class Functions {
124
128
  * @param {Runtime} runtime - Execution runtime.
125
129
  * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
126
130
  * @param {string[]} events - Events list. Maximum of 100 events are allowed.
127
- * @param {string} schedule - Schedule CRON syntax.
131
+ * @param {string} schedule - Schedule CRON syntax. Cannot be combined with interval.
128
132
  * @param {number} timeout - Function maximum execution time in seconds.
129
133
  * @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
130
134
  * @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
@@ -140,12 +144,14 @@ declare class Functions {
140
144
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
141
145
  * @param {string} buildSpecification - Build specification for the function deployments.
142
146
  * @param {string} runtimeSpecification - Runtime specification for the function executions.
143
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
147
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
148
+ * @param {number} interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule.
149
+ * @param {string} description - Optional description for the function.
144
150
  * @throws {OwbaseException}
145
151
  * @returns {Promise<Models.Function>}
146
152
  * @deprecated Use the object parameter style method for a better developer experience.
147
153
  */
148
- create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
154
+ create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, interval?: number, description?: string): Promise<Models.Function>;
149
155
  /**
150
156
  * Get a list of all runtimes that are currently active on your instance.
151
157
  *
@@ -214,7 +220,7 @@ declare class Functions {
214
220
  * @param {Runtime} params.runtime - Execution runtime.
215
221
  * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
216
222
  * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
217
- * @param {string} params.schedule - Schedule CRON syntax.
223
+ * @param {string} params.schedule - Schedule CRON syntax. Cannot be combined with interval.
218
224
  * @param {number} params.timeout - Maximum execution time in seconds.
219
225
  * @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
220
226
  * @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
@@ -230,7 +236,9 @@ declare class Functions {
230
236
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
231
237
  * @param {string} params.buildSpecification - Build specification for the function deployments.
232
238
  * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
233
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
239
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
240
+ * @param {number} params.interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule. When omitted, the current interval is kept unless schedule is set.
241
+ * @param {string} params.description - Optional description for the function.
234
242
  * @throws {OwbaseException}
235
243
  * @returns {Promise<Models.Function>}
236
244
  */
@@ -257,6 +265,8 @@ declare class Functions {
257
265
  buildSpecification?: string;
258
266
  runtimeSpecification?: string;
259
267
  deploymentRetention?: number;
268
+ interval?: number;
269
+ description?: string;
260
270
  }): Promise<Models.Function>;
261
271
  /**
262
272
  * Update function by its unique ID.
@@ -266,7 +276,7 @@ declare class Functions {
266
276
  * @param {Runtime} runtime - Execution runtime.
267
277
  * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
268
278
  * @param {string[]} events - Events list. Maximum of 100 events are allowed.
269
- * @param {string} schedule - Schedule CRON syntax.
279
+ * @param {string} schedule - Schedule CRON syntax. Cannot be combined with interval.
270
280
  * @param {number} timeout - Maximum execution time in seconds.
271
281
  * @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
272
282
  * @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
@@ -282,12 +292,14 @@ declare class Functions {
282
292
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
283
293
  * @param {string} buildSpecification - Build specification for the function deployments.
284
294
  * @param {string} runtimeSpecification - Runtime specification for the function executions.
285
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
295
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
296
+ * @param {number} interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule. When omitted, the current interval is kept unless schedule is set.
297
+ * @param {string} description - Optional description for the function.
286
298
  * @throws {OwbaseException}
287
299
  * @returns {Promise<Models.Function>}
288
300
  * @deprecated Use the object parameter style method for a better developer experience.
289
301
  */
290
- update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
302
+ update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, interval?: number, description?: string): Promise<Models.Function>;
291
303
  /**
292
304
  * Delete a function by its unique ID.
293
305
  *
@@ -728,6 +740,7 @@ declare class Functions {
728
740
  * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
729
741
  * @param {string} params.value - Variable value. Max length: 8192 chars.
730
742
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
743
+ * @param {string} params.description - Optional description for the variable.
731
744
  * @throws {OwbaseException}
732
745
  * @returns {Promise<Models.Variable>}
733
746
  */
@@ -737,6 +750,7 @@ declare class Functions {
737
750
  key: string;
738
751
  value: string;
739
752
  secret?: boolean;
753
+ description?: string;
740
754
  }): Promise<Models.Variable>;
741
755
  /**
742
756
  * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
@@ -746,11 +760,12 @@ declare class Functions {
746
760
  * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
747
761
  * @param {string} value - Variable value. Max length: 8192 chars.
748
762
  * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
763
+ * @param {string} description - Optional description for the variable.
749
764
  * @throws {OwbaseException}
750
765
  * @returns {Promise<Models.Variable>}
751
766
  * @deprecated Use the object parameter style method for a better developer experience.
752
767
  */
753
- createVariable(functionId: string, variableId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
768
+ createVariable(functionId: string, variableId: string, key: string, value: string, secret?: boolean, description?: string): Promise<Models.Variable>;
754
769
  /**
755
770
  * Get a variable by its unique ID.
756
771
  *
@@ -781,6 +796,7 @@ declare class Functions {
781
796
  * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
782
797
  * @param {string} params.value - Variable value. Max length: 8192 chars.
783
798
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
799
+ * @param {string} params.description - Optional description for the variable.
784
800
  * @throws {OwbaseException}
785
801
  * @returns {Promise<Models.Variable>}
786
802
  */
@@ -790,6 +806,7 @@ declare class Functions {
790
806
  key?: string;
791
807
  value?: string;
792
808
  secret?: boolean;
809
+ description?: string;
793
810
  }): Promise<Models.Variable>;
794
811
  /**
795
812
  * Update variable by its unique ID.
@@ -799,11 +816,12 @@ declare class Functions {
799
816
  * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
800
817
  * @param {string} value - Variable value. Max length: 8192 chars.
801
818
  * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
819
+ * @param {string} description - Optional description for the variable.
802
820
  * @throws {OwbaseException}
803
821
  * @returns {Promise<Models.Variable>}
804
822
  * @deprecated Use the object parameter style method for a better developer experience.
805
823
  */
806
- updateVariable(functionId: string, variableId: string, key?: string, value?: string, secret?: boolean): Promise<Models.Variable>;
824
+ updateVariable(functionId: string, variableId: string, key?: string, value?: string, secret?: boolean, description?: string): Promise<Models.Variable>;
807
825
  /**
808
826
  * Delete a variable by its unique ID.
809
827
  *
@@ -65,7 +65,9 @@ class Functions {
65
65
  providerPaths: rest[17],
66
66
  buildSpecification: rest[18],
67
67
  runtimeSpecification: rest[19],
68
- deploymentRetention: rest[20]
68
+ deploymentRetention: rest[20],
69
+ interval: rest[21],
70
+ description: rest[22]
69
71
  };
70
72
  }
71
73
  const functionId = params.functionId;
@@ -90,6 +92,8 @@ class Functions {
90
92
  const buildSpecification = params.buildSpecification;
91
93
  const runtimeSpecification = params.runtimeSpecification;
92
94
  const deploymentRetention = params.deploymentRetention;
95
+ const interval = params.interval;
96
+ const description = params.description;
93
97
  if (typeof functionId === "undefined") {
94
98
  throw new client.OwbaseException(
95
99
  'Missing required parameter: "functionId"'
@@ -169,6 +173,12 @@ class Functions {
169
173
  if (typeof deploymentRetention !== "undefined") {
170
174
  apiPayload["deploymentRetention"] = deploymentRetention;
171
175
  }
176
+ if (typeof interval !== "undefined") {
177
+ apiPayload["interval"] = interval;
178
+ }
179
+ if (typeof description !== "undefined") {
180
+ apiPayload["description"] = description;
181
+ }
172
182
  const uri = new URL(this.client.config.endpoint + apiPath);
173
183
  const apiHeaders = {
174
184
  "X-Owbase-Project": this.client.config.project,
@@ -280,7 +290,9 @@ class Functions {
280
290
  providerPaths: rest[17],
281
291
  buildSpecification: rest[18],
282
292
  runtimeSpecification: rest[19],
283
- deploymentRetention: rest[20]
293
+ deploymentRetention: rest[20],
294
+ interval: rest[21],
295
+ description: rest[22]
284
296
  };
285
297
  }
286
298
  const functionId = params.functionId;
@@ -305,6 +317,8 @@ class Functions {
305
317
  const buildSpecification = params.buildSpecification;
306
318
  const runtimeSpecification = params.runtimeSpecification;
307
319
  const deploymentRetention = params.deploymentRetention;
320
+ const interval = params.interval;
321
+ const description = params.description;
308
322
  if (typeof functionId === "undefined" || functionId === "") {
309
323
  throw new client.OwbaseException(
310
324
  'Missing required parameter: "functionId"'
@@ -381,6 +395,12 @@ class Functions {
381
395
  if (typeof deploymentRetention !== "undefined") {
382
396
  apiPayload["deploymentRetention"] = deploymentRetention;
383
397
  }
398
+ if (typeof interval !== "undefined") {
399
+ apiPayload["interval"] = interval;
400
+ }
401
+ if (typeof description !== "undefined") {
402
+ apiPayload["description"] = description;
403
+ }
384
404
  const uri = new URL(this.client.config.endpoint + apiPath);
385
405
  const apiHeaders = {
386
406
  "X-Owbase-Project": this.client.config.project,
@@ -1092,7 +1112,8 @@ class Functions {
1092
1112
  variableId: rest[0],
1093
1113
  key: rest[1],
1094
1114
  value: rest[2],
1095
- secret: rest[3]
1115
+ secret: rest[3],
1116
+ description: rest[4]
1096
1117
  };
1097
1118
  }
1098
1119
  const functionId = params.functionId;
@@ -1100,6 +1121,7 @@ class Functions {
1100
1121
  const key = params.key;
1101
1122
  const value = params.value;
1102
1123
  const secret = params.secret;
1124
+ const description = params.description;
1103
1125
  if (typeof functionId === "undefined" || functionId === "") {
1104
1126
  throw new client.OwbaseException(
1105
1127
  'Missing required parameter: "functionId"'
@@ -1133,6 +1155,9 @@ class Functions {
1133
1155
  if (typeof secret !== "undefined") {
1134
1156
  apiPayload["secret"] = secret;
1135
1157
  }
1158
+ if (typeof description !== "undefined") {
1159
+ apiPayload["description"] = description;
1160
+ }
1136
1161
  const uri = new URL(this.client.config.endpoint + apiPath);
1137
1162
  const apiHeaders = {
1138
1163
  "X-Owbase-Project": this.client.config.project,
@@ -1182,7 +1207,8 @@ class Functions {
1182
1207
  variableId: rest[0],
1183
1208
  key: rest[1],
1184
1209
  value: rest[2],
1185
- secret: rest[3]
1210
+ secret: rest[3],
1211
+ description: rest[4]
1186
1212
  };
1187
1213
  }
1188
1214
  const functionId = params.functionId;
@@ -1190,6 +1216,7 @@ class Functions {
1190
1216
  const key = params.key;
1191
1217
  const value = params.value;
1192
1218
  const secret = params.secret;
1219
+ const description = params.description;
1193
1220
  if (typeof functionId === "undefined" || functionId === "") {
1194
1221
  throw new client.OwbaseException(
1195
1222
  'Missing required parameter: "functionId"'
@@ -1211,6 +1238,9 @@ class Functions {
1211
1238
  if (typeof secret !== "undefined") {
1212
1239
  apiPayload["secret"] = secret;
1213
1240
  }
1241
+ if (typeof description !== "undefined") {
1242
+ apiPayload["description"] = description;
1243
+ }
1214
1244
  const uri = new URL(this.client.config.endpoint + apiPath);
1215
1245
  const apiHeaders = {
1216
1246
  "X-Owbase-Project": this.client.config.project,