@mesadev/sdk 0.1.7 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/README.md +220 -183
  2. package/dist/commonjs/funcs/contentGet.d.ts +1 -1
  3. package/dist/commonjs/funcs/contentGet.js +1 -1
  4. package/dist/commonjs/funcs/lfsDownload.d.ts +18 -0
  5. package/dist/commonjs/funcs/lfsDownload.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/lfsDownload.js +129 -0
  7. package/dist/commonjs/funcs/lfsDownload.js.map +1 -0
  8. package/dist/commonjs/funcs/lfsUpload.d.ts +18 -0
  9. package/dist/commonjs/funcs/lfsUpload.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/lfsUpload.js +129 -0
  11. package/dist/commonjs/funcs/lfsUpload.js.map +1 -0
  12. package/dist/commonjs/funcs/mergePerform.d.ts +18 -0
  13. package/dist/commonjs/funcs/mergePerform.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/mergePerform.js +133 -0
  15. package/dist/commonjs/funcs/mergePerform.js.map +1 -0
  16. package/dist/commonjs/funcs/reposGet.js +1 -1
  17. package/dist/commonjs/funcs/reposGet.js.map +1 -1
  18. package/dist/commonjs/helpers/index.d.ts +8 -0
  19. package/dist/commonjs/helpers/index.d.ts.map +1 -0
  20. package/dist/commonjs/helpers/index.js +24 -0
  21. package/dist/commonjs/helpers/index.js.map +1 -0
  22. package/dist/commonjs/helpers/lfs.d.ts +103 -0
  23. package/dist/commonjs/helpers/lfs.d.ts.map +1 -0
  24. package/dist/commonjs/helpers/lfs.js +266 -0
  25. package/dist/commonjs/helpers/lfs.js.map +1 -0
  26. package/dist/commonjs/lib/config.d.ts +3 -3
  27. package/dist/commonjs/lib/config.js +3 -3
  28. package/dist/commonjs/models/errors/index.d.ts +3 -0
  29. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  30. package/dist/commonjs/models/errors/index.js +3 -0
  31. package/dist/commonjs/models/errors/index.js.map +1 -1
  32. package/dist/commonjs/models/errors/postbyorgbyrepolfsobjects.d.ts +151 -0
  33. package/dist/commonjs/models/errors/postbyorgbyrepolfsobjects.d.ts.map +1 -0
  34. package/dist/commonjs/models/errors/postbyorgbyrepolfsobjects.js +233 -0
  35. package/dist/commonjs/models/errors/postbyorgbyrepolfsobjects.js.map +1 -0
  36. package/dist/commonjs/models/errors/postbyorgbyrepolfsobjectsdownload.d.ts +151 -0
  37. package/dist/commonjs/models/errors/postbyorgbyrepolfsobjectsdownload.d.ts.map +1 -0
  38. package/dist/commonjs/models/errors/postbyorgbyrepolfsobjectsdownload.js +244 -0
  39. package/dist/commonjs/models/errors/postbyorgbyrepolfsobjectsdownload.js.map +1 -0
  40. package/dist/commonjs/models/errors/postbyorgbyrepomergebybase.d.ts +151 -0
  41. package/dist/commonjs/models/errors/postbyorgbyrepomergebybase.d.ts.map +1 -0
  42. package/dist/commonjs/models/errors/postbyorgbyrepomergebybase.js +234 -0
  43. package/dist/commonjs/models/errors/postbyorgbyrepomergebybase.js.map +1 -0
  44. package/dist/commonjs/models/operations/getbyorg.d.ts +0 -1
  45. package/dist/commonjs/models/operations/getbyorg.d.ts.map +1 -1
  46. package/dist/commonjs/models/operations/getbyorg.js +0 -2
  47. package/dist/commonjs/models/operations/getbyorg.js.map +1 -1
  48. package/dist/commonjs/models/operations/getbyorgbyrepo.d.ts +105 -14
  49. package/dist/commonjs/models/operations/getbyorgbyrepo.d.ts.map +1 -1
  50. package/dist/commonjs/models/operations/getbyorgbyrepo.js +98 -17
  51. package/dist/commonjs/models/operations/getbyorgbyrepo.js.map +1 -1
  52. package/dist/commonjs/models/operations/getbyorgbyrepocontent.d.ts +2 -0
  53. package/dist/commonjs/models/operations/getbyorgbyrepocontent.d.ts.map +1 -1
  54. package/dist/commonjs/models/operations/getbyorgbyrepocontent.js +4 -0
  55. package/dist/commonjs/models/operations/getbyorgbyrepocontent.js.map +1 -1
  56. package/dist/commonjs/models/operations/getbyorgbyreposync.d.ts +11 -2
  57. package/dist/commonjs/models/operations/getbyorgbyreposync.d.ts.map +1 -1
  58. package/dist/commonjs/models/operations/getbyorgbyreposync.js +11 -1
  59. package/dist/commonjs/models/operations/getbyorgbyreposync.js.map +1 -1
  60. package/dist/commonjs/models/operations/getbyorgrepos.d.ts +9 -1
  61. package/dist/commonjs/models/operations/getbyorgrepos.d.ts.map +1 -1
  62. package/dist/commonjs/models/operations/getbyorgrepos.js +6 -2
  63. package/dist/commonjs/models/operations/getbyorgrepos.js.map +1 -1
  64. package/dist/commonjs/models/operations/index.d.ts +3 -0
  65. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/index.js +3 -0
  67. package/dist/commonjs/models/operations/index.js.map +1 -1
  68. package/dist/commonjs/models/operations/patchbyorgbyrepo.d.ts +33 -13
  69. package/dist/commonjs/models/operations/patchbyorgbyrepo.d.ts.map +1 -1
  70. package/dist/commonjs/models/operations/patchbyorgbyrepo.js +35 -20
  71. package/dist/commonjs/models/operations/patchbyorgbyrepo.js.map +1 -1
  72. package/dist/commonjs/models/operations/postbyorgbyrepocommits.d.ts +28 -4
  73. package/dist/commonjs/models/operations/postbyorgbyrepocommits.d.ts.map +1 -1
  74. package/dist/commonjs/models/operations/postbyorgbyrepocommits.js +21 -1
  75. package/dist/commonjs/models/operations/postbyorgbyrepocommits.js.map +1 -1
  76. package/dist/commonjs/models/operations/postbyorgbyrepolfsobjects.d.ts +138 -0
  77. package/dist/commonjs/models/operations/postbyorgbyrepolfsobjects.d.ts.map +1 -0
  78. package/dist/commonjs/models/operations/postbyorgbyrepolfsobjects.js +180 -0
  79. package/dist/commonjs/models/operations/postbyorgbyrepolfsobjects.js.map +1 -0
  80. package/dist/commonjs/models/operations/postbyorgbyrepolfsobjectsdownload.d.ts +138 -0
  81. package/dist/commonjs/models/operations/postbyorgbyrepolfsobjectsdownload.d.ts.map +1 -0
  82. package/dist/commonjs/models/operations/postbyorgbyrepolfsobjectsdownload.js +186 -0
  83. package/dist/commonjs/models/operations/postbyorgbyrepolfsobjectsdownload.js.map +1 -0
  84. package/dist/commonjs/models/operations/postbyorgbyrepomergebybase.d.ts +177 -0
  85. package/dist/commonjs/models/operations/postbyorgbyrepomergebybase.d.ts.map +1 -0
  86. package/dist/commonjs/models/operations/postbyorgbyrepomergebybase.js +180 -0
  87. package/dist/commonjs/models/operations/postbyorgbyrepomergebybase.js.map +1 -0
  88. package/dist/commonjs/models/operations/postbyorgrepos.d.ts +31 -13
  89. package/dist/commonjs/models/operations/postbyorgrepos.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/postbyorgrepos.js +28 -18
  91. package/dist/commonjs/models/operations/postbyorgrepos.js.map +1 -1
  92. package/dist/commonjs/sdk/content.d.ts +1 -1
  93. package/dist/commonjs/sdk/content.js +1 -1
  94. package/dist/commonjs/sdk/lfs.d.ts +19 -0
  95. package/dist/commonjs/sdk/lfs.d.ts.map +1 -0
  96. package/dist/commonjs/sdk/lfs.js +32 -0
  97. package/dist/commonjs/sdk/lfs.js.map +1 -0
  98. package/dist/commonjs/sdk/merge.d.ts +12 -0
  99. package/dist/commonjs/sdk/merge.d.ts.map +1 -0
  100. package/dist/commonjs/sdk/merge.js +22 -0
  101. package/dist/commonjs/sdk/merge.js.map +1 -0
  102. package/dist/commonjs/sdk/sdk.d.ts +6 -0
  103. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  104. package/dist/commonjs/sdk/sdk.js +8 -0
  105. package/dist/commonjs/sdk/sdk.js.map +1 -1
  106. package/dist/commonjs/types/smartUnion.js +7 -0
  107. package/dist/commonjs/types/smartUnion.js.map +1 -1
  108. package/dist/esm/funcs/contentGet.d.ts +1 -1
  109. package/dist/esm/funcs/contentGet.js +1 -1
  110. package/dist/esm/funcs/lfsDownload.d.ts +18 -0
  111. package/dist/esm/funcs/lfsDownload.d.ts.map +1 -0
  112. package/dist/esm/funcs/lfsDownload.js +93 -0
  113. package/dist/esm/funcs/lfsDownload.js.map +1 -0
  114. package/dist/esm/funcs/lfsUpload.d.ts +18 -0
  115. package/dist/esm/funcs/lfsUpload.d.ts.map +1 -0
  116. package/dist/esm/funcs/lfsUpload.js +93 -0
  117. package/dist/esm/funcs/lfsUpload.js.map +1 -0
  118. package/dist/esm/funcs/mergePerform.d.ts +18 -0
  119. package/dist/esm/funcs/mergePerform.d.ts.map +1 -0
  120. package/dist/esm/funcs/mergePerform.js +97 -0
  121. package/dist/esm/funcs/mergePerform.js.map +1 -0
  122. package/dist/esm/funcs/reposGet.js +1 -1
  123. package/dist/esm/funcs/reposGet.js.map +1 -1
  124. package/dist/esm/helpers/index.d.ts +8 -0
  125. package/dist/esm/helpers/index.d.ts.map +1 -0
  126. package/dist/esm/helpers/index.js +8 -0
  127. package/dist/esm/helpers/index.js.map +1 -0
  128. package/dist/esm/helpers/lfs.d.ts +103 -0
  129. package/dist/esm/helpers/lfs.d.ts.map +1 -0
  130. package/dist/esm/helpers/lfs.js +263 -0
  131. package/dist/esm/helpers/lfs.js.map +1 -0
  132. package/dist/esm/lib/config.d.ts +3 -3
  133. package/dist/esm/lib/config.js +3 -3
  134. package/dist/esm/models/errors/index.d.ts +3 -0
  135. package/dist/esm/models/errors/index.d.ts.map +1 -1
  136. package/dist/esm/models/errors/index.js +3 -0
  137. package/dist/esm/models/errors/index.js.map +1 -1
  138. package/dist/esm/models/errors/postbyorgbyrepolfsobjects.d.ts +151 -0
  139. package/dist/esm/models/errors/postbyorgbyrepolfsobjects.d.ts.map +1 -0
  140. package/dist/esm/models/errors/postbyorgbyrepolfsobjects.js +190 -0
  141. package/dist/esm/models/errors/postbyorgbyrepolfsobjects.js.map +1 -0
  142. package/dist/esm/models/errors/postbyorgbyrepolfsobjectsdownload.d.ts +151 -0
  143. package/dist/esm/models/errors/postbyorgbyrepolfsobjectsdownload.d.ts.map +1 -0
  144. package/dist/esm/models/errors/postbyorgbyrepolfsobjectsdownload.js +201 -0
  145. package/dist/esm/models/errors/postbyorgbyrepolfsobjectsdownload.js.map +1 -0
  146. package/dist/esm/models/errors/postbyorgbyrepomergebybase.d.ts +151 -0
  147. package/dist/esm/models/errors/postbyorgbyrepomergebybase.d.ts.map +1 -0
  148. package/dist/esm/models/errors/postbyorgbyrepomergebybase.js +191 -0
  149. package/dist/esm/models/errors/postbyorgbyrepomergebybase.js.map +1 -0
  150. package/dist/esm/models/operations/getbyorg.d.ts +0 -1
  151. package/dist/esm/models/operations/getbyorg.d.ts.map +1 -1
  152. package/dist/esm/models/operations/getbyorg.js +0 -2
  153. package/dist/esm/models/operations/getbyorg.js.map +1 -1
  154. package/dist/esm/models/operations/getbyorgbyrepo.d.ts +105 -14
  155. package/dist/esm/models/operations/getbyorgbyrepo.d.ts.map +1 -1
  156. package/dist/esm/models/operations/getbyorgbyrepo.js +91 -14
  157. package/dist/esm/models/operations/getbyorgbyrepo.js.map +1 -1
  158. package/dist/esm/models/operations/getbyorgbyrepocontent.d.ts +2 -0
  159. package/dist/esm/models/operations/getbyorgbyrepocontent.d.ts.map +1 -1
  160. package/dist/esm/models/operations/getbyorgbyrepocontent.js +4 -0
  161. package/dist/esm/models/operations/getbyorgbyrepocontent.js.map +1 -1
  162. package/dist/esm/models/operations/getbyorgbyreposync.d.ts +11 -2
  163. package/dist/esm/models/operations/getbyorgbyreposync.d.ts.map +1 -1
  164. package/dist/esm/models/operations/getbyorgbyreposync.js +9 -0
  165. package/dist/esm/models/operations/getbyorgbyreposync.js.map +1 -1
  166. package/dist/esm/models/operations/getbyorgrepos.d.ts +9 -1
  167. package/dist/esm/models/operations/getbyorgrepos.d.ts.map +1 -1
  168. package/dist/esm/models/operations/getbyorgrepos.js +6 -2
  169. package/dist/esm/models/operations/getbyorgrepos.js.map +1 -1
  170. package/dist/esm/models/operations/index.d.ts +3 -0
  171. package/dist/esm/models/operations/index.d.ts.map +1 -1
  172. package/dist/esm/models/operations/index.js +3 -0
  173. package/dist/esm/models/operations/index.js.map +1 -1
  174. package/dist/esm/models/operations/patchbyorgbyrepo.d.ts +33 -13
  175. package/dist/esm/models/operations/patchbyorgbyrepo.d.ts.map +1 -1
  176. package/dist/esm/models/operations/patchbyorgbyrepo.js +32 -17
  177. package/dist/esm/models/operations/patchbyorgbyrepo.js.map +1 -1
  178. package/dist/esm/models/operations/postbyorgbyrepocommits.d.ts +28 -4
  179. package/dist/esm/models/operations/postbyorgbyrepocommits.d.ts.map +1 -1
  180. package/dist/esm/models/operations/postbyorgbyrepocommits.js +18 -0
  181. package/dist/esm/models/operations/postbyorgbyrepocommits.js.map +1 -1
  182. package/dist/esm/models/operations/postbyorgbyrepolfsobjects.d.ts +138 -0
  183. package/dist/esm/models/operations/postbyorgbyrepolfsobjects.d.ts.map +1 -0
  184. package/dist/esm/models/operations/postbyorgbyrepolfsobjects.js +131 -0
  185. package/dist/esm/models/operations/postbyorgbyrepolfsobjects.js.map +1 -0
  186. package/dist/esm/models/operations/postbyorgbyrepolfsobjectsdownload.d.ts +138 -0
  187. package/dist/esm/models/operations/postbyorgbyrepolfsobjectsdownload.d.ts.map +1 -0
  188. package/dist/esm/models/operations/postbyorgbyrepolfsobjectsdownload.js +137 -0
  189. package/dist/esm/models/operations/postbyorgbyrepolfsobjectsdownload.js.map +1 -0
  190. package/dist/esm/models/operations/postbyorgbyrepomergebybase.d.ts +177 -0
  191. package/dist/esm/models/operations/postbyorgbyrepomergebybase.d.ts.map +1 -0
  192. package/dist/esm/models/operations/postbyorgbyrepomergebybase.js +133 -0
  193. package/dist/esm/models/operations/postbyorgbyrepomergebybase.js.map +1 -0
  194. package/dist/esm/models/operations/postbyorgrepos.d.ts +31 -13
  195. package/dist/esm/models/operations/postbyorgrepos.d.ts.map +1 -1
  196. package/dist/esm/models/operations/postbyorgrepos.js +25 -15
  197. package/dist/esm/models/operations/postbyorgrepos.js.map +1 -1
  198. package/dist/esm/sdk/content.d.ts +1 -1
  199. package/dist/esm/sdk/content.js +1 -1
  200. package/dist/esm/sdk/lfs.d.ts +19 -0
  201. package/dist/esm/sdk/lfs.d.ts.map +1 -0
  202. package/dist/esm/sdk/lfs.js +28 -0
  203. package/dist/esm/sdk/lfs.js.map +1 -0
  204. package/dist/esm/sdk/merge.d.ts +12 -0
  205. package/dist/esm/sdk/merge.d.ts.map +1 -0
  206. package/dist/esm/sdk/merge.js +18 -0
  207. package/dist/esm/sdk/merge.js.map +1 -0
  208. package/dist/esm/sdk/sdk.d.ts +6 -0
  209. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  210. package/dist/esm/sdk/sdk.js +8 -0
  211. package/dist/esm/sdk/sdk.js.map +1 -1
  212. package/dist/esm/types/smartUnion.js +7 -0
  213. package/dist/esm/types/smartUnion.js.map +1 -1
  214. package/jsr.json +1 -1
  215. package/package.json +3 -3
  216. package/src/funcs/contentGet.ts +1 -1
  217. package/src/funcs/lfsDownload.ts +233 -0
  218. package/src/funcs/lfsUpload.ts +224 -0
  219. package/src/funcs/mergePerform.ts +234 -0
  220. package/src/funcs/reposGet.ts +1 -0
  221. package/src/helpers/index.ts +8 -0
  222. package/src/helpers/lfs.ts +410 -0
  223. package/src/lib/config.ts +3 -3
  224. package/src/models/errors/index.ts +3 -0
  225. package/src/models/errors/postbyorgbyrepolfsobjects.ts +358 -0
  226. package/src/models/errors/postbyorgbyrepolfsobjectsdownload.ts +379 -0
  227. package/src/models/errors/postbyorgbyrepomergebybase.ts +359 -0
  228. package/src/models/operations/getbyorg.ts +0 -3
  229. package/src/models/operations/getbyorgbyrepo.ts +249 -32
  230. package/src/models/operations/getbyorgbyrepocontent.ts +6 -0
  231. package/src/models/operations/getbyorgbyreposync.ts +33 -1
  232. package/src/models/operations/getbyorgrepos.ts +15 -3
  233. package/src/models/operations/index.ts +3 -0
  234. package/src/models/operations/patchbyorgbyrepo.ts +84 -41
  235. package/src/models/operations/postbyorgbyrepocommits.ts +62 -4
  236. package/src/models/operations/postbyorgbyrepolfsobjects.ts +411 -0
  237. package/src/models/operations/postbyorgbyrepolfsobjectsdownload.ts +442 -0
  238. package/src/models/operations/postbyorgbyrepomergebybase.ts +428 -0
  239. package/src/models/operations/postbyorgrepos.ts +69 -35
  240. package/src/sdk/content.ts +1 -1
  241. package/src/sdk/lfs.ts +45 -0
  242. package/src/sdk/merge.ts +27 -0
  243. package/src/sdk/sdk.ts +12 -0
  244. package/src/types/smartUnion.ts +8 -0
