@terrantula/sdk 0.3.0 → 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.
package/dist/local.js CHANGED
@@ -977,13 +977,23 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
977
977
  )
978
978
  },
979
979
  projects: {
980
+ list: withSchema(
981
+ import_zod8.z.object({
982
+ orgId: import_zod8.z.string().describe("Organization ID"),
983
+ projectId: import_zod8.z.string().describe("Project ID")
984
+ }),
985
+ (params) => call(
986
+ cloud.orgs[":orgId"].projects[":projectId"]["github-repos"].$get({
987
+ param: params
988
+ })
989
+ )
990
+ ),
980
991
  linkRepo: withSchema(
981
992
  import_zod8.z.object({
982
993
  orgId: import_zod8.z.string().describe("Organization ID"),
983
994
  projectId: import_zod8.z.string().describe("Project ID"),
984
- installationId: import_zod8.z.string().describe("Installation row ID"),
985
- owner: import_zod8.z.string().describe("GitHub repo owner"),
986
- name: import_zod8.z.string().describe("GitHub repo name")
995
+ installationId: import_zod8.z.string().describe("github_installations.id (UUID)"),
996
+ repoFullName: import_zod8.z.string().describe('GitHub repo "owner/name"')
987
997
  }),
988
998
  (params) => {
989
999
  const { orgId, projectId, ...body } = params;
@@ -999,11 +1009,10 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
999
1009
  import_zod8.z.object({
1000
1010
  orgId: import_zod8.z.string().describe("Organization ID"),
1001
1011
  projectId: import_zod8.z.string().describe("Project ID"),
1002
- owner: import_zod8.z.string().describe("GitHub repo owner"),
1003
- name: import_zod8.z.string().describe("GitHub repo name")
1012
+ id: import_zod8.z.string().describe("project_github_repos.id (UUID) \u2014 returned by linkRepo")
1004
1013
  }),
1005
1014
  (params) => call(
1006
- cloud.orgs[":orgId"].projects[":projectId"]["github-repos"][":owner"][":name"].$delete({
1015
+ cloud.orgs[":orgId"].projects[":projectId"]["github-repos"][":id"].$delete({
1007
1016
  param: params
1008
1017
  })
1009
1018
  )
@@ -1655,6 +1664,26 @@ function createAdminClient(baseUrl, hcOpts) {
1655
1664
  await rawRequest2(baseUrl, hcOpts, "/admin/metrics/overview")
1656
1665
  )
1657
1666
  )
1667
+ },
1668
+ integrations: {
1669
+ githubInstallations: {
1670
+ /**
1671
+ * GET /admin/integrations/github-installations
1672
+ * Cross-tenant list of all GitHub App installations with status,
1673
+ * granted-repo count, and last lifecycle event timestamp.
1674
+ * Requires super-admin.
1675
+ */
1676
+ list: withSchema(
1677
+ import_zod18.z.object({}),
1678
+ async () => callRaw2(
1679
+ await rawRequest2(
1680
+ baseUrl,
1681
+ hcOpts,
1682
+ "/admin/integrations/github-installations"
1683
+ )
1684
+ )
1685
+ )
1686
+ }
1658
1687
  }
1659
1688
  };
1660
1689
  }
package/dist/local.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createClient
3
- } from "./chunk-WQORVQWY.mjs";
3
+ } from "./chunk-H6TVESFB.mjs";
4
4
 
5
5
  // src/local.ts
6
6
  import { createLocalApp, openLocalDb } from "@terrantula/local";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrantula/sdk",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "TypeScript SDK for Terrantula — the multi-tenant entity-graph control plane that herds Terraform/OpenTofu cattle.",
5
5
  "keywords": [
6
6
  "terrantula",
@@ -62,8 +62,8 @@
62
62
  "test": "bun test"
63
63
  },
64
64
  "dependencies": {
65
- "@terrantula/local": "^0.0.3",
66
- "@terrantula/types": "^0.0.3",
65
+ "@terrantula/local": "^0.0.4",
66
+ "@terrantula/types": "^0.1.0",
67
67
  "hono": "^4.4.0",
68
68
  "zod": "^3.22.0"
69
69
  },