@neon/sdk 1.5.0 → 2.1.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 (49) hide show
  1. package/README.md +194 -28
  2. package/dist/client/client/client.gen.js +1 -3
  3. package/dist/client/client/client.gen.js.map +1 -1
  4. package/dist/client/client/utils.gen.js +1 -3
  5. package/dist/client/client/utils.gen.js.map +1 -1
  6. package/dist/client/core/params.gen.js +13 -11
  7. package/dist/client/core/params.gen.js.map +1 -1
  8. package/dist/client/index.d.ts +3 -3
  9. package/dist/client/index.js +2 -2
  10. package/dist/client/raw.gen.d.ts +162 -32
  11. package/dist/client/raw.gen.d.ts.map +1 -1
  12. package/dist/client/raw.gen.js +8 -3
  13. package/dist/client/raw.gen.js.map +1 -1
  14. package/dist/client/sdk.gen.d.ts +142 -78
  15. package/dist/client/sdk.gen.d.ts.map +1 -1
  16. package/dist/client/sdk.gen.js +263 -96
  17. package/dist/client/sdk.gen.js.map +1 -1
  18. package/dist/client/types.gen.d.ts +1458 -321
  19. package/dist/client/types.gen.d.ts.map +1 -1
  20. package/dist/index.d.ts +5 -4
  21. package/dist/neon/client.d.ts +2 -0
  22. package/dist/neon/client.d.ts.map +1 -1
  23. package/dist/neon/client.js +2 -0
  24. package/dist/neon/client.js.map +1 -1
  25. package/dist/neon/context.js +2 -1
  26. package/dist/neon/context.js.map +1 -1
  27. package/dist/neon/coverage.d.ts.map +1 -1
  28. package/dist/neon/coverage.js +12 -2
  29. package/dist/neon/coverage.js.map +1 -1
  30. package/dist/neon/paginate.d.ts.map +1 -1
  31. package/dist/neon/paginate.js +5 -2
  32. package/dist/neon/paginate.js.map +1 -1
  33. package/dist/neon/resources/branches.d.ts +0 -7
  34. package/dist/neon/resources/branches.d.ts.map +1 -1
  35. package/dist/neon/resources/branches.js +6 -15
  36. package/dist/neon/resources/branches.js.map +1 -1
  37. package/dist/neon/resources/logs.d.ts +76 -0
  38. package/dist/neon/resources/logs.d.ts.map +1 -0
  39. package/dist/neon/resources/logs.js +90 -0
  40. package/dist/neon/resources/logs.js.map +1 -0
  41. package/dist/neon/resources/postgres.js +2 -1
  42. package/dist/neon/resources/postgres.js.map +1 -1
  43. package/dist/neon/resources/projects.d.ts +61 -4
  44. package/dist/neon/resources/projects.d.ts.map +1 -1
  45. package/dist/neon/resources/projects.js +71 -5
  46. package/dist/neon/resources/projects.js.map +1 -1
  47. package/dist/raw.d.ts +3 -3
  48. package/dist/raw.js +8 -3
  49. package/package.json +1 -1
