@mesadev/sdk 0.3.2 → 0.4.0

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 (105) hide show
  1. package/README.md +53 -13
  2. package/dist/api/client.d.ts +26 -0
  3. package/dist/api/client.d.ts.map +1 -0
  4. package/dist/api/client.js +40 -0
  5. package/dist/api/client.js.map +1 -0
  6. package/dist/api/index.d.ts +2 -0
  7. package/dist/api/index.d.ts.map +1 -0
  8. package/dist/api/index.js +2 -0
  9. package/dist/api/index.js.map +1 -0
  10. package/dist/api/resources.d.ts +134 -0
  11. package/dist/api/resources.d.ts.map +1 -0
  12. package/dist/api/resources.js +151 -0
  13. package/dist/api/resources.js.map +1 -0
  14. package/dist/fs/index.d.ts +2 -0
  15. package/dist/fs/index.d.ts.map +1 -0
  16. package/dist/fs/index.js +2 -0
  17. package/dist/fs/index.js.map +1 -0
  18. package/dist/fs/key-cleanup.d.ts +7 -0
  19. package/dist/fs/key-cleanup.d.ts.map +1 -0
  20. package/dist/fs/key-cleanup.js +70 -0
  21. package/dist/fs/key-cleanup.js.map +1 -0
  22. package/dist/fs/mesa-file-system.d.ts +65 -0
  23. package/dist/fs/mesa-file-system.d.ts.map +1 -0
  24. package/dist/fs/mesa-file-system.js +135 -0
  25. package/dist/fs/mesa-file-system.js.map +1 -0
  26. package/dist/fs/native-loader.d.ts +61 -0
  27. package/dist/fs/native-loader.d.ts.map +1 -0
  28. package/dist/fs/native-loader.js +94 -0
  29. package/dist/fs/native-loader.js.map +1 -0
  30. package/dist/git/index.d.ts +2 -0
  31. package/dist/git/index.d.ts.map +1 -0
  32. package/dist/git/index.js +2 -0
  33. package/dist/git/index.js.map +1 -0
  34. package/dist/git/path-utils.d.ts +4 -0
  35. package/dist/git/path-utils.d.ts.map +1 -0
  36. package/dist/git/path-utils.js +47 -0
  37. package/dist/git/path-utils.js.map +1 -0
  38. package/dist/git/service.d.ts +3 -0
  39. package/dist/git/service.d.ts.map +1 -0
  40. package/dist/git/service.js +308 -0
  41. package/dist/git/service.js.map +1 -0
  42. package/dist/git/types.d.ts +30 -0
  43. package/dist/git/types.d.ts.map +1 -0
  44. package/dist/git/types.js +2 -0
  45. package/dist/git/types.js.map +1 -0
  46. package/dist/index.d.ts +7 -1
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +5 -2
  49. package/dist/index.js.map +1 -0
  50. package/dist/lib/errors.d.ts +15 -0
  51. package/dist/lib/errors.d.ts.map +1 -0
  52. package/dist/lib/errors.js +27 -0
  53. package/dist/lib/errors.js.map +1 -0
  54. package/dist/mesa.d.ts +54 -0
  55. package/dist/mesa.d.ts.map +1 -0
  56. package/dist/mesa.js +155 -0
  57. package/dist/mesa.js.map +1 -0
  58. package/package.json +51 -20
  59. package/LICENSE +0 -201
  60. package/dist/client/client.gen.d.ts +0 -2
  61. package/dist/client/client.gen.js +0 -234
  62. package/dist/client/index.d.ts +0 -8
  63. package/dist/client/index.js +0 -6
  64. package/dist/client/types.gen.d.ts +0 -117
  65. package/dist/client/types.gen.js +0 -2
  66. package/dist/client/utils.gen.d.ts +0 -33
  67. package/dist/client/utils.gen.js +0 -228
  68. package/dist/client.gen.d.ts +0 -12
  69. package/dist/client.gen.js +0 -3
  70. package/dist/core/auth.gen.d.ts +0 -18
  71. package/dist/core/auth.gen.js +0 -14
  72. package/dist/core/bodySerializer.gen.d.ts +0 -25
  73. package/dist/core/bodySerializer.gen.js +0 -57
  74. package/dist/core/params.gen.d.ts +0 -43
  75. package/dist/core/params.gen.js +0 -100
  76. package/dist/core/pathSerializer.gen.d.ts +0 -33
  77. package/dist/core/pathSerializer.gen.js +0 -106
  78. package/dist/core/queryKeySerializer.gen.d.ts +0 -18
  79. package/dist/core/queryKeySerializer.gen.js +0 -92
  80. package/dist/core/serverSentEvents.gen.d.ts +0 -71
  81. package/dist/core/serverSentEvents.gen.js +0 -133
  82. package/dist/core/types.gen.d.ts +0 -78
  83. package/dist/core/types.gen.js +0 -2
  84. package/dist/core/utils.gen.d.ts +0 -19
  85. package/dist/core/utils.gen.js +0 -87
  86. package/dist/sdk.gen.d.ts +0 -123
  87. package/dist/sdk.gen.js +0 -202
  88. package/dist/types.gen.d.ts +0 -2285
  89. package/dist/types.gen.js +0 -2
  90. package/src/client/client.gen.ts +0 -288
  91. package/src/client/index.ts +0 -25
  92. package/src/client/types.gen.ts +0 -214
  93. package/src/client/utils.gen.ts +0 -316
  94. package/src/client.gen.ts +0 -16
  95. package/src/core/auth.gen.ts +0 -41
  96. package/src/core/bodySerializer.gen.ts +0 -84
  97. package/src/core/params.gen.ts +0 -169
  98. package/src/core/pathSerializer.gen.ts +0 -171
  99. package/src/core/queryKeySerializer.gen.ts +0 -117
  100. package/src/core/serverSentEvents.gen.ts +0 -243
  101. package/src/core/types.gen.ts +0 -104
  102. package/src/core/utils.gen.ts +0 -140
  103. package/src/index.ts +0 -2
  104. package/src/sdk.gen.ts +0 -237
  105. package/src/types.gen.ts +0 -2377
