Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit b18add5

Browse files
authored
chore: regenerate code
1 parent 777535b commit b18add5

File tree

4 files changed

+202
-762
lines changed

4 files changed

+202
-762
lines changed

generated/NeonClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { FetchHttpRequest } from './core/FetchHttpRequest';
66
import { ApiKeyService } from './services.gen';
77
import { BranchService } from './services.gen';
88
import { ConsumptionService } from './services.gen';
9+
import { DefaultService } from './services.gen';
910
import { EndpointService } from './services.gen';
1011
import { OperationService } from './services.gen';
1112
import { ProjectService } from './services.gen';
@@ -18,6 +19,7 @@ export class NeonClient {
1819
public readonly apiKey: ApiKeyService;
1920
public readonly branch: BranchService;
2021
public readonly consumption: ConsumptionService;
22+
public readonly default: DefaultService;
2123
public readonly endpoint: EndpointService;
2224
public readonly operation: OperationService;
2325
public readonly project: ProjectService;
@@ -45,6 +47,7 @@ export class NeonClient {
4547
this.apiKey = new ApiKeyService(this.request);
4648
this.branch = new BranchService(this.request);
4749
this.consumption = new ConsumptionService(this.request);
50+
this.default = new DefaultService(this.request);
4851
this.endpoint = new EndpointService(this.request);
4952
this.operation = new OperationService(this.request);
5053
this.project = new ProjectService(this.request);

generated/schemas.gen.ts

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,73 @@ export const $EmptyResponse = {
6464
properties: {}
6565
} as const;
6666

67+
export const $AddEndpointJWKSRequest = {
68+
description: 'Add a new JWKS to a specific endpoint of a project',
69+
type: 'object',
70+
required: ['jwks_url', 'provider_name'],
71+
properties: {
72+
jwks_url: {
73+
description: 'The URL that lists the JWKS',
74+
type: 'string'
75+
},
76+
provider_name: {
77+
description: 'The name of the authentication provider (e.g., Clerk, Stytch, Auth0)',
78+
type: 'string'
79+
}
80+
}
81+
} as const;
82+
83+
export const $JWKS = {
84+
type: 'object',
85+
required: ['id', 'project_id', 'endpoint_id', 'jwks_url', 'provider_name', 'created_at', 'updated_at'],
86+
properties: {
87+
id: {
88+
description: 'JWKS ID',
89+
type: 'string'
90+
},
91+
project_id: {
92+
description: 'Project ID',
93+
type: 'string'
94+
},
95+
endpoint_id: {
96+
description: 'Endpoint ID',
97+
type: 'string'
98+
},
99+
jwks_url: {
100+
description: 'The URL that lists the JWKS',
101+
type: 'string'
102+
},
103+
provider_name: {
104+
description: 'The name of the authentication provider (e.g., Clerk, Stytch, Auth0)',
105+
type: 'string'
106+
},
107+
created_at: {
108+
description: 'The date and time when the JWKS was created',
109+
type: 'string',
110+
format: 'date-time'
111+
},
112+
updated_at: {
113+
description: 'The date and time when the JWKS was last modified',
114+
type: 'string',
115+
format: 'date-time'
116+
}
117+
}
118+
} as const;
119+
120+
export const $ProjectJWKSResponse = {
121+
description: 'The list of configured JWKS definitions for a project',
122+
type: 'object',
123+
required: ['jwks'],
124+
properties: {
125+
jwks: {
126+
type: 'array',
127+
items: {
128+
'$ref': '#/components/schemas/JWKS'
129+
}
130+
}
131+
}
132+
} as const;
133+
67134
export const $ApiKeyCreateRequest = {
68135
type: 'object',
69136
required: ['key_name'],
@@ -1994,7 +2061,7 @@ export const $BillingSubscriptionType = {
19942061
export const $BillingPaymentMethod = {
19952062
type: 'string',
19962063
description: "Indicates whether and how an account makes payments.",
1997-
enum: ['UNKNOWN', 'none', 'stripe', 'direct_payment', 'aws_mp', 'vercel_mp']
2064+
enum: ['UNKNOWN', 'none', 'stripe', 'direct_payment', 'aws_mp', 'vercel_mp', 'staff', 'trial', 'sponsorship']
19982065
} as const;
19992066

20002067
export const $Database = {

generated/services.gen.ts

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import type { CancelablePromise } from './core/CancelablePromise';
44
import type { BaseHttpRequest } from './core/BaseHttpRequest';
5-
import type { ListApiKeysResponse, CreateApiKeyData, CreateApiKeyResponse, RevokeApiKeyData, RevokeApiKeyResponse, GetProjectOperationData, GetProjectOperationResponse, ListProjectOperationsData, ListProjectOperationsResponse, ListProjectsData, ListProjectsResponse, CreateProjectData, CreateProjectResponse, ListSharedProjectsData, ListSharedProjectsResponse, GetProjectData, GetProjectResponse, UpdateProjectData, UpdateProjectResponse, DeleteProjectData, DeleteProjectResponse, ListProjectPermissionsData, ListProjectPermissionsResponse, GrantPermissionToProjectData, GrantPermissionToProjectResponse, RevokePermissionFromProjectData, RevokePermissionFromProjectResponse, GetConnectionUriData, GetConnectionUriResponse, CreateProjectBranchData, CreateProjectBranchResponse, ListProjectBranchesData, ListProjectBranchesResponse, GetProjectBranchData, GetProjectBranchResponse, DeleteProjectBranchData, DeleteProjectBranchResponse, UpdateProjectBranchData, UpdateProjectBranchResponse, RestoreProjectBranchData, RestoreProjectBranchResponse, GetProjectBranchSchemaData, GetProjectBranchSchemaResponse, SetPrimaryProjectBranchData, SetPrimaryProjectBranchResponse, SetDefaultProjectBranchData, SetDefaultProjectBranchResponse, ListProjectBranchEndpointsData, ListProjectBranchEndpointsResponse, ListProjectBranchDatabasesData, ListProjectBranchDatabasesResponse, CreateProjectBranchDatabaseData, CreateProjectBranchDatabaseResponse, GetProjectBranchDatabaseData, GetProjectBranchDatabaseResponse, UpdateProjectBranchDatabaseData, UpdateProjectBranchDatabaseResponse, DeleteProjectBranchDatabaseData, DeleteProjectBranchDatabaseResponse, ListProjectBranchRolesData, ListProjectBranchRolesResponse, CreateProjectBranchRoleData, CreateProjectBranchRoleResponse, GetProjectBranchRoleData, GetProjectBranchRoleResponse, DeleteProjectBranchRoleData, DeleteProjectBranchRoleResponse, GetProjectBranchRolePasswordData, GetProjectBranchRolePasswordResponse, ResetProjectBranchRolePasswordData, ResetProjectBranchRolePasswordResponse, CreateProjectEndpointData, CreateProjectEndpointResponse, ListProjectEndpointsData, ListProjectEndpointsResponse, GetProjectEndpointData, GetProjectEndpointResponse, DeleteProjectEndpointData, DeleteProjectEndpointResponse, UpdateProjectEndpointData, UpdateProjectEndpointResponse, StartProjectEndpointData, StartProjectEndpointResponse, SuspendProjectEndpointData, SuspendProjectEndpointResponse, RestartProjectEndpointData, RestartProjectEndpointResponse, GetConsumptionHistoryPerAccountData, GetConsumptionHistoryPerAccountResponse, GetConsumptionHistoryPerProjectData, GetConsumptionHistoryPerProjectResponse, ListProjectsConsumptionData, ListProjectsConsumptionResponse, GetCurrentUserInfoResponse, GetCurrentUserOrganizationsResponse } from './types.gen';
5+
import type { ListApiKeysResponse, CreateApiKeyData, CreateApiKeyResponse, RevokeApiKeyData, RevokeApiKeyResponse, GetProjectOperationData, GetProjectOperationResponse, ListProjectOperationsData, ListProjectOperationsResponse, ListProjectsData, ListProjectsResponse, CreateProjectData, CreateProjectResponse, ListSharedProjectsData, ListSharedProjectsResponse, GetProjectData, GetProjectResponse, UpdateProjectData, UpdateProjectResponse, DeleteProjectData, DeleteProjectResponse, ListProjectPermissionsData, ListProjectPermissionsResponse, GrantPermissionToProjectData, GrantPermissionToProjectResponse, RevokePermissionFromProjectData, RevokePermissionFromProjectResponse, GetConnectionUriData, GetConnectionUriResponse, GetProjectJwksData, GetProjectJwksResponse, AddEndpointJwksData, AddEndpointJwksResponse, CreateProjectBranchData, CreateProjectBranchResponse, ListProjectBranchesData, ListProjectBranchesResponse, GetProjectBranchData, GetProjectBranchResponse, DeleteProjectBranchData, DeleteProjectBranchResponse, UpdateProjectBranchData, UpdateProjectBranchResponse, RestoreProjectBranchData, RestoreProjectBranchResponse, GetProjectBranchSchemaData, GetProjectBranchSchemaResponse, SetPrimaryProjectBranchData, SetPrimaryProjectBranchResponse, SetDefaultProjectBranchData, SetDefaultProjectBranchResponse, ListProjectBranchEndpointsData, ListProjectBranchEndpointsResponse, ListProjectBranchDatabasesData, ListProjectBranchDatabasesResponse, CreateProjectBranchDatabaseData, CreateProjectBranchDatabaseResponse, GetProjectBranchDatabaseData, GetProjectBranchDatabaseResponse, UpdateProjectBranchDatabaseData, UpdateProjectBranchDatabaseResponse, DeleteProjectBranchDatabaseData, DeleteProjectBranchDatabaseResponse, ListProjectBranchRolesData, ListProjectBranchRolesResponse, CreateProjectBranchRoleData, CreateProjectBranchRoleResponse, GetProjectBranchRoleData, GetProjectBranchRoleResponse, DeleteProjectBranchRoleData, DeleteProjectBranchRoleResponse, GetProjectBranchRolePasswordData, GetProjectBranchRolePasswordResponse, ResetProjectBranchRolePasswordData, ResetProjectBranchRolePasswordResponse, CreateProjectEndpointData, CreateProjectEndpointResponse, ListProjectEndpointsData, ListProjectEndpointsResponse, GetProjectEndpointData, GetProjectEndpointResponse, DeleteProjectEndpointData, DeleteProjectEndpointResponse, UpdateProjectEndpointData, UpdateProjectEndpointResponse, StartProjectEndpointData, StartProjectEndpointResponse, SuspendProjectEndpointData, SuspendProjectEndpointResponse, RestartProjectEndpointData, RestartProjectEndpointResponse, GetConsumptionHistoryPerAccountData, GetConsumptionHistoryPerAccountResponse, GetConsumptionHistoryPerProjectData, GetConsumptionHistoryPerProjectResponse, ListProjectsConsumptionData, ListProjectsConsumptionResponse, GetCurrentUserInfoResponse, GetCurrentUserOrganizationsResponse } from './types.gen';
66

77
export class ApiKeyService {
88
constructor(public readonly httpRequest: BaseHttpRequest) { }
@@ -423,6 +423,59 @@ export class ProjectService {
423423

424424
}
425425

426+
export class DefaultService {
427+
constructor(public readonly httpRequest: BaseHttpRequest) { }
428+
429+
/**
430+
* Returns all JWKS definitions for a project
431+
* Returns all JWKS definitions for a project
432+
*
433+
* @param data The data for the request.
434+
* @param data.projectId The Neon project ID
435+
* @returns ProjectJWKSResponse The JWKS definitions for the project
436+
* @throws ApiError
437+
*/
438+
public getProjectJwks(data: GetProjectJwksData): CancelablePromise<GetProjectJwksResponse> {
439+
return this.httpRequest.request({
440+
method: 'GET',
441+
url: '/projects/{project_id}/jwks',
442+
path: {
443+
project_id: data.projectId
444+
},
445+
errors: {
446+
default: 'General Error'
447+
}
448+
});
449+
}
450+
451+
/**
452+
* Adds a JWKS to project's endpoint
453+
* Add a new JWKS to a specific endpoint of a project
454+
* @param data The data for the request.
455+
* @param data.projectId The Neon project ID
456+
* @param data.endpointId The endpoint ID
457+
* @param data.requestBody
458+
* @returns JWKS The JWKS URL was added to the project authentication connections
459+
* @throws ApiError
460+
*/
461+
public addEndpointJwks(data: AddEndpointJwksData): CancelablePromise<AddEndpointJwksResponse> {
462+
return this.httpRequest.request({
463+
method: 'POST',
464+
url: '/projects/{project_id}/endpoints/{endpoint_id}/jwks',
465+
path: {
466+
project_id: data.projectId,
467+
endpoint_id: data.endpointId
468+
},
469+
body: data.requestBody,
470+
mediaType: 'application/json',
471+
errors: {
472+
default: 'General Error'
473+
}
474+
});
475+
}
476+
477+
}
478+
426479
export class BranchService {
427480
constructor(public readonly httpRequest: BaseHttpRequest) { }
428481

0 commit comments

Comments
 (0)