@owbase/node 1.0.0 → 2.0.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 (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 +1 -1
@@ -90,8 +90,9 @@ declare class Sites {
90
90
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
91
91
  * @param {string} params.buildSpecification - Build specification for the site deployments.
92
92
  * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
93
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
93
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
94
94
  * @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
95
+ * @param {string} params.description - Optional description for the site.
95
96
  * @throws {OwbaseException}
96
97
  * @returns {Promise<Models.Site>}
97
98
  */
@@ -120,6 +121,7 @@ declare class Sites {
120
121
  runtimeSpecification?: string;
121
122
  deploymentRetention?: number;
122
123
  scopes?: ProjectKeyScopes[];
124
+ description?: string;
123
125
  }): Promise<Models.Site>;
124
126
  /**
125
127
  * Create a new site.
@@ -146,13 +148,14 @@ declare class Sites {
146
148
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
147
149
  * @param {string} buildSpecification - Build specification for the site deployments.
148
150
  * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
149
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
151
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
150
152
  * @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
153
+ * @param {string} description - Optional description for the site.
151
154
  * @throws {OwbaseException}
152
155
  * @returns {Promise<Models.Site>}
153
156
  * @deprecated Use the object parameter style method for a better developer experience.
154
157
  */
155
- create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[]): Promise<Models.Site>;
158
+ create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
156
159
  /**
157
160
  * Get a list of all frameworks that are currently available on the server instance.
158
161
  *
@@ -238,8 +241,9 @@ declare class Sites {
238
241
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
239
242
  * @param {string} params.buildSpecification - Build specification for the site deployments.
240
243
  * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
241
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
244
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
242
245
  * @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
246
+ * @param {string} params.description - Optional description for the site.
243
247
  * @throws {OwbaseException}
244
248
  * @returns {Promise<Models.Site>}
245
249
  */
@@ -268,6 +272,7 @@ declare class Sites {
268
272
  runtimeSpecification?: string;
269
273
  deploymentRetention?: number;
270
274
  scopes?: ProjectKeyScopes[];
275
+ description?: string;
271
276
  }): Promise<Models.Site>;
272
277
  /**
273
278
  * Update site by its unique ID.
@@ -294,13 +299,14 @@ declare class Sites {
294
299
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
295
300
  * @param {string} buildSpecification - Build specification for the site deployments.
296
301
  * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
297
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
302
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
298
303
  * @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
304
+ * @param {string} description - Optional description for the site.
299
305
  * @throws {OwbaseException}
300
306
  * @returns {Promise<Models.Site>}
301
307
  * @deprecated Use the object parameter style method for a better developer experience.
302
308
  */
303
- update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[]): Promise<Models.Site>;
309
+ update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
304
310
  /**
305
311
  * Delete a site by its unique ID.
306
312
  *
@@ -696,6 +702,7 @@ declare class Sites {
696
702
  * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
697
703
  * @param {string} params.value - Variable value. Max length: 8192 chars.
698
704
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
705
+ * @param {string} params.description - Optional description for the variable.
699
706
  * @throws {OwbaseException}
700
707
  * @returns {Promise<Models.Variable>}
701
708
  */
@@ -705,6 +712,7 @@ declare class Sites {
705
712
  key: string;
706
713
  value: string;
707
714
  secret?: boolean;
715
+ description?: string;
708
716
  }): Promise<Models.Variable>;
709
717
  /**
710
718
  * Create a new site variable. These variables can be accessed during build and runtime (server-side rendering) as environment variables.
@@ -714,11 +722,12 @@ declare class Sites {
714
722
  * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
715
723
  * @param {string} value - Variable value. Max length: 8192 chars.
716
724
  * @param {boolean} secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
725
+ * @param {string} description - Optional description for the variable.
717
726
  * @throws {OwbaseException}
718
727
  * @returns {Promise<Models.Variable>}
719
728
  * @deprecated Use the object parameter style method for a better developer experience.
720
729
  */
