@athenaintel/sdk 4.3.2244 → 4.3.2245

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 (48) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/assets/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/assets/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/assets/client/requests/CreateAssetRequestIn.d.ts +2 -0
  5. package/dist/cjs/api/resources/databases/client/Client.d.ts +77 -4
  6. package/dist/cjs/api/resources/databases/client/Client.js +296 -4
  7. package/dist/cjs/api/resources/databases/client/requests/DatabaseComputeSettingsUpdateRequestIn.d.ts +12 -0
  8. package/dist/cjs/api/resources/databases/client/requests/DatabaseComputeSettingsUpdateRequestIn.js +3 -0
  9. package/dist/cjs/api/resources/databases/client/requests/GetSettingsDatabasesRequest.d.ts +9 -0
  10. package/dist/cjs/api/resources/databases/client/requests/GetSettingsDatabasesRequest.js +3 -0
  11. package/dist/cjs/api/resources/databases/client/requests/WakeDatabasesRequest.d.ts +9 -0
  12. package/dist/cjs/api/resources/databases/client/requests/WakeDatabasesRequest.js +3 -0
  13. package/dist/cjs/api/resources/databases/client/requests/index.d.ts +3 -0
  14. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.d.ts +3 -0
  15. package/dist/cjs/api/types/DatabaseComputeSettingsResponseOut.d.ts +9 -0
  16. package/dist/cjs/api/types/DatabaseComputeSettingsResponseOut.js +3 -0
  17. package/dist/cjs/api/types/DatabaseStatusResponse.d.ts +2 -0
  18. package/dist/cjs/api/types/DatabaseWakeResponseOut.d.ts +19 -0
  19. package/dist/cjs/api/types/DatabaseWakeResponseOut.js +12 -0
  20. package/dist/cjs/api/types/index.d.ts +2 -0
  21. package/dist/cjs/api/types/index.js +2 -0
  22. package/dist/cjs/version.d.ts +1 -1
  23. package/dist/cjs/version.js +1 -1
  24. package/dist/esm/BaseClient.mjs +2 -2
  25. package/dist/esm/api/resources/assets/client/Client.d.mts +1 -1
  26. package/dist/esm/api/resources/assets/client/Client.mjs +1 -1
  27. package/dist/esm/api/resources/assets/client/requests/CreateAssetRequestIn.d.mts +2 -0
  28. package/dist/esm/api/resources/databases/client/Client.d.mts +77 -4
  29. package/dist/esm/api/resources/databases/client/Client.mjs +296 -4
  30. package/dist/esm/api/resources/databases/client/requests/DatabaseComputeSettingsUpdateRequestIn.d.mts +12 -0
  31. package/dist/esm/api/resources/databases/client/requests/DatabaseComputeSettingsUpdateRequestIn.mjs +2 -0
  32. package/dist/esm/api/resources/databases/client/requests/GetSettingsDatabasesRequest.d.mts +9 -0
  33. package/dist/esm/api/resources/databases/client/requests/GetSettingsDatabasesRequest.mjs +2 -0
  34. package/dist/esm/api/resources/databases/client/requests/WakeDatabasesRequest.d.mts +9 -0
  35. package/dist/esm/api/resources/databases/client/requests/WakeDatabasesRequest.mjs +2 -0
  36. package/dist/esm/api/resources/databases/client/requests/index.d.mts +3 -0
  37. package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.d.mts +3 -0
  38. package/dist/esm/api/types/DatabaseComputeSettingsResponseOut.d.mts +9 -0
  39. package/dist/esm/api/types/DatabaseComputeSettingsResponseOut.mjs +2 -0
  40. package/dist/esm/api/types/DatabaseStatusResponse.d.mts +2 -0
  41. package/dist/esm/api/types/DatabaseWakeResponseOut.d.mts +19 -0
  42. package/dist/esm/api/types/DatabaseWakeResponseOut.mjs +9 -0
  43. package/dist/esm/api/types/index.d.mts +2 -0
  44. package/dist/esm/api/types/index.mjs +2 -0
  45. package/dist/esm/version.d.mts +1 -1
  46. package/dist/esm/version.mjs +1 -1
  47. package/package.json +1 -1
  48. package/reference.md +210 -5
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var DatabaseWakeResponseOut;
3
+ (function (DatabaseWakeResponseOut) {
4
+ /** `running`: the compute was already running; its idle clock was reset. `starting`: the compute is starting; poll `GET /databases/{asset_id}/compute-status` until it reports `running`. */
5
+ DatabaseWakeResponseOut.Status = {
6
+ Running: "running",
7
+ Starting: "starting",
8
+ };
9
+ })(DatabaseWakeResponseOut || (DatabaseWakeResponseOut = {}));
@@ -52,6 +52,7 @@ export * from "./CreateAssetResponseOut.mjs";
52
52
  export * from "./CreateNewSheetTabResponse.mjs";
