@effected/github 0.27.0 → 0.28.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.
@@ -1,5 +1,5 @@
1
- import { unstubbed } from "./internal/unstubbed.js";
2
1
  import { GitHubClient } from "./GitHubClient.js";
2
+ import { unstubbed } from "./internal/unstubbed.js";
3
3
  import { Repo } from "./Repo.js";
4
4
  import { Context, Effect, Layer, Schema } from "effect";
5
5
 
package/Attestation.js CHANGED
@@ -1,5 +1,5 @@
1
- import { unstubbed } from "./internal/unstubbed.js";
2
1
  import { GitHubClient } from "./GitHubClient.js";
2
+ import { unstubbed } from "./internal/unstubbed.js";
3
3
  import { Repo } from "./Repo.js";
4
4
  import { Context, Effect, Layer, Schema } from "effect";
5
5
 
@@ -1,7 +1,7 @@
1
- import { GitHubError } from "./GitHubError.js";
2
- import { unstubbed } from "./internal/unstubbed.js";
3
1
  import { GitHubClient } from "./GitHubClient.js";
2
+ import { GitHubError } from "./GitHubError.js";
4
3
  import { numericId } from "./internal/ids.js";
4
+ import { unstubbed } from "./internal/unstubbed.js";
5
5
  import { Context, Effect, Layer, Schema, Stream } from "effect";
6
6
 
7
7
  // src/AuthenticatedApp.ts
package/CheckRun.js CHANGED
@@ -1,8 +1,8 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { GitHubError } from "./GitHubError.js";
3
+ import { numericId } from "./internal/ids.js";
2
4
  import { unstubbed } from "./internal/unstubbed.js";
3
- import { GitHubClient } from "./GitHubClient.js";
4
5
  import { Repo } from "./Repo.js";
5
- import { numericId } from "./internal/ids.js";
6
6
  import { Cause, Context, DateTime, Effect, Exit, Layer, Option, Ref, Schema } from "effect";
7
7
 
8
8
  // src/CheckRun.ts
package/CodeScanning.js CHANGED
@@ -1,5 +1,5 @@
1
- import { unstubbed } from "./internal/unstubbed.js";
2
1
  import { GitHubClient } from "./GitHubClient.js";
2
+ import { unstubbed } from "./internal/unstubbed.js";
3
3
  import { Repo } from "./Repo.js";
4
4
  import { Context, Effect, Layer } from "effect";
5
5
 
@@ -1,6 +1,6 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { ENVIRONMENT_PUT_ROUTE_PARAMS, reservedBodyKey } from "./internal/requestOptions.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
- import { GitHubClient } from "./GitHubClient.js";
4
4
  import { Repo } from "./Repo.js";
5
5
  import { Context, Effect, Layer } from "effect";
6
6
 
package/GitBranch.js CHANGED
@@ -1,7 +1,7 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { GitHubError } from "./GitHubError.js";
2
3
  import { GraphQLDocument } from "./GraphQL.js";
3
4
  import { unstubbed } from "./internal/unstubbed.js";
4
- import { GitHubClient } from "./GitHubClient.js";
5
5
  import { Repo } from "./Repo.js";
6
6
  import { Context, Effect, Layer, Option, Schema } from "effect";
7
7
 
package/GitCommit.js CHANGED
@@ -1,5 +1,5 @@
1
- import { unstubbed } from "./internal/unstubbed.js";
2
1
  import { GitHubClient } from "./GitHubClient.js";
2
+ import { unstubbed } from "./internal/unstubbed.js";
3
3
  import { Repo } from "./Repo.js";
4
4
  import { Context, Effect, Layer, Schema } from "effect";
5
5
 
package/GitHubApp.js CHANGED
@@ -1,10 +1,10 @@
1
+ import { GitHubClient, makeClientShape, resolveApiVersion } from "./GitHubClient.js";
1
2
  import { GitHubError } from "./GitHubError.js";
2
3
  import { GitHubGraphQLError } from "./GraphQL.js";
3
- import { uploadChannelOf, withUploadChannel } from "./internal/uploads.js";
4
- import { unstubbed } from "./internal/unstubbed.js";
5
- import { GitHubClient, makeClientShape, resolveApiVersion } from "./GitHubClient.js";
6
- import { numericId } from "./internal/ids.js";
7
4
  import { InstallationTokenStore } from "./InstallationTokenStore.js";
5
+ import { numericId } from "./internal/ids.js";
6
+ import { unstubbed } from "./internal/unstubbed.js";
7
+ import { uploadChannelOf, withUploadChannel } from "./internal/uploads.js";
8
8
  import { Cause, Clock, Context, DateTime, Deferred, Duration, Effect, Layer, Option, Redacted, Ref, Schema, Semaphore, Stream } from "effect";
