@sanoma-ai/connector-github 0.0.0-stage → 0.1.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.
- package/LICENSE +105 -0
- package/README.md +92 -2
- package/dist/connector.d.ts +136 -0
- package/dist/connector.js +44 -0
- package/dist/connector.js.map +1 -0
- package/dist/driver.d.ts +23 -0
- package/dist/driver.js +32 -0
- package/dist/driver.js.map +1 -0
- package/dist/fake.d.ts +138 -0
- package/dist/fake.js +30 -0
- package/dist/fake.js.map +1 -0
- package/dist/index.d.ts +137 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/resources.config.d.ts +14 -0
- package/dist/resources.config.js +15 -0
- package/dist/resources.config.js.map +1 -0
- package/dist/resources.d.ts +135 -0
- package/dist/resources.gen.d.ts +261 -0
- package/dist/resources.gen.js +535 -0
- package/dist/resources.gen.js.map +1 -0
- package/dist/resources.js +7 -0
- package/dist/resources.js.map +1 -0
- package/package.json +66 -3
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** The OpenTofu provider these types are from. */
|
|
3
|
+
export const provider = {
|
|
4
|
+
source: "integrations/github",
|
|
5
|
+
version: "6.13.0",
|
|
6
|
+
protocol: 5,
|
|
7
|
+
sha256: "2d688e8383ff669297bbb6461f7eb05168f53fe76d3233fdb431e318efedb98f",
|
|
8
|
+
};
|
|
9
|
+
export const github_branch_protection = {
|
|
10
|
+
typeName: "github_branch_protection",
|
|
11
|
+
schemaVersion: 2,
|
|
12
|
+
schema: z.object({
|
|
13
|
+
allows_deletions: z.boolean().nullish().describe("Setting this to 'true' to allow the branch to be deleted."),
|
|
14
|
+
allows_force_pushes: z.boolean().nullish().describe("Setting this to 'true' to allow force pushes on the branch."),
|
|
15
|
+
enforce_admins: z
|
|
16
|
+
.boolean()
|
|
17
|
+
.nullish()
|
|
18
|
+
.describe("Setting this to 'true' enforces status checks for repository administrators."),
|
|
19
|
+
force_push_bypassers: z
|
|
20
|
+
.array(z.string())
|
|
21
|
+
.nullish()
|
|
22
|
+
.describe("The list of actor Names/IDs that are allowed to bypass force push restrictions. Actor names must either begin with a '/' for users or the organization name followed by a '/' for teams."),
|
|
23
|
+
id: z.string().nullish(),
|
|
24
|
+
lock_branch: z
|
|
25
|
+
.boolean()
|
|
26
|
+
.nullish()
|
|
27
|
+
.describe("Setting this to 'true' will make the branch read-only and preventing any pushes to it."),
|
|
28
|
+
pattern: z.string().describe("Identifies the protection rule pattern."),
|
|
29
|
+
repository_id: z
|
|
30
|
+
.string()
|
|
31
|
+
.describe("The name or node ID of the repository associated with this branch protection rule."),
|
|
32
|
+
require_conversation_resolution: z
|
|
33
|
+
.boolean()
|
|
34
|
+
.nullish()
|
|
35
|
+
.describe("Setting this to 'true' requires all conversations on code must be resolved before a pull request can be merged."),
|
|
36
|
+
require_signed_commits: z
|
|
37
|
+
.boolean()
|
|
38
|
+
.nullish()
|
|
39
|
+
.describe("Setting this to 'true' requires all commits to be signed with GPG."),
|
|
40
|
+
required_linear_history: z
|
|
41
|
+
.boolean()
|
|
42
|
+
.nullish()
|
|
43
|
+
.describe("Setting this to 'true' enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch."),
|
|
44
|
+
required_pull_request_reviews: z
|
|
45
|
+
.array(z.object({
|
|
46
|
+
dismiss_stale_reviews: z
|
|
47
|
+
.boolean()
|
|
48
|
+
.nullish()
|
|
49
|
+
.describe("Dismiss approved reviews automatically when a new commit is pushed."),
|
|
50
|
+
dismissal_restrictions: z
|
|
51
|
+
.array(z.string())
|
|
52
|
+
.nullish()
|
|
53
|
+
.describe("The list of actor Names/IDs with dismissal access. If not empty, 'restrict_dismissals' is ignored. Actor names must either begin with a '/' for users or the organization name followed by a '/' for teams."),
|
|
54
|
+
pull_request_bypassers: z
|
|
55
|
+
.array(z.string())
|
|
56
|
+
.nullish()
|
|
57
|
+
.describe("The list of actor Names/IDs that are allowed to bypass pull request requirements. Actor names must either begin with a '/' for users or the organization name followed by a '/' for teams."),
|
|
58
|
+
require_code_owner_reviews: z
|
|
59
|
+
.boolean()
|
|
60
|
+
.nullish()
|
|
61
|
+
.describe("Require an approved review in pull requests including files with a designated code owner."),
|
|
62
|
+
require_last_push_approval: z
|
|
63
|
+
.boolean()
|
|
64
|
+
.nullish()
|
|
65
|
+
.describe("Require that The most recent push must be approved by someone other than the last pusher."),
|
|
66
|
+
required_approving_review_count: z
|
|
67
|
+
.number()
|
|
68
|
+
.nullish()
|
|
69
|
+
.describe("Require 'x' number of approvals to satisfy branch protection requirements. If this is specified it must be a number between 0-6."),
|
|
70
|
+
restrict_dismissals: z.boolean().nullish().describe("Restrict pull request review dismissals."),
|
|
71
|
+
}))
|
|
72
|
+
.nullish()
|
|
73
|
+
.describe("Enforce restrictions for pull request reviews."),
|
|
74
|
+
required_status_checks: z
|
|
75
|
+
.array(z.object({
|
|
76
|
+
contexts: z
|
|
77
|
+
.array(z.string())
|
|
78
|
+
.nullish()
|
|
79
|
+
.describe("The list of status checks to require in order to merge into this branch. No status checks are required by default."),
|
|
80
|
+
strict: z.boolean().nullish().describe("Require branches to be up to date before merging."),
|
|
81
|
+
}))
|
|
82
|
+
.nullish()
|
|
83
|
+
.describe("Enforce restrictions for required status checks."),
|
|
84
|
+
restrict_pushes: z
|
|
85
|
+
.array(z.object({
|
|
86
|
+
blocks_creations: z.boolean().nullish().describe("Restrict pushes that create matching branches."),
|
|
87
|
+
push_allowances: z
|
|
88
|
+
.array(z.string())
|
|
89
|
+
.nullish()
|
|
90
|
+
.describe("The list of actor Names/IDs that may push to the branch. Actor names must either begin with a '/' for users or the organization name followed by a '/' for teams."),
|
|
91
|
+
}))
|
|
92
|
+
.nullish()
|
|
93
|
+
.describe("Restrict who can push to matching branches."),
|
|
94
|
+
}),
|
|
95
|
+
fields: {
|
|
96
|
+
immutable: ["repository_id"],
|
|
97
|
+
vendorOwned: [],
|
|
98
|
+
writeOnly: [],
|
|
99
|
+
unordered: [
|
|
100
|
+
"force_push_bypassers",
|
|
101
|
+
"required_pull_request_reviews.dismissal_restrictions",
|
|
102
|
+
"required_pull_request_reviews.pull_request_bypassers",
|
|
103
|
+
"required_status_checks.contexts",
|
|
104
|
+
"restrict_pushes.push_allowances",
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
shape: {
|
|
108
|
+
attributes: [
|
|
109
|
+
"allows_deletions",
|
|
110
|
+
"allows_force_pushes",
|
|
111
|
+
"enforce_admins",
|
|
112
|
+
"force_push_bypassers",
|
|
113
|
+
"id",
|
|
114
|
+
"lock_branch",
|
|
115
|
+
"pattern",
|
|
116
|
+
"repository_id",
|
|
117
|
+
"require_conversation_resolution",
|
|
118
|
+
"require_signed_commits",
|
|
119
|
+
"required_linear_history",
|
|
120
|
+
],
|
|
121
|
+
blocks: {
|
|
122
|
+
required_pull_request_reviews: {
|
|
123
|
+
nesting: "list",
|
|
124
|
+
shape: {
|
|
125
|
+
attributes: [
|
|
126
|
+
"dismiss_stale_reviews",
|
|
127
|
+
"dismissal_restrictions",
|
|
128
|
+
"pull_request_bypassers",
|
|
129
|
+
"require_code_owner_reviews",
|
|
130
|
+
"require_last_push_approval",
|
|
131
|
+
"required_approving_review_count",
|
|
132
|
+
"restrict_dismissals",
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
required_status_checks: {
|
|
137
|
+
nesting: "list",
|
|
138
|
+
shape: {
|
|
139
|
+
attributes: ["contexts", "strict"],
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
restrict_pushes: {
|
|
143
|
+
nesting: "list",
|
|
144
|
+
shape: {
|
|
145
|
+
attributes: ["blocks_creations", "push_allowances"],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
export const github_repository = {
|
|
152
|
+
typeName: "github_repository",
|
|
153
|
+
schemaVersion: 1,
|
|
154
|
+
schema: z.object({
|
|
155
|
+
allow_auto_merge: z
|
|
156
|
+
.boolean()
|
|
157
|
+
.nullish()
|
|
158
|
+
.describe("Set to 'true' to allow auto-merging pull requests on the repository."),
|
|
159
|
+
allow_forking: z
|
|
160
|
+
.boolean()
|
|
161
|
+
.nullish()
|
|
162
|
+
.describe("Set to 'true' to allow private forking on the repository; this is only relevant if the repository is owned by an organization and is private or internal."),
|
|
163
|
+
allow_merge_commit: z.boolean().nullish().describe("Set to 'false' to disable merge commits on the repository."),
|
|
164
|
+
allow_rebase_merge: z.boolean().nullish().describe("Set to 'false' to disable rebase merges on the repository."),
|
|
165
|
+
allow_squash_merge: z.boolean().nullish().describe("Set to 'false' to disable squash merges on the repository."),
|
|
166
|
+
allow_update_branch: z
|
|
167
|
+
.boolean()
|
|
168
|
+
.nullish()
|
|
169
|
+
.describe("Set to 'true' to always suggest updating pull request branches."),
|
|
170
|
+
archive_on_destroy: z
|
|
171
|
+
.boolean()
|
|
172
|
+
.nullish()
|
|
173
|
+
.describe("Set to 'true' to archive the repository instead of deleting on destroy."),
|
|
174
|
+
archived: z
|
|
175
|
+
.boolean()
|
|
176
|
+
.nullish()
|
|
177
|
+
.describe("Specifies if the repository should be archived. Defaults to 'false'. NOTE Currently, the API does not support unarchiving."),
|
|
178
|
+
auto_init: z.boolean().nullish().describe("Set to 'true' to produce an initial commit in the repository."),
|
|
179
|
+
default_branch: z
|
|
180
|
+
.string()
|
|
181
|
+
.nullish()
|
|
182
|
+
.describe("Can only be set after initial repository creation, and only if the target branch exists")
|
|
183
|
+
.meta({ deprecated: true }),
|
|
184
|
+
delete_branch_on_merge: z
|
|
185
|
+
.boolean()
|
|
186
|
+
.nullish()
|
|
187
|
+
.describe("Automatically delete head branch after a pull request is merged. Defaults to 'false'."),
|
|
188
|
+
description: z.string().nullish().describe("A description of the repository."),
|
|
189
|
+
etag: z.string().nullish(),
|
|
190
|
+
fork: z.string().nullish().describe("Set to 'true' to fork an existing repository."),
|
|
191
|
+
full_name: z.string().nullish().describe("A string of the form 'orgname/reponame'."),
|
|
192
|
+
git_clone_url: z
|
|
193
|
+
.string()
|
|
194
|
+
.nullish()
|
|
195
|
+
.describe("URL that can be provided to 'git clone' to clone the repository anonymously via the git protocol."),
|
|
196
|
+
gitignore_template: z
|
|
197
|
+
.string()
|
|
198
|
+
.nullish()
|
|
199
|
+
.describe("Use the name of the template without the extension. For example, 'Haskell'."),
|
|
200
|
+
has_discussions: z
|
|
201
|
+
.boolean()
|
|
202
|
+
.nullish()
|
|
203
|
+
.describe("Set to 'true' to enable GitHub Discussions on the repository. Defaults to 'false'."),
|
|
204
|
+
has_downloads: z
|
|
205
|
+
.boolean()
|
|
206
|
+
.nullish()
|
|
207
|
+
.describe("Set to 'true' to enable the (deprecated) downloads features on the repository.")
|
|
208
|
+
.meta({ deprecated: true }),
|
|
209
|
+
has_issues: z.boolean().nullish().describe("Set to 'true' to enable the GitHub Issues features on the repository"),
|
|
210
|
+
has_projects: z
|
|
211
|
+
.boolean()
|
|
212
|
+
.nullish()
|
|
213
|
+
.describe("Set to 'true' to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to 'false' and will otherwise default to 'true'. If you specify 'true' when it has been disabled it will return an error."),
|
|
214
|
+
has_wiki: z.boolean().nullish().describe("Set to 'true' to enable the GitHub Wiki features on the repository."),
|
|
215
|
+
homepage_url: z.string().nullish().describe("URL of a page describing the project."),
|
|
216
|
+
html_url: z.string().nullish().describe("URL to the repository on the web."),
|
|
217
|
+
http_clone_url: z
|
|
218
|
+
.string()
|
|
219
|
+
.nullish()
|
|
220
|
+
.describe("URL that can be provided to 'git clone' to clone the repository via HTTPS."),
|
|
221
|
+
id: z.string().nullish(),
|
|
222
|
+
ignore_vulnerability_alerts_during_read: z.boolean().nullish().meta({ deprecated: true }),
|
|
223
|
+
is_template: z.boolean().nullish().describe("Set to 'true' to tell GitHub that this is a template repository."),
|
|
224
|
+
license_template: z
|
|
225
|
+
.string()
|
|
226
|
+
.nullish()
|
|
227
|
+
.describe("Use the name of the template without the extension. For example, 'mit' or 'mpl-2.0'."),
|
|
228
|
+
merge_commit_message: z
|
|
229
|
+
.string()
|
|
230
|
+
.nullish()
|
|
231
|
+
.describe("Can be 'PR_BODY', 'PR_TITLE', or 'BLANK' for a default merge commit message."),
|
|
232
|
+
merge_commit_title: z
|
|
233
|
+
.string()
|
|
234
|
+
.nullish()
|
|
235
|
+
.describe("Can be 'PR_TITLE' or 'MERGE_MESSAGE' for a default merge commit title."),
|
|
236
|
+
name: z.string().describe("The name of the repository."),
|
|
237
|
+
node_id: z.string().nullish().describe("GraphQL global node id for use with v4 API."),
|
|
238
|
+
primary_language: z.string().nullish(),
|
|
239
|
+
private: z.boolean().nullish().meta({ deprecated: true }),
|
|
240
|
+
repo_id: z.number().nullish().describe("GitHub ID for the repository."),
|
|
241
|
+
source_owner: z.string().nullish().describe("The owner of the source repository to fork from."),
|
|
242
|
+
source_repo: z.string().nullish().describe("The name of the source repository to fork from."),
|
|
243
|
+
squash_merge_commit_message: z
|
|
244
|
+
.string()
|
|
245
|
+
.nullish()
|
|
246
|
+
.describe("Can be 'PR_BODY', 'COMMIT_MESSAGES', or 'BLANK' for a default squash merge commit message."),
|
|
247
|
+
squash_merge_commit_title: z
|
|
248
|
+
.string()
|
|
249
|
+
.nullish()
|
|
250
|
+
.describe("Can be 'PR_TITLE' or 'COMMIT_OR_PR_TITLE' for a default squash merge commit title."),
|
|
251
|
+
ssh_clone_url: z
|
|
252
|
+
.string()
|
|
253
|
+
.nullish()
|
|
254
|
+
.describe("URL that can be provided to 'git clone' to clone the repository via SSH."),
|
|
255
|
+
svn_url: z
|
|
256
|
+
.string()
|
|
257
|
+
.nullish()
|
|
258
|
+
.describe("URL that can be provided to 'svn checkout' to check out the repository via GitHub's Subversion protocol emulation."),
|
|
259
|
+
topics: z.array(z.string()).nullish().describe("The list of topics of the repository."),
|
|
260
|
+
visibility: z
|
|
261
|
+
.string()
|
|
262
|
+
.nullish()
|
|
263
|
+
.describe("Can be 'public' or 'private'. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be 'internal'."),
|
|
264
|
+
vulnerability_alerts: z
|
|
265
|
+
.boolean()
|
|
266
|
+
.nullish()
|
|
267
|
+
.describe("Set to 'true' to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on all repos by default). Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.")
|
|
268
|
+
.meta({ deprecated: true }),
|
|
269
|
+
web_commit_signoff_required: z
|
|
270
|
+
.boolean()
|
|
271
|
+
.nullish()
|
|
272
|
+
.describe("Require contributors to sign off on web-based commits."),
|
|
273
|
+
pages: z
|
|
274
|
+
.object({
|
|
275
|
+
build_type: z.string().nullish().describe("The type the page should be sourced."),
|
|
276
|
+
cname: z
|
|
277
|
+
.string()
|
|
278
|
+
.nullish()
|
|
279
|
+
.describe("The custom domain for the repository. This can only be set after the repository has been created."),
|
|
280
|
+
custom_404: z.boolean().nullish().describe("Whether the rendered GitHub Pages site has a custom 404 page"),
|
|
281
|
+
html_url: z.string().nullish().describe("URL to the repository on the web."),
|
|
282
|
+
status: z.string().nullish().describe("The GitHub Pages site's build status e.g. building or built."),
|
|
283
|
+
url: z.string().nullish(),
|
|
284
|
+
source: z
|
|
285
|
+
.object({
|
|
286
|
+
branch: z
|
|
287
|
+
.string()
|
|
288
|
+
.describe("The repository branch used to publish the site's source files. (i.e. 'main' or 'gh-pages')"),
|
|
289
|
+
path: z
|
|
290
|
+
.string()
|
|
291
|
+
.nullish()
|
|
292
|
+
.describe("The repository directory from which the site publishes (Default: '/')"),
|
|
293
|
+
})
|
|
294
|
+
.nullish()
|
|
295
|
+
.describe("The source branch and directory for the rendered Pages site."),
|
|
296
|
+
})
|
|
297
|
+
.nullish()
|
|
298
|
+
.describe("The repository's GitHub Pages configuration")
|
|
299
|
+
.meta({ deprecated: true }),
|
|
300
|
+
security_and_analysis: z
|
|
301
|
+
.object({
|
|
302
|
+
advanced_security: z
|
|
303
|
+
.object({
|
|
304
|
+
status: z
|
|
305
|
+
.string()
|
|
306
|
+
.describe("Set to 'enabled' to enable advanced security features on the repository. Can be 'enabled' or 'disabled', This value being present when split licensing is enabled will error out."),
|
|
307
|
+
})
|
|
308
|
+
.nullish()
|
|
309
|
+
.describe("The advanced security configuration for the repository. If a repository's visibility is 'public', advanced security is always enabled and cannot be changed, so this setting cannot be supplied."),
|
|
310
|
+
code_security: z
|
|
311
|
+
.object({
|
|
312
|
+
status: z
|
|
313
|
+
.string()
|
|
314
|
+
.describe("Set to 'enabled' to enable code security on the repository. Can be 'enabled' or 'disabled'. If set to 'enabled', the repository's visibility must be 'public', 'security_and_analysis[0].advanced_security[0].status' must also be set to 'enabled', or your Organization must have split licensing for Advanced security."),
|
|
315
|
+
})
|
|
316
|
+
.nullish()
|
|
317
|
+
.describe("The code security configuration for the repository."),
|
|
318
|
+
secret_scanning: z
|
|
319
|
+
.object({
|
|
320
|
+
status: z
|
|
321
|
+
.string()
|
|
322
|
+
.describe("Set to 'enabled' to enable secret scanning on the repository. Can be 'enabled' or 'disabled'. If set to 'enabled', the repository's visibility must be 'public', 'security_and_analysis[0].advanced_security[0].status' must also be set to 'enabled', or your Organization must have split licensing for Advanced security."),
|
|
323
|
+
})
|
|
324
|
+
.nullish()
|
|
325
|
+
.describe("The secret scanning configuration for the repository."),
|
|
326
|
+
secret_scanning_ai_detection: z
|
|
327
|
+
.object({
|
|
328
|
+
status: z
|
|
329
|
+
.string()
|
|
330
|
+
.describe("Set to 'enabled' to enable secret scanning AI detection on the repository. Can be 'enabled' or 'disabled'. If set to 'enabled', the repository's visibility must be 'public', 'security_and_analysis[0].advanced_security[0].status' must also be set to 'enabled', or your Organization must have split licensing for Advanced security."),
|
|
331
|
+
})
|
|
332
|
+
.nullish()
|
|
333
|
+
.describe("The secret scanning AI detection configuration for this repository."),
|
|
334
|
+
secret_scanning_non_provider_patterns: z
|
|
335
|
+
.object({
|
|
336
|
+
status: z
|
|
337
|
+
.string()
|
|
338
|
+
.describe("Set to 'enabled' to enable secret scanning non-provider patterns on the repository. Can be 'enabled' or 'disabled'. If set to 'enabled', the repository's visibility must be 'public', 'security_and_analysis[0].advanced_security[0].status' must also be set to 'enabled', or your Organization must have split licensing for Advanced security."),
|
|
339
|
+
})
|
|
340
|
+
.nullish()
|
|
341
|
+
.describe("The secret scanning non-provider patterns configuration for this repository."),
|
|
342
|
+
secret_scanning_push_protection: z
|
|
343
|
+
.object({
|
|
344
|
+
status: z
|
|
345
|
+
.string()
|
|
346
|
+
.describe("Set to 'enabled' to enable secret scanning push protection on the repository. Can be 'enabled' or 'disabled'. If set to 'enabled', the repository's visibility must be 'public', 'security_and_analysis[0].advanced_security[0].status' must also be set to 'enabled', or your Organization must have split licensing for Advanced security."),
|
|
347
|
+
})
|
|
348
|
+
.nullish()
|
|
349
|
+
.describe("The secret scanning push protection configuration for the repository."),
|
|
350
|
+
})
|
|
351
|
+
.nullish()
|
|
352
|
+
.describe("Security and analysis settings for the repository. To use this parameter you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository."),
|
|
353
|
+
template: z
|
|
354
|
+
.object({
|
|
355
|
+
include_all_branches: z
|
|
356
|
+
.boolean()
|
|
357
|
+
.nullish()
|
|
358
|
+
.describe("Whether the new repository should include all the branches from the template repository (defaults to 'false', which includes only the default branch from the template)."),
|
|
359
|
+
owner: z.string().describe("The GitHub organization or user the template repository is owned by."),
|
|
360
|
+
repository: z.string().describe("The name of the template repository."),
|
|
361
|
+
})
|
|
362
|
+
.nullish()
|
|
363
|
+
.describe("Use a template repository to create this resource."),
|
|
364
|
+
}),
|
|
365
|
+
fields: {
|
|
366
|
+
immutable: [],
|
|
367
|
+
vendorOwned: [
|
|
368
|
+
"full_name",
|
|
369
|
+
"git_clone_url",
|
|
370
|
+
"html_url",
|
|
371
|
+
"http_clone_url",
|
|
372
|
+
"node_id",
|
|
373
|
+
"primary_language",
|
|
374
|
+
"repo_id",
|
|
375
|
+
"ssh_clone_url",
|
|
376
|
+
"svn_url",
|
|
377
|
+
"pages.custom_404",
|
|
378
|
+
"pages.html_url",
|
|
379
|
+
"pages.status",
|
|
380
|
+
"pages.url",
|
|
381
|
+
],
|
|
382
|
+
writeOnly: [],
|
|
383
|
+
unordered: ["topics"],
|
|
384
|
+
},
|
|
385
|
+
shape: {
|
|
386
|
+
attributes: [
|
|
387
|
+
"allow_auto_merge",
|
|
388
|
+
"allow_forking",
|
|
389
|
+
"allow_merge_commit",
|
|
390
|
+
"allow_rebase_merge",
|
|
391
|
+
"allow_squash_merge",
|
|
392
|
+
"allow_update_branch",
|
|
393
|
+
"archive_on_destroy",
|
|
394
|
+
"archived",
|
|
395
|
+
"auto_init",
|
|
396
|
+
"default_branch",
|
|
397
|
+
"delete_branch_on_merge",
|
|
398
|
+
"description",
|
|
399
|
+
"etag",
|
|
400
|
+
"fork",
|
|
401
|
+
"full_name",
|
|
402
|
+
"git_clone_url",
|
|
403
|
+
"gitignore_template",
|
|
404
|
+
"has_discussions",
|
|
405
|
+
"has_downloads",
|
|
406
|
+
"has_issues",
|
|
407
|
+
"has_projects",
|
|
408
|
+
"has_wiki",
|
|
409
|
+
"homepage_url",
|
|
410
|
+
"html_url",
|
|
411
|
+
"http_clone_url",
|
|
412
|
+
"id",
|
|
413
|
+
"ignore_vulnerability_alerts_during_read",
|
|
414
|
+
"is_template",
|
|
415
|
+
"license_template",
|
|
416
|
+
"merge_commit_message",
|
|
417
|
+
"merge_commit_title",
|
|
418
|
+
"name",
|
|
419
|
+
"node_id",
|
|
420
|
+
"primary_language",
|
|
421
|
+
"private",
|
|
422
|
+
"repo_id",
|
|
423
|
+
"source_owner",
|
|
424
|
+
"source_repo",
|
|
425
|
+
"squash_merge_commit_message",
|
|
426
|
+
"squash_merge_commit_title",
|
|
427
|
+
"ssh_clone_url",
|
|
428
|
+
"svn_url",
|
|
429
|
+
"topics",
|
|
430
|
+
"visibility",
|
|
431
|
+
"vulnerability_alerts",
|
|
432
|
+
"web_commit_signoff_required",
|
|
433
|
+
],
|
|
434
|
+
blocks: {
|
|
435
|
+
pages: {
|
|
436
|
+
nesting: "list",
|
|
437
|
+
one: true,
|
|
438
|
+
shape: {
|
|
439
|
+
attributes: ["build_type", "cname", "custom_404", "html_url", "status", "url"],
|
|
440
|
+
blocks: {
|
|
441
|
+
source: {
|
|
442
|
+
nesting: "list",
|
|
443
|
+
one: true,
|
|
444
|
+
shape: {
|
|
445
|
+
attributes: ["branch", "path"],
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
security_and_analysis: {
|
|
452
|
+
nesting: "list",
|
|
453
|
+
one: true,
|
|
454
|
+
shape: {
|
|
455
|
+
attributes: [],
|
|
456
|
+
blocks: {
|
|
457
|
+
advanced_security: {
|
|
458
|
+
nesting: "list",
|
|
459
|
+
one: true,
|
|
460
|
+
shape: {
|
|
461
|
+
attributes: ["status"],
|
|
462
|
+
},
|
|
463
|
+
},
|
|
464
|
+
code_security: {
|
|
465
|
+
nesting: "list",
|
|
466
|
+
one: true,
|
|
467
|
+
shape: {
|
|
468
|
+
attributes: ["status"],
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
secret_scanning: {
|
|
472
|
+
nesting: "list",
|
|
473
|
+
one: true,
|
|
474
|
+
shape: {
|
|
475
|
+
attributes: ["status"],
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
secret_scanning_ai_detection: {
|
|
479
|
+
nesting: "list",
|
|
480
|
+
one: true,
|
|
481
|
+
shape: {
|
|
482
|
+
attributes: ["status"],
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
secret_scanning_non_provider_patterns: {
|
|
486
|
+
nesting: "list",
|
|
487
|
+
one: true,
|
|
488
|
+
shape: {
|
|
489
|
+
attributes: ["status"],
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
secret_scanning_push_protection: {
|
|
493
|
+
nesting: "list",
|
|
494
|
+
one: true,
|
|
495
|
+
shape: {
|
|
496
|
+
attributes: ["status"],
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
},
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
template: {
|
|
503
|
+
nesting: "list",
|
|
504
|
+
one: true,
|
|
505
|
+
shape: {
|
|
506
|
+
attributes: ["include_all_branches", "owner", "repository"],
|
|
507
|
+
},
|
|
508
|
+
},
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
};
|
|
512
|
+
export const github_team_membership = {
|
|
513
|
+
typeName: "github_team_membership",
|
|
514
|
+
schemaVersion: 0,
|
|
515
|
+
schema: z.object({
|
|
516
|
+
etag: z.string().nullish(),
|
|
517
|
+
id: z.string().nullish(),
|
|
518
|
+
role: z
|
|
519
|
+
.string()
|
|
520
|
+
.nullish()
|
|
521
|
+
.describe("The role of the user within the team. Must be one of 'member' or 'maintainer'."),
|
|
522
|
+
team_id: z.string().describe("The GitHub team id or the GitHub team slug."),
|
|
523
|
+
username: z.string().describe("The user to add to the team."),
|
|
524
|
+
}),
|
|
525
|
+
fields: {
|
|
526
|
+
immutable: ["team_id", "username"],
|
|
527
|
+
vendorOwned: ["etag"],
|
|
528
|
+
writeOnly: [],
|
|
529
|
+
unordered: [],
|
|
530
|
+
},
|
|
531
|
+
shape: {
|
|
532
|
+
attributes: ["etag", "id", "role", "team_id", "username"],
|
|
533
|
+
},
|
|
534
|
+
};
|
|
535
|
+
//# sourceMappingURL=resources.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.gen.js","sourceRoot":"","sources":["../src/resources.gen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,kDAAkD;AAClD,MAAM,CAAC,MAAM,QAAQ,GAAe;IAClC,MAAM,EAAE,qBAAqB;IAC7B,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,CAAC;IACX,M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AAC,6CAA6C,CAAC;QAC3E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;KAC9D,CAAC;IACF,MAAM,EAAE;QACN,SAAS,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;QAClC,WAAW,EAAE,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,EAAE;KACd;IACD,KAAK,EAAE;QACL,UAAU,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC;KAC1D;CACuB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { githubTf } from "./connector.js";
|
|
2
|
+
/**
|
|
3
|
+
* The constructors a data file declares GitHub resources with:
|
|
4
|
+
* `export const site = github.repository({ name: "website", has_wiki: false })`.
|
|
5
|
+
*/
|
|
6
|
+
export const github = githubTf.resources;
|
|
7
|
+
//# sourceMappingURL=resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanoma-ai/connector-github",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "GitHub resources (repositories, branch protection, team membership) for Sanoma, read through the OpenTofu provider",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"connector",
|
|
7
|
+
"github",
|
|
8
|
+
"opentofu",
|
|
9
|
+
"resources",
|
|
10
|
+
"sanoma"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/Sanoma-AI/sanoma/tree/main/connectors/github#readme",
|
|
13
|
+
"bugs": "https://github.com/Sanoma-AI/sanoma/issues",
|
|
14
|
+
"license": "FSL-1.1-ALv2",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/Sanoma-AI/sanoma.git",
|
|
18
|
+
"directory": "connectors/github"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./resources": {
|
|
35
|
+
"types": "./dist/resources.d.ts",
|
|
36
|
+
"default": "./dist/resources.js"
|
|
37
|
+
},
|
|
38
|
+
"./driver": {
|
|
39
|
+
"types": "./dist/driver.d.ts",
|
|
40
|
+
"default": "./dist/driver.js"
|
|
41
|
+
},
|
|
42
|
+
"./fake": {
|
|
43
|
+
"types": "./dist/fake.d.ts",
|
|
44
|
+
"default": "./dist/fake.js"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"zod": "^4.6.5",
|
|
52
|
+
"@sanoma-ai/bridge": "0.1.0",
|
|
53
|
+
"@sanoma-ai/workflows": "0.1.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@sanoma-ai/bridge": "^0.1.0",
|
|
57
|
+
"@sanoma-ai/workflows": "^0.1.0",
|
|
58
|
+
"zod": "^4"
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">=24"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "tsc -p tsconfig.build.json",
|
|
65
|
+
"clean": "rm -rf dist",
|
|
66
|
+
"generate": "node ../../packages/bridge/src/tfschema/cli.ts src/resources.config.ts src/resources.gen.ts && oxfmt src/resources.gen.ts",
|
|
67
|
+
"watch": "tsc -p tsconfig.build.json --watch --preserveWatchOutput"
|
|
68
|
+
}
|
|
6
69
|
}
|