721
- createVariable(siteId: string, variableId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
730
+ createVariable(siteId: string, variableId: string, key: string, value: string, secret?: boolean, description?: string): Promise<Models.Variable>;
722
731
  /**
723
732
  * Get a variable by its unique ID.
724
733
  *
@@ -749,6 +758,7 @@ declare class Sites {
749
758
  * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
750
759
  * @param {string} params.value - Variable value. Max length: 8192 chars.
751
760
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
761
+ * @param {string} params.description - Optional description for the variable.
752
762
  * @throws {OwbaseException}
753
763
  * @returns {Promise<Models.Variable>}
754
764
  */
@@ -758,6 +768,7 @@ declare class Sites {
758
768
  key?: string;
759
769
  value?: string;
760
770
  secret?: boolean;
771
+ description?: string;
761
772
  }): Promise<Models.Variable>;
762
773
  /**
763
774
  * Update variable by its unique ID.
@@ -767,11 +778,12 @@ declare class Sites {
767
778
  * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
768
779
  * @param {string} value - Variable value. Max length: 8192 chars.
769
780
  * @param {boolean} secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
781
+ * @param {string} description - Optional description for the variable.
770
782
  * @throws {OwbaseException}
771
783
  * @returns {Promise<Models.Variable>}
772
784
  * @deprecated Use the object parameter style method for a better developer experience.
773
785
  */
774
- updateVariable(siteId: string, variableId: string, key?: string, value?: string, secret?: boolean): Promise<Models.Variable>;
786
+ updateVariable(siteId: string, variableId: string, key?: string, value?: string, secret?: boolean, description?: string): Promise<Models.Variable>;
775
787
  /**
776
788
  * Delete a variable by its unique ID.
777
789
  *
@@ -90,8 +90,9 @@ declare class Sites {
90
90
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
91
91
  * @param {string} params.buildSpecification - Build specification for the site deployments.
92
92
  * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
93
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
93
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
94
94
  * @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
95
+ * @param {string} params.description - Optional description for the site.
95
96
  * @throws {OwbaseException}
96
97
  * @returns {Promise<Models.Site>}
97
98
  */
@@ -120,6 +121,7 @@ declare class Sites {
120
121
  runtimeSpecification?: string;
121
122
  deploymentRetention?: number;
122
123
  scopes?: ProjectKeyScopes[];
124
+ description?: string;
123
125
  }): Promise<Models.Site>;
124
126
  /**
125
127
  * Create a new site.
@@ -146,13 +148,14 @@ declare class Sites {
146
148
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
147
149
  * @param {string} buildSpecification - Build specification for the site deployments.
148
150
  * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
149
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
151
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
150
152
  * @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
153
+ * @param {string} description - Optional description for the site.
151
154
  * @throws {OwbaseException}
152
155
  * @returns {Promise<Models.Site>}
153
156
  * @deprecated Use the object parameter style method for a better developer experience.
154
157
  */
155
- create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[]): Promise<Models.Site>;
158
+ create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
156
159
  /**
157
160
  * Get a list of all frameworks that are currently available on the server instance.
158
161
  *
@@ -238,8 +241,9 @@ declare class Sites {
238
241
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
239
242
  * @param {string} params.buildSpecification - Build specification for the site deployments.
240
243
  * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
241
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
244
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
242
245
  * @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
246
+ * @param {string} params.description - Optional description for the site.
243
247
  * @throws {OwbaseException}
244
248
  * @returns {Promise<Models.Site>}
245
249
  */
@@ -268,6 +272,7 @@ declare class Sites {
268
272
  runtimeSpecification?: string;
269
273
  deploymentRetention?: number;
270
274
  scopes?: ProjectKeyScopes[];
275
+ description?: string;
271
276
  }): Promise<Models.Site>;
272
277
  /**
273
278
  * Update site by its unique ID.
@@ -294,13 +299,14 @@ declare class Sites {
294
299
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
295
300
  * @param {string} buildSpecification - Build specification for the site deployments.
296
301
  * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
297
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
302
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
298
303
  * @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
304
+ * @param {string} description - Optional description for the site.
299
305
  * @throws {OwbaseException}
300
306
  * @returns {Promise<Models.Site>}
301
307
  * @deprecated Use the object parameter style method for a better developer experience.
302
308
  */
