@mesadev/sdk 0.3.2 → 0.3.3

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 (89) 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/git/index.d.ts +2 -0
  15. package/dist/git/index.d.ts.map +1 -0
  16. package/dist/git/index.js +2 -0
  17. package/dist/git/index.js.map +1 -0
  18. package/dist/git/path-utils.d.ts +4 -0
  19. package/dist/git/path-utils.d.ts.map +1 -0
  20. package/dist/git/path-utils.js +47 -0
  21. package/dist/git/path-utils.js.map +1 -0
  22. package/dist/git/service.d.ts +3 -0
  23. package/dist/git/service.d.ts.map +1 -0
  24. package/dist/git/service.js +308 -0
  25. package/dist/git/service.js.map +1 -0
  26. package/dist/git/types.d.ts +30 -0
  27. package/dist/git/types.d.ts.map +1 -0
  28. package/dist/git/types.js +2 -0
  29. package/dist/git/types.js.map +1 -0
  30. package/dist/index.d.ts +4 -1
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +3 -2
  33. package/dist/index.js.map +1 -0
  34. package/dist/lib/errors.d.ts +15 -0
  35. package/dist/lib/errors.d.ts.map +1 -0
  36. package/dist/lib/errors.js +27 -0
  37. package/dist/lib/errors.js.map +1 -0
  38. package/dist/mesa.d.ts +35 -0
  39. package/dist/mesa.d.ts.map +1 -0
  40. package/dist/mesa.js +126 -0
  41. package/dist/mesa.js.map +1 -0
  42. package/package.json +43 -20
  43. package/LICENSE +0 -201
  44. package/dist/client/client.gen.d.ts +0 -2
  45. package/dist/client/client.gen.js +0 -234
  46. package/dist/client/index.d.ts +0 -8
  47. package/dist/client/index.js +0 -6
  48. package/dist/client/types.gen.d.ts +0 -117
  49. package/dist/client/types.gen.js +0 -2
  50. package/dist/client/utils.gen.d.ts +0 -33
  51. package/dist/client/utils.gen.js +0 -228
  52. package/dist/client.gen.d.ts +0 -12
  53. package/dist/client.gen.js +0 -3
  54. package/dist/core/auth.gen.d.ts +0 -18
  55. package/dist/core/auth.gen.js +0 -14
  56. package/dist/core/bodySerializer.gen.d.ts +0 -25
  57. package/dist/core/bodySerializer.gen.js +0 -57
  58. package/dist/core/params.gen.d.ts +0 -43
  59. package/dist/core/params.gen.js +0 -100
  60. package/dist/core/pathSerializer.gen.d.ts +0 -33
  61. package/dist/core/pathSerializer.gen.js +0 -106
  62. package/dist/core/queryKeySerializer.gen.d.ts +0 -18
  63. package/dist/core/queryKeySerializer.gen.js +0 -92
  64. package/dist/core/serverSentEvents.gen.d.ts +0 -71
  65. package/dist/core/serverSentEvents.gen.js +0 -133
  66. package/dist/core/types.gen.d.ts +0 -78
  67. package/dist/core/types.gen.js +0 -2
  68. package/dist/core/utils.gen.d.ts +0 -19
  69. package/dist/core/utils.gen.js +0 -87
  70. package/dist/sdk.gen.d.ts +0 -123
  71. package/dist/sdk.gen.js +0 -202
  72. package/dist/types.gen.d.ts +0 -2285
  73. package/dist/types.gen.js +0 -2
  74. package/src/client/client.gen.ts +0 -288
  75. package/src/client/index.ts +0 -25
  76. package/src/client/types.gen.ts +0 -214
  77. package/src/client/utils.gen.ts +0 -316
  78. package/src/client.gen.ts +0 -16
  79. package/src/core/auth.gen.ts +0 -41
  80. package/src/core/bodySerializer.gen.ts +0 -84
  81. package/src/core/params.gen.ts +0 -169
  82. package/src/core/pathSerializer.gen.ts +0 -171
  83. package/src/core/queryKeySerializer.gen.ts +0 -117
  84. package/src/core/serverSentEvents.gen.ts +0 -243
  85. package/src/core/types.gen.ts +0 -104
  86. package/src/core/utils.gen.ts +0 -140
  87. package/src/index.ts +0 -2
  88. package/src/sdk.gen.ts +0 -237
  89. package/src/types.gen.ts +0 -2377
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
- });