Skip to content

Commit

Permalink
Merge branch 'main' into gp/open-ts-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed Apr 26, 2024
2 parents db4587a + c4a13cc commit 0bfe8f9
Show file tree
Hide file tree
Showing 134 changed files with 816 additions and 213 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# [1.19.0](https://github.com/paambaati/neon-js-sdk/compare/v1.18.0...v1.19.0) (2024-04-18)


### Features

* update generated files ([029460a](https://github.com/paambaati/neon-js-sdk/commit/029460a74718d6cf1855174f06f591250938d596))
* update to track latest spec changes ([43797bf](https://github.com/paambaati/neon-js-sdk/commit/43797bface314f7b451277b5e71938e8e96f9ab5))
* update to track latest spec changes ([3f75115](https://github.com/paambaati/neon-js-sdk/commit/3f751155989ee6e372854882795b1e2f8281733f))

# [1.18.0](https://github.com/paambaati/neon-js-sdk/compare/v1.17.0...v1.18.0) (2024-03-04)


### Features

* update to track latest spec changes ([bdfcae7](https://github.com/paambaati/neon-js-sdk/commit/bdfcae7f39a5b6f92a0941e737b15d0283ebeb17))
* update to track latest spec changes ([dd61b41](https://github.com/paambaati/neon-js-sdk/commit/dd61b412cc4f78085ef1453d4533c9b16abf6d45))

# [1.17.0](https://github.com/paambaati/neon-js-sdk/compare/v1.16.0...v1.17.0) (2024-02-14)


### Features

* update to track latest spec changes ([ca05f17](https://github.com/paambaati/neon-js-sdk/commit/ca05f17cdc46a60a8d3410015202ab3f68100e90))
* update to track latest spec changes ([cfa02ae](https://github.com/paambaati/neon-js-sdk/commit/cfa02ae451ecbf03e1df863ecf41a4f19fdb8c73))

# [1.16.0](https://github.com/paambaati/neon-js-sdk/compare/v1.15.0...v1.16.0) (2023-12-03)


Expand Down
8 changes: 4 additions & 4 deletions generated/NeonClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand All @@ -7,18 +7,18 @@ import type { OpenAPIConfig } from './core/OpenAPI';
import { FetchHttpRequest } from './core/FetchHttpRequest';
import { ApiKeyService } from './services/ApiKeyService';
import { BranchService } from './services/BranchService';
import { ConsumptionService } from './services/ConsumptionService';
import { EndpointService } from './services/EndpointService';
import { OperationService } from './services/OperationService';
import { PreviewService } from './services/PreviewService';
import { ProjectService } from './services/ProjectService';
import { UsersService } from './services/UsersService';
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
export class NeonClient {
public readonly apiKey: ApiKeyService;
public readonly branch: BranchService;
public readonly consumption: ConsumptionService;
public readonly endpoint: EndpointService;
public readonly operation: OperationService;
public readonly preview: PreviewService;
public readonly project: ProjectService;
public readonly users: UsersService;
public readonly request: BaseHttpRequest;
Expand All @@ -36,9 +36,9 @@ export class NeonClient {
});
this.apiKey = new ApiKeyService(this.request);
this.branch = new BranchService(this.request);
this.consumption = new ConsumptionService(this.request);
this.endpoint = new EndpointService(this.request);
this.operation = new OperationService(this.request);
this.preview = new PreviewService(this.request);
this.project = new ProjectService(this.request);
this.users = new UsersService(this.request);
}
Expand Down
2 changes: 1 addition & 1 deletion generated/core/ApiError.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/core/ApiRequestOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/core/ApiResult.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/core/BaseHttpRequest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
8 changes: 4 additions & 4 deletions generated/core/CancelablePromise.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down Expand Up @@ -85,9 +85,9 @@ export class CancelablePromise<T> implements Promise<T> {
});
}

get [Symbol.toStringTag]() {
return "Cancellable Promise";
}
get [Symbol.toStringTag]() {
return "Cancellable Promise";
}

public then<TResult1 = T, TResult2 = never>(
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
Expand Down
2 changes: 1 addition & 1 deletion generated/core/FetchHttpRequest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/core/OpenAPI.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
4 changes: 2 additions & 2 deletions generated/core/request.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down Expand Up @@ -164,7 +164,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
headers['Authorization'] = `Basic ${credentials}`;
}

if (options.body) {
if (options.body !== undefined) {
if (options.mediaType) {
headers['Content-Type'] = options.mediaType;
} else if (isBlob(options.body)) {
Expand Down
33 changes: 31 additions & 2 deletions generated/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand All @@ -25,14 +25,18 @@ export type { BranchCreateRequestEndpointOptions } from './models/BranchCreateRe
export type { BranchesResponse } from './models/BranchesResponse';
export type { BranchOperations } from './models/BranchOperations';
export type { BranchResponse } from './models/BranchResponse';
export type { BranchRestoreRequest } from './models/BranchRestoreRequest';
export type { BranchSchemaResponse } from './models/BranchSchemaResponse';
export type { BranchState } from './models/BranchState';
export type { BranchUpdateRequest } from './models/BranchUpdateRequest';
export type { ComputeUnit } from './models/ComputeUnit';
export type { ConnectionDetails } from './models/ConnectionDetails';
export type { ConnectionParameters } from './models/ConnectionParameters';
export type { ConnectionURIResponse } from './models/ConnectionURIResponse';
export type { ConnectionURIsOptionalResponse } from './models/ConnectionURIsOptionalResponse';
export type { ConnectionURIsResponse } from './models/ConnectionURIsResponse';
export type { CurrentUserAuthAccount } from './models/CurrentUserAuthAccount';
export type { CurrentUserInfoAuthResponse } from './models/CurrentUserInfoAuthResponse';
export type { CurrentUserInfoResponse } from './models/CurrentUserInfoResponse';
export type { Database } from './models/Database';
export type { DatabaseCreateRequest } from './models/DatabaseCreateRequest';
Expand All @@ -57,13 +61,36 @@ export type { EndpointUpdateRequest } from './models/EndpointUpdateRequest';
export type { ErrorCode } from './models/ErrorCode';
export type { ExplainData } from './models/ExplainData';
export type { GeneralError } from './models/GeneralError';
export type { GithubAppProjectResponse } from './models/GithubAppProjectResponse';
export type { GithubAppRepository } from './models/GithubAppRepository';
export type { GrantPermissionToProjectRequest } from './models/GrantPermissionToProjectRequest';
export type { HealthCheck } from './models/HealthCheck';
export type { IdentityProviderId } from './models/IdentityProviderId';
export type { Invitation } from './models/Invitation';
export type { InvitationCreateRequest } from './models/InvitationCreateRequest';
export type { LinkedAuthAccount } from './models/LinkedAuthAccount';
export type { Member } from './models/Member';
export type { MemberRole } from './models/MemberRole';
export type { MemberUserInfo } from './models/MemberUserInfo';
export type { MemberWithUser } from './models/MemberWithUser';
export type { Operation } from './models/Operation';
export type { OperationAction } from './models/OperationAction';
export type { OperationResponse } from './models/OperationResponse';
export type { OperationsResponse } from './models/OperationsResponse';
export type { OperationStatus } from './models/OperationStatus';
export type { Organization } from './models/Organization';
export type { OrganizationCreateRequest } from './models/OrganizationCreateRequest';
export type { OrganizationGuest } from './models/OrganizationGuest';
export type { OrganizationGuestsResponse } from './models/OrganizationGuestsResponse';
export type { OrganizationInvitationsResponse } from './models/OrganizationInvitationsResponse';
export type { OrganizationInviteCreateRequest } from './models/OrganizationInviteCreateRequest';
export type { OrganizationInvitesCreateRequest } from './models/OrganizationInvitesCreateRequest';
export type { OrganizationInviteUpdateRequest } from './models/OrganizationInviteUpdateRequest';
export type { OrganizationLimits } from './models/OrganizationLimits';
export type { OrganizationMembersResponse } from './models/OrganizationMembersResponse';
export type { OrganizationMemberUpdateRequest } from './models/OrganizationMemberUpdateRequest';
export type { OrganizationsResponse } from './models/OrganizationsResponse';
export type { OrganizationsUpdateRequest } from './models/OrganizationsUpdateRequest';
export type { Pagination } from './models/Pagination';
export type { PaginationResponse } from './models/PaginationResponse';
export type { PaymentSource } from './models/PaymentSource';
Expand All @@ -86,6 +113,7 @@ export type { ProjectSettingsData } from './models/ProjectSettingsData';
export type { ProjectsResponse } from './models/ProjectsResponse';
export type { ProjectUpdateRequest } from './models/ProjectUpdateRequest';
export type { Provisioner } from './models/Provisioner';
export type { RepositoryUpdateRequest } from './models/RepositoryUpdateRequest';
export type { Role } from './models/Role';
export type { RoleCreateRequest } from './models/RoleCreateRequest';
export type { RoleOperations } from './models/RoleOperations';
Expand All @@ -97,11 +125,12 @@ export type { StatementResult } from './models/StatementResult';
export type { SupportTicketSeverity } from './models/SupportTicketSeverity';
export type { SuspendTimeoutSeconds } from './models/SuspendTimeoutSeconds';
export type { UpdateUserInfoRequest } from './models/UpdateUserInfoRequest';
export type { VerifyUserPasswordRequest } from './models/VerifyUserPasswordRequest';

export { ApiKeyService } from './services/ApiKeyService';
export { BranchService } from './services/BranchService';
export { ConsumptionService } from './services/ConsumptionService';
export { EndpointService } from './services/EndpointService';
export { OperationService } from './services/OperationService';
export { PreviewService } from './services/PreviewService';
export { ProjectService } from './services/ProjectService';
export { UsersService } from './services/UsersService';
12 changes: 8 additions & 4 deletions generated/models/AllowedIps.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* A list of IP addresses that are allowed to connect to the endpoint.
* A list of IP addresses that are allowed to connect to the compute endpoint.
* If the list is empty or not set, all IP addresses are allowed.
* If primary_branch_only is true, the list will be applied only to the primary branch.
* If protected_branches_only is true, the list will be applied only to protected branches.
*
*/
export type AllowedIps = {
/**
* A list of IP addresses that are allowed to connect to the endpoint.
*/
ips?: Array<string>;
/**
* If true, the list will be applied only to protected branches.
*/
protected_branches_only?: boolean;
/**
* If true, the list will be applied only to the primary branch.
*/
primary_branch_only: boolean;
primary_branch_only?: boolean;
};

2 changes: 1 addition & 1 deletion generated/models/ApiKeyCreateRequest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/models/ApiKeyCreateResponse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/models/ApiKeyRevokeResponse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/models/ApiKeysListResponseItem.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/models/BillingAccount.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/models/BillingAccountResponse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
7 changes: 6 additions & 1 deletion generated/models/BillingAccountUpdateRequest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand All @@ -9,6 +9,11 @@ export type BillingAccountUpdateRequest = {
*
*/
email?: string;
/**
* Organization id, to update the billing email of the organization account.
*
*/
org_id?: string;
};
};

2 changes: 1 addition & 1 deletion generated/models/BillingSubscriptionType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
9 changes: 7 additions & 2 deletions generated/models/Branch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down Expand Up @@ -52,7 +52,12 @@ export type Branch = {
*/
primary: boolean;
/**
* CPU seconds used by all the endpoints of the branch, including deleted ones.
* Whether the branch is protected
*
*/
protected: boolean;
/**
* CPU seconds used by all of the branch's compute endpoints, including deleted ones.
* This value is reset at the beginning of each billing period.
* Examples:
* 1. A branch that uses 1 CPU for 1 second is equal to `cpu_used_sec=1`.
Expand Down
8 changes: 7 additions & 1 deletion generated/models/BranchCreateRequest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand All @@ -23,9 +23,15 @@ export type BranchCreateRequest = {
parent_lsn?: string;
/**
* A timestamp identifying a point in time on the parent branch. The branch will be created with data starting from this point in time.
* The timestamp must be provided in ISO 8601 format; for example: `2024-02-26T12:00:00Z`.
*
*/
parent_timestamp?: string;
/**
* Whether the branch is protected
*
*/
protected?: boolean;
};
};

2 changes: 1 addition & 1 deletion generated/models/BranchCreateRequestEndpointOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/models/BranchOperations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion generated/models/BranchResponse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down

0 comments on commit 0bfe8f9

Please sign in to comment.