303
- update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[]): Promise<Models.Site>;
309
+ update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
304
310
  /**
305
311
  * Delete a site by its unique ID.
306
312
  *
@@ -696,6 +702,7 @@ declare class Sites {
696
702
  * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
697
703
  * @param {string} params.value - Variable value. Max length: 8192 chars.
698
704
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
705
+ * @param {string} params.description - Optional description for the variable.
699
706
  * @throws {OwbaseException}
700
707
  * @returns {Promise<Models.Variable>}
701
708
  */
@@ -705,6 +712,7 @@ declare class Sites {
705
712
  key: string;
706
713
  value: string;
707
714
  secret?: boolean;
715
+ description?: string;
708
716
  }): Promise<Models.Variable>;
709
717
  /**
710
718
  * Create a new site variable. These variables can be accessed during build and runtime (server-side rendering) as environment variables.
@@ -714,11 +722,12 @@ declare class Sites {
714
722
  * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
715
723
  * @param {string} value - Variable value. Max length: 8192 chars.
716
724
  * @param {boolean} secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
725
+ * @param {string} description - Optional description for the variable.
717
726
  * @throws {OwbaseException}
718
727
  * @returns {Promise<Models.Variable>}
719
728
  * @deprecated Use the object parameter style method for a better developer experience.
720
729
  */
721
- createVariable(siteId: string, variableId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
730
+ createVariable(siteId: string, variableId: string, key: string, value: string, secret?: boolean, description?: string): Promise<Models.Variable>;
722
731
  /**
723
732
  * Get a variable by its unique ID.
724
733
  *
@@ -749,6 +758,7 @@ declare class Sites {
749
758
  * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
750
759
  * @param {string} params.value - Variable value. Max length: 8192 chars.
751
760
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
761
+ * @param {string} params.description - Optional description for the variable.
752
762
  * @throws {OwbaseException}
753
763
  * @returns {Promise<Models.Variable>}
754
764
  */
@@ -758,6 +768,7 @@ declare class Sites {
758
768
  key?: string;
759
769
  value?: string;
760
770
  secret?: boolean;
771
+ description?: string;
761
772
  }): Promise<Models.Variable>;
762
773
  /**
763
774
  * Update variable by its unique ID.
@@ -767,11 +778,12 @@ declare class Sites {
767
778
  * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
768
779
  * @param {string} value - Variable value. Max length: 8192 chars.
769
780
  * @param {boolean} secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
781
+ * @param {string} description - Optional description for the variable.
770
782
  * @throws {OwbaseException}
771
783
  * @returns {Promise<Models.Variable>}
772
784
  * @deprecated Use the object parameter style method for a better developer experience.
773
785
  */