@@ -191,7 +191,7 @@ const listProjects = (options) => (options?.client ?? client).get({
191
191
  * For more information, see [Manage projects](https://neon.com/docs/manage/projects/).
192
192
  *
193
193
  * You can specify a region and Postgres version in the request body.
194
- * Neon currently supports PostgreSQL 14, 15, 16, 17, and 18.
194
+ * Neon supports Postgres 14 through 18, with 19 rolling out to enabled regions.
195
195
  * For supported regions and `region_id` values, see [Regions](https://neon.com/docs/introduction/regions/).
196
196
  *
197
197
  */
@@ -448,6 +448,94 @@ const grantPermissionToProject = (options) => (options.client ?? client).post({
448
448
  }
449
449
  });
450
450
  /**
451
+ * List org members and their project roles
452
+ *
453
+ * Lists organization members and their per-project roles for an org-owned project.
454
+ * Returns 404 when the project is not org-owned, per-project role management is disabled,
455
+ * or the caller has no access. Callers with VIEWER or EDITOR see members with
456
+ * effective project access. Callers with ADMIN also see unassigned org members.
457
+ *
458
+ */
459
+ const listProjectMembers = (options) => (options.client ?? client).get({
460
+ security: [
461
+ {
462
+ scheme: "bearer",
463
+ type: "http"
464
+ },
465
+ {
466
+ in: "cookie",
467
+ name: "zenith",
468
+ type: "apiKey"
469
+ },
470
+ {
471
+ in: "cookie",
472
+ name: "keycloak_token",
473
+ type: "apiKey"
474
+ }
475
+ ],
476
+ url: "/projects/{project_id}/members",
477
+ ...options
478
+ });
479
+ /**
480
+ * Remove an org member's role on a project
481
+ *
482
+ * Idempotently removes the explicit project grant. The member's organization-role
483
+ * default project permission still applies. Self-DELETE requires
484
+ * `confirm_self_lockout=true` when effective manage access would be lost.
485
+ *
486
+ */
487
+ const removeProjectMemberRole = (options) => (options.client ?? client).delete({
488
+ security: [
489
+ {
490
+ scheme: "bearer",
491
+ type: "http"
492
+ },
493
+ {
494
+ in: "cookie",
495
+ name: "zenith",
496
+ type: "apiKey"
497
+ },
498
+ {
499
+ in: "cookie",
500
+ name: "keycloak_token",
501
+ type: "apiKey"
502
+ }
503
+ ],
504
+ url: "/projects/{project_id}/members/{member_id}/role",
505
+ ...options
506
+ });
507
+ /**
508
+ * Set an org member's role on a project
509
+ *
510
+ * Idempotently sets or updates the explicit project grant of the specified org member.
511
+ * Self-demotion requires `confirm_self_demotion=true`.
512
+ *
513
+ */
514
+ const setProjectMemberRole = (options) => (options.client ?? client).put({
515
+ security: [
516
+ {
517
+ scheme: "bearer",
518
+ type: "http"
519
+ },
520
+ {
521
+ in: "cookie",
522
+ name: "zenith",
523
+ type: "apiKey"
524
+ },
525
+ {
526
+ in: "cookie",
527
+ name: "keycloak_token",
528
+ type: "apiKey"
529
+ }
530
+ ],
531
+ url: "/projects/{project_id}/members/{member_id}/role",
532
+ ...options,
533
+ headers: {
534
+ "Content-Type": "application/json",
535
+ ...options.headers
536
+ }
537
+ });
538
+ /**
451
539
  * Revoke project access
452
540
  *
453
541
  * Revokes project access from the user associated with the specified permission `id`. You can retrieve a user's permission `id` by listing project access.
@@ -779,7 +867,7 @@ const createProjectBranchDataApi = (options) => (options.client ?? client).post(
779
867
  /**
780
868
  * Create Neon Auth integration
781
869
  *
782
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth` instead. Creates a project on a third-party authentication provider's platform for use with Neon Auth.
870
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth` instead. Removal scheduled for March 1, 2026.
783
871
  * Use this endpoint if the frontend integration flow can't be used.
784
872
  *
785
873
  *
@@ -904,7 +992,7 @@ const createNeonAuth = (options) => (options.client ?? client).post({
904
992
  /**
905
993
  * Delete trusted redirect URI domain
906
994
  *
907
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/domains` instead. Deletes a domain from the redirect_uri whitelist for the specified project.
995
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/domains` instead. Removal scheduled for March 1, 2026.
908
996
  *
909
997
  *
910
998
  * @deprecated
@@ -936,7 +1024,7 @@ const deleteNeonAuthDomainFromRedirectUriWhitelist = (options) => (options.clien
936
1024
  /**
937
1025
  * List trusted redirect URI domains
938
1026
  *
939
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/domains` instead. Lists the domains in the redirect_uri whitelist for the specified project.
1027
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/domains` instead. Removal scheduled for March 1, 2026.
940
1028
  *
941
1029
  *
942
1030
  * @deprecated
@@ -964,7 +1052,7 @@ const listNeonAuthRedirectUriWhitelistDomains = (options) => (options.client ??
964
1052
  /**
965
1053
  * Add trusted redirect URI domain
966
1054
  *
967
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/domains` instead. Adds a domain to the redirect_uri whitelist for the specified project.
1055
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/domains` instead. Removal scheduled for March 1, 2026.
968
1056
  *
969
1057
  *
970
1058
  * @deprecated
@@ -1116,7 +1204,7 @@ const createNeonAuthProviderSdkKeys = (options) => (options.client ?? client).po
1116
1204
  /**
1117
1205
  * Create new auth user
1118
1206
  *
1119
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/users` instead. Creates a new user in Neon Auth.
1207
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/users` instead. Removal scheduled for March 1, 2026.
1120
1208
  * The user will be created in your neon_auth.users_sync table and automatically propagated to your auth project, whether Neon-managed or provider-owned.
1121
1209
  *
1122
1210
  *
@@ -1239,7 +1327,7 @@ const updateNeonAuthUserRole = (options) => (options.client ?? client).put({
1239
1327
  /**
1240
1328
  * Delete auth user
1241
1329
  *
1242
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/users/{auth_user_id}` instead. Deletes the auth user for the specified project.
1330
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/users/{auth_user_id}` instead. Removal scheduled for March 1, 2026.
1243
1331
  *
1244
1332
  *
1245
1333
  * @deprecated
@@ -1297,7 +1385,7 @@ const transferNeonAuthProviderProject = (options) => (options.client ?? client).
1297
1385
  /**
1298
1386
  * List active integrations with auth providers
1299
1387
  *
1300
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth` instead.
1388
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth` instead. Removal scheduled for March 1, 2026.
1301
1389
  *
1302
1390
  * @deprecated
1303
1391
  */
@@ -1324,7 +1412,7 @@ const listNeonAuthIntegrations = (options) => (options.client ?? client).get({
1324
1412
  /**
1325
1413
  * List OAuth providers
1326
1414
  *
1327
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/oauth_providers` instead. Lists the OAuth providers for the specified project.
1415
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/oauth_providers` instead. Removal scheduled for March 1, 2026.
1328
1416
  *
1329
1417
  *
1330
1418
  * @deprecated
@@ -1352,8 +1440,7 @@ const listNeonAuthOauthProviders = (options) => (options.client ?? client).get({
1352
1440
  /**
1353
1441
  * Add an OAuth provider
1354
1442
  *
1355
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/oauth_providers` instead.
1356
- * Adds an OAuth provider to the specified project.
1443
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/oauth_providers` instead. Removal scheduled for March 1, 2026.
1357
1444
  *
1358
1445
  *
1359
1446
  * @deprecated
@@ -1442,7 +1529,7 @@ const addBranchNeonAuthOauthProvider = (options) => (options.client ?? client).p
1442
1529
  /**
1443
1530
  * Delete OAuth provider
1444
1531
  *
1445
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/oauth_providers/{oauth_provider_id}` instead. Deletes a OAuth provider from the specified project.
1532
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/oauth_providers/{oauth_provider_id}` instead. Removal scheduled for March 1, 2026.
1446
1533
  *
1447
1534
  *
1448
1535
  * @deprecated
@@ -1470,7 +1557,7 @@ const deleteNeonAuthOauthProvider = (options) => (options.client ?? client).dele
1470
1557
  /**
1471
1558
  * Update OAuth provider
1472
1559
  *
1473
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/oauth_providers/{oauth_provider_id}` instead. Updates a OAuth provider for the specified project.
1560
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/oauth_providers/{oauth_provider_id}` instead. Removal scheduled for March 1, 2026.
1474
1561
  *
1475
1562
  *
1476
1563
  * @deprecated
@@ -1502,7 +1589,7 @@ const updateNeonAuthOauthProvider = (options) => (options.client ?? client).patc
1502
1589
  /**
1503
1590
  * Delete OAuth provider
1504
1591
  *
1505
- * Deletes a OAuth provider from the specified project.
1592
+ * Deletes an OAuth provider from the specified project.
1506
1593
  *
1507
1594
  */
1508
1595
  const deleteBranchNeonAuthOauthProvider = (options) => (options.client ?? client).delete({
@@ -1528,7 +1615,7 @@ const deleteBranchNeonAuthOauthProvider = (options) => (options.client ?? client
1528
1615
  /**
1529
1616
  * Update OAuth provider
1530
1617
  *
1531
- * Updates a OAuth provider for the specified project.
1618
+ * Updates an OAuth provider for the specified project.
1532
1619
  *
1533
1620
  */
1534
1621
  const updateBranchNeonAuthOauthProvider = (options) => (options.client ?? client).patch({
@@ -1558,7 +1645,7 @@ const updateBranchNeonAuthOauthProvider = (options) => (options.client ?? client
1558
1645
  /**
1559
1646
  * Retrieve email server configuration
1560
1647
  *
1561
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/email_provider` instead. Gets the email server configuration for the specified project.
1648
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/email_provider` instead. Removal scheduled for March 1, 2026.
1562
1649
  *
1563
1650
  *
1564
1651
  * @deprecated
@@ -1586,7 +1673,7 @@ const getNeonAuthEmailServer = (options) => (options.client ?? client).get({
1586
1673
  /**
1587
1674
  * Update email server configuration
1588
1675
  *
1589
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth/email_provider` instead. Updates the email server configuration for the specified project.
1676
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth/email_provider` instead. Removal scheduled for March 1, 2026.
1590
1677
  *
1591
1678
  *
1592
1679
  * @deprecated
@@ -1738,6 +1825,11 @@ const getNeonAuthEmailProvider = (options) => (options.client ?? client).get({
1738
1825
  * Updates the email provider configuration for the specified branch's Neon Auth integration.
1739
1826
  * The email provider handles transactional messages such as verification emails and password reset links.
1740
1827
  *
1828
+ * Partial `standard` updates — omitting fields to keep their stored values — are supported only for
1829
+ * Better Auth integrations, which merge omitted fields server-side. Legacy Stack Auth integrations do
1830
+ * not merge and require all six `standard` fields (`host`, `port`, `username`, `password`,
1831
+ * `sender_email`, `sender_name`) on every update; a partial `standard` body is rejected with 400.
1832
+ *
1741
1833
  */
1742
1834
  const updateNeonAuthEmailProvider = (options) => (options.client ?? client).patch({
1743
1835
  security: [
@@ -1766,7 +1858,7 @@ const updateNeonAuthEmailProvider = (options) => (options.client ?? client).patc
1766
1858
  /**
1767
1859
  * Delete integration with auth provider
1768
1860
  *
1769
- * DEPRECATED, use `/projects/{project_id}/branches/{branch_id}/auth` instead.
1861
+ * Deprecated. Use `/projects/{project_id}/branches/{branch_id}/auth` instead. Removal scheduled for March 1, 2026.
1770
1862
  *
1771
1863
  * @deprecated
1772
1864
  */
@@ -2382,7 +2474,7 @@ const restoreProjectBranch = (options) => (options.client ?? client).post({
2382
2474
  /**
2383
2475
  * Retrieve database schema
2384
2476
  *
2385
- * Retrieves the schema from the specified database. The `lsn` and `timestamp` values cannot be specified at the same time. If both are omitted, the database schema is retrieved from database's head.
2477
+ * Retrieves the database schema. Specify `lsn` or `timestamp` (not both) to read at a point in time; omit both to read from the database's head.
2386
2478
  */
2387
2479
  const getProjectBranchSchema = (options) => (options.client ?? client).get({
2388
2480
  security: [
@@ -2580,38 +2672,6 @@ const setDefaultProjectBranch = (options) => (options.client ?? client).post({
2580
2672
  ...options
2581
2673
  });
2582
2674
  /**
2583
- * Recover a deleted branch
2584
- *
2585
- * Recovers a deleted branch within the 7-day deletion recovery period.
2586
- * The branch must have been soft deleted and not yet permanently deleted.
2587
- * Recovery restores the branch and its endpoints to an idle state.
2588
- * Connection strings remain valid after recovery.
2589
- * TTL branches become non-TTL branches after recovery.
2590
- *
2591
- * To list deleted branches available for recovery, use `GET /projects/{project_id}/branches?include_deleted=true`.
2592
- *
2593
- */
2594
- const recoverProjectBranch = (options) => (options.client ?? client).post({
2595
- security: [
2596
- {
2597
- scheme: "bearer",
2598
- type: "http"
2599
- },
2600
- {
2601
- in: "cookie",
2602
- name: "zenith",
2603
- type: "apiKey"
2604
- },
2605
- {
2606
- in: "cookie",
2607
- name: "keycloak_token",
2608
- type: "apiKey"
2609
- }
2610
- ],
2611
- url: "/projects/{project_id}/branches/{branch_id}/recover",
2612
- ...options
2613
- });
2614
- /**
2615
2675
  * Finalize branch restore from snapshot
2616
2676
  *
2617
2677
  * Finalize the restore operation for a branch created from a snapshot.
@@ -2623,8 +2683,6 @@ const recoverProjectBranch = (options) => (options.client ?? client).post({
2623
2683
  *
2624
2684
  * This operation only applies to branches created using the `restoreSnapshot` endpoint with `finalize_restore: false`.
2625
2685
  *
2626
- * **Note**: This endpoint is currently in Beta.
2627
- *
2628
2686
  */
2629
2687
  const finalizeRestoreBranch = (options) => (options.client ?? client).post({
2630
2688
  security: [
@@ -4076,7 +4134,7 @@ const getCurrentUserOrganizations = (options) => (options?.client ?? client).get
4076
4134
  /**
4077
4135
  * Transfer projects from personal account to organization
4078
4136
  *
4079
- * DEPRECATED. Personal accounts have been migrated to organizations, making this operation no longer applicable.
4137
+ * Deprecated. Personal accounts have been migrated to organizations, so this operation no longer applies. Removal scheduled for July 1, 2026.
4080
4138
  *
4081
4139
  *
4082
4140
  * @deprecated
@@ -4139,8 +4197,6 @@ const getAuthDetails = (options) => (options?.client ?? client).get({
4139
4197
  * Creates a snapshot from the specified branch.
4140
4198
  * This operation may initiate an asynchronous process.
4141
4199
  *
4142
- * **Note**: This endpoint is currently in Beta.
4143
- *
4144
4200
  */
4145
4201
  const createSnapshot = (options) => (options.client ?? client).post({
4146
4202
  security: [
@@ -4168,8 +4224,6 @@ const createSnapshot = (options) => (options.client ?? client).post({
4168
4224
  * Lists the snapshots for the specified project.
4169
4225
  * Each snapshot represents a point-in-time backup of the project data.
4170
4226
  *
4171
- * **Note**: This endpoint is currently in Beta.
4172
- *
4173
4227
  */
4174
4228
  const listSnapshots = (options) => (options.client ?? client).get({
4175
4229
  security: [
@@ -4196,8 +4250,6 @@ const listSnapshots = (options) => (options.client ?? client).get({
4196
4250
  *
4197
4251
  * Deletes the specified snapshot.
4198
4252
  *
4199
- * **Note**: This endpoint is currently in Beta.
4200
- *
4201
4253
  */
4202
4254
  const deleteSnapshot = (options) => (options.client ?? client).delete({
4203
4255
  security: [
@@ -4224,8 +4276,6 @@ const deleteSnapshot = (options) => (options.client ?? client).delete({
4224
4276
  *
4225
4277
  * Updates the specified snapshot.
4226
4278
  *
4227
- * **Note**: This endpoint is currently in Beta.
4228
- *
4229
4279
  */
4230
4280
  const updateSnapshot = (options) => (options.client ?? client).patch({
4231
4281
  security: [
@@ -4257,8 +4307,6 @@ const updateSnapshot = (options) => (options.client ?? client).patch({
4257
4307
  * Restores the specified snapshot to a new branch,
4258
4308
  * and optionally finalizes the restore operation to replace the original branch.
4259
4309
  *
4260
- * **Note**: This endpoint is currently in Beta.
4261
- *
4262
4310
  */
4263
4311
  const restoreSnapshot = (options) => (options.client ?? client).post({
4264
4312
  security: [
@@ -4289,8 +4337,6 @@ const restoreSnapshot = (options) => (options.client ?? client).post({
4289
4337
  *
4290
4338
  * Returns the backup schedule for the specified branch, including the configured snapshot frequencies.
4291
4339
  *
4292
- * **Note**: This endpoint is currently in Beta.
4293
- *
4294
4340
  */
4295
4341
  const getSnapshotSchedule = (options) => (options.client ?? client).get({
4296
4342
  security: [
@@ -4316,9 +4362,7 @@ const getSnapshotSchedule = (options) => (options.client ?? client).get({
4316
4362
  * Update backup schedule
4317
4363
  *
4318
4364
  * Updates the backup schedule for the specified branch.
4319
- * The schedule defines how often automatic snapshots are created (e.g., `daily`, `weekly`).
4320
- *
4321
- * **Note**: This endpoint is currently in Beta.
4365
+ * The schedule defines how often automatic snapshots are created (for example, `daily` or `weekly`). Requires a paid plan.
4322
4366
  *
4323
4367
  */
4324
4368
  const setSnapshotSchedule = (options) => (options.client ?? client).put({
@@ -4348,10 +4392,10 @@ const setSnapshotSchedule = (options) => (options.client ?? client).put({
4348
4392
  /**
4349
4393
  * List buckets on the branch
4350
4394
  *
4351
- * Lists branchable object-storage buckets visible on the specified branch,
4395
+ * Lists branchable object storage buckets visible on the specified branch,
4352
4396
  * including those inherited from ancestor branches.
4353
4397
  *
4354
- * **Note**: This endpoint is currently in Private Beta.
4398
+ * **Note**: This endpoint is currently in Beta.
4355
4399
  *
4356
4400
  */
4357
4401
  const listProjectBranchBuckets = (options) => (options.client ?? client).get({
@@ -4377,10 +4421,10 @@ const listProjectBranchBuckets = (options) => (options.client ?? client).get({
4377
4421
  /**
4378
4422
  * Create a bucket on the branch
4379
4423
  *
4380
- * Creates a new branchable object-storage bucket on the specified branch.
4381
- * Buckets are managed by the Neon Platform branchable-storage service.
4424
+ * Creates a new branchable object storage bucket on the specified branch.
4425
+ * Buckets are managed by the Neon Platform branchable object storage service.
4382
4426
  *
4383
- * **Note**: This endpoint is currently in Private Beta.
4427
+ * **Note**: This endpoint is currently in Beta.
4384
4428
  *
4385
4429
  */
4386
4430
  const createProjectBranchBucket = (options) => (options.client ?? client).post({
@@ -4412,7 +4456,7 @@ const createProjectBranchBucket = (options) => (options.client ?? client).post({
4412
4456
  *
4413
4457
  * Deletes the named bucket from the specified branch.
4414
4458
  *
4415
- * **Note**: This endpoint is currently in Private Beta.
4459
+ * **Note**: This endpoint is currently in Beta.
4416
4460
  *
4417
4461
  */
4418
4462
  const deleteProjectBranchBucket = (options) => (options.client ?? client).delete({
@@ -4436,14 +4480,14 @@ const deleteProjectBranchBucket = (options) => (options.client ?? client).delete
4436
4480
  ...options
4437
4481
  });
4438
4482
  /**
4439
- * Get branch storage state
4483
+ * Get branch object storage state
4440
4484
  *
4441
- * Returns whether branchable object-storage is usable for the specified
4442
- * branch. A 200 response means the branch is registered in the storage
4485
+ * Returns whether branchable object storage is usable for the specified
4486
+ * branch. A 200 response means the branch is registered in the object storage
4443
4487
  * service and the S3 data plane will accept requests for it. A 404
4444
- * response includes a `reason` field indicating why storage is unavailable.
4488
+ * response includes a `reason` field indicating why object storage is unavailable.
4445
4489
  *
4446
- * **Note**: This endpoint is currently in Private Beta.
4490
+ * **Note**: This endpoint is currently in Beta.
4447
4491
  *
4448
4492
  */
4449
4493
  const getProjectBranchStorage = (options) => (options.client ?? client).get({
@@ -4474,7 +4518,7 @@ const getProjectBranchStorage = (options) => (options.client ?? client).get({
4474
4518
  * registered and this region serves the AI gateway. A 404 response
4475
4519
  * includes a `reason` field indicating why the gateway is unavailable.
4476
4520
  *
4477
- * **Note**: This endpoint is currently in Private Beta.
4521
+ * **Note**: This endpoint is currently in Beta.
4478
4522
  *
4479
4523
  */
4480
4524
  const getProjectBranchAiGateway = (options) => (options.client ?? client).get({
@@ -4498,6 +4542,129 @@ const getProjectBranchAiGateway = (options) => (options.client ?? client).get({
4498
4542
  ...options
4499
4543
  });
4500
4544
  /**
4545
+ * Query branch logs
4546
+ *
4547
+ * Returns logs emitted by services running on the specified branch,
4548
+ * ordered by timestamp according to `sort_order`.
4549
+ *
4550
+ * All supplied filters are combined with `AND`: a record is returned only
4551
+ * when it matches every filter. `minimum_severity` and `severity_text` are
4552
+ * independent filters, so setting both requires a record to clear the
4553
+ * severity floor *and* match the exact severity text.
4554
+ *
4555
+ * Supply `logql` instead of the structured filters to run a raw LogQL
4556
+ * expression. Combining it with any structured filter is rejected rather
4557
+ * than silently ignored; `limit`, `sort_order`, and the time window still
4558
+ * apply, because those bound the query rather than form part of the
4559
+ * expression.
4560
+ *
4561
+ * Give the window either as `since` — a duration ending at `end_time`, or
4562
+ * at the current time when `end_time` is omitted — or as an explicit
4563
+ * `start_time`. Supplying both is rejected.
4564
+ *
4565
+ * A single response holds at most 1,000 records. When `is_truncated` is
4566
+ * `true`, pass the returned `next_cursor` back as `cursor` to fetch the
4567
+ * next page, repeating the time range and every filter unchanged.
4568
+ *
4569
+ * If no time range is supplied, the query covers the previous hour. The
4570
+ * maximum supported time range is seven days. `end_time` is exclusive.
4571
+ *
4572
+ * **Note**: This endpoint is currently in Private Beta.
4573
+ *
4574
+ */
4575
+ const queryProjectBranchLogs = (options) => (options.client ?? client).post({
4576
+ security: [
4577
+ {
4578
+ scheme: "bearer",
4579
+ type: "http"
4580
+ },
4581
+ {
4582
+ in: "cookie",
4583
+ name: "zenith",
4584
+ type: "apiKey"
4585
+ },
4586
+ {
4587
+ in: "cookie",
4588
+ name: "keycloak_token",
4589
+ type: "apiKey"
4590
+ }
4591
+ ],
4592
+ url: "/projects/{project_id}/branches/{branch_id}/logs/query",
4593
+ ...options,
4594
+ headers: {
4595
+ "Content-Type": "application/json",
4596
+ ...options.headers
4597
+ }
4598
+ });
4599
+ /**
4600
+ * List branch log fields
4601
+ *
4602
+ * Lists the low-cardinality log fields observed on this branch whose
4603
+ * distinct values can be discovered with the log field-values endpoint.
4604
+ *
4605
+ * The set is computed per branch and grows as new fields are observed, so
4606
+ * treat it as data rather than a fixed list: discover a field here, then
4607
+ * pass it as `field_name` to the field-values endpoint.
4608
+ *
4609
+ * **Note**: This endpoint is currently in Private Beta.
4610
+ *
4611
+ */
4612
+ const listProjectBranchLogFields = (options) => (options.client ?? client).get({
4613
+ security: [
4614
+ {
4615
+ scheme: "bearer",
4616
+ type: "http"
4617
+ },
4618
+ {
4619
+ in: "cookie",
4620
+ name: "zenith",
4621
+ type: "apiKey"
4622
+ },
4623
+ {
4624
+ in: "cookie",
4625
+ name: "keycloak_token",
4626
+ type: "apiKey"
4627
+ }
4628
+ ],
4629
+ url: "/projects/{project_id}/branches/{branch_id}/logs/fields",
4630
+ ...options
4631
+ });
4632
+ /**
4633
+ * List branch log field values
4634
+ *
4635
+ * Lists the distinct values observed for a low-cardinality log field in
4636
+ * the requested time range. Call the log fields endpoint first to learn
4637
+ * which `field_name` values this branch supports; a field that branch has
4638
+ * never emitted is rejected with `unknown_field`.
4639
+ *
4640
+ * Give the window either as `since` or as an explicit `start_time`;
4641
+ * supplying both is rejected. If neither is given, the previous six hours
4642
+ * are used. The maximum supported time range is seven days.
4643
+ *
4644
+ * **Note**: This endpoint is currently in Private Beta.
4645
+ *
4646
+ */
4647
+ const listProjectBranchLogFieldValues = (options) => (options.client ?? client).get({
4648
+ security: [
4649
+ {
4650
+ scheme: "bearer",
4651
+ type: "http"
4652
+ },
4653
+ {
4654
+ in: "cookie",
4655
+ name: "zenith",
4656
+ type: "apiKey"
4657
+ },
4658
+ {
4659
+ in: "cookie",
4660
+ name: "keycloak_token",
4661
+ type: "apiKey"
4662
+ }
4663
+ ],
4664
+ url: "/projects/{project_id}/branches/{branch_id}/logs/fields/{field_name}/values",
4665
+ ...options
4666
+ });
4667
+ /**
4501
4668
  * List objects in a bucket
4502
4669
  *
4503
4670
  * Lists objects visible in the named bucket on the specified branch,
@@ -4509,7 +4676,7 @@ const getProjectBranchAiGateway = (options) => (options.client ?? client).get({
4509
4676
  * browser; keys that do not contain the delimiter after `prefix` are
4510
4677
  * returned as `objects`.
4511
4678
  *
4512
- * **Note**: This endpoint is currently in Private Beta.
4679
+ * **Note**: This endpoint is currently in Beta.
4513
4680
  *
4514
4681
  */
4515
4682
  const listProjectBranchBucketObjects = (options) => (options.client ?? client).get({
@@ -4538,7 +4705,7 @@ const listProjectBranchBucketObjects = (options) => (options.client ?? client).g
4538
4705
  * Deletes the named object from the bucket on the specified branch.
4539
4706
  * Served by the user's session (no customer S3 credentials required).
4540
4707
  *
4541
- * **Note**: This endpoint is currently in Private Beta.
4708
+ * **Note**: This endpoint is currently in Beta.
4542
4709
  *
4543
4710
  */
4544
4711
  const deleteProjectBranchBucketObject = (options) => (options.client ?? client).delete({
@@ -4574,12 +4741,12 @@ const deleteProjectBranchBucketObject = (options) => (options.client ?? client).
4574
4741
  *
4575
4742
  * BINARY-STREAM EXCEPTION TO THE BUILD-GENERATED-TYPES RULE (#7029): the
4576
4743
  * successful 200 body is the raw object stream, proxied verbatim from the
4577
- * platform storage admin endpoint. It is modeled as an
4744
+ * platform object storage admin endpoint. It is modeled as an
4578
4745
  * `application/octet-stream` binary body (not a JSON response schema) and
4579
4746
  * is streamed without buffering the whole object in memory. Error
4580
4747
  * responses still use the generated `GeneralError` shape.
4581
4748
  *
4582
- * **Note**: This endpoint is currently in Private Beta.
4749
+ * **Note**: This endpoint is currently in Beta.
4583
4750
  *
4584
4751
  */
4585
4752
  const getProjectBranchBucketObject = (options) => (options.client ?? client).get({
@@ -4621,7 +4788,7 @@ const getProjectBranchBucketObject = (options) => (options.client ?? client).get
4621
4788
  * inherited from an ancestor branch via copy-on-write (not materialized on
4622
4789
  * this branch) are out of scope.
4623
4790
  *
4624
- * **Note**: This endpoint is currently in Private Beta.
4791
+ * **Note**: This endpoint is currently in Beta.
4625
4792
  *
4626
4793
  */
4627
4794
  const deleteProjectBranchBucketObjectsByPrefix = (options) => (options.client ?? client).delete({
@@ -4663,7 +4830,7 @@ const deleteProjectBranchBucketObjectsByPrefix = (options) => (options.client ??
4663
4830
  *
4664
4831
  * Served by the user's session (no customer S3 credentials required).
4665
4832
  *
4666
- * **Note**: This endpoint is currently in Private Beta.
4833
+ * **Note**: This endpoint is currently in Beta.
4667
4834
  *
4668
4835
  */
4669
4836
  const presignProjectBranchBucketObject = (options) => (options.client ?? client).post({
@@ -4696,7 +4863,7 @@ const presignProjectBranchBucketObject = (options) => (options.client ?? client)
4696
4863
  * Returns metadata for customer-issued credentials on the branch.
4697
4864
  * Secrets are never included.
4698
4865
  *
4699
- * **Note**: This endpoint is currently in Private Beta.
4866
+ * **Note**: This endpoint is currently in Beta.
4700
4867
  *
4701
4868
  */
4702
4869
  const listCredentials = (options) => (options.client ?? client).get({
@@ -4726,7 +4893,7 @@ const listCredentials = (options) => (options.client ?? client).get({
4726
4893
  * branch. The response carries `api_token` and `s3_secret_access_key`
4727
4894
  * exactly once — they are not stored server-side.
4728
4895
  *
4729
- * **Note**: This endpoint is currently in Private Beta.
4896
+ * **Note**: This endpoint is currently in Beta.
4730
4897
  *
4731
4898
  */
4732
4899
  const createCredential = (options) => (options.client ?? client).post({
@@ -4758,7 +4925,7 @@ const createCredential = (options) => (options.client ?? client).post({
4758
4925
  *
4759
4926
  * Soft-deletes the credential. Idempotent.
4760
4927
  *
4761
- * **Note**: This endpoint is currently in Private Beta.
4928
+ * **Note**: This endpoint is currently in Beta.
4762
4929
  *
4763
4930
  */
4764
4931
  const revokeCredential = (options) => (options.client ?? client).delete({
@@ -4786,7 +4953,7 @@ const revokeCredential = (options) => (options.client ?? client).delete({
4786
4953
  *
4787
4954
  * Lists functions on the specified branch.
4788
4955
  *
4789
- * **Note**: This endpoint is currently in Private Beta.
4956
+ * **Note**: This endpoint is currently in Beta.
4790
4957
  *
4791
4958
  */
4792
4959
  const listProjectBranchFunctions = (options) => (options.client ?? client).get({
@@ -4814,7 +4981,7 @@ const listProjectBranchFunctions = (options) => (options.client ?? client).get({
4814
4981
  *
4815
4982
  * Deletes the function identified by its slug.
4816
4983
  *
4817
- * **Note**: This endpoint is currently in Private Beta.
4984
+ * **Note**: This endpoint is currently in Beta.
4818
4985
  *
4819
4986
  */
4820
4987
  const deleteProjectBranchFunction = (options) => (options.client ?? client).delete({
@@ -4842,7 +5009,7 @@ const deleteProjectBranchFunction = (options) => (options.client ?? client).dele
4842
5009
  *
4843
5010
  * Returns the function identified by its slug.
4844
5011
  *
4845
- * **Note**: This endpoint is currently in Private Beta.
5012
+ * **Note**: This endpoint is currently in Beta.
4846
5013
  *
4847
5014
  */
4848
5015
  const getProjectBranchFunction = (options) => (options.client ?? client).get({
@@ -4878,7 +5045,7 @@ const getProjectBranchFunction = (options) => (options.client ?? client).get({
4878
5045
  * branch: a branch forked before the rename keeps the name it had at
4879
5046
  * fork time.
4880
5047
  *
4881
- * **Note**: This endpoint is currently in Private Beta.
5048
+ * **Note**: This endpoint is currently in Beta.
4882
5049
  *
4883
5050
  */
4884
5051
  const updateProjectBranchFunction = (options) => (options.client ?? client).patch({
@@ -4914,7 +5081,7 @@ const updateProjectBranchFunction = (options) => (options.client ?? client).patc
4914
5081
  * first deployment of a function must include zip. The newest deployment
4915
5082
  * becomes active.
4916
5083
  *
4917
- * **Note**: This endpoint is currently in Private Beta.
5084
+ * **Note**: This endpoint is currently in Beta.
4918
5085
  *
4919
5086
  */
4920
5087
  const createProjectBranchFunctionDeployment = (options) => (options.client ?? client).post({
@@ -4943,6 +5110,6 @@ const createProjectBranchFunctionDeployment = (options) => (options.client ?? cl
4943
5110
  }
4944
5111
  });
4945
5112
  //#endregion
4946
- export { acceptProjectTransferRequest, addBranchNeonAuthOauthProvider, addBranchNeonAuthTrustedDomain, addNeonAuthDomainToRedirectUriWhitelist, addNeonAuthOauthProvider, addProjectJwks, assignOrganizationVpcEndpoint, assignProjectVpcEndpoint, countProjectBranches, createApiKey, createBranchNeonAuthNewUser, createCredential, createNeonAuth, createNeonAuthIntegration, createNeonAuthNewUser, createNeonAuthProviderSdkKeys, createOrgApiKey, createOrganizationInvitations, createProject, createProjectBranch, createProjectBranchAnonymized, createProjectBranchBucket, createProjectBranchDataApi, createProjectBranchDatabase, createProjectBranchFunctionDeployment, createProjectBranchRole, createProjectEndpoint, createProjectTransferRequest, createSnapshot, deleteBranchNeonAuthOauthProvider, deleteBranchNeonAuthTrustedDomain, deleteBranchNeonAuthUser, deleteNeonAuthDomainFromRedirectUriWhitelist, deleteNeonAuthIntegration, deleteNeonAuthOauthProvider, deleteNeonAuthUser, deleteOrganizationSpendingLimit, deleteOrganizationVpcEndpoint, deleteProject, deleteProjectBranch, deleteProjectBranchBucket, deleteProjectBranchBucketObject, deleteProjectBranchBucketObjectsByPrefix, deleteProjectBranchDataApi, deleteProjectBranchDatabase, deleteProjectBranchFunction, deleteProjectBranchRole, deleteProjectEndpoint, deleteProjectJwks, deleteProjectVpcEndpoint, deleteSnapshot, disableNeonAuth, finalizeRestoreBranch, getActiveRegions, getAnonymizedBranchStatus, getAuthDetails, getAvailablePreloadLibraries, getConnectionUri, getConsumptionHistoryPerBranchV2, getConsumptionHistoryPerProject, getConsumptionHistoryPerProjectV2, getCurrentUserInfo, getCurrentUserOrganizations, getMaskingRules, getNeonAuth, getNeonAuthAllowLocalhost, getNeonAuthEmailAndPasswordConfig, getNeonAuthEmailProvider, getNeonAuthEmailServer, getNeonAuthPhoneNumberPlugin, getNeonAuthPluginConfigs, getNeonAuthWebhookConfig, getOrganization, getOrganizationInvitations, getOrganizationMember, getOrganizationMembers, getOrganizationSpendingLimit, getOrganizationVpcEndpointDetails, getProject, getProjectAdvisorSecurityIssues, getProjectBranch, getProjectBranchAiGateway, getProjectBranchBucketObject, getProjectBranchDataApi, getProjectBranchDatabase, getProjectBranchFunction, getProjectBranchRole, getProjectBranchRolePassword, getProjectBranchSchema, getProjectBranchSchemaComparison, getProjectBranchStorage, getProjectEndpoint, getProjectJwks, getProjectOperation, getSnapshotSchedule, grantPermissionToProject, listApiKeys, listBranchNeonAuthOauthProviders, listBranchNeonAuthTrustedDomains, listCredentials, listNeonAuthIntegrations, listNeonAuthOauthProviders, listNeonAuthRedirectUriWhitelistDomains, listOrgApiKeys, listOrganizationVpcEndpoints, listOrganizationVpcEndpointsAllRegions, listProjectBranchBucketObjects, listProjectBranchBuckets, listProjectBranchDatabases, listProjectBranchEndpoints, listProjectBranchFunctions, listProjectBranchRoles, listProjectBranches, listProjectEndpoints, listProjectOperations, listProjectPermissions, listProjectVpcEndpoints, listProjects, listSharedProjects, listSnapshots, presignProjectBranchBucketObject, recoverProject, recoverProjectBranch, removeOrganizationMember, resetProjectBranchRolePassword, restartProjectEndpoint, restoreProjectBranch, restoreSnapshot, revokeApiKey, revokeCredential, revokeOrgApiKey, revokePermissionFromProject, sendNeonAuthTestEmail, setDefaultProjectBranch, setOrganizationSpendingLimit, setSnapshotSchedule, startAnonymization, startProjectEndpoint, suspendProjectEndpoint, transferNeonAuthProviderProject, transferProjectsFromOrgToOrg, transferProjectsFromUserToOrg, updateBranchNeonAuthOauthProvider, updateMaskingRules, updateNeonAuthAllowLocalhost, updateNeonAuthConfig, updateNeonAuthEmailAndPasswordConfig, updateNeonAuthEmailProvider, updateNeonAuthEmailServer, updateNeonAuthMagicLinkPlugin, updateNeonAuthOauthProvider, updateNeonAuthOrganizationPlugin, updateNeonAuthPhoneNumberPlugin, updateNeonAuthUserRole, updateNeonAuthWebhookConfig, updateOrganizationMember, updateProject, updateProjectBranch, updateProjectBranchDataApi, updateProjectBranchDatabase, updateProjectBranchFunction, updateProjectEndpoint, updateSnapshot };
5113
+ export { acceptProjectTransferRequest, addBranchNeonAuthOauthProvider, addBranchNeonAuthTrustedDomain, addNeonAuthDomainToRedirectUriWhitelist, addNeonAuthOauthProvider, addProjectJwks, assignOrganizationVpcEndpoint, assignProjectVpcEndpoint, countProjectBranches, createApiKey, createBranchNeonAuthNewUser, createCredential, createNeonAuth, createNeonAuthIntegration, createNeonAuthNewUser, createNeonAuthProviderSdkKeys, createOrgApiKey, createOrganizationInvitations, createProject, createProjectBranch, createProjectBranchAnonymized, createProjectBranchBucket, createProjectBranchDataApi, createProjectBranchDatabase, createProjectBranchFunctionDeployment, createProjectBranchRole, createProjectEndpoint, createProjectTransferRequest, createSnapshot, deleteBranchNeonAuthOauthProvider, deleteBranchNeonAuthTrustedDomain, deleteBranchNeonAuthUser, deleteNeonAuthDomainFromRedirectUriWhitelist, deleteNeonAuthIntegration, deleteNeonAuthOauthProvider, deleteNeonAuthUser, deleteOrganizationSpendingLimit, deleteOrganizationVpcEndpoint, deleteProject, deleteProjectBranch, deleteProjectBranchBucket, deleteProjectBranchBucketObject, deleteProjectBranchBucketObjectsByPrefix, deleteProjectBranchDataApi, deleteProjectBranchDatabase, deleteProjectBranchFunction, deleteProjectBranchRole, deleteProjectEndpoint, deleteProjectJwks, deleteProjectVpcEndpoint, deleteSnapshot, disableNeonAuth, finalizeRestoreBranch, getActiveRegions, getAnonymizedBranchStatus, getAuthDetails, getAvailablePreloadLibraries, getConnectionUri, getConsumptionHistoryPerBranchV2, getConsumptionHistoryPerProject, getConsumptionHistoryPerProjectV2, getCurrentUserInfo, getCurrentUserOrganizations, getMaskingRules, getNeonAuth, getNeonAuthAllowLocalhost, getNeonAuthEmailAndPasswordConfig, getNeonAuthEmailProvider, getNeonAuthEmailServer, getNeonAuthPhoneNumberPlugin, getNeonAuthPluginConfigs, getNeonAuthWebhookConfig, getOrganization, getOrganizationInvitations, getOrganizationMember, getOrganizationMembers, getOrganizationSpendingLimit, getOrganizationVpcEndpointDetails, getProject, getProjectAdvisorSecurityIssues, getProjectBranch, getProjectBranchAiGateway, getProjectBranchBucketObject, getProjectBranchDataApi, getProjectBranchDatabase, getProjectBranchFunction, getProjectBranchRole, getProjectBranchRolePassword, getProjectBranchSchema, getProjectBranchSchemaComparison, getProjectBranchStorage, getProjectEndpoint, getProjectJwks, getProjectOperation, getSnapshotSchedule, grantPermissionToProject, listApiKeys, listBranchNeonAuthOauthProviders, listBranchNeonAuthTrustedDomains, listCredentials, listNeonAuthIntegrations, listNeonAuthOauthProviders, listNeonAuthRedirectUriWhitelistDomains, listOrgApiKeys, listOrganizationVpcEndpoints, listOrganizationVpcEndpointsAllRegions, listProjectBranchBucketObjects, listProjectBranchBuckets, listProjectBranchDatabases, listProjectBranchEndpoints, listProjectBranchFunctions, listProjectBranchLogFieldValues, listProjectBranchLogFields, listProjectBranchRoles, listProjectBranches, listProjectEndpoints, listProjectMembers, listProjectOperations, listProjectPermissions, listProjectVpcEndpoints, listProjects, listSharedProjects, listSnapshots, presignProjectBranchBucketObject, queryProjectBranchLogs, recoverProject, removeOrganizationMember, removeProjectMemberRole, resetProjectBranchRolePassword, restartProjectEndpoint, restoreProjectBranch, restoreSnapshot, revokeApiKey, revokeCredential, revokeOrgApiKey, revokePermissionFromProject, sendNeonAuthTestEmail, setDefaultProjectBranch, setOrganizationSpendingLimit, setProjectMemberRole, setSnapshotSchedule, startAnonymization, startProjectEndpoint, suspendProjectEndpoint, transferNeonAuthProviderProject, transferProjectsFromOrgToOrg, transferProjectsFromUserToOrg, updateBranchNeonAuthOauthProvider, updateMaskingRules, updateNeonAuthAllowLocalhost, updateNeonAuthConfig, updateNeonAuthEmailAndPasswordConfig, updateNeonAuthEmailProvider, updateNeonAuthEmailServer, updateNeonAuthMagicLinkPlugin, updateNeonAuthOauthProvider, updateNeonAuthOrganizationPlugin, updateNeonAuthPhoneNumberPlugin, updateNeonAuthUserRole, updateNeonAuthWebhookConfig, updateOrganizationMember, updateProject, updateProjectBranch, updateProjectBranchDataApi, updateProjectBranchDatabase, updateProjectBranchFunction, updateProjectEndpoint, updateSnapshot };
4947
5114
 
4948
5115
  //# sourceMappingURL=sdk.gen.js.map