9
9
  import { Jwt, JwtKey } from "@effected/jwt";
10
10
  import { Signature } from "effect/crypto";
package/GitHubClient.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { GitHubError } from "./GitHubError.js";
2
2
  import { GitHubGraphQLError } from "./GraphQL.js";
3
- import { DOTCOM_API_BASE_URL, originOf, uploadsBaseUrlFor, withUploadChannel } from "./internal/uploads.js";
4
3
  import { rawRequestRefusal, refusedRequest } from "./internal/confinement.js";
5
- import { RetryPolicy } from "./Resilience.js";
6
4
  import { DEFAULT_API_VERSION, expandOnDotcom, makeTransport } from "./internal/octokit.js";
7
5
  import { fromArray, paginate } from "./internal/paginate.js";
8
6
  import { unstubbed } from "./internal/unstubbed.js";
7
+ import { DOTCOM_API_BASE_URL, originOf, uploadsBaseUrlFor, withUploadChannel } from "./internal/uploads.js";
8
+ import { RetryPolicy } from "./Resilience.js";
9
9
  import { Clock, Config, Context, Effect, Layer, Option, Schema, Stream } from "effect";
10
10
 
11
11
  // src/GitHubClient.ts
package/GitHubCommit.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { paginate } from "./internal/paginate.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
- import { GitHubClient } from "./GitHubClient.js";
4
4
  import { Repo } from "./Repo.js";
5
5
  import { Context, Effect, Layer, Option, Schema, Stream } from "effect";
6
6
 
package/GitHubContent.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { GitHubError } from "./GitHubError.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
- import { GitHubClient } from "./GitHubClient.js";
4
4
  import { Repo } from "./Repo.js";
5
5
  import { Context, Effect, Layer, Option, Result } from "effect";
6
6
  import * as Base64 from "effect/encoding/Base64";
package/GitHubIssue.js CHANGED
@@ -1,9 +1,9 @@
1
- import { GraphQLDocument } from "./GraphQL.js";
2
- import { unstubbed } from "./internal/unstubbed.js";
3
1
  import { GitHubClient } from "./GitHubClient.js";
4
- import { Repo } from "./Repo.js";
2
+ import { GraphQLDocument } from "./GraphQL.js";
5
3
  import { numericId } from "./internal/ids.js";
4
+ import { unstubbed } from "./internal/unstubbed.js";
6
5
  import { CommentRecord } from "./PullRequestComment.js";
6
+ import { Repo } from "./Repo.js";
7
7
  import { Context, Effect, Layer, Schema } from "effect";
8
8
 
9
9
  // src/GitHubIssue.ts
package/GitHubRelease.js CHANGED
@@ -1,7 +1,7 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { GitHubError } from "./GitHubError.js";
2
- import { originOf, uploadChannelOf, uploadsBaseUrlFor } from "./internal/uploads.js";
3
3
  import { unstubbed } from "./internal/unstubbed.js";
4
- import { GitHubClient } from "./GitHubClient.js";
4
+ import { originOf, uploadChannelOf, uploadsBaseUrlFor } from "./internal/uploads.js";
5
5
  import { Repo } from "./Repo.js";
6
6
  import { Context, Effect, Layer, Option, Schema } from "effect";
7
7
 
@@ -1,9 +1,9 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { GraphQLDocument } from "./GraphQL.js";
3
+ import { REMOVED_BY_PINNED_VERSION, REPOSITORY_REST_SETTING_KEYS } from "./internal/repositoryRestSettingKeys.js";
2
4
  import { reservedSettingKey } from "./internal/requestOptions.js";
3
5
  import { unstubbed, unstubbedRead } from "./internal/unstubbed.js";
4
- import { GitHubClient } from "./GitHubClient.js";
5
6
  import { Repo } from "./Repo.js";
6
- import { REMOVED_BY_PINNED_VERSION, REPOSITORY_REST_SETTING_KEYS } from "./internal/repositoryRestSettingKeys.js";
7
7
  import { Context, Effect, Layer, Schema } from "effect";
8
8
 
9
9
  // src/GitHubRepository.ts
package/GitTag.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { GitHubError } from "./GitHubError.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
- import { GitHubClient } from "./GitHubClient.js";
4
4
  import { Repo } from "./Repo.js";
5
5
  import { Context, Effect, Layer, Option, Result, Schema, Stream } from "effect";
6
6
  import { SemVer } from "@effected/semver";
package/PullRequest.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
2
+ import { fileOf } from "./GitHubCommit.js";
1
3
  import { GitHubError } from "./GitHubError.js";