@@ -49,10 +49,19 @@ export type PatchByOrgByRepoUpstreamRequest = {
49
49
  * Optionally enable automatic sync from the upstream repository
50
50
  */
51
51
  autosync?: PatchByOrgByRepoAutosyncPollRequest | undefined;
52
+ /**
53
+ * Personal access token for private upstream repos. Set to null to unlink credential.
54
+ */
55
+ token?: string | null | undefined;
56
+ /**
57
+ * Username for git credential auth. Defaults to "x-access-token". Use actual username for Bitbucket app passwords.
58
+ */
59
+ tokenUsername?: string | undefined;
52
60
  };
53
61
 
54
62
  export type PatchByOrgByRepoRequestBody = {
55
63
  name?: string | undefined;
64
+ defaultBranch?: string | undefined;
56
65
  upstream?: PatchByOrgByRepoUpstreamRequest | null | undefined;
57
66
  };
58
67
 
@@ -107,17 +116,17 @@ export type PatchByOrgByRepoBadRequestError = {
107
116
  /**
108
117
  * Conflict resolution strategy. "none" means sync will fail on conflicts.
109
118
  */
110
- export const PatchByOrgByRepoResolutionStrategyResponse = {
119
+ export const PatchByOrgByRepoResolutionStrategyResponseBody = {
111
120
  None: "none",
112
121
  } as const;
113
122
  /**
114
123
  * Conflict resolution strategy. "none" means sync will fail on conflicts.
115
124
  */
116
- export type PatchByOrgByRepoResolutionStrategyResponse = ClosedEnum<
117
- typeof PatchByOrgByRepoResolutionStrategyResponse
125
+ export type PatchByOrgByRepoResolutionStrategyResponseBody = ClosedEnum<
126
+ typeof PatchByOrgByRepoResolutionStrategyResponseBody
118
127
  >;
119
128
 
120
- export type PatchByOrgByRepoAutosyncResponse = {
129
+ export type PatchByOrgByRepoAutosyncResponseBody = {
121
130
  type: "poll";
122
131
  /**
123
132
  * Polling period in seconds
@@ -126,10 +135,10 @@ export type PatchByOrgByRepoAutosyncResponse = {
126
135
  /**
127
136
  * Conflict resolution strategy. "none" means sync will fail on conflicts.
128
137
  */
129
- resolutionStrategy: PatchByOrgByRepoResolutionStrategyResponse;
138
+ resolutionStrategy: PatchByOrgByRepoResolutionStrategyResponseBody;
130
139
  };
131
140
 
132
- export type PatchByOrgByRepoUpstreamResponse = {
141
+ export type PatchByOrgByRepoUpstreamResponseBody = {
133
142
  /**
134
143
  * URL of the upstream repository
135
144
  */
@@ -137,7 +146,7 @@ export type PatchByOrgByRepoUpstreamResponse = {
137
146
  /**
138
147
  * Automatic sync configuration, if enabled
139
148
  */
140
- autosync: PatchByOrgByRepoAutosyncResponse | null;
149
+ autosync: PatchByOrgByRepoAutosyncResponseBody | null;
141
150
  /**
142
151
  * Timestamp of the last sync attempt
143
152
  */
@@ -150,6 +159,14 @@ export type PatchByOrgByRepoUpstreamResponse = {
150
159
  * Error message from the last failed sync attempt
151
160
  */
152
161
  lastSyncError: string | null;
162
+ /**
163
+ * Whether this upstream has an authentication credential configured
164
+ */
165
+ hasCredential: boolean;
166
+ /**
167
+ * The host the credential is scoped to (e.g. "github.com")
168
+ */
169
+ credentialHost: string | null;
153
170
  };
154
171
 
155
172
  /**
@@ -160,13 +177,13 @@ export type PatchByOrgByRepoResponse = {
160
177
  org: string;
161
178
  name: string;
162
179
  defaultBranch: string;
180
+ headSha: string | null;
163
181
  sizeBytes: number;
164
- lastPushAt: string | null;
165
182
  createdAt: string;
166
183
  /**
167
184
  * Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
168
185
  */
169
- upstream: PatchByOrgByRepoUpstreamResponse | null;
186
+ upstream: PatchByOrgByRepoUpstreamResponseBody | null;
170
187
  };
171
188
 
172
189
  /** @internal */
@@ -236,18 +253,29 @@ export function patchByOrgByRepoAutosyncUnionToJSON(
236
253
  export type PatchByOrgByRepoUpstreamRequest$Outbound = {
237
254
  uri: string;
238
255
  autosync?: PatchByOrgByRepoAutosyncPollRequest$Outbound | undefined;
256
+ token?: string | null | undefined;
257
+ token_username?: string | undefined;
239
258
  };
240
259
 
241
260
  /** @internal */
242
261
  export const PatchByOrgByRepoUpstreamRequest$outboundSchema: z.ZodMiniType<
243
262
  PatchByOrgByRepoUpstreamRequest$Outbound,
244
263
  PatchByOrgByRepoUpstreamRequest
245
- > = z.object({
246
- uri: z.string(),
247
- autosync: z.optional(
248
- z.lazy(() => PatchByOrgByRepoAutosyncPollRequest$outboundSchema),
249
- ),
250
- });
264
+ > = z.pipe(
265
+ z.object({
266
+ uri: z.string(),
267
+ autosync: z.optional(
268
+ z.lazy(() => PatchByOrgByRepoAutosyncPollRequest$outboundSchema),
269
+ ),
270
+ token: z.optional(z.nullable(z.string())),
271
+ tokenUsername: z.optional(z.string()),
272
+ }),
273
+ z.transform((v) => {
274
+ return remap$(v, {
275
+ tokenUsername: "token_username",
276
+ });
277
+ }),
278
+ );
251
279
 
252
280
  export function patchByOrgByRepoUpstreamRequestToJSON(
253
281
  patchByOrgByRepoUpstreamRequest: PatchByOrgByRepoUpstreamRequest,
@@ -262,6 +290,7 @@ export function patchByOrgByRepoUpstreamRequestToJSON(
262
290
  /** @internal */
263
291
  export type PatchByOrgByRepoRequestBody$Outbound = {
264
292
  name?: string | undefined;
293
+ default_branch?: string | undefined;
265
294
  upstream?: PatchByOrgByRepoUpstreamRequest$Outbound | null | undefined;
266
295
  };
267
296
 
@@ -269,12 +298,20 @@ export type PatchByOrgByRepoRequestBody$Outbound = {
269
298
  export const PatchByOrgByRepoRequestBody$outboundSchema: z.ZodMiniType<
270
299
  PatchByOrgByRepoRequestBody$Outbound,
271
300
  PatchByOrgByRepoRequestBody
272
- > = z.object({
273
- name: z.optional(z.string()),
274
- upstream: z.optional(
275
- z.nullable(z.lazy(() => PatchByOrgByRepoUpstreamRequest$outboundSchema)),
276
- ),
277
- });
301
+ > = z.pipe(
302
+ z.object({
303
+ name: z.optional(z.string()),
304
+ defaultBranch: z.optional(z.string()),
305
+ upstream: z.optional(
306
+ z.nullable(z.lazy(() => PatchByOrgByRepoUpstreamRequest$outboundSchema)),
307
+ ),
308
+ }),
309
+ z.transform((v) => {
310
+ return remap$(v, {
311
+ defaultBranch: "default_branch",
312
+ });
313
+ }),
314
+ );
278
315
 
279
316
  export function patchByOrgByRepoRequestBodyToJSON(
280
317
  patchByOrgByRepoRequestBody: PatchByOrgByRepoRequestBody,
@@ -457,21 +494,21 @@ export function patchByOrgByRepoBadRequestErrorFromJSON(
457
494
  }
458
495
 
459
496
  /** @internal */
460
- export const PatchByOrgByRepoResolutionStrategyResponse$inboundSchema:
461
- z.ZodMiniEnum<typeof PatchByOrgByRepoResolutionStrategyResponse> = z.enum(
462
- PatchByOrgByRepoResolutionStrategyResponse,
497
+ export const PatchByOrgByRepoResolutionStrategyResponseBody$inboundSchema:
498
+ z.ZodMiniEnum<typeof PatchByOrgByRepoResolutionStrategyResponseBody> = z.enum(
499
+ PatchByOrgByRepoResolutionStrategyResponseBody,
463
500
  );
464
501
 
465
502
  /** @internal */
466
- export const PatchByOrgByRepoAutosyncResponse$inboundSchema: z.ZodMiniType<
467
- PatchByOrgByRepoAutosyncResponse,
503
+ export const PatchByOrgByRepoAutosyncResponseBody$inboundSchema: z.ZodMiniType<
504
+ PatchByOrgByRepoAutosyncResponseBody,
468
505
  unknown
469
506
  > = z.pipe(
470
507
  z.object({
471
508
  type: types.literal("poll"),
472
509
  period: types.number(),
473
510
  resolution_strategy:
474
- PatchByOrgByRepoResolutionStrategyResponse$inboundSchema,
511
+ PatchByOrgByRepoResolutionStrategyResponseBody$inboundSchema,
475
512
  }),
476
513
  z.transform((v) => {
477
514
  return remap$(v, {
@@ -480,46 +517,52 @@ export const PatchByOrgByRepoAutosyncResponse$inboundSchema: z.ZodMiniType<
480
517
  }),
481
518
  );
482
519
 
483
- export function patchByOrgByRepoAutosyncResponseFromJSON(
520
+ export function patchByOrgByRepoAutosyncResponseBodyFromJSON(
484
521
  jsonString: string,
485
- ): SafeParseResult<PatchByOrgByRepoAutosyncResponse, SDKValidationError> {
522
+ ): SafeParseResult<PatchByOrgByRepoAutosyncResponseBody, SDKValidationError> {
486
523
  return safeParse(
487
524
  jsonString,
488
- (x) => PatchByOrgByRepoAutosyncResponse$inboundSchema.parse(JSON.parse(x)),
489
- `Failed to parse 'PatchByOrgByRepoAutosyncResponse' from JSON`,
525
+ (x) =>
526
+ PatchByOrgByRepoAutosyncResponseBody$inboundSchema.parse(JSON.parse(x)),
527
+ `Failed to parse 'PatchByOrgByRepoAutosyncResponseBody' from JSON`,
490
528
  );
491
529
  }
492
530
 
493
531
  /** @internal */
494
- export const PatchByOrgByRepoUpstreamResponse$inboundSchema: z.ZodMiniType<
495
- PatchByOrgByRepoUpstreamResponse,
532
+ export const PatchByOrgByRepoUpstreamResponseBody$inboundSchema: z.ZodMiniType<
533
+ PatchByOrgByRepoUpstreamResponseBody,
496
534
  unknown
497
535
  > = z.pipe(
498
536
  z.object({
499
537
  uri: types.string(),
500
538
  autosync: types.nullable(
501
- z.lazy(() => PatchByOrgByRepoAutosyncResponse$inboundSchema),
539
+ z.lazy(() => PatchByOrgByRepoAutosyncResponseBody$inboundSchema),
502
540
  ),
503
541
  last_sync_attempt: types.nullable(types.date()),
504
542
  last_sync_success: types.nullable(types.date()),
505
543
  last_sync_error: types.nullable(types.string()),
544
+ has_credential: types.boolean(),
545
+ credential_host: types.nullable(types.string()),
506
546
  }),
507
547
  z.transform((v) => {
508
548
  return remap$(v, {
509
549
  "last_sync_attempt": "lastSyncAttempt",
510
550
  "last_sync_success": "lastSyncSuccess",
511
551
  "last_sync_error": "lastSyncError",
552
+ "has_credential": "hasCredential",
553
+ "credential_host": "credentialHost",
512
554
  });
513
555
  }),
514
556
  );
515
557
 
516
- export function patchByOrgByRepoUpstreamResponseFromJSON(
558
+ export function patchByOrgByRepoUpstreamResponseBodyFromJSON(
517
559
  jsonString: string,
518
- ): SafeParseResult<PatchByOrgByRepoUpstreamResponse, SDKValidationError> {
560
+ ): SafeParseResult<PatchByOrgByRepoUpstreamResponseBody, SDKValidationError> {
519
561
  return safeParse(
520
562
  jsonString,
521
- (x) => PatchByOrgByRepoUpstreamResponse$inboundSchema.parse(JSON.parse(x)),
522
- `Failed to parse 'PatchByOrgByRepoUpstreamResponse' from JSON`,
563
+ (x) =>
564
+ PatchByOrgByRepoUpstreamResponseBody$inboundSchema.parse(JSON.parse(x)),
565
+ `Failed to parse 'PatchByOrgByRepoUpstreamResponseBody' from JSON`,
523
566
  );
524
567
  }
525
568
 
@@ -533,18 +576,18 @@ export const PatchByOrgByRepoResponse$inboundSchema: z.ZodMiniType<
533
576
  org: types.string(),
534
577
  name: types.string(),
535
578
  default_branch: types.string(),
579
+ head_sha: types.nullable(types.string()),
536
580
  size_bytes: types.number(),
537
- last_push_at: types.nullable(types.string()),
538
581
  created_at: types.string(),
539
582
  upstream: types.nullable(
540
- z.lazy(() => PatchByOrgByRepoUpstreamResponse$inboundSchema),
583
+ z.lazy(() => PatchByOrgByRepoUpstreamResponseBody$inboundSchema),
541
584
  ),
542
585
  }),
543
586
  z.transform((v) => {
544
587
  return remap$(v, {
545
588
  "default_branch": "defaultBranch",
589
+ "head_sha": "headSha",
546
590
  "size_bytes": "sizeBytes",
547
- "last_push_at": "lastPushAt",
548
591
  "created_at": "createdAt",
549
592
  });
550
593
  }),
@@ -17,6 +17,16 @@ export type PostByOrgByRepoCommitsAuthor = {
17
17
  date?: string | undefined;
18
18
  };
19
19
 
20
+ export type Lfs = {
21
+ oid: string;
22
+ size: number;
23
+ };
24
+
25
+ export type PostByOrgByRepoCommitsFile = {
26
+ path: string;
27
+ lfs: Lfs;
28
+ };
29
+
20
30
  export type FileDelete = {
21
31
  path: string;
22
32
  action: "delete";
@@ -35,14 +45,14 @@ export type FileUpsert = {
35
45
  action?: "upsert" | undefined;
36
46
  };
37
47
 
38
- export type FileT = FileUpsert | FileDelete;
48
+ export type FileT = FileUpsert | FileDelete | PostByOrgByRepoCommitsFile;
39
49
 
40
50
  export type PostByOrgByRepoCommitsRequestBody = {
41
51
  branch: string;
42
52
  message: string;
43
53
  author: PostByOrgByRepoCommitsAuthor;
44
54
  baseSha?: string | undefined;
45
- files: Array<FileUpsert | FileDelete>;
55
+ files: Array<FileUpsert | FileDelete | PostByOrgByRepoCommitsFile>;
46
56
  };
47
57
 
48
58
  export type PostByOrgByRepoCommitsRequest = {
@@ -129,6 +139,45 @@ export function postByOrgByRepoCommitsAuthorToJSON(
129
139
  );
130
140
  }
131
141
 
142
+ /** @internal */
143
+ export type Lfs$Outbound = {
144
+ oid: string;
145
+ size: number;
146
+ };
147
+
148
+ /** @internal */
149
+ export const Lfs$outboundSchema: z.ZodMiniType<Lfs$Outbound, Lfs> = z.object({
150
+ oid: z.string(),
151
+ size: z.int(),
152
+ });
153
+
154
+ export function lfsToJSON(lfs: Lfs): string {
155
+ return JSON.stringify(Lfs$outboundSchema.parse(lfs));
156
+ }
157
+
158
+ /** @internal */
159
+ export type PostByOrgByRepoCommitsFile$Outbound = {
160
+ path: string;
161
+ lfs: Lfs$Outbound;
162
+ };
163
+
164
+ /** @internal */
165
+ export const PostByOrgByRepoCommitsFile$outboundSchema: z.ZodMiniType<
166
+ PostByOrgByRepoCommitsFile$Outbound,
167
+ PostByOrgByRepoCommitsFile
168
+ > = z.object({
169
+ path: z.string(),
170
+ lfs: z.lazy(() => Lfs$outboundSchema),
171
+ });
172
+
173
+ export function postByOrgByRepoCommitsFileToJSON(
174
+ postByOrgByRepoCommitsFile: PostByOrgByRepoCommitsFile,
175
+ ): string {
176
+ return JSON.stringify(
177
+ PostByOrgByRepoCommitsFile$outboundSchema.parse(postByOrgByRepoCommitsFile),
178
+ );
179
+ }
180
+
132
181
  /** @internal */
133
182
  export type FileDelete$Outbound = {
134
183
  path: string;
@@ -177,13 +226,17 @@ export function fileUpsertToJSON(fileUpsert: FileUpsert): string {
177
226
  }
178
227
 
179
228
  /** @internal */
180
- export type FileT$Outbound = FileUpsert$Outbound | FileDelete$Outbound;
229
+ export type FileT$Outbound =
230
+ | FileUpsert$Outbound
231
+ | FileDelete$Outbound
232
+ | PostByOrgByRepoCommitsFile$Outbound;
181
233
 
182
234
  /** @internal */
183
235
  export const FileT$outboundSchema: z.ZodMiniType<FileT$Outbound, FileT> =
184
236
  smartUnion([
185
237
  z.lazy(() => FileUpsert$outboundSchema),
186
238
  z.lazy(() => FileDelete$outboundSchema),
239
+ z.lazy(() => PostByOrgByRepoCommitsFile$outboundSchema),
187
240
  ]);
188
241
 
189
242
  export function fileToJSON(fileT: FileT): string {
@@ -196,7 +249,11 @@ export type PostByOrgByRepoCommitsRequestBody$Outbound = {
196
249
  message: string;
197
250
  author: PostByOrgByRepoCommitsAuthor$Outbound;
198
251
  base_sha?: string | undefined;
199
- files: Array<FileUpsert$Outbound | FileDelete$Outbound>;
252
+ files: Array<
253
+ | FileUpsert$Outbound
254
+ | FileDelete$Outbound
255
+ | PostByOrgByRepoCommitsFile$Outbound
256
+ >;
200
257
  };
201
258
 
202
259
  /** @internal */
@@ -212,6 +269,7 @@ export const PostByOrgByRepoCommitsRequestBody$outboundSchema: z.ZodMiniType<
212
269
  files: z.array(smartUnion([
213
270
  z.lazy(() => FileUpsert$outboundSchema),
214
271
  z.lazy(() => FileDelete$outboundSchema),
272
+ z.lazy(() => PostByOrgByRepoCommitsFile$outboundSchema),
215
273
  ])),
216
274
  }),
217
275
  z.transform((v) => {