53
53
  export * from "./CreateProjectResponseOut.mjs";
54
54
  export * from "./DatabaseColumnInfo.mjs";
55
+ export * from "./DatabaseComputeSettingsResponseOut.mjs";
55
56
  export * from "./DatabaseDataResponse.mjs";
56
57
  export * from "./DatabaseMutationResponse.mjs";
57
58
  export * from "./DatabaseSqlResponse.mjs";
@@ -59,6 +60,7 @@ export * from "./DatabaseStatusResponse.mjs";
59
60
  export * from "./DatabaseTableInfo.mjs";
60
61
  export * from "./DatabaseTableSchemaResponse.mjs";
61
62
  export * from "./DatabaseTablesResponse.mjs";
63
+ export * from "./DatabaseWakeResponseOut.mjs";
62
64
  export * from "./DataFrameRequestOut.mjs";
63
65
  export * from "./DataFrameUnknownFormatError.mjs";
64
66
  export * from "./DefaultVisibility.mjs";
@@ -52,6 +52,7 @@ export * from "./CreateAssetResponseOut.mjs";
52
52
  export * from "./CreateNewSheetTabResponse.mjs";
53
53
  export * from "./CreateProjectResponseOut.mjs";
54
54
  export * from "./DatabaseColumnInfo.mjs";
55
+ export * from "./DatabaseComputeSettingsResponseOut.mjs";
55
56
  export * from "./DatabaseDataResponse.mjs";
56
57
  export * from "./DatabaseMutationResponse.mjs";
57
58
  export * from "./DatabaseSqlResponse.mjs";
@@ -59,6 +60,7 @@ export * from "./DatabaseStatusResponse.mjs";
59
60
  export * from "./DatabaseTableInfo.mjs";
60
61
  export * from "./DatabaseTableSchemaResponse.mjs";
61
62
  export * from "./DatabaseTablesResponse.mjs";
63
+ export * from "./DatabaseWakeResponseOut.mjs";
62
64
  export * from "./DataFrameRequestOut.mjs";
63
65
  export * from "./DataFrameUnknownFormatError.mjs";
64
66
  export * from "./DefaultVisibility.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2244";
