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

Commit 50c0ddf

Browse files
authored
chore: regenerate
1 parent fff6e2d commit 50c0ddf

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

generated/schemas.gen.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2700,6 +2700,11 @@ export const $UserDeletionConditionName = {
27002700
enum: ['project_count', 'org_admin_membership_count', 'subscription_type']
27012701
} as const;
27022702

2703+
export const $OrgDeletionConditionName = {
2704+
type: 'string',
2705+
enum: ['project_count']
2706+
} as const;
2707+
27032708
export const $GeneralError = {
27042709
type: 'object',
27052710
description: 'General Error',
@@ -2792,9 +2797,16 @@ export const $AnnotationData = {
27922797

27932798
export const $AnnotationValueData = {
27942799
type: 'object',
2800+
description: 'Annotation properties.',
27952801
'x-tags': ['Branch'],
2802+
maxProperties: 50,
27962803
additionalProperties: {
2797-
type: 'string'
2804+
type: 'string',
2805+
minLength: 1,
2806+
maxLength: 200,
2807+
example: {
2808+
'github-commit-ref': 'github-branch-name'
2809+
}
27982810
}
27992811
} as const;
28002812

@@ -2820,9 +2832,20 @@ export const $AnnotationObjectsData = {
28202832
}
28212833
} as const;
28222834

2835+
export const $AnnotationCreateValueRequest = {
2836+
type: 'object',
2837+
'x-tags': ['Branch'],
2838+
properties: {
2839+
annotation_value: {
2840+
'$ref': '#/components/schemas/AnnotationValueData'
2841+
}
2842+
}
2843+
} as const;
2844+
28232845
export const $AnnotationResponse = {
28242846
type: 'object',
28252847
'x-tags': ['Branch'],
2848+
required: ['annotation'],
28262849
properties: {
28272850
annotation: {
28282851
'$ref': '#/components/schemas/AnnotationData'

generated/types.gen.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,8 @@ export type ProjectOwnerData = {
18011801

18021802
export type UserDeletionConditionName = 'project_count' | 'org_admin_membership_count' | 'subscription_type';
18031803

1804+
export type OrgDeletionConditionName = 'project_count';
1805+
18041806
/**
18051807
* General Error
18061808
*/
@@ -1831,6 +1833,9 @@ export type AnnotationData = {
18311833
updated_at?: string;
18321834
};
18331835

1836+
/**
1837+
* Annotation properties.
1838+
*/
18341839
export type AnnotationValueData = {
18351840
[key: string]: (string);
18361841
};
@@ -1842,8 +1847,12 @@ export type AnnotationObjectData = {
18421847

18431848
export type AnnotationObjectsData = Array<AnnotationObjectData>;
18441849

1850+
export type AnnotationCreateValueRequest = {
1851+
annotation_value?: AnnotationValueData;
1852+
};
1853+
18451854
export type AnnotationResponse = {
1846-
annotation?: AnnotationData;
1855+
annotation: AnnotationData;
18471856
};
18481857

18491858
export type AnnotationsResponse = {
@@ -2029,7 +2038,7 @@ export type CreateProjectBranchData = {
20292038
* The Neon project ID
20302039
*/
20312040
projectId: string;
2032-
requestBody?: BranchCreateRequest;
2041+
requestBody?: BranchCreateRequest & AnnotationCreateValueRequest;
20332042
};
20342043

20352044
export type CreateProjectBranchResponse = BranchResponse & EndpointsResponse & OperationsResponse & RolesResponse & DatabasesResponse & ConnectionURIsOptionalResponse;

0 commit comments

Comments
 (0)