This repository was archived by the owner on Jul 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -2700,6 +2700,11 @@ export const $UserDeletionConditionName = {
2700
2700
enum : [ 'project_count' , 'org_admin_membership_count' , 'subscription_type' ]
2701
2701
} as const ;
2702
2702
2703
+ export const $OrgDeletionConditionName = {
2704
+ type : 'string' ,
2705
+ enum : [ 'project_count' ]
2706
+ } as const ;
2707
+
2703
2708
export const $GeneralError = {
2704
2709
type : 'object' ,
2705
2710
description : 'General Error' ,
@@ -2792,9 +2797,16 @@ export const $AnnotationData = {
2792
2797
2793
2798
export const $AnnotationValueData = {
2794
2799
type : 'object' ,
2800
+ description : 'Annotation properties.' ,
2795
2801
'x-tags' : [ 'Branch' ] ,
2802
+ maxProperties : 50 ,
2796
2803
additionalProperties : {
2797
- type : 'string'
2804
+ type : 'string' ,
2805
+ minLength : 1 ,
2806
+ maxLength : 200 ,
2807
+ example : {
2808
+ 'github-commit-ref' : 'github-branch-name'
2809
+ }
2798
2810
}
2799
2811
} as const ;
2800
2812
@@ -2820,9 +2832,20 @@ export const $AnnotationObjectsData = {
2820
2832
}
2821
2833
} as const ;
2822
2834
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
+
2823
2845
export const $AnnotationResponse = {
2824
2846
type : 'object' ,
2825
2847
'x-tags' : [ 'Branch' ] ,
2848
+ required : [ 'annotation' ] ,
2826
2849
properties : {
2827
2850
annotation : {
2828
2851
'$ref' : '#/components/schemas/AnnotationData'
Original file line number Diff line number Diff line change @@ -1801,6 +1801,8 @@ export type ProjectOwnerData = {
1801
1801
1802
1802
export type UserDeletionConditionName = 'project_count' | 'org_admin_membership_count' | 'subscription_type' ;
1803
1803
1804
+ export type OrgDeletionConditionName = 'project_count' ;
1805
+
1804
1806
/**
1805
1807
* General Error
1806
1808
*/
@@ -1831,6 +1833,9 @@ export type AnnotationData = {
1831
1833
updated_at ?: string ;
1832
1834
} ;
1833
1835
1836
+ /**
1837
+ * Annotation properties.
1838
+ */
1834
1839
export type AnnotationValueData = {
1835
1840
[ key : string ] : ( string ) ;
1836
1841
} ;
@@ -1842,8 +1847,12 @@ export type AnnotationObjectData = {
1842
1847
1843
1848
export type AnnotationObjectsData = Array < AnnotationObjectData > ;
1844
1849
1850
+ export type AnnotationCreateValueRequest = {
1851
+ annotation_value ?: AnnotationValueData ;
1852
+ } ;
1853
+
1845
1854
export type AnnotationResponse = {
1846
- annotation ? : AnnotationData ;
1855
+ annotation : AnnotationData ;
1847
1856
} ;
1848
1857
1849
1858
export type AnnotationsResponse = {
@@ -2029,7 +2038,7 @@ export type CreateProjectBranchData = {
2029
2038
* The Neon project ID
2030
2039
*/
2031
2040
projectId : string ;
2032
- requestBody ?: BranchCreateRequest ;
2041
+ requestBody ?: BranchCreateRequest & AnnotationCreateValueRequest ;
2033
2042
} ;
2034
2043
2035
2044
export type CreateProjectBranchResponse = BranchResponse & EndpointsResponse & OperationsResponse & RolesResponse & DatabasesResponse & ConnectionURIsOptionalResponse ;
You can’t perform that action at this time.
0 commit comments