1
+ export declare const SDK_VERSION = "4.3.2245";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2244";
1
+ export const SDK_VERSION = "4.3.2245";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2244",
3
+ "version": "4.3.2245",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -648,7 +648,7 @@ await client.assets.convertExcelToSheet({
648
648
  <dl>
649
649
  <dd>
650
650
 
651
- Create a new asset such as a spreadsheet, document, folder, database, computer, user interface, skill, collab agent, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. Computers accept the same configuration as the Athena UI's creation dialog: template, provider, cpu, memory (GiB), disk (GiB) and env_vars. Sizes must be offered by the environment's computer resource policy, and only admins may pick a size other than the template default (403 otherwise). In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
651
+ Create a new asset such as a spreadsheet, document, folder, database, computer, user interface, skill, collab agent, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. Computers accept the same configuration as the Athena UI's creation dialog: template, provider, cpu, memory (GiB), disk (GiB) and env_vars. Sizes must be offered by the environment's computer resource policy, and only admins may pick a size other than the template default (403 otherwise). In capability enforce mode, computer creation requires computer.create and returns 403 when denied. Databases accept suspend_timeout_seconds, the auto-suspend window from the database's Settings in Athena: 0 keeps the database running (it never suspends, and keeps using capacity), otherwise 60 to 86400 seconds. A database is provisioned in the background: poll GET /api/v0/databases/{asset_id}/compute-status until it reports running or suspended.
652
652
  </dd>
653
653
  </dl>
654
654
  </dd>
@@ -2462,10 +2462,13 @@ Check if a database is running, suspended, or starting up. Poll this endpoint to
2462
2462
 
2463
2463
  **Status Values:**
2464
2464
  - `running` - Database is active and accepting connections
2465
- - `suspended` - Database is suspended (scale-to-zero), will auto-resume on first query
2466
- - `starting` - Database is waking up
2467
- - `failed` - Database failed to start
2468
- - `unknown` - Status could not be determined
2465
+ - `suspended` - Database is suspended (scale-to-zero). It wakes on `POST /databases/{asset_id}/wake` or on the first SQL request. When `reason` is `ComputeUnschedulable`, no node could host its compute size: waking it only restarts the same wait
2466
+ - `starting` - Database is waking up, or its compute is being recreated
2467
+ - `creating` - Database is being created; it has no compute yet
2468
+ - `failed` - Database failed to start, or its creation failed (`message` says which)
2469
+ - `unknown` - Status could not be determined (the control plane did not answer); retry
2470
+
2471
+ A database suspends (scales to zero) after `suspend_timeout_seconds` without activity; `GET`/`PATCH /databases/{asset_id}/settings` read and set that window, and 0 keeps it running. Reading the compute status or the settings never wakes a suspended database. Two things do: `POST /databases/{asset_id}/wake`, which answers at once while the compute starts, or any request that runs SQL on it, such as `POST /databases/{asset_id}/sql`, which waits for the compute up to 120 seconds; if the compute is still starting then, the answer is 503 with `Retry-After` and the statement did not run. A cold start usually takes 30 seconds to 2 minutes.
2469
2472
  </dd>
2470
2473
  </dl>
2471
2474
  </dd>
@@ -2962,6 +2965,141 @@ await client.databases.getTableSchema({
2962
2965
  </dl>
2963
2966
 
2964
2967
 
2968
+ </dd>
2969
+ </dl>
2970
+ </details>
2971
+
2972
+ <details><summary><code>client.databases.<a href="/src/api/resources/databases/client/Client.ts">getSettings</a>({ ...params }) -> AthenaIntelligence.DatabaseComputeSettingsResponseOut</code></summary>
2973
+ <dl>
2974
+ <dd>
2975
+
2976
+ #### 📝 Description
2977
+
2978
+ <dl>
2979
+ <dd>
2980
+
2981
+ <dl>
2982
+ <dd>
2983
+
2984
+ Read the database's auto-suspend window, the same setting as auto-suspend in the database's Settings in Athena. Reading never wakes the database.
2985
+
2986
+ A database suspends (scales to zero) after `suspend_timeout_seconds` without activity; `GET`/`PATCH /databases/{asset_id}/settings` read and set that window, and 0 keeps it running. Reading the compute status or the settings never wakes a suspended database. Two things do: `POST /databases/{asset_id}/wake`, which answers at once while the compute starts, or any request that runs SQL on it, such as `POST /databases/{asset_id}/sql`, which waits for the compute up to 120 seconds; if the compute is still starting then, the answer is 503 with `Retry-After` and the statement did not run. A cold start usually takes 30 seconds to 2 minutes.
2987
+ </dd>
2988
+ </dl>
2989
+ </dd>
2990
+ </dl>
2991
+
2992
+ #### 🔌 Usage
2993
+
2994
+ <dl>
2995
+ <dd>
2996
+
2997
+ <dl>
2998
+ <dd>
2999
+
3000
+ ```typescript
3001
+ await client.databases.getSettings({
3002
+ asset_id: "asset_id"
3003
+ });
3004
+
3005
+ ```
3006
+ </dd>
3007
+ </dl>
3008
+ </dd>
3009
+ </dl>
3010
+
3011
+ #### ⚙️ Parameters
3012
+
3013
+ <dl>
3014
+ <dd>
3015
+
3016
+ <dl>
3017
+ <dd>
3018
+
3019
+ **request:** `AthenaIntelligence.GetSettingsDatabasesRequest`
3020
+
3021
+ </dd>
3022
+ </dl>
3023
+
3024
+ <dl>
3025
+ <dd>
3026
+
3027
+ **requestOptions:** `DatabasesClient.RequestOptions`
3028
+
3029
+ </dd>
3030
+ </dl>
3031
+ </dd>
3032
+ </dl>
3033
+
3034
+
3035
+ </dd>
3036
+ </dl>
3037
+ </details>
3038
+
3039
+ <details><summary><code>client.databases.<a href="/src/api/resources/databases/client/Client.ts">updateSettings</a>({ ...params }) -> AthenaIntelligence.DatabaseComputeSettingsResponseOut</code></summary>
3040
+ <dl>
3041
+ <dd>
3042
+
3043
+ #### 📝 Description
3044
+
3045
+ <dl>
3046
+ <dd>
3047
+
3048
+ <dl>
3049
+ <dd>
3050
+
3051
+ Set the database's auto-suspend window: 0 keeps the database running (it never suspends, and keeps using compute capacity), otherwise 60 to 86400 seconds. The same setting, values and edit-access rule as auto-suspend in the database's Settings in Athena; the change applies at once and does not restart or wake the database.
3052
+
3053
+ A database suspends (scales to zero) after `suspend_timeout_seconds` without activity; `GET`/`PATCH /databases/{asset_id}/settings` read and set that window, and 0 keeps it running. Reading the compute status or the settings never wakes a suspended database. Two things do: `POST /databases/{asset_id}/wake`, which answers at once while the compute starts, or any request that runs SQL on it, such as `POST /databases/{asset_id}/sql`, which waits for the compute up to 120 seconds; if the compute is still starting then, the answer is 503 with `Retry-After` and the statement did not run. A cold start usually takes 30 seconds to 2 minutes.
3054
+ </dd>
3055
+ </dl>
3056
+ </dd>
3057
+ </dl>
3058
+
3059
+ #### 🔌 Usage
3060
+
3061
+ <dl>
3062
+ <dd>
3063
+
3064
+ <dl>
3065
+ <dd>
3066
+
3067
+ ```typescript
3068
+ await client.databases.updateSettings({
3069
+ asset_id: "asset_id",
3070
+ suspend_timeout_seconds: 3600
3071
+ });
3072
+
3073
+ ```
3074
+ </dd>
3075
+ </dl>
3076
+ </dd>
3077
+ </dl>
3078
+
3079
+ #### ⚙️ Parameters
3080
+
3081
+ <dl>
3082
+ <dd>
3083
+
3084
+ <dl>
3085
+ <dd>
3086
+
3087
+ **request:** `AthenaIntelligence.DatabaseComputeSettingsUpdateRequestIn`
3088
+
3089
+ </dd>
3090
+ </dl>
3091
+
3092
+ <dl>
3093
+ <dd>
3094
+
3095
+ **requestOptions:** `DatabasesClient.RequestOptions`
3096
+
3097
+ </dd>
3098
+ </dl>
3099
+ </dd>
3100
+ </dl>
3101
+
3102
+
2965
3103
  </dd>
2966
3104
  </dl>
2967
3105
  </details>
@@ -3028,6 +3166,73 @@ await client.databases.executeSql({
3028
3166
  </dl>
3029
3167
 
3030
3168
 
3169
+ </dd>
3170
+ </dl>
3171
+ </details>
3172
+
3173
+ <details><summary><code>client.databases.<a href="/src/api/resources/databases/client/Client.ts">wake</a>({ ...params }) -> AthenaIntelligence.DatabaseWakeResponseOut</code></summary>
3174
+ <dl>
3175
+ <dd>
3176
+
3177
+ #### 📝 Description
3178
+
3179
+ <dl>
3180
+ <dd>
3181
+
3182
+ <dl>
3183
+ <dd>
3184
+
3185
+ Start a suspended database's compute and answer at once, without waiting for it to run. Poll `GET /databases/{asset_id}/compute-status` until it reports `running`. Waking a running database resets its idle clock and answers 200 with `running`, so it is safe to call before every batch of work. The same action as Resume Database in Athena; it needs edit access to the database.
3186
+
3187
+ A database suspends (scales to zero) after `suspend_timeout_seconds` without activity; `GET`/`PATCH /databases/{asset_id}/settings` read and set that window, and 0 keeps it running. Reading the compute status or the settings never wakes a suspended database. Two things do: `POST /databases/{asset_id}/wake`, which answers at once while the compute starts, or any request that runs SQL on it, such as `POST /databases/{asset_id}/sql`, which waits for the compute up to 120 seconds; if the compute is still starting then, the answer is 503 with `Retry-After` and the statement did not run. A cold start usually takes 30 seconds to 2 minutes.
3188
+ </dd>
3189
+ </dl>
3190
+ </dd>
3191
+ </dl>
3192
+
3193
+ #### 🔌 Usage
3194
+
3195
+ <dl>
3196
+ <dd>
3197
+
3198
+ <dl>
3199
+ <dd>
3200
+
3201
+ ```typescript
3202
+ await client.databases.wake({
3203
+ asset_id: "asset_id"
3204
+ });
3205
+
3206
+ ```
3207
+ </dd>
3208
+ </dl>
3209
+ </dd>
3210
+ </dl>
3211
+
3212
+ #### ⚙️ Parameters
3213
+
3214
+ <dl>
3215
+ <dd>
3216
+
3217
+ <dl>
3218
+ <dd>
3219
+
3220
+ **request:** `AthenaIntelligence.WakeDatabasesRequest`
3221
+
3222
+ </dd>
3223
+ </dl>
3224
+
3225
+ <dl>
3226
+ <dd>
3227
+
3228
+ **requestOptions:** `DatabasesClient.RequestOptions`
3229
+
3230
+ </dd>
3231
+ </dl>
3232
+ </dd>
3233
+ </dl>
3234
+
3235
+
3031
3236
  </dd>
3032
3237
  </dl>
3033
3238
  </details>