774
- updateVariable(siteId: string, variableId: string, key?: string, value?: string, secret?: boolean): Promise<Models.Variable>;
786
+ updateVariable(siteId: string, variableId: string, key?: string, value?: string, secret?: boolean, description?: string): Promise<Models.Variable>;
775
787
  /**
776
788
  * Delete a variable by its unique ID.
777
789
  *
@@ -67,7 +67,8 @@ class Sites {
67
67
  buildSpecification: rest[19],
68
68
  runtimeSpecification: rest[20],
69
69
  deploymentRetention: rest[21],
70
- scopes: rest[22]
70
+ scopes: rest[22],
71
+ description: rest[23]
71
72
  };
72
73
  }
73
74
  const siteId = params.siteId;
@@ -94,6 +95,7 @@ class Sites {
94
95
  const runtimeSpecification = params.runtimeSpecification;
95
96
  const deploymentRetention = params.deploymentRetention;
96
97
  const scopes = params.scopes;
98
+ const description = params.description;
97
99
  if (typeof siteId === "undefined") {
98
100
  throw new client.OwbaseException('Missing required parameter: "siteId"');
99
101
  }
@@ -184,6 +186,9 @@ class Sites {
184
186
  if (typeof scopes !== "undefined") {
185
187
  apiPayload["scopes"] = scopes;
186
188
  }
189
+ if (typeof description !== "undefined") {
190
+ apiPayload["description"] = description;
191
+ }
187
192
  const uri = new URL(this.client.config.endpoint + apiPath);
188
193
  const apiHeaders = {
189
194
  "X-Owbase-Project": this.client.config.project,
@@ -295,7 +300,8 @@ class Sites {
295
300
  buildSpecification: rest[19],
296
301
  runtimeSpecification: rest[20],
297
302
  deploymentRetention: rest[21],
298
- scopes: rest[22]
303
+ scopes: rest[22],
304
+ description: rest[23]
299
305
  };
300
306
  }
301
307
  const siteId = params.siteId;
@@ -322,6 +328,7 @@ class Sites {
322
328
  const runtimeSpecification = params.runtimeSpecification;
323
329
  const deploymentRetention = params.deploymentRetention;
324
330
  const scopes = params.scopes;
331
+ const description = params.description;
325
332
  if (typeof siteId === "undefined" || siteId === "") {
326
333
  throw new client.OwbaseException('Missing required parameter: "siteId"');
327
334
  }
@@ -407,6 +414,9 @@ class Sites {
407
414
  if (typeof scopes !== "undefined") {
408
415
  apiPayload["scopes"] = scopes;
409
416
  }
417
+ if (typeof description !== "undefined") {
418
+ apiPayload["description"] = description;
419
+ }
410
420
  const uri = new URL(this.client.config.endpoint + apiPath);
411
421
  const apiHeaders = {
412
422
  "X-Owbase-Project": this.client.config.project,
@@ -1023,7 +1033,8 @@ class Sites {
1023
1033
  variableId: rest[0],
1024
1034
  key: rest[1],
1025
1035
  value: rest[2],
1026
- secret: rest[3]
1036
+ secret: rest[3],
1037
+ description: rest[4]
1027
1038
  };
1028
1039
  }
1029
1040
  const siteId = params.siteId;
@@ -1031,6 +1042,7 @@ class Sites {
1031
1042
  const key = params.key;
1032
1043
  const value = params.value;
1033
1044
  const secret = params.secret;
1045
+ const description = params.description;
1034
1046
  if (typeof siteId === "undefined" || siteId === "") {
1035
1047
  throw new client.OwbaseException('Missing required parameter: "siteId"');
1036
1048
  }
@@ -1062,6 +1074,9 @@ class Sites {
1062
1074
  if (typeof secret !== "undefined") {
1063
1075
  apiPayload["secret"] = secret;
1064
1076
  }
1077
+ if (typeof description !== "undefined") {
1078
+ apiPayload["description"] = description;
1079
+ }
1065
1080
  const uri = new URL(this.client.config.endpoint + apiPath);
1066
1081
  const apiHeaders = {
1067
1082
  "X-Owbase-Project": this.client.config.project,
@@ -1109,7 +1124,8 @@ class Sites {
1109
1124
  variableId: rest[0],
1110
1125
  key: rest[1],
1111
1126
  value: rest[2],
1112
- secret: rest[3]
1127
+ secret: rest[3],
1128
+ description: rest[4]
1113
1129
  };
1114
1130
  }
1115
1131
  const siteId = params.siteId;
@@ -1117,6 +1133,7 @@ class Sites {
1117
1133
  const key = params.key;
1118
1134
  const value = params.value;
1119
1135
  const secret = params.secret;
1136
+ const description = params.description;
1120
1137
  if (typeof siteId === "undefined" || siteId === "") {
1121
1138
  throw new client.OwbaseException('Missing required parameter: "siteId"');
1122
1139
  }
@@ -1136,6 +1153,9 @@ class Sites {
1136
1153
  if (typeof secret !== "undefined") {
1137
1154
  apiPayload["secret"] = secret;
1138
1155
  }
1156
+ if (typeof description !== "undefined") {
1157
+ apiPayload["description"] = description;
1158
+ }
1139
1159
  const uri = new URL(this.client.config.endpoint + apiPath);
1140
1160
  const apiHeaders = {
1141
1161
  "X-Owbase-Project": this.client.config.project,