@sanoma-ai/connector-github 0.7.1 → 0.7.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.
@@ -6,7 +6,7 @@ import { z } from "zod";
6
6
  * data-file constructors, the driver and the fake all come from this one record.
7
7
  */
8
8
  export declare const githubTf: import("@sanoma-ai/bridge/connector").TfConnector<"github", {
9
- repository: z.ZodObject<{
9
+ readonly repository: z.ZodObject<{
10
10
  allow_auto_merge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
11
11
  allow_forking: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
12
12
  allow_merge_commit: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -183,7 +183,7 @@ export declare const githubTf: import("@sanoma-ai/bridge/connector").TfConnector
183
183
  }, z.core.$strip>>>;
184
184
  owner: z.ZodString;
185
185
  }, z.core.$strip>);
186
- branch_protection: z.ZodObject<{
186
+ readonly branch_protection: z.ZodObject<{
187
187
  allows_deletions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
188
188
  allows_force_pushes: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
189
189
  enforce_admins: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -213,7 +213,7 @@ export declare const githubTf: import("@sanoma-ai/bridge/connector").TfConnector
213
213
  push_allowances: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
214
214
  }, z.core.$strip>>>>;
215
215
  }, z.core.$strip>;
216
- team_membership: z.ZodObject<{
216
+ readonly team_membership: z.ZodObject<{
217
217
  etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
218
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
219
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -312,7 +312,7 @@ export declare const githubTf: import("@sanoma-ai/bridge/connector").TfConnector
312
312
  }, z.core.$strip>>>;
313
313
  owner: z.ZodString;
314
314
  }, z.core.$strip>);
315
- repository_deploy_key: z.ZodObject<{
315
+ readonly repository_deploy_key: z.ZodObject<{
316
316
  etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
317
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
318
  key: z.ZodString;
@@ -332,6 +332,11 @@ export declare const githubTf: import("@sanoma-ai/bridge/connector").TfConnector
332
332
  readonly type: "github.repository";
333
333
  };
334
334
  };
335
+ }, {
336
+ readonly repository: true;
337
+ readonly branch_protection: false;
338
+ readonly team_membership: false;
339
+ readonly repository_deploy_key: true;
335
340
  }>;
336
341
  /** The account an installation of the App is on: its login, and its id, which a rename keeps. */