2
4
  import { GitHubGraphQLError, GraphQLDocument } from "./GraphQL.js";
3
5
  import { unstubbed } from "./internal/unstubbed.js";
4
- import { GitHubClient } from "./GitHubClient.js";
5
6
  import { Repo } from "./Repo.js";
6
- import { fileOf } from "./GitHubCommit.js";
7
7
  import { PageOptions } from "./Rest.js";
8
8
  import { Context, DateTime, Effect, Layer, Option, Schema } from "effect";
9
9
 
@@ -1,7 +1,7 @@
1
- import { unstubbed } from "./internal/unstubbed.js";
2
1
  import { GitHubClient } from "./GitHubClient.js";
3
- import { Repo } from "./Repo.js";
4
2
  import { numericId } from "./internal/ids.js";
3
+ import { unstubbed } from "./internal/unstubbed.js";
4
+ import { Repo } from "./Repo.js";
5
5
  import { Context, Effect, Layer, Option, Schema } from "effect";
6
6
 
7
7
  // src/PullRequestComment.ts
@@ -1,8 +1,8 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { GitHubError } from "./GitHubError.js";
3
+ import { encryptSecret } from "./internal/crypto.js";
2
4
  import { unstubbed } from "./internal/unstubbed.js";
3
- import { GitHubClient } from "./GitHubClient.js";
4
5
  import { Repo } from "./Repo.js";
5
- import { encryptSecret } from "./internal/crypto.js";
6
6
  import { Context, Effect, Layer, Redacted, Result } from "effect";
7
7
 
8
8
  // src/RepositorySecret.ts
@@ -1,5 +1,5 @@
1
- import { unstubbed } from "./internal/unstubbed.js";
2
1
  import { GitHubClient } from "./GitHubClient.js";
2
+ import { unstubbed } from "./internal/unstubbed.js";
3
3
  import { Repo } from "./Repo.js";
4
4
  import { Context, Effect, Layer } from "effect";
5
5
 
@@ -1,5 +1,5 @@
1
- import { unstubbed } from "./internal/unstubbed.js";
2
1
  import { GitHubClient } from "./GitHubClient.js";
2
+ import { unstubbed } from "./internal/unstubbed.js";
3
3
  import { Repo } from "./Repo.js";
4
4
  import { Context, Effect, Layer } from "effect";
5
5
 
package/Ruleset.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { GitHubError } from "./GitHubError.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
- import { GitHubClient } from "./GitHubClient.js";
4
4
  import { Repo } from "./Repo.js";
5
5
  import { Context, Effect, Layer } from "effect";
6
6
 
@@ -1,8 +1,8 @@
1
+ import { GitHubClient } from "./GitHubClient.js";
1
2
  import { GitHubError } from "./GitHubError.js";
3
+ import { numericId } from "./internal/ids.js";
2
4
  import { unstubbed, unstubbedRead } from "./internal/unstubbed.js";
3
- import { GitHubClient } from "./GitHubClient.js";
4
5
  import { Repo } from "./Repo.js";
5
- import { numericId } from "./internal/ids.js";
6
6
  import { PageOptions } from "./Rest.js";
7
7
  import { Context, DateTime, Duration, Effect, Layer, Option, Schedule, Schema } from "effect";
8
8
 
package/index.js CHANGED
@@ -1,9 +1,4 @@
1
1
  import { ActionsOidc, ActionsOidcClaims, ActionsOidcClaimsFromWire } from "./ActionsOidc.js";
2
- import { GitHubError, GitHubErrorKind, GitHubValidationCode, GitHubValidationEntry } from "./GitHubError.js";
3
- import { GitHubGraphQLError, GraphQLDocument, GraphQLErrorEntry } from "./GraphQL.js";
4
- import { RateLimitSnapshot, RetryPolicy } from "./Resilience.js";
5
- import { GitHubClient, GitHubFixtures, RawFailure } from "./GitHubClient.js";
6
- import { InvalidRepoRefError, Repo, RepoRef } from "./Repo.js";
7
2
  import { ArtifactMetadata, StorageRecordInput } from "./ArtifactMetadata.js";
8
3
  import { Attestation, AttestationListEntry, AttestationRecord } from "./Attestation.js";
9
4
  import { AppInfo, AuthenticatedApp, DeliveryAttempt } from "./AuthenticatedApp.js";
@@ -12,20 +7,25 @@ import { CodeScanning } from "./CodeScanning.js";
12
7
  import { DeploymentEnvironment } from "./DeploymentEnvironment.js";
13
8
  import { GitBranch } from "./GitBranch.js";
14
9
  import { CommitRef, FileChange, FileContent, FileDeletion, FileMode, GitCommit } from "./GitCommit.js";