package/dist/sdk.gen.d.ts DELETED
@@ -1,123 +0,0 @@
1
- import type { Client, Options as Options2, TDataShape } from './client';
2
- import type { DeleteByOrgApiKeysByIdData, DeleteByOrgApiKeysByIdErrors, DeleteByOrgApiKeysByIdResponses, DeleteByOrgByRepoBranchesByBranchData, DeleteByOrgByRepoBranchesByBranchErrors, DeleteByOrgByRepoBranchesByBranchResponses, DeleteByOrgByRepoData, DeleteByOrgByRepoErrors, DeleteByOrgByRepoResponses, DeleteByOrgByRepoWebhooksByWebhookIdData, DeleteByOrgByRepoWebhooksByWebhookIdErrors, DeleteByOrgByRepoWebhooksByWebhookIdResponses, GetByOrgApiKeysData, GetByOrgApiKeysErrors, GetByOrgApiKeysResponses, GetByOrgByRepoBranchesData, GetByOrgByRepoBranchesErrors, GetByOrgByRepoBranchesResponses, GetByOrgByRepoCommitsByShaData, GetByOrgByRepoCommitsByShaErrors, GetByOrgByRepoCommitsByShaResponses, GetByOrgByRepoCommitsData, GetByOrgByRepoCommitsErrors, GetByOrgByRepoCommitsResponses, GetByOrgByRepoContentData, GetByOrgByRepoContentErrors, GetByOrgByRepoContentResponses, GetByOrgByRepoData, GetByOrgByRepoErrors, GetByOrgByRepoResponses, GetByOrgByRepoWebhooksData, GetByOrgByRepoWebhooksErrors, GetByOrgByRepoWebhooksResponses, GetByOrgData, GetByOrgErrors, GetByOrgReposData, GetByOrgReposErrors, GetByOrgReposResponses, GetByOrgResponses, PatchByOrgByRepoData, PatchByOrgByRepoErrors, PatchByOrgByRepoResponses, PostByOrgApiKeysData, PostByOrgApiKeysErrors, PostByOrgApiKeysResponses, PostByOrgByRepoBranchesData, PostByOrgByRepoBranchesErrors, PostByOrgByRepoBranchesResponses, PostByOrgByRepoWebhooksData, PostByOrgByRepoWebhooksErrors, PostByOrgByRepoWebhooksResponses, PostByOrgReposData, PostByOrgReposErrors, PostByOrgReposResponses } from './types.gen';
3
- export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
- /**
5
- * You can provide a client instance returned by `createClient()` instead of
6
- * individual options. This might be also useful if you want to implement a
7
- * custom client.
8
- */
9
- client?: Client;
10
- /**
11
- * You can pass arbitrary values through the `meta` object. This can be
12
- * used to access values that aren't defined as part of the SDK function.
13
- */
14
- meta?: Record<string, unknown>;
15
- };
16
- /**
17
- * List API keys
18
- *
19
- * List all API keys for the organization (key values are not returned)
20
- */
21
- export declare const getByOrgApiKeys: <ThrowOnError extends boolean = false>(options: Options<GetByOrgApiKeysData, ThrowOnError>) => import("./client").RequestResult<GetByOrgApiKeysResponses, GetByOrgApiKeysErrors, ThrowOnError, "fields">;
22
- /**
23
- * Create API key
24
- *
25
- * Create a new API key for programmatic access
26
- */
27
- export declare const postByOrgApiKeys: <ThrowOnError extends boolean = false>(options: Options<PostByOrgApiKeysData, ThrowOnError>) => import("./client").RequestResult<PostByOrgApiKeysResponses, PostByOrgApiKeysErrors, ThrowOnError, "fields">;
28
- /**
29
- * Revoke API key
30
- *
31
- * Revoke an API key by its ID
32
- */
33
- export declare const deleteByOrgApiKeysById: <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgApiKeysByIdData, ThrowOnError>) => import("./client").RequestResult<DeleteByOrgApiKeysByIdResponses, DeleteByOrgApiKeysByIdErrors, ThrowOnError, "fields">;
34
- /**
35
- * List repositories
36
- *
37
- * List all repositories in the organization
38
- */
39
- export declare const getByOrgRepos: <ThrowOnError extends boolean = false>(options: Options<GetByOrgReposData, ThrowOnError>) => import("./client").RequestResult<GetByOrgReposResponses, GetByOrgReposErrors, ThrowOnError, "fields">;
40
- /**
41
- * Create repository
42
- *
43
- * Create a new repository in the organization
44
- */
45
- export declare const postByOrgRepos: <ThrowOnError extends boolean = false>(options: Options<PostByOrgReposData, ThrowOnError>) => import("./client").RequestResult<PostByOrgReposResponses, PostByOrgReposErrors, ThrowOnError, "fields">;
46
- /**
47
- * Delete repository
48
- *
49
- * Permanently delete a repository and all its data
50
- */
51
- export declare const deleteByOrgByRepo: <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoData, ThrowOnError>) => import("./client").RequestResult<DeleteByOrgByRepoResponses, DeleteByOrgByRepoErrors, ThrowOnError, "fields">;
52
- /**
53
- * Get repository
54
- *
55
- * Get metadata for a specific repository
56
- */
57
- export declare const getByOrgByRepo: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoResponses, GetByOrgByRepoErrors, ThrowOnError, "fields">;
58
- /**
59
- * Update repository
60
- *
61
- * Update repository name or upstream configuration
62
- */
63
- export declare const patchByOrgByRepo: <ThrowOnError extends boolean = false>(options: Options<PatchByOrgByRepoData, ThrowOnError>) => import("./client").RequestResult<PatchByOrgByRepoResponses, PatchByOrgByRepoErrors, ThrowOnError, "fields">;
64
- /**
65
- * Get content
66
- *
67
- * 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.
68
- */
69
- export declare const getByOrgByRepoContent: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoContentData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoContentResponses, GetByOrgByRepoContentErrors, ThrowOnError, "fields">;
70
- /**
71
- * List branches
72
- *
73
- * List all branches in a repository
74
- */
75
- export declare const getByOrgByRepoBranches: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoBranchesData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoBranchesResponses, GetByOrgByRepoBranchesErrors, ThrowOnError, "fields">;
76
- /**
77
- * Create branch
78
- *
79
- * Create a new branch from an existing ref
80
- */
81
- export declare const postByOrgByRepoBranches: <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoBranchesData, ThrowOnError>) => import("./client").RequestResult<PostByOrgByRepoBranchesResponses, PostByOrgByRepoBranchesErrors, ThrowOnError, "fields">;
82
- /**
83
- * Delete branch
84
- *
85
- * Delete a branch from a repository
86
- */
87
- export declare const deleteByOrgByRepoBranchesByBranch: <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoBranchesByBranchData, ThrowOnError>) => import("./client").RequestResult<DeleteByOrgByRepoBranchesByBranchResponses, DeleteByOrgByRepoBranchesByBranchErrors, ThrowOnError, "fields">;
88
- /**
89
- * List commits
90
- *
91
- * List commits for a repository from a specific ref
92
- */
93
- export declare const getByOrgByRepoCommits: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoCommitsData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoCommitsResponses, GetByOrgByRepoCommitsErrors, ThrowOnError, "fields">;
94
- /**
95
- * Get commit
96
- *
97
- * Retrieve a specific commit by its SHA
98
- */
99
- export declare const getByOrgByRepoCommitsBySha: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoCommitsByShaData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoCommitsByShaResponses, GetByOrgByRepoCommitsByShaErrors, ThrowOnError, "fields">;
100
- /**
101
- * List webhooks
102
- *
103
- * List webhooks for a repository
104
- */
105
- export declare const getByOrgByRepoWebhooks: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoWebhooksData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoWebhooksResponses, GetByOrgByRepoWebhooksErrors, ThrowOnError, "fields">;
106
- /**
107
- * Create webhook
108
- *
109
- * Create a webhook for a repository
110
- */
111
- export declare const postByOrgByRepoWebhooks: <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoWebhooksData, ThrowOnError>) => import("./client").RequestResult<PostByOrgByRepoWebhooksResponses, PostByOrgByRepoWebhooksErrors, ThrowOnError, "fields">;
112
- /**
113
- * Delete webhook
114
- *
115
- * Delete a webhook from a repository
116
- */
117
- export declare const deleteByOrgByRepoWebhooksByWebhookId: <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoWebhooksByWebhookIdData, ThrowOnError>) => import("./client").RequestResult<DeleteByOrgByRepoWebhooksByWebhookIdResponses, DeleteByOrgByRepoWebhooksByWebhookIdErrors, ThrowOnError, "fields">;
118
- /**
119
- * Get organization
120
- *
121
- * Get organization metadata and repository counts
122
- */
123
- export declare const getByOrg: <ThrowOnError extends boolean = false>(options: Options<GetByOrgData, ThrowOnError>) => import("./client").RequestResult<GetByOrgResponses, GetByOrgErrors, ThrowOnError, "fields">;
package/dist/sdk.gen.js DELETED
@@ -1,202 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- import { client } from './client.gen';
3
- /**
4
- * List API keys
5
- *
6
- * List all API keys for the organization (key values are not returned)
7
- */
8
- export const getByOrgApiKeys = (options) => (options.client ?? client).get({
9
- security: [{ scheme: 'bearer', type: 'http' }],
10
- url: '/{org}/api-keys',
11
- ...options
12
- });
13
- /**
14
- * Create API key
15
- *
16
- * Create a new API key for programmatic access
17
- */
18
- export const postByOrgApiKeys = (options) => (options.client ?? client).post({
19
- security: [{ scheme: 'bearer', type: 'http' }],
20
- url: '/{org}/api-keys',
21
- ...options,
22
- headers: {
23
- 'Content-Type': 'application/json',
24
- ...options.headers
25
- }
26
- });
27
- /**
28
- * Revoke API key
29
- *
30
- * Revoke an API key by its ID
31
- */
32
- export const deleteByOrgApiKeysById = (options) => (options.client ?? client).delete({
33
- security: [{ scheme: 'bearer', type: 'http' }],
34
- url: '/{org}/api-keys/{id}',
35
- ...options
36
- });
37
- /**
38
- * List repositories
39
- *
40
- * List all repositories in the organization
41
- */
42
- export const getByOrgRepos = (options) => (options.client ?? client).get({
43
- security: [{ scheme: 'bearer', type: 'http' }],
44
- url: '/{org}/repos',
45
- ...options
46
- });
47
- /**
48
- * Create repository
49
- *
50
- * Create a new repository in the organization
51
- */
52
- export const postByOrgRepos = (options) => (options.client ?? client).post({
53
- security: [{ scheme: 'bearer', type: 'http' }],
54
- url: '/{org}/repos',
55
- ...options,
56
- headers: {
57
- 'Content-Type': 'application/json',
58
- ...options.headers
59
- }
60
- });
61
- /**
62
- * Delete repository
63
- *
64
- * Permanently delete a repository and all its data
65
- */
66
- export const deleteByOrgByRepo = (options) => (options.client ?? client).delete({
67
- security: [{ scheme: 'bearer', type: 'http' }],
68
- url: '/{org}/{repo}',
69
- ...options
70
- });
71
- /**
72
- * Get repository
73
- *
74
- * Get metadata for a specific repository
75
- */
76
- export const getByOrgByRepo = (options) => (options.client ?? client).get({
77
- security: [{ scheme: 'bearer', type: 'http' }],
78
- url: '/{org}/{repo}',
79
- ...options
80
- });
81
- /**
82
- * Update repository
83
- *
84
- * Update repository name or upstream configuration
85
- */
86
- export const patchByOrgByRepo = (options) => (options.client ?? client).patch({
87
- security: [{ scheme: 'bearer', type: 'http' }],
88
- url: '/{org}/{repo}',
89
- ...options,
90
- headers: {
91
- 'Content-Type': 'application/json',
92
- ...options.headers
93
- }
94
- });
95
- /**
96
- * Get content
97
- *
98
- * 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.
99
- */
100
- export const getByOrgByRepoContent = (options) => (options.client ?? client).get({
101
- security: [{ scheme: 'bearer', type: 'http' }],
102
- url: '/{org}/{repo}/content',
103
- ...options
104
- });
105
- /**
106
- * List branches
107
- *
108
- * List all branches in a repository
109
- */
110
- export const getByOrgByRepoBranches = (options) => (options.client ?? client).get({
111
- security: [{ scheme: 'bearer', type: 'http' }],
112
- url: '/{org}/{repo}/branches',
113
- ...options
114
- });
115
- /**
116
- * Create branch
117
- *
118
- * Create a new branch from an existing ref
119
- */
120
- export const postByOrgByRepoBranches = (options) => (options.client ?? client).post({
121
- security: [{ scheme: 'bearer', type: 'http' }],
122
- url: '/{org}/{repo}/branches',
123
- ...options,
124
- headers: {
125
- 'Content-Type': 'application/json',
126
- ...options.headers
127
- }
128
- });
129
- /**
130
- * Delete branch
131
- *
132
- * Delete a branch from a repository
133
- */
134
- export const deleteByOrgByRepoBranchesByBranch = (options) => (options.client ?? client).delete({
135
- security: [{ scheme: 'bearer', type: 'http' }],
136
- url: '/{org}/{repo}/branches/{branch}',
137
- ...options
138
- });
139
- /**
140
- * List commits
141
- *
142
- * List commits for a repository from a specific ref
143
- */
144
- export const getByOrgByRepoCommits = (options) => (options.client ?? client).get({
145
- security: [{ scheme: 'bearer', type: 'http' }],
146
- url: '/{org}/{repo}/commits',
147
- ...options
148
- });
149
- /**
150
- * Get commit
151
- *
152
- * Retrieve a specific commit by its SHA
153
- */
154
- export const getByOrgByRepoCommitsBySha = (options) => (options.client ?? client).get({
155
- security: [{ scheme: 'bearer', type: 'http' }],
156
- url: '/{org}/{repo}/commits/{sha}',
157
- ...options
158
- });
159
- /**
160
- * List webhooks
161
- *
162
- * List webhooks for a repository
163
- */
164
- export const getByOrgByRepoWebhooks = (options) => (options.client ?? client).get({
165
- security: [{ scheme: 'bearer', type: 'http' }],
166
- url: '/{org}/{repo}/webhooks',
167
- ...options
168
- });
169
- /**
170
- * Create webhook
171
- *
172
- * Create a webhook for a repository
173
- */
174
- export const postByOrgByRepoWebhooks = (options) => (options.client ?? client).post({
175
- security: [{ scheme: 'bearer', type: 'http' }],
176
- url: '/{org}/{repo}/webhooks',
177
- ...options,
178
- headers: {
179
- 'Content-Type': 'application/json',
180
- ...options.headers
181
- }
182
- });
183
- /**
184
- * Delete webhook
185
- *
186
- * Delete a webhook from a repository
187
- */
188
- export const deleteByOrgByRepoWebhooksByWebhookId = (options) => (options.client ?? client).delete({
189
- security: [{ scheme: 'bearer', type: 'http' }],
190
- url: '/{org}/{repo}/webhooks/{webhookId}',
191
- ...options
192
- });
193
- /**
194
- * Get organization
195
- *
196
- * Get organization metadata and repository counts
197
- */
198
- export const getByOrg = (options) => (options.client ?? client).get({
199
- security: [{ scheme: 'bearer', type: 'http' }],
200
- url: '/{org}',
201
- ...options
202
- });