@mesadev/rest 0.3.3 → 0.4.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.
Files changed (43) hide show
  1. package/README.md +9 -16
  2. package/dist/index.d.mts +3361 -0
  3. package/dist/index.d.mts.map +1 -0
  4. package/dist/index.mjs +944 -0
  5. package/dist/index.mjs.map +1 -0
  6. package/package.json +17 -10
  7. package/src/client.gen.ts +1 -1
  8. package/src/index.ts +144 -2
  9. package/src/sdk.gen.ts +68 -31
  10. package/src/types.gen.ts +451 -89
  11. package/LICENSE +0 -201
  12. package/dist/client/client.gen.d.ts +0 -2
  13. package/dist/client/client.gen.js +0 -234
  14. package/dist/client/index.d.ts +0 -8
  15. package/dist/client/index.js +0 -6
  16. package/dist/client/types.gen.d.ts +0 -117
  17. package/dist/client/types.gen.js +0 -2
  18. package/dist/client/utils.gen.d.ts +0 -33
  19. package/dist/client/utils.gen.js +0 -228
  20. package/dist/client.gen.d.ts +0 -12
  21. package/dist/client.gen.js +0 -3
  22. package/dist/core/auth.gen.d.ts +0 -18
  23. package/dist/core/auth.gen.js +0 -14
  24. package/dist/core/bodySerializer.gen.d.ts +0 -25
  25. package/dist/core/bodySerializer.gen.js +0 -57
  26. package/dist/core/params.gen.d.ts +0 -43
  27. package/dist/core/params.gen.js +0 -100
  28. package/dist/core/pathSerializer.gen.d.ts +0 -33
  29. package/dist/core/pathSerializer.gen.js +0 -106
  30. package/dist/core/queryKeySerializer.gen.d.ts +0 -18
  31. package/dist/core/queryKeySerializer.gen.js +0 -92
  32. package/dist/core/serverSentEvents.gen.d.ts +0 -71
  33. package/dist/core/serverSentEvents.gen.js +0 -133
  34. package/dist/core/types.gen.d.ts +0 -78
  35. package/dist/core/types.gen.js +0 -2
  36. package/dist/core/utils.gen.d.ts +0 -19
  37. package/dist/core/utils.gen.js +0 -87
  38. package/dist/index.d.ts +0 -2
  39. package/dist/index.js +0 -2
  40. package/dist/sdk.gen.d.ts +0 -135
  41. package/dist/sdk.gen.js +0 -226
  42. package/dist/types.gen.d.ts +0 -2547
  43. package/dist/types.gen.js +0 -2
package/dist/sdk.gen.js DELETED
@@ -1,226 +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
- * Create commit
151
- *
152
- * Create a new commit on a branch with file changes
153
- */
154
- export const postByOrgByRepoCommits = (options) => (options.client ?? client).post({
155
- security: [{ scheme: 'bearer', type: 'http' }],
156
- url: '/{org}/{repo}/commits',
157
- ...options,
158
- headers: {
159
- 'Content-Type': 'application/json',
160
- ...options.headers
161
- }
162
- });
163
- /**
164
- * Get commit
165
- *
166
- * Retrieve a specific commit by its SHA
167
- */
168
- export const getByOrgByRepoCommitsBySha = (options) => (options.client ?? client).get({
169
- security: [{ scheme: 'bearer', type: 'http' }],
170
- url: '/{org}/{repo}/commits/{sha}',
171
- ...options
172
- });
173
- /**
174
- * Get diff
175
- *
176
- * Retrieve the diff between two commit OIDs
177
- */
178
- export const getByOrgByRepoDiff = (options) => (options.client ?? client).get({
179
- security: [{ scheme: 'bearer', type: 'http' }],
180
- url: '/{org}/{repo}/diff',
181
- ...options
182
- });
183
- /**
184
- * List webhooks
185
- *
186
- * List webhooks for a repository
187
- */
188
- export const getByOrgByRepoWebhooks = (options) => (options.client ?? client).get({
189
- security: [{ scheme: 'bearer', type: 'http' }],
190
- url: '/{org}/{repo}/webhooks',
191
- ...options
192
- });
193
- /**
194
- * Create webhook
195
- *
196
- * Create a webhook for a repository
197
- */
198
- export const postByOrgByRepoWebhooks = (options) => (options.client ?? client).post({
199
- security: [{ scheme: 'bearer', type: 'http' }],
200
- url: '/{org}/{repo}/webhooks',
201
- ...options,
202
- headers: {
203
- 'Content-Type': 'application/json',
204
- ...options.headers
205
- }
206
- });
207
- /**
208
- * Delete webhook
209
- *
210
- * Delete a webhook from a repository
211
- */
212
- export const deleteByOrgByRepoWebhooksByWebhookId = (options) => (options.client ?? client).delete({
213
- security: [{ scheme: 'bearer', type: 'http' }],
214
- url: '/{org}/{repo}/webhooks/{webhookId}',
215
- ...options
216
- });
217
- /**
218
- * Get organization
219
- *
220
- * Get organization metadata and repository counts
221
- */
222
- export const getByOrg = (options) => (options.client ?? client).get({
223
- security: [{ scheme: 'bearer', type: 'http' }],
224
- url: '/{org}',
225
- ...options
226
- });