15
- import { InstallationTokenStore } from "./InstallationTokenStore.js";
16
10
  import { AppIdentity, BotIdentity, BotUser, GitHubApp, GitHubAppError, Installation, InstallationToken } from "./GitHubApp.js";
11
+ import { GitHubClient, GitHubFixtures, RawFailure } from "./GitHubClient.js";
17
12
  import { CommitComparison, CommitFile, CommitSummary, FileStatus, GitHubCommit } from "./GitHubCommit.js";
18
13
  import { GitHubContent } from "./GitHubContent.js";
19
- import { CommentMarker, CommentRecord, PullRequestComment } from "./PullRequestComment.js";
14
+ import { GitHubError, GitHubErrorKind, GitHubValidationCode, GitHubValidationEntry } from "./GitHubError.js";
20
15
  import { CommentOnceResult, GitHubIssue, IssueInfo, LinkedIssue } from "./GitHubIssue.js";
21
16
  import { GitHubRelease, ReleaseAsset, ReleaseInfo } from "./GitHubRelease.js";
22
17
  import { GRAPHQL_ONLY_SETTINGS, GitHubRepository, SECURITY_ANALYSIS_STATUS_FIELDS, repositoryPatch, transformSecurityAndAnalysis } from "./GitHubRepository.js";
23
18
  import { GitTag, SemverTag, TagRef, versionFromTag } from "./GitTag.js";
24
- import { PageOptions } from "./Rest.js";
19
+ import { GitHubGraphQLError, GraphQLDocument, GraphQLErrorEntry } from "./GraphQL.js";
20
+ import { InstallationTokenStore } from "./InstallationTokenStore.js";
25
21
  import { MergeMethod, PullRequest, PullRequestInfo } from "./PullRequest.js";
22
+ import { CommentMarker, CommentRecord, PullRequestComment } from "./PullRequestComment.js";
23
+ import { InvalidRepoRefError, Repo, RepoRef } from "./Repo.js";
26
24
  import { RepositorySecret } from "./RepositorySecret.js";
27
25
  import { RepositorySecurity } from "./RepositorySecurity.js";
28
26
  import { RepositoryVariable } from "./RepositoryVariable.js";
27
+ import { RateLimitSnapshot, RetryPolicy } from "./Resilience.js";
28
+ import { PageOptions } from "./Rest.js";
29
29
  import { Ruleset } from "./Ruleset.js";
30
30
  import { ExtraPermission, PermissionGap, PermissionLevel, PermissionResult, TokenPermissionError, TokenPermissions } from "./TokenPermissions.js";
31
31
  import { DispatchedRun, WorkflowDispatch, WorkflowRunStatus } from "./WorkflowDispatch.js";
@@ -1,8 +1,8 @@
1
1
  import { GitHubError, readRateLimitHeaders } from "../GitHubError.js";
2
2
  import { GitHubGraphQLError } from "../GraphQL.js";
3
- import { DOTCOM_API_BASE_URL, originOf } from "./uploads.js";
4
- import { rawRequestRefusal, refusedRequest, reservedParamReason, routeReason } from "./confinement.js";
5
3
  import { RateLimitSnapshot } from "../Resilience.js";
4
+ import { rawRequestRefusal, refusedRequest, reservedParamReason, routeReason } from "./confinement.js";
5
+ import { DOTCOM_API_BASE_URL, originOf } from "./uploads.js";
6
6
  import { Clock, Effect, Option, Redacted, Ref } from "effect";
7
7
  import { Octokit } from "@octokit/core";
8
8
  import { composePaginateRest } from "@octokit/plugin-paginate-rest";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/github",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "private": false,
5
5
  "description": "Typed GitHub REST and GraphQL services over the octokit core request surface, with app auth and resource helpers.",
6
6
  "keywords": [
@@ -38,11 +38,11 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "dependencies": {
41
- "@effected/crypto": "^0.4.0",
42
- "@effected/github-references": "^0.13.0",
43
- "@effected/jwt": "^0.8.0",
44
- "@effected/oidc": "^0.3.0",
45
- "@effected/semver": "^0.20.0",
41
+ "@effected/crypto": "^0.5.0",
42
+ "@effected/github-references": "^0.14.0",
43
+ "@effected/jwt": "^0.9.0",
44
+ "@effected/oidc": "^0.4.0",
45
+ "@effected/semver": "^0.21.0",
46
46
  "@octokit/core": "^7.0.6",
47
47
  "@octokit/plugin-paginate-rest": "^16.0.0",
48
48
  "@octokit/types": "^18.0.0",
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.60.0"
8
+ "packageVersion": "7.60.1"
9
9
  }
10
10
  ]
11
11
  }