Skip to content

Releases: kislerdm/neon-sdk-go

v0.11.0

08 Dec 10:43
8f3b1d6
Compare
Choose a tag to compare

What's Changed

The release incorporates the up-to-date API contract as of 2024-12-08 10:35:00 GMT.

Added

  • Added the attribute Archived to the type BranchCreateRequestBranch to create archived branches.

Removed

  • [BREAKING] Removed the attribute ProtectedBranchOnly from the type AllowedIps.

New Contributors

Full Changelog: v0.10.0...v0.11.0

v0.10.0

21 Nov 10:17
47d7310
Compare
Choose a tag to compare

What's Changed

The release incorporates the up-to-date API contract as of 2024-11-21 00:12:18 GMT.

Added

  • Added the MaintenanceWindow attribute of the ProjectSettingsData type to configure the Neon project's
    maintenance window.

Full Changelog: v0.9.0...v0.10.0

v0.9.0

09 Nov 11:33
49561f2
Compare
Choose a tag to compare

What's Changed

The release incorporates the up-to-date API contract as of 2024-11-09 11:12:00 GMT.

Added

  • Added the methods to manipulate JWKS for the project:

    • AddProjectJWKS: adds the JWKS URL to the project.
    • GetProjectJWKS: retrieve all JWKS URLs configured for the project.
    • DeleteProjectJWKS: deletes the JWKS URL from the project.
  • Added the method GetOrganization to read the organization's info

  • Added the methods to manage the organization's membership invitations:

    • GetOrganizationInvitations: retrieves the memberships invitations for the organization.
    • GetOrganizationMember: reads the info about the organization's members.
    • GetOrganizationMembers: retrieves the info about all organization's members.
  • Added Vercel as the identity provider's enum value.

Changed

  • [BREAKING] Changed the type of the attributes Primary in the Branch struct to the pointer to bool from bool.

Full Changelog: v0.8.0...v0.9.0

v0.8.0

28 Oct 22:42
1cb011b
Compare
Choose a tag to compare

What's Changed

The release incorporates the up-to-date API contract as of 2024-10-28 22:27:00 GMT.

Added

  • [BREAKING] Added the argument search to the method ListProjectBranches to list branches by name or id. A partial name or id values may be specified to filter results.
  • Added the property BillingAccount of the type CurrentUserInfoResponse: added the State to define the billing account's state.
  • Added the attribute CreatedBy to the type ApiKeysListResponseItem to define the user who created the API key.
  • Added the endpoint GetActiveRegions to list active regions to provision databases.

Full Changelog: v0.7.0...v0.8.0

v0.7.0

20 Oct 11:23
baff725
Compare
Choose a tag to compare

What's Changed

The release incorporates the up-to-date API contract as of 2024-10-20 11:15:00 GMT.

Added

  • Added the attributes to reflect when and who created, or revoked API keys:

    • Added CreatedBy to ApiKeyCreateResponse and ApiKeysListResponseItem;
    • Added CreatedAt and CreatedBy to ApiKeyRevokeResponse.
  • Added the attribute StateChangedAt to the type Branch to reflect when the "current_state" began.

Removed

  • [BREAKING] Removed the method to list projects consumption ListProjectsConsumption.

Full Changelog: v0.6.2...v0.7.0

v0.6.2

08 Oct 11:13
a3647c2
Compare
Choose a tag to compare

What's Changed

The release incorporates the up-to-date API contract as of 2024-10-08 00:11:00 GMT.

Added

  • Added the mapping of the enum value "archived" to the type BranchState.
  • Added the mapping of the enum values "timeline_archive" and "timeline_unarchive" to the type OperationAction.

Full Changelog: v0.6.1...v0.6.2

v0.6.1

01 Oct 07:01
57004cd
Compare
Choose a tag to compare

What's Changed

The release incorporates the up-to-date API contract as of 2024-10-01 06:44:00 GMT.

Added

  • Added "azure_mp" as a BillingPaymentMethod enum value.

Changed

  • Changed the response type of the method ListProjects, ListProjectsRespObj. It includes the map ProjectsApplicationsMapResponse which contains all applications available in the project.

