@mesadev/sdk 0.1.6 → 0.2.1
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.
- package/README.md +220 -183
- package/dist/commonjs/funcs/contentGet.d.ts +1 -1
- package/dist/commonjs/funcs/contentGet.js +1 -3
- package/dist/commonjs/funcs/contentGet.js.map +1 -1
- package/dist/commonjs/funcs/lfsDownload.d.ts +18 -0
- package/dist/commonjs/funcs/lfsDownload.d.ts.map +1 -0
- package/dist/commonjs/funcs/lfsDownload.js +129 -0
- package/dist/commonjs/funcs/lfsDownload.js.map +1 -0
- package/dist/commonjs/funcs/lfsUpload.d.ts +18 -0
- package/dist/commonjs/funcs/lfsUpload.d.ts.map +1 -0
- package/dist/commonjs/funcs/lfsUpload.js +129 -0
- package/dist/commonjs/funcs/lfsUpload.js.map +1 -0
- package/dist/commonjs/funcs/mergePerform.d.ts +18 -0
- package/dist/commonjs/funcs/mergePerform.d.ts.map +1 -0
- package/dist/commonjs/funcs/mergePerform.js +133 -0
- package/dist/commonjs/funcs/mergePerform.js.map +1 -0
- package/dist/commonjs/funcs/reposGet.js +1 -1
- package/dist/commonjs/funcs/reposGet.js.map +1 -1
- package/dist/commonjs/helpers/index.d.ts +8 -0
- package/dist/commonjs/helpers/index.d.ts.map +1 -0
- package/dist/commonjs/helpers/index.js +24 -0
- package/dist/commonjs/helpers/index.js.map +1 -0
- package/dist/commonjs/helpers/lfs.d.ts +103 -0
- package/dist/commonjs/helpers/lfs.d.ts.map +1 -0
- package/dist/commonjs/helpers/lfs.js +266 -0
- package/dist/commonjs/helpers/lfs.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/errors/index.d.ts +3 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +3 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/postbyorgbyrepolfsobjects.d.ts +151 -0
- package/dist/commonjs/models/errors/postbyorgbyrepolfsobjects.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postbyorgbyrepolfsobjects.js +233 -0
- package/dist/commonjs/models/errors/postbyorgbyrepolfsobjects.js.map +1 -0
- package/dist/commonjs/models/errors/postbyorgbyrepolfsobjectsdownload.d.ts +151 -0
- package/dist/commonjs/models/errors/postbyorgbyrepolfsobjectsdownload.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postbyorgbyrepolfsobjectsdownload.js +244 -0
- package/dist/commonjs/models/errors/postbyorgbyrepolfsobjectsdownload.js.map +1 -0
- package/dist/commonjs/models/errors/postbyorgbyrepomergebybase.d.ts +151 -0
- package/dist/commonjs/models/errors/postbyorgbyrepomergebybase.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postbyorgbyrepomergebybase.js +234 -0
- package/dist/commonjs/models/errors/postbyorgbyrepomergebybase.js.map +1 -0
- package/dist/commonjs/models/operations/getbyorg.d.ts +0 -1
- package/dist/commonjs/models/operations/getbyorg.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getbyorg.js +0 -2
- package/dist/commonjs/models/operations/getbyorg.js.map +1 -1
- package/dist/commonjs/models/operations/getbyorgbyrepo.d.ts +105 -14
- package/dist/commonjs/models/operations/getbyorgbyrepo.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getbyorgbyrepo.js +98 -17
- package/dist/commonjs/models/operations/getbyorgbyrepo.js.map +1 -1
- package/dist/commonjs/models/operations/getbyorgbyrepocontent.d.ts +39 -12
- package/dist/commonjs/models/operations/getbyorgbyrepocontent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getbyorgbyrepocontent.js +69 -14
- package/dist/commonjs/models/operations/getbyorgbyrepocontent.js.map +1 -1
- package/dist/commonjs/models/operations/getbyorgbyreposync.d.ts +11 -2
- package/dist/commonjs/models/operations/getbyorgbyreposync.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getbyorgbyreposync.js +11 -1
- package/dist/commonjs/models/operations/getbyorgbyreposync.js.map +1 -1
- package/dist/commonjs/models/operations/getbyorgrepos.d.ts +9 -1
- package/dist/commonjs/models/operations/getbyorgrepos.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getbyorgrepos.js +6 -2
- package/dist/commonjs/models/operations/getbyorgrepos.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/patchbyorgbyrepo.d.ts +33 -13
- package/dist/commonjs/models/operations/patchbyorgbyrepo.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patchbyorgbyrepo.js +35 -20
- package/dist/commonjs/models/operations/patchbyorgbyrepo.js.map +1 -1
- package/dist/commonjs/models/operations/postbyorgbyrepocommits.d.ts +28 -4
- package/dist/commonjs/models/operations/postbyorgbyrepocommits.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postbyorgbyrepocommits.js +21 -1
- package/dist/commonjs/models/operations/postbyorgbyrepocommits.js.map +1 -1
- package/dist/commonjs/models/operations/postbyorgbyrepolfsobjects.d.ts +138 -0
- package/dist/commonjs/models/operations/postbyorgbyrepolfsobjects.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postbyorgbyrepolfsobjects.js +180 -0
- package/dist/commonjs/models/operations/postbyorgbyrepolfsobjects.js.map +1 -0
- package/dist/commonjs/models/operations/postbyorgbyrepolfsobjectsdownload.d.ts +138 -0
- package/dist/commonjs/models/operations/postbyorgbyrepolfsobjectsdownload.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postbyorgbyrepolfsobjectsdownload.js +186 -0
- package/dist/commonjs/models/operations/postbyorgbyrepolfsobjectsdownload.js.map +1 -0
- package/dist/commonjs/models/operations/postbyorgbyrepomergebybase.d.ts +177 -0
- package/dist/commonjs/models/operations/postbyorgbyrepomergebybase.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postbyorgbyrepomergebybase.js +180 -0
- package/dist/commonjs/models/operations/postbyorgbyrepomergebybase.js.map +1 -0
- package/dist/commonjs/models/operations/postbyorgrepos.d.ts +31 -13
- package/dist/commonjs/models/operations/postbyorgrepos.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postbyorgrepos.js +28 -18
- package/dist/commonjs/models/operations/postbyorgrepos.js.map +1 -1
- package/dist/commonjs/sdk/content.d.ts +1 -1
- package/dist/commonjs/sdk/content.js +1 -1
- package/dist/commonjs/sdk/lfs.d.ts +19 -0
- package/dist/commonjs/sdk/lfs.d.ts.map +1 -0
- package/dist/commonjs/sdk/lfs.js +32 -0
- package/dist/commonjs/sdk/lfs.js.map +1 -0
- package/dist/commonjs/sdk/merge.d.ts +12 -0
- package/dist/commonjs/sdk/merge.d.ts.map +1 -0
- package/dist/commonjs/sdk/merge.js +22 -0
- package/dist/commonjs/sdk/merge.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/types/smartUnion.js +7 -0
- package/dist/commonjs/types/smartUnion.js.map +1 -1
- package/dist/esm/funcs/contentGet.d.ts +1 -1
- package/dist/esm/funcs/contentGet.js +1 -3
- package/dist/esm/funcs/contentGet.js.map +1 -1
- package/dist/esm/funcs/lfsDownload.d.ts +18 -0
- package/dist/esm/funcs/lfsDownload.d.ts.map +1 -0
- package/dist/esm/funcs/lfsDownload.js +93 -0
- package/dist/esm/funcs/lfsDownload.js.map +1 -0
- package/dist/esm/funcs/lfsUpload.d.ts +18 -0
- package/dist/esm/funcs/lfsUpload.d.ts.map +1 -0
- package/dist/esm/funcs/lfsUpload.js +93 -0
- package/dist/esm/funcs/lfsUpload.js.map +1 -0
- package/dist/esm/funcs/mergePerform.d.ts +18 -0
- package/dist/esm/funcs/mergePerform.d.ts.map +1 -0
- package/dist/esm/funcs/mergePerform.js +97 -0
- package/dist/esm/funcs/mergePerform.js.map +1 -0
- package/dist/esm/funcs/reposGet.js +1 -1
- package/dist/esm/funcs/reposGet.js.map +1 -1
- package/dist/esm/helpers/index.d.ts +8 -0
- package/dist/esm/helpers/index.d.ts.map +1 -0
- package/dist/esm/helpers/index.js +8 -0
- package/dist/esm/helpers/index.js.map +1 -0
- package/dist/esm/helpers/lfs.d.ts +103 -0
- package/dist/esm/helpers/lfs.d.ts.map +1 -0
- package/dist/esm/helpers/lfs.js +263 -0
- package/dist/esm/helpers/lfs.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/errors/index.d.ts +3 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +3 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/postbyorgbyrepolfsobjects.d.ts +151 -0
- package/dist/esm/models/errors/postbyorgbyrepolfsobjects.d.ts.map +1 -0
- package/dist/esm/models/errors/postbyorgbyrepolfsobjects.js +190 -0
- package/dist/esm/models/errors/postbyorgbyrepolfsobjects.js.map +1 -0
- package/dist/esm/models/errors/postbyorgbyrepolfsobjectsdownload.d.ts +151 -0
- package/dist/esm/models/errors/postbyorgbyrepolfsobjectsdownload.d.ts.map +1 -0
- package/dist/esm/models/errors/postbyorgbyrepolfsobjectsdownload.js +201 -0
- package/dist/esm/models/errors/postbyorgbyrepolfsobjectsdownload.js.map +1 -0
- package/dist/esm/models/errors/postbyorgbyrepomergebybase.d.ts +151 -0
- package/dist/esm/models/errors/postbyorgbyrepomergebybase.d.ts.map +1 -0
- package/dist/esm/models/errors/postbyorgbyrepomergebybase.js +191 -0
- package/dist/esm/models/errors/postbyorgbyrepomergebybase.js.map +1 -0
- package/dist/esm/models/operations/getbyorg.d.ts +0 -1
- package/dist/esm/models/operations/getbyorg.d.ts.map +1 -1
- package/dist/esm/models/operations/getbyorg.js +0 -2
- package/dist/esm/models/operations/getbyorg.js.map +1 -1
- package/dist/esm/models/operations/getbyorgbyrepo.d.ts +105 -14
- package/dist/esm/models/operations/getbyorgbyrepo.d.ts.map +1 -1
- package/dist/esm/models/operations/getbyorgbyrepo.js +91 -14
- package/dist/esm/models/operations/getbyorgbyrepo.js.map +1 -1
- package/dist/esm/models/operations/getbyorgbyrepocontent.d.ts +39 -12
- package/dist/esm/models/operations/getbyorgbyrepocontent.d.ts.map +1 -1
- package/dist/esm/models/operations/getbyorgbyrepocontent.js +65 -12
- package/dist/esm/models/operations/getbyorgbyrepocontent.js.map +1 -1
- package/dist/esm/models/operations/getbyorgbyreposync.d.ts +11 -2
- package/dist/esm/models/operations/getbyorgbyreposync.d.ts.map +1 -1
- package/dist/esm/models/operations/getbyorgbyreposync.js +9 -0
- package/dist/esm/models/operations/getbyorgbyreposync.js.map +1 -1
- package/dist/esm/models/operations/getbyorgrepos.d.ts +9 -1
- package/dist/esm/models/operations/getbyorgrepos.d.ts.map +1 -1
- package/dist/esm/models/operations/getbyorgrepos.js +6 -2
- package/dist/esm/models/operations/getbyorgrepos.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/patchbyorgbyrepo.d.ts +33 -13
- package/dist/esm/models/operations/patchbyorgbyrepo.d.ts.map +1 -1
- package/dist/esm/models/operations/patchbyorgbyrepo.js +32 -17
- package/dist/esm/models/operations/patchbyorgbyrepo.js.map +1 -1
- package/dist/esm/models/operations/postbyorgbyrepocommits.d.ts +28 -4
- package/dist/esm/models/operations/postbyorgbyrepocommits.d.ts.map +1 -1
- package/dist/esm/models/operations/postbyorgbyrepocommits.js +18 -0
- package/dist/esm/models/operations/postbyorgbyrepocommits.js.map +1 -1
- package/dist/esm/models/operations/postbyorgbyrepolfsobjects.d.ts +138 -0
- package/dist/esm/models/operations/postbyorgbyrepolfsobjects.d.ts.map +1 -0
- package/dist/esm/models/operations/postbyorgbyrepolfsobjects.js +131 -0
- package/dist/esm/models/operations/postbyorgbyrepolfsobjects.js.map +1 -0
- package/dist/esm/models/operations/postbyorgbyrepolfsobjectsdownload.d.ts +138 -0
- package/dist/esm/models/operations/postbyorgbyrepolfsobjectsdownload.d.ts.map +1 -0
- package/dist/esm/models/operations/postbyorgbyrepolfsobjectsdownload.js +137 -0
- package/dist/esm/models/operations/postbyorgbyrepolfsobjectsdownload.js.map +1 -0
- package/dist/esm/models/operations/postbyorgbyrepomergebybase.d.ts +177 -0
- package/dist/esm/models/operations/postbyorgbyrepomergebybase.d.ts.map +1 -0
- package/dist/esm/models/operations/postbyorgbyrepomergebybase.js +133 -0
- package/dist/esm/models/operations/postbyorgbyrepomergebybase.js.map +1 -0
- package/dist/esm/models/operations/postbyorgrepos.d.ts +31 -13
- package/dist/esm/models/operations/postbyorgrepos.d.ts.map +1 -1
- package/dist/esm/models/operations/postbyorgrepos.js +25 -15
- package/dist/esm/models/operations/postbyorgrepos.js.map +1 -1
- package/dist/esm/sdk/content.d.ts +1 -1
- package/dist/esm/sdk/content.js +1 -1
- package/dist/esm/sdk/lfs.d.ts +19 -0
- package/dist/esm/sdk/lfs.d.ts.map +1 -0
- package/dist/esm/sdk/lfs.js +28 -0
- package/dist/esm/sdk/lfs.js.map +1 -0
- package/dist/esm/sdk/merge.d.ts +12 -0
- package/dist/esm/sdk/merge.d.ts.map +1 -0
- package/dist/esm/sdk/merge.js +18 -0
- package/dist/esm/sdk/merge.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/types/smartUnion.js +7 -0
- package/dist/esm/types/smartUnion.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/contentGet.ts +1 -3
- package/src/funcs/lfsDownload.ts +233 -0
- package/src/funcs/lfsUpload.ts +224 -0
- package/src/funcs/mergePerform.ts +234 -0
- package/src/funcs/reposGet.ts +1 -0
- package/src/helpers/index.ts +8 -0
- package/src/helpers/lfs.ts +410 -0
- package/src/lib/config.ts +3 -3
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/postbyorgbyrepolfsobjects.ts +358 -0
- package/src/models/errors/postbyorgbyrepolfsobjectsdownload.ts +379 -0
- package/src/models/errors/postbyorgbyrepomergebybase.ts +359 -0
- package/src/models/operations/getbyorg.ts +0 -3
- package/src/models/operations/getbyorgbyrepo.ts +249 -32
- package/src/models/operations/getbyorgbyrepocontent.ts +150 -36
- package/src/models/operations/getbyorgbyreposync.ts +33 -1
- package/src/models/operations/getbyorgrepos.ts +15 -3
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/patchbyorgbyrepo.ts +84 -41
- package/src/models/operations/postbyorgbyrepocommits.ts +62 -4
- package/src/models/operations/postbyorgbyrepolfsobjects.ts +411 -0
- package/src/models/operations/postbyorgbyrepolfsobjectsdownload.ts +442 -0
- package/src/models/operations/postbyorgbyrepomergebybase.ts +428 -0
- package/src/models/operations/postbyorgrepos.ts +69 -35
- package/src/sdk/content.ts +1 -1
- package/src/sdk/lfs.ts +45 -0
- package/src/sdk/merge.ts +27 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/types/smartUnion.ts +8 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The author of the merge commit
|
|
16
|
+
*/
|
|
17
|
+
export type PostByOrgByRepoMergeByBaseAuthor = {
|
|
18
|
+
name: string;
|
|
19
|
+
email: string;
|
|
20
|
+
date?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type PostByOrgByRepoMergeByBaseRequestBody = {
|
|
24
|
+
/**
|
|
25
|
+
* The branch to merge from
|
|
26
|
+
*/
|
|
27
|
+
head: string;
|
|
28
|
+
/**
|
|
29
|
+
* Custom merge commit message. Defaults to "Merge branch 'head' into 'base'"
|
|
30
|
+
*/
|
|
31
|
+
message?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The author of the merge commit
|
|
34
|
+
*/
|
|
35
|
+
author: PostByOrgByRepoMergeByBaseAuthor;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to delete the head branch after a successful merge
|
|
38
|
+
*/
|
|
39
|
+
deleteBranch?: boolean | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type PostByOrgByRepoMergeByBaseRequest = {
|
|
43
|
+
org: string;
|
|
44
|
+
repo: string;
|
|
45
|
+
base: string;
|
|
46
|
+
body?: PostByOrgByRepoMergeByBaseRequestBody | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type PostByOrgByRepoMergeByBaseInternalServerErrorError = {
|
|
50
|
+
code: string;
|
|
51
|
+
message: string;
|
|
52
|
+
details?: { [k: string]: any } | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type PostByOrgByRepoMergeByBaseConflictError = {
|
|
56
|
+
code: string;
|
|
57
|
+
message: string;
|
|
58
|
+
details?: { [k: string]: any } | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type PostByOrgByRepoMergeByBaseNotAcceptableError = {
|
|
62
|
+
code: string;
|
|
63
|
+
message: string;
|
|
64
|
+
details?: { [k: string]: any } | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export type PostByOrgByRepoMergeByBaseNotFoundError = {
|
|
68
|
+
code: string;
|
|
69
|
+
message: string;
|
|
70
|
+
details?: { [k: string]: any } | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type PostByOrgByRepoMergeByBaseForbiddenError = {
|
|
74
|
+
code: string;
|
|
75
|
+
message: string;
|
|
76
|
+
details?: { [k: string]: any } | undefined;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type PostByOrgByRepoMergeByBaseUnauthorizedError = {
|
|
80
|
+
code: string;
|
|
81
|
+
message: string;
|
|
82
|
+
details?: { [k: string]: any } | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type PostByOrgByRepoMergeByBaseBadRequestError = {
|
|
86
|
+
code: string;
|
|
87
|
+
message: string;
|
|
88
|
+
details?: { [k: string]: any } | undefined;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The type of merge that was performed
|
|
93
|
+
*/
|
|
94
|
+
export const MergeType = {
|
|
95
|
+
FastForward: "fast_forward",
|
|
96
|
+
MergeCommit: "merge_commit",
|
|
97
|
+
} as const;
|
|
98
|
+
/**
|
|
99
|
+
* The type of merge that was performed
|
|
100
|
+
*/
|
|
101
|
+
export type MergeType = OpenEnum<typeof MergeType>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Merge completed
|
|
105
|
+
*/
|
|
106
|
+
export type PostByOrgByRepoMergeByBaseResponse = {
|
|
107
|
+
/**
|
|
108
|
+
* The type of merge that was performed
|
|
109
|
+
*/
|
|
110
|
+
mergeType: MergeType;
|
|
111
|
+
/**
|
|
112
|
+
* The SHA of the resulting commit on the base branch
|
|
113
|
+
*/
|
|
114
|
+
sha: string;
|
|
115
|
+
/**
|
|
116
|
+
* The base branch that was merged into
|
|
117
|
+
*/
|
|
118
|
+
base: string;
|
|
119
|
+
/**
|
|
120
|
+
* The head branch that was merged from
|
|
121
|
+
*/
|
|
122
|
+
head: string;
|
|
123
|
+
/**
|
|
124
|
+
* Whether the head branch was deleted after merge
|
|
125
|
+
*/
|
|
126
|
+
branchDeleted: boolean;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export type PostByOrgByRepoMergeByBaseAuthor$Outbound = {
|
|
131
|
+
name: string;
|
|
132
|
+
email: string;
|
|
133
|
+
date?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const PostByOrgByRepoMergeByBaseAuthor$outboundSchema: z.ZodMiniType<
|
|
138
|
+
PostByOrgByRepoMergeByBaseAuthor$Outbound,
|
|
139
|
+
PostByOrgByRepoMergeByBaseAuthor
|
|
140
|
+
> = z.object({
|
|
141
|
+
name: z.string(),
|
|
142
|
+
email: z.string(),
|
|
143
|
+
date: z.optional(z.string()),
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
export function postByOrgByRepoMergeByBaseAuthorToJSON(
|
|
147
|
+
postByOrgByRepoMergeByBaseAuthor: PostByOrgByRepoMergeByBaseAuthor,
|
|
148
|
+
): string {
|
|
149
|
+
return JSON.stringify(
|
|
150
|
+
PostByOrgByRepoMergeByBaseAuthor$outboundSchema.parse(
|
|
151
|
+
postByOrgByRepoMergeByBaseAuthor,
|
|
152
|
+
),
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** @internal */
|
|
157
|
+
export type PostByOrgByRepoMergeByBaseRequestBody$Outbound = {
|
|
158
|
+
head: string;
|
|
159
|
+
message?: string | undefined;
|
|
160
|
+
author: PostByOrgByRepoMergeByBaseAuthor$Outbound;
|
|
161
|
+
delete_branch: boolean;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const PostByOrgByRepoMergeByBaseRequestBody$outboundSchema:
|
|
166
|
+
z.ZodMiniType<
|
|
167
|
+
PostByOrgByRepoMergeByBaseRequestBody$Outbound,
|
|
168
|
+
PostByOrgByRepoMergeByBaseRequestBody
|
|
169
|
+
> = z.pipe(
|
|
170
|
+
z.object({
|
|
171
|
+
head: z.string(),
|
|
172
|
+
message: z.optional(z.string()),
|
|
173
|
+
author: z.lazy(() => PostByOrgByRepoMergeByBaseAuthor$outboundSchema),
|
|
174
|
+
deleteBranch: z._default(z.boolean(), false),
|
|
175
|
+
}),
|
|
176
|
+
z.transform((v) => {
|
|
177
|
+
return remap$(v, {
|
|
178
|
+
deleteBranch: "delete_branch",
|
|
179
|
+
});
|
|
180
|
+
}),
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
export function postByOrgByRepoMergeByBaseRequestBodyToJSON(
|
|
184
|
+
postByOrgByRepoMergeByBaseRequestBody: PostByOrgByRepoMergeByBaseRequestBody,
|
|
185
|
+
): string {
|
|
186
|
+
return JSON.stringify(
|
|
187
|
+
PostByOrgByRepoMergeByBaseRequestBody$outboundSchema.parse(
|
|
188
|
+
postByOrgByRepoMergeByBaseRequestBody,
|
|
189
|
+
),
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export type PostByOrgByRepoMergeByBaseRequest$Outbound = {
|
|
195
|
+
org: string;
|
|
196
|
+
repo: string;
|
|
197
|
+
base: string;
|
|
198
|
+
body?: PostByOrgByRepoMergeByBaseRequestBody$Outbound | undefined;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/** @internal */
|
|
202
|
+
export const PostByOrgByRepoMergeByBaseRequest$outboundSchema: z.ZodMiniType<
|
|
203
|
+
PostByOrgByRepoMergeByBaseRequest$Outbound,
|
|
204
|
+
PostByOrgByRepoMergeByBaseRequest
|
|
205
|
+
> = z.object({
|
|
206
|
+
org: z.string(),
|
|
207
|
+
repo: z.string(),
|
|
208
|
+
base: z.string(),
|
|
209
|
+
body: z.optional(
|
|
210
|
+
z.lazy(() => PostByOrgByRepoMergeByBaseRequestBody$outboundSchema),
|
|
211
|
+
),
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
export function postByOrgByRepoMergeByBaseRequestToJSON(
|
|
215
|
+
postByOrgByRepoMergeByBaseRequest: PostByOrgByRepoMergeByBaseRequest,
|
|
216
|
+
): string {
|
|
217
|
+
return JSON.stringify(
|
|
218
|
+
PostByOrgByRepoMergeByBaseRequest$outboundSchema.parse(
|
|
219
|
+
postByOrgByRepoMergeByBaseRequest,
|
|
220
|
+
),
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** @internal */
|
|
225
|
+
export const PostByOrgByRepoMergeByBaseInternalServerErrorError$inboundSchema:
|
|
226
|
+
z.ZodMiniType<PostByOrgByRepoMergeByBaseInternalServerErrorError, unknown> = z
|
|
227
|
+
.object({
|
|
228
|
+
code: types.string(),
|
|
229
|
+
message: types.string(),
|
|
230
|
+
details: types.optional(z.record(z.string(), z.any())),
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
export function postByOrgByRepoMergeByBaseInternalServerErrorErrorFromJSON(
|
|
234
|
+
jsonString: string,
|
|
235
|
+
): SafeParseResult<
|
|
236
|
+
PostByOrgByRepoMergeByBaseInternalServerErrorError,
|
|
237
|
+
SDKValidationError
|
|
238
|
+
> {
|
|
239
|
+
return safeParse(
|
|
240
|
+
jsonString,
|
|
241
|
+
(x) =>
|
|
242
|
+
PostByOrgByRepoMergeByBaseInternalServerErrorError$inboundSchema.parse(
|
|
243
|
+
JSON.parse(x),
|
|
244
|
+
),
|
|
245
|
+
`Failed to parse 'PostByOrgByRepoMergeByBaseInternalServerErrorError' from JSON`,
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/** @internal */
|
|
250
|
+
export const PostByOrgByRepoMergeByBaseConflictError$inboundSchema:
|
|
251
|
+
z.ZodMiniType<PostByOrgByRepoMergeByBaseConflictError, unknown> = z.object({
|
|
252
|
+
code: types.string(),
|
|
253
|
+
message: types.string(),
|
|
254
|
+
details: types.optional(z.record(z.string(), z.any())),
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
export function postByOrgByRepoMergeByBaseConflictErrorFromJSON(
|
|
258
|
+
jsonString: string,
|
|
259
|
+
): SafeParseResult<
|
|
260
|
+
PostByOrgByRepoMergeByBaseConflictError,
|
|
261
|
+
SDKValidationError
|
|
262
|
+
> {
|
|
263
|
+
return safeParse(
|
|
264
|
+
jsonString,
|
|
265
|
+
(x) =>
|
|
266
|
+
PostByOrgByRepoMergeByBaseConflictError$inboundSchema.parse(
|
|
267
|
+
JSON.parse(x),
|
|
268
|
+
),
|
|
269
|
+
`Failed to parse 'PostByOrgByRepoMergeByBaseConflictError' from JSON`,
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/** @internal */
|
|
274
|
+
export const PostByOrgByRepoMergeByBaseNotAcceptableError$inboundSchema:
|
|
275
|
+
z.ZodMiniType<PostByOrgByRepoMergeByBaseNotAcceptableError, unknown> = z
|
|
276
|
+
.object({
|
|
277
|
+
code: types.string(),
|
|
278
|
+
message: types.string(),
|
|
279
|
+
details: types.optional(z.record(z.string(), z.any())),
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
export function postByOrgByRepoMergeByBaseNotAcceptableErrorFromJSON(
|
|
283
|
+
jsonString: string,
|
|
284
|
+
): SafeParseResult<
|
|
285
|
+
PostByOrgByRepoMergeByBaseNotAcceptableError,
|
|
286
|
+
SDKValidationError
|
|
287
|
+
> {
|
|
288
|
+
return safeParse(
|
|
289
|
+
jsonString,
|
|
290
|
+
(x) =>
|
|
291
|
+
PostByOrgByRepoMergeByBaseNotAcceptableError$inboundSchema.parse(
|
|
292
|
+
JSON.parse(x),
|
|
293
|
+
),
|
|
294
|
+
`Failed to parse 'PostByOrgByRepoMergeByBaseNotAcceptableError' from JSON`,
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/** @internal */
|
|
299
|
+
export const PostByOrgByRepoMergeByBaseNotFoundError$inboundSchema:
|
|
300
|
+
z.ZodMiniType<PostByOrgByRepoMergeByBaseNotFoundError, unknown> = z.object({
|
|
301
|
+
code: types.string(),
|
|
302
|
+
message: types.string(),
|
|
303
|
+
details: types.optional(z.record(z.string(), z.any())),
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
export function postByOrgByRepoMergeByBaseNotFoundErrorFromJSON(
|
|
307
|
+
jsonString: string,
|
|
308
|
+
): SafeParseResult<
|
|
309
|
+
PostByOrgByRepoMergeByBaseNotFoundError,
|
|
310
|
+
SDKValidationError
|
|
311
|
+
> {
|
|
312
|
+
return safeParse(
|
|
313
|
+
jsonString,
|
|
314
|
+
(x) =>
|
|
315
|
+
PostByOrgByRepoMergeByBaseNotFoundError$inboundSchema.parse(
|
|
316
|
+
JSON.parse(x),
|
|
317
|
+
),
|
|
318
|
+
`Failed to parse 'PostByOrgByRepoMergeByBaseNotFoundError' from JSON`,
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** @internal */
|
|
323
|
+
export const PostByOrgByRepoMergeByBaseForbiddenError$inboundSchema:
|
|
324
|
+
z.ZodMiniType<PostByOrgByRepoMergeByBaseForbiddenError, unknown> = z.object({
|
|
325
|
+
code: types.string(),
|
|
326
|
+
message: types.string(),
|
|
327
|
+
details: types.optional(z.record(z.string(), z.any())),
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
export function postByOrgByRepoMergeByBaseForbiddenErrorFromJSON(
|
|
331
|
+
jsonString: string,
|
|
332
|
+
): SafeParseResult<
|
|
333
|
+
PostByOrgByRepoMergeByBaseForbiddenError,
|
|
334
|
+
SDKValidationError
|
|
335
|
+
> {
|
|
336
|
+
return safeParse(
|
|
337
|
+
jsonString,
|
|
338
|
+
(x) =>
|
|
339
|
+
PostByOrgByRepoMergeByBaseForbiddenError$inboundSchema.parse(
|
|
340
|
+
JSON.parse(x),
|
|
341
|
+
),
|
|
342
|
+
`Failed to parse 'PostByOrgByRepoMergeByBaseForbiddenError' from JSON`,
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/** @internal */
|
|
347
|
+
export const PostByOrgByRepoMergeByBaseUnauthorizedError$inboundSchema:
|
|
348
|
+
z.ZodMiniType<PostByOrgByRepoMergeByBaseUnauthorizedError, unknown> = z
|
|
349
|
+
.object({
|
|
350
|
+
code: types.string(),
|
|
351
|
+
message: types.string(),
|
|
352
|
+
details: types.optional(z.record(z.string(), z.any())),
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
export function postByOrgByRepoMergeByBaseUnauthorizedErrorFromJSON(
|
|
356
|
+
jsonString: string,
|
|
357
|
+
): SafeParseResult<
|
|
358
|
+
PostByOrgByRepoMergeByBaseUnauthorizedError,
|
|
359
|
+
SDKValidationError
|
|
360
|
+
> {
|
|
361
|
+
return safeParse(
|
|
362
|
+
jsonString,
|
|
363
|
+
(x) =>
|
|
364
|
+
PostByOrgByRepoMergeByBaseUnauthorizedError$inboundSchema.parse(
|
|
365
|
+
JSON.parse(x),
|
|
366
|
+
),
|
|
367
|
+
`Failed to parse 'PostByOrgByRepoMergeByBaseUnauthorizedError' from JSON`,
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/** @internal */
|
|
372
|
+
export const PostByOrgByRepoMergeByBaseBadRequestError$inboundSchema:
|
|
373
|
+
z.ZodMiniType<PostByOrgByRepoMergeByBaseBadRequestError, unknown> = z.object({
|
|
374
|
+
code: types.string(),
|
|
375
|
+
message: types.string(),
|
|
376
|
+
details: types.optional(z.record(z.string(), z.any())),
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
export function postByOrgByRepoMergeByBaseBadRequestErrorFromJSON(
|
|
380
|
+
jsonString: string,
|
|
381
|
+
): SafeParseResult<
|
|
382
|
+
PostByOrgByRepoMergeByBaseBadRequestError,
|
|
383
|
+
SDKValidationError
|
|
384
|
+
> {
|
|
385
|
+
return safeParse(
|
|
386
|
+
jsonString,
|
|
387
|
+
(x) =>
|
|
388
|
+
PostByOrgByRepoMergeByBaseBadRequestError$inboundSchema.parse(
|
|
389
|
+
JSON.parse(x),
|
|
390
|
+
),
|
|
391
|
+
`Failed to parse 'PostByOrgByRepoMergeByBaseBadRequestError' from JSON`,
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/** @internal */
|
|
396
|
+
export const MergeType$inboundSchema: z.ZodMiniType<MergeType, unknown> =
|
|
397
|
+
openEnums.inboundSchema(MergeType);
|
|
398
|
+
|
|
399
|
+
/** @internal */
|
|
400
|
+
export const PostByOrgByRepoMergeByBaseResponse$inboundSchema: z.ZodMiniType<
|
|
401
|
+
PostByOrgByRepoMergeByBaseResponse,
|
|
402
|
+
unknown
|
|
403
|
+
> = z.pipe(
|
|
404
|
+
z.object({
|
|
405
|
+
merge_type: MergeType$inboundSchema,
|
|
406
|
+
sha: types.string(),
|
|
407
|
+
base: types.string(),
|
|
408
|
+
head: types.string(),
|
|
409
|
+
branch_deleted: types.boolean(),
|
|
410
|
+
}),
|
|
411
|
+
z.transform((v) => {
|
|
412
|
+
return remap$(v, {
|
|
413
|
+
"merge_type": "mergeType",
|
|
414
|
+
"branch_deleted": "branchDeleted",
|
|
415
|
+
});
|
|
416
|
+
}),
|
|
417
|
+
);
|
|
418
|
+
|
|
419
|
+
export function postByOrgByRepoMergeByBaseResponseFromJSON(
|
|
420
|
+
jsonString: string,
|
|
421
|
+
): SafeParseResult<PostByOrgByRepoMergeByBaseResponse, SDKValidationError> {
|
|
422
|
+
return safeParse(
|
|
423
|
+
jsonString,
|
|
424
|
+
(x) =>
|
|
425
|
+
PostByOrgByRepoMergeByBaseResponse$inboundSchema.parse(JSON.parse(x)),
|
|
426
|
+
`Failed to parse 'PostByOrgByRepoMergeByBaseResponse' from JSON`,
|
|
427
|
+
);
|
|
428
|
+
}
|
|
@@ -49,6 +49,14 @@ export type PostByOrgReposUpstreamRequest = {
|
|
|
49
49
|
* Optionally enable automatic sync from the upstream repository
|
|
50
50
|
*/
|
|
51
51
|
autosync?: PostByOrgReposAutosyncPollRequest | 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 PostByOrgReposRequestBody = {
|
|
@@ -107,17 +115,17 @@ export type PostByOrgReposBadRequestError = {
|
|
|
107
115
|
/**
|
|
108
116
|
* Conflict resolution strategy. "none" means sync will fail on conflicts.
|
|
109
117
|
*/
|
|
110
|
-
export const
|
|
118
|
+
export const PostByOrgReposResolutionStrategyResponseBody = {
|
|
111
119
|
None: "none",
|
|
112
120
|
} as const;
|
|
113
121
|
/**
|
|
114
122
|
* Conflict resolution strategy. "none" means sync will fail on conflicts.
|
|
115
123
|
*/
|
|
116
|
-
export type
|
|
117
|
-
typeof
|
|
124
|
+
export type PostByOrgReposResolutionStrategyResponseBody = ClosedEnum<
|
|
125
|
+
typeof PostByOrgReposResolutionStrategyResponseBody
|
|
118
126
|
>;
|
|
119
127
|
|
|
120
|
-
export type
|
|
128
|
+
export type PostByOrgReposAutosyncResponseBody = {
|
|
121
129
|
type: "poll";
|
|
122
130
|
/**
|
|
123
131
|
* Polling period in seconds
|
|
@@ -126,10 +134,10 @@ export type PostByOrgReposAutosyncResponse = {
|
|
|
126
134
|
/**
|
|
127
135
|
* Conflict resolution strategy. "none" means sync will fail on conflicts.
|
|
128
136
|
*/
|
|
129
|
-
resolutionStrategy:
|
|
137
|
+
resolutionStrategy: PostByOrgReposResolutionStrategyResponseBody;
|
|
130
138
|
};
|
|
131
139
|
|
|
132
|
-
export type
|
|
140
|
+
export type PostByOrgReposUpstreamResponseBody = {
|
|
133
141
|
/**
|
|
134
142
|
* URL of the upstream repository
|
|
135
143
|
*/
|
|
@@ -137,7 +145,7 @@ export type PostByOrgReposUpstreamResponse = {
|
|
|
137
145
|
/**
|
|
138
146
|
* Automatic sync configuration, if enabled
|
|
139
147
|
*/
|
|
140
|
-
autosync:
|
|
148
|
+
autosync: PostByOrgReposAutosyncResponseBody | null;
|
|
141
149
|
/**
|
|
142
150
|
* Timestamp of the last sync attempt
|
|
143
151
|
*/
|
|
@@ -150,6 +158,14 @@ export type PostByOrgReposUpstreamResponse = {
|
|
|
150
158
|
* Error message from the last failed sync attempt
|
|
151
159
|
*/
|
|
152
160
|
lastSyncError: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Whether this upstream has an authentication credential configured
|
|
163
|
+
*/
|
|
164
|
+
hasCredential: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* The host the credential is scoped to (e.g. "github.com")
|
|
167
|
+
*/
|
|
168
|
+
credentialHost: string | null;
|
|
153
169
|
};
|
|
154
170
|
|
|
155
171
|
/**
|
|
@@ -160,13 +176,13 @@ export type PostByOrgReposResponse = {
|
|
|
160
176
|
org: string;
|
|
161
177
|
name: string;
|
|
162
178
|
defaultBranch: string;
|
|
179
|
+
headSha: string | null;
|
|
163
180
|
sizeBytes: number;
|
|
164
|
-
lastPushAt: string | null;
|
|
165
181
|
createdAt: string;
|
|
166
182
|
/**
|
|
167
183
|
* Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
|
|
168
184
|
*/
|
|
169
|
-
upstream:
|
|
185
|
+
upstream: PostByOrgReposUpstreamResponseBody | null;
|
|
170
186
|
};
|
|
171
187
|
|
|
172
188
|
/** @internal */
|
|
@@ -236,18 +252,29 @@ export function postByOrgReposAutosyncUnionToJSON(
|
|
|
236
252
|
export type PostByOrgReposUpstreamRequest$Outbound = {
|
|
237
253
|
uri: string;
|
|
238
254
|
autosync?: PostByOrgReposAutosyncPollRequest$Outbound | undefined;
|
|
255
|
+
token?: string | null | undefined;
|
|
256
|
+
token_username?: string | undefined;
|
|
239
257
|
};
|
|
240
258
|
|
|
241
259
|
/** @internal */
|
|
242
260
|
export const PostByOrgReposUpstreamRequest$outboundSchema: z.ZodMiniType<
|
|
243
261
|
PostByOrgReposUpstreamRequest$Outbound,
|
|
244
262
|
PostByOrgReposUpstreamRequest
|
|
245
|
-
> = z.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
z.
|
|
249
|
-
|
|
250
|
-
|
|
263
|
+
> = z.pipe(
|
|
264
|
+
z.object({
|
|
265
|
+
uri: z.string(),
|
|
266
|
+
autosync: z.optional(
|
|
267
|
+
z.lazy(() => PostByOrgReposAutosyncPollRequest$outboundSchema),
|
|
268
|
+
),
|
|
269
|
+
token: z.optional(z.nullable(z.string())),
|
|
270
|
+
tokenUsername: z.optional(z.string()),
|
|
271
|
+
}),
|
|
272
|
+
z.transform((v) => {
|
|
273
|
+
return remap$(v, {
|
|
274
|
+
tokenUsername: "token_username",
|
|
275
|
+
});
|
|
276
|
+
}),
|
|
277
|
+
);
|
|
251
278
|
|
|
252
279
|
export function postByOrgReposUpstreamRequestToJSON(
|
|
253
280
|
postByOrgReposUpstreamRequest: PostByOrgReposUpstreamRequest,
|
|
@@ -456,20 +483,21 @@ export function postByOrgReposBadRequestErrorFromJSON(
|
|
|
456
483
|
}
|
|
457
484
|
|
|
458
485
|
/** @internal */
|
|
459
|
-
export const
|
|
460
|
-
z.ZodMiniEnum<typeof
|
|
461
|
-
|
|
486
|
+
export const PostByOrgReposResolutionStrategyResponseBody$inboundSchema:
|
|
487
|
+
z.ZodMiniEnum<typeof PostByOrgReposResolutionStrategyResponseBody> = z.enum(
|
|
488
|
+
PostByOrgReposResolutionStrategyResponseBody,
|
|
462
489
|
);
|
|
463
490
|
|
|
464
491
|
/** @internal */
|
|
465
|
-
export const
|
|
466
|
-
|
|
492
|
+
export const PostByOrgReposAutosyncResponseBody$inboundSchema: z.ZodMiniType<
|
|
493
|
+
PostByOrgReposAutosyncResponseBody,
|
|
467
494
|
unknown
|
|
468
495
|
> = z.pipe(
|
|
469
496
|
z.object({
|
|
470
497
|
type: types.literal("poll"),
|
|
471
498
|
period: types.number(),
|
|
472
|
-
resolution_strategy:
|
|
499
|
+
resolution_strategy:
|
|
500
|
+
PostByOrgReposResolutionStrategyResponseBody$inboundSchema,
|
|
473
501
|
}),
|
|
474
502
|
z.transform((v) => {
|
|
475
503
|
return remap$(v, {
|
|
@@ -478,46 +506,52 @@ export const PostByOrgReposAutosyncResponse$inboundSchema: z.ZodMiniType<
|
|
|
478
506
|
}),
|
|
479
507
|
);
|
|
480
508
|
|
|
481
|
-
export function
|
|
509
|
+
export function postByOrgReposAutosyncResponseBodyFromJSON(
|
|
482
510
|
jsonString: string,
|
|
483
|
-
): SafeParseResult<
|
|
511
|
+
): SafeParseResult<PostByOrgReposAutosyncResponseBody, SDKValidationError> {
|
|
484
512
|
return safeParse(
|
|
485
513
|
jsonString,
|
|
486
|
-
(x) =>
|
|
487
|
-
|
|
514
|
+
(x) =>
|
|
515
|
+
PostByOrgReposAutosyncResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
516
|
+
`Failed to parse 'PostByOrgReposAutosyncResponseBody' from JSON`,
|
|
488
517
|
);
|
|
489
518
|
}
|
|
490
519
|
|
|
491
520
|
/** @internal */
|
|
492
|
-
export const
|
|
493
|
-
|
|
521
|
+
export const PostByOrgReposUpstreamResponseBody$inboundSchema: z.ZodMiniType<
|
|
522
|
+
PostByOrgReposUpstreamResponseBody,
|
|
494
523
|
unknown
|
|
495
524
|
> = z.pipe(
|
|
496
525
|
z.object({
|
|
497
526
|
uri: types.string(),
|
|
498
527
|
autosync: types.nullable(
|
|
499
|
-
z.lazy(() =>
|
|
528
|
+
z.lazy(() => PostByOrgReposAutosyncResponseBody$inboundSchema),
|
|
500
529
|
),
|
|
501
530
|
last_sync_attempt: types.nullable(types.date()),
|
|
502
531
|
last_sync_success: types.nullable(types.date()),
|
|
503
532
|
last_sync_error: types.nullable(types.string()),
|
|
533
|
+
has_credential: types.boolean(),
|
|
534
|
+
credential_host: types.nullable(types.string()),
|
|
504
535
|
}),
|
|
505
536
|
z.transform((v) => {
|
|
506
537
|
return remap$(v, {
|
|
507
538
|
"last_sync_attempt": "lastSyncAttempt",
|
|
508
539
|
"last_sync_success": "lastSyncSuccess",
|
|
509
540
|
"last_sync_error": "lastSyncError",
|
|
541
|
+
"has_credential": "hasCredential",
|
|
542
|
+
"credential_host": "credentialHost",
|
|
510
543
|
});
|
|
511
544
|
}),
|
|
512
545
|
);
|
|
513
546
|
|
|
514
|
-
export function
|
|
547
|
+
export function postByOrgReposUpstreamResponseBodyFromJSON(
|
|
515
548
|
jsonString: string,
|
|
516
|
-
): SafeParseResult<
|
|
549
|
+
): SafeParseResult<PostByOrgReposUpstreamResponseBody, SDKValidationError> {
|
|
517
550
|
return safeParse(
|
|
518
551
|
jsonString,
|
|
519
|
-
(x) =>
|
|
520
|
-
|
|
552
|
+
(x) =>
|
|
553
|
+
PostByOrgReposUpstreamResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
554
|
+
`Failed to parse 'PostByOrgReposUpstreamResponseBody' from JSON`,
|
|
521
555
|
);
|
|
522
556
|
}
|
|
523
557
|
|
|
@@ -531,18 +565,18 @@ export const PostByOrgReposResponse$inboundSchema: z.ZodMiniType<
|
|
|
531
565
|
org: types.string(),
|
|
532
566
|
name: types.string(),
|
|
533
567
|
default_branch: types.string(),
|
|
568
|
+
head_sha: types.nullable(types.string()),
|
|
534
569
|
size_bytes: types.number(),
|
|
535
|
-
last_push_at: types.nullable(types.string()),
|
|
536
570
|
created_at: types.string(),
|
|
537
571
|
upstream: types.nullable(
|
|
538
|
-
z.lazy(() =>
|
|
572
|
+
z.lazy(() => PostByOrgReposUpstreamResponseBody$inboundSchema),
|
|
539
573
|
),
|
|
540
574
|
}),
|
|
541
575
|
z.transform((v) => {
|
|
542
576
|
return remap$(v, {
|
|
543
577
|
"default_branch": "defaultBranch",
|
|
578
|
+
"head_sha": "headSha",
|
|
544
579
|
"size_bytes": "sizeBytes",
|
|
545
|
-
"last_push_at": "lastPushAt",
|
|
546
580
|
"created_at": "createdAt",
|
|
547
581
|
});
|
|
548
582
|
}),
|
package/src/sdk/content.ts
CHANGED
|
@@ -12,7 +12,7 @@ export class Content extends ClientSDK {
|
|
|
12
12
|
* Get content
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Get file content or directory listing at a path.
|
|
15
|
+
* Get file content or directory listing at a path. Use Accept: application/json for the JSON union response, or Accept: application/octet-stream for raw file bytes. Directory + octet-stream requests return 406 Not Acceptable.
|
|
16
16
|
*/
|
|
17
17
|
async get(
|
|
18
18
|
request: operations.GetByOrgByRepoContentRequest,
|