337
342
  export declare const Account: z.ZodObject<{
package/dist/fake.d.ts CHANGED
@@ -164,7 +164,7 @@ export declare function fakeGithubApp(options?: FakeOptions): import("@sanoma-ai
164
164
  * logging into the same `calls`; the faults (`failNext` and the others) reach either by its id.
165
165
  */
166
166
  export declare function fakeGithub(options?: FakeGithubOptions): import("@sanoma-ai/bridge/fake").TfFake<"github", {
167
- repository: z.ZodObject<{
167
+ readonly repository: z.ZodObject<{
168
168
  allow_auto_merge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
169
169
  allow_forking: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
170
170
  allow_merge_commit: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -341,7 +341,7 @@ export declare function fakeGithub(options?: FakeGithubOptions): import("@sanoma
341
341
  }, z.core.$strip>>>;
342
342
  owner: z.ZodString;
343
343
  }, z.core.$strip>);
344
- branch_protection: z.ZodObject<{
344
+ readonly branch_protection: z.ZodObject<{
345
345
  allows_deletions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
346
346
  allows_force_pushes: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
347
347
  enforce_admins: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -371,7 +371,7 @@ export declare function fakeGithub(options?: FakeGithubOptions): import("@sanoma
371
371
  push_allowances: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
372
372
  }, z.core.$strip>>>>;
373
373
  }, z.core.$strip>;
374
- team_membership: z.ZodObject<{
374
+ readonly team_membership: z.ZodObject<{
375
375
  etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
376
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
377
377
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -470,7 +470,7 @@ export declare function fakeGithub(options?: FakeGithubOptions): import("@sanoma
470
470
  }, z.core.$strip>>>;
471
471
  owner: z.ZodString;
472
472
  }, z.core.$strip>);
473
- repository_deploy_key: z.ZodObject<{
473
+ readonly repository_deploy_key: z.ZodObject<{
474
474
  etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
475
475
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
476
476
  key: z.ZodString;
@@ -478,6 +478,23 @@ export declare function fakeGithub(options?: FakeGithubOptions): import("@sanoma
478
478
  repository: z.ZodString;
479
479
  title: z.ZodString;
480
480
  }, z.core.$strip>;
481
+ }, {
482
+ readonly branch_protection: {
483
+ readonly repository_id: {
484
+ readonly type: "github.repository";
485
+ readonly by: readonly ["name", "node_id"];
486
+ };
487
+ };
488
+ readonly repository_deploy_key: {
489
+ readonly repository: {
490
+ readonly type: "github.repository";
491
+ };
492
+ };
493
+ }, {
494
+ readonly repository: true;
495
+ readonly branch_protection: false;
496
+ readonly team_membership: false;
497
+ readonly repository_deploy_key: true;
481
498
  }> & {
482
499
  driver: {
483
500
  vendor: string;
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * the `sanoma` status, the rules on a branch and the App's webhooks.
9
9
  */
10
10
  export declare const github: import("@sanoma-ai/workflows").Connector<"github", Omit<import("@sanoma-ai/bridge/connector").TfResources<"github", {
11
- repository: import("zod").ZodObject<{
11
+ readonly repository: import("zod").ZodObject<{
12
12
  allow_auto_merge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
13
13
  allow_forking: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
14
14
  allow_merge_commit: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
@@ -185,7 +185,7 @@ export declare const github: import("@sanoma-ai/workflows").Connector<"github",
185
185
  }, import("zod/v4/core").$strip>>>;
186
186
  owner: import("zod").ZodString;
187
187
  }, import("zod/v4/core").$strip>);
188
- branch_protection: import("zod").ZodObject<{
188
+ readonly branch_protection: import("zod").ZodObject<{
189
189
  allows_deletions: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
190
190
  allows_force_pushes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
191
191
  enforce_admins: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
@@ -215,7 +215,7 @@ export declare const github: import("@sanoma-ai/workflows").Connector<"github",
215
215
  push_allowances: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
216
216
  }, import("zod/v4/core").$strip>>>>;
217
217
  }, import("zod/v4/core").$strip>;
218
- team_membership: import("zod").ZodObject<{
218
+ readonly team_membership: import("zod").ZodObject<{
219
219
  etag: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
220
220
  id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
221
221
  role: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -314,7 +314,7 @@ export declare const github: import("@sanoma-ai/workflows").Connector<"github",
314
314
  }, import("zod/v4/core").$strip>>>;
315
315
  owner: import("zod").ZodString;
316
316
  }, import("zod/v4/core").$strip>);
317
- repository_deploy_key: import("zod").ZodObject<{
317
+ readonly repository_deploy_key: import("zod").ZodObject<{
318
318
  etag: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
319
319
  id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
320
320
  key: import("zod").ZodString;
@@ -334,9 +334,14 @@ export declare const github: import("@sanoma-ai/workflows").Connector<"github",
334
334
  readonly type: "github.repository";
335
335
  };
336
336
  };
337
+ }, {
338
+ readonly repository: true;
339
+ readonly branch_protection: false;
340
+ readonly team_membership: false;
341
+ readonly repository_deploy_key: true;
337
342
  }>, "repository"> & {
338
343
  repository: (import("@sanoma-ai/bridge/connector").TfResources<"github", {
339
- repository: import("zod").ZodObject<{
344
+ readonly repository: import("zod").ZodObject<{
340
345
  allow_auto_merge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
341
346
  allow_forking: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
342
347
  allow_merge_commit: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
@@ -513,7 +518,7 @@ export declare const github: import("@sanoma-ai/workflows").Connector<"github",
513
518
  }, import("zod/v4/core").$strip>>>;
514
519
  owner: import("zod").ZodString;
515
520
  }, import("zod/v4/core").$strip>);
516
- branch_protection: import("zod").ZodObject<{
521
+ readonly branch_protection: import("zod").ZodObject<{
517
522
  allows_deletions: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
518
523
  allows_force_pushes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
519
524
  enforce_admins: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
@@ -543,7 +548,7 @@ export declare const github: import("@sanoma-ai/workflows").Connector<"github",
543
548
  push_allowances: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
544
549
  }, import("zod/v4/core").$strip>>>>;
545
550
  }, import("zod/v4/core").$strip>;
546
- team_membership: import("zod").ZodObject<{
551
+ readonly team_membership: import("zod").ZodObject<{
547
552
  etag: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
548
553
  id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
549
554
  role: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -642,7 +647,7 @@ export declare const github: import("@sanoma-ai/workflows").Connector<"github",
642
647
  }, import("zod/v4/core").$strip>>>;
643
648
  owner: import("zod").ZodString;
644
649
  }, import("zod/v4/core").$strip>);
645
- repository_deploy_key: import("zod").ZodObject<{
650
+ readonly repository_deploy_key: import("zod").ZodObject<{
646
651
  etag: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
647
652
  id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
648
653
  key: import("zod").ZodString;
@@ -662,6 +667,11 @@ export declare const github: import("@sanoma-ai/workflows").Connector<"github",
662
667
  readonly type: "github.repository";
663
668
  };
664
669
  };
670
+ }, {
671
+ readonly repository: true;
672
+ readonly branch_protection: false;
673
+ readonly team_membership: false;
674
+ readonly repository_deploy_key: true;
665
675
  }>)["repository"]["ops"] & {
666
676
  generate: {
667
677
  effect: "write";
@@ -3,7 +3,7 @@
3
3
  * `export const site = github.repository({ owner: "acme", name: "website", has_wiki: false })`.
4
4
  */
5
5
  export declare const github: import("@sanoma-ai/bridge/connector").TfResources<"github", {
6
- repository: import("zod").ZodObject<{
6
+ readonly repository: import("zod").ZodObject<{
7
7
  allow_auto_merge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
8
8
  allow_forking: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
9
9
  allow_merge_commit: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
@@ -180,7 +180,7 @@ export declare const github: import("@sanoma-ai/bridge/connector").TfResources<"
180
180
  }, import("zod/v4/core").$strip>>>;
181
181
  owner: import("zod").ZodString;
182
182
  }, import("zod/v4/core").$strip>);
183
- branch_protection: import("zod").ZodObject<{
183
+ readonly branch_protection: import("zod").ZodObject<{
184
184
  allows_deletions: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
185
185
  allows_force_pushes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
186
186
  enforce_admins: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
@@ -210,7 +210,7 @@ export declare const github: import("@sanoma-ai/bridge/connector").TfResources<"
210
210
  push_allowances: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
211
211
  }, import("zod/v4/core").$strip>>>>;
212
212
  }, import("zod/v4/core").$strip>;
213
- team_membership: import("zod").ZodObject<{
213
+ readonly team_membership: import("zod").ZodObject<{
214
214
  etag: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
215
215
  id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
216
216
  role: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -309,7 +309,7 @@ export declare const github: import("@sanoma-ai/bridge/connector").TfResources<"
309
309
  }, import("zod/v4/core").$strip>>>;
310
310
  owner: import("zod").ZodString;
311
311
  }, import("zod/v4/core").$strip>);
312
- repository_deploy_key: import("zod").ZodObject<{
312
+ readonly repository_deploy_key: import("zod").ZodObject<{
313
313
  etag: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
314
314
  id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
315
315
  key: import("zod").ZodString;
@@ -329,4 +329,9 @@ export declare const github: import("@sanoma-ai/bridge/connector").TfResources<"
329
329
  readonly type: "github.repository";
330
330
  };
331
331
  };
332
+ }, {
333
+ readonly repository: true;
334
+ readonly branch_protection: false;
335
+ readonly team_membership: false;
336
+ readonly repository_deploy_key: true;
332
337
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanoma-ai/connector-github",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "GitHub resources (repositories, branch protection, team membership, deploy keys) for Sanoma, read through the OpenTofu provider, and repositories generated, committed to and given deploy keys through Sanoma's GitHub App",
5
5
  "keywords": [
6
6
  "connector",
@@ -55,13 +55,13 @@
55
55
  "access": "public"
56
56
  },
57
57
  "devDependencies": {
58
- "@sanoma-ai/bridge": "0.5.1",
59
- "@sanoma-ai/workflows": "0.10.7",
58
+ "@sanoma-ai/bridge": "0.5.3",
59
+ "@sanoma-ai/workflows": "0.11.1",
60
60
  "zod": "^4.6.5"
61
61
  },
62
62
  "peerDependencies": {
63
- "@sanoma-ai/bridge": "^0.5.1",
64
- "@sanoma-ai/workflows": "^0.10.7",
63
+ "@sanoma-ai/bridge": "^0.5.3",
64
+ "@sanoma-ai/workflows": "^0.11.1",
65
65
  "zod": "^4"
66
66
  },
67
67
  "engines": {