Deprecated

  • Deprecated Login field in the types CurrentUserAuthAccount and CurrentUserInfoResponse.

Full Changelog: v0.6.0...v0.6.1

v0.6.0

28 Sep 21:55
2ace220
Compare
Choose a tag to compare

What's Changed

The release incorporates the up-to-date API contract as of 2024-09-28 21:53:00 GMT.

Added

  • Added the method TransferProjectsFromUserToOrg to migrate personal projects to organisation.
  • Added the payment method attribute to the struct BillingAccount.
  • Added Business subscription type's value.
  • Added the attribute CreatedBy to the struct Branch to indicate who created the branch.

Changed

  • [BREAKING] Change the signatures of the methods:
    • ListProjectBranches;
    • CreateProjectBranch;
    • GetProjectBranch;
    • GetProjectBranchSchema.

Full Changelog: v0.5.0...v0.6.0

v0.5.0

24 Jun 22:12
7dd0055
Compare
Choose a tag to compare

The release incorporates the up-to-date API contract as of 2024-06-24 22:03:00 GMT.

Added

  • Added support of the following ENUMs as type aliases:
    • The type BillingSubscriptionType as the attribute of the response of the method GetCurrentUserInfo.
    • The type BranchState as attributes of the response of the method GetProjectBranch.
    • The type ConsumptionHistoryGranularity as the argument of the method GetConsumptionHistoryPerAccount and GetConsumptionHistoryPerProject.
    • The types EndpointPoolerMode, EndpointState as the attributes of the struct Endpoint, which defines the
      response of the method GetProjectEndpoint.
    • The type EndpointType as the attribute which defines the endpoint's type to create an endpoint, or define the
      options of the branch's endpoints.
    • The type IdentityProviderId as the attribute of the struct CurrentUserAuthAccount which defines the response
      of the method GetCurrentUserInfo.
    • The types OperationAction and OperationStatus as the attributes of the struct Operation which defines the
      response of several endpoints which include the operations.
    • The type Provisioner which defines the Neon compute provisioner's type.
  • Added the method GetProjectBranchSchema to retrieve the database schema, see details here.
  • Added the methods to retrieve the consumption metrics:
    • GetConsumptionHistoryPerAccount allows to read the account's consumption history, see details here.
    • GetConsumptionHistoryPerProject allows to read the consumption history for a list of projects, see details here.
  • Added the method GetCurrentUserOrganizations to read all organization which a given user belongs to.
  • Added support of the organization ID (orgID argument) when using the following methods:
    • ListProjectsConsumption, see details here.
  • Added the name, the address and the tax information to the billing details of the account: BillingAccount struct.

Changed

  • All arguments which end with the suffices Id/Ids, Url/Urls, Uri/Uris will follow the Go convention. For example, the query parameter project_ids will correspond to the method's argument projectIDs.

Deprecated

  • The method SetPrimaryProjectBranch is deprecated, please use the method SetDefaultProjectBranch instead.
  • The label "primary" branch and the attributes Primary is deprecated for the label "default" and the respective
    attribute Default. See the struct Branch for example.
  • The attribute ProxyHost of the struct Endpoint is deprecated, please use the attribute Host instead.
  • The attribute CpuUsedSec of the structs Project and ProjectListItem is deprecated,
    please use the attribute ComputeTimeSeconds instead.
  • The attribute QuotaResetAt of the structs Project and ProjectListItem is deprecated,
    please use the attribute ConsumptionPeriodEnd instead.

Full Changelog: v0.4.9...v0.5.0

v0.4.9

13 Apr 10:13
d8302fa
Compare
Choose a tag to compare

Added

  • Added the filtering argument orgID to the method ListProjects to enhance the projects listing functionality.
  • Added the method RestartProjectEndpoint to restart the project's endpoint. Find details here.
  • Added the filter ProtectedBranchesOnly provision the list of allowed IP addresses only for the protected branches.
  • Added the field ComputeReleaseVersion to the struct Endpoint to reflect the version of the compute resources.

Changed

  • Changed the type of the HistoryRetentionSeconds to int32 attribute.

Fixed

  • Fixed the method GetConnectionURI by correcting the logic of building the request query.

Full Changelog: v0.4.8...v0.4.9