@effected/github 0.33.0 → 0.34.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/ActionsOidc.js CHANGED
@@ -11,6 +11,15 @@ const ISSUER = "https://token.actions.githubusercontent.com";
11
11
  */
12
12
  const IdFromString = Schema.String.check(Schema.isPattern(/^\d+$/)).pipe(Schema.decodeTo(Schema.Int, SchemaTransformation.numberFromString));
13
13
  /**
14
+ * A boolean as GitHub's OIDC tokens carry it: exactly the string `"true"` or
15
+ * `"false"`. Anything else (`"1"`, `"True"`, an empty string, a JSON boolean)
16
+ * does not decode.
17
+ */
18
+ const BooleanFromString = Schema.Literals(["true", "false"]).pipe(Schema.decodeTo(Schema.Boolean, SchemaTransformation.transform({
19
+ decode: (wire) => wire === "true",
20
+ encode: (value) => value ? "true" : "false"
21
+ })));
22
+ /**
14
23
  * The claims of a verified GitHub Actions OIDC token.
15
24
  *
16
25
  * @remarks
@@ -62,6 +71,20 @@ var ActionsOidcClaims = class extends Schema.Class("ActionsOidcClaims")({
62
71
  jobWorkflowRef: Schema.String,
63
72
  /** The git ref the run is for. */
64
73
  ref: Schema.String,
74
+ /**
75
+ * Whether `ref` is protected (wire key `ref_protected`): a protected
76
+ * branch, or a tag under a ruleset or tag protection. The token carries it
77
+ * as the string `"true"` or `"false"`; anything else fails verification as
78
+ * `claims`. Gate a privileged action, such as writing a build cache other
79
+ * runs restore from, on this rather than on the ref's name.
80
+ */
81
+ refProtected: BooleanFromString,
82
+ /** The kind of `ref`, `branch` or `tag` (wire key `ref_type`). */
83
+ refType: Schema.Literals(["branch", "tag"]),
84
+ /** A pull request's base ref; an empty string outside pull request events (wire key `base_ref`). */
85
+ baseRef: Schema.String,
86
+ /** A pull request's head ref; an empty string outside pull request events (wire key `head_ref`). */
87
+ headRef: Schema.String,
65
88
  /** The commit SHA the run is for. */
66
89
  sha: Schema.String,
67
90
  /** The event that triggered the run, e.g. `push` (wire key `event_name`). */
@@ -104,6 +127,10 @@ const ActionsOidcClaimsFromWire = ActionsOidcClaims.pipe(Schema.encodeKeys({
104
127
  runAttempt: "run_attempt",
105
128
  workflowRef: "workflow_ref",
106
129
  jobWorkflowRef: "job_workflow_ref",
130
+ refProtected: "ref_protected",
131
+ refType: "ref_type",
132
+ baseRef: "base_ref",
133
+ headRef: "head_ref",
107
134
  eventName: "event_name",
108
135
  actorId: "actor_id",
109
136
  runnerEnvironment: "runner_environment"
@@ -129,6 +156,10 @@ const testClaims = (overrides = {}) => ({
129
156
  workflow_ref: "octo-org/octo-repo/.github/workflows/ci.yml@refs/heads/main",
130
157
  job_workflow_ref: "octo-org/octo-repo/.github/workflows/ci.yml@refs/heads/main",
131
158
  ref: "refs/heads/main",
159
+ ref_protected: "true",
160
+ ref_type: "branch",
161
+ base_ref: "",
162
+ head_ref: "",
132
163
  sha: "0123456789abcdef0123456789abcdef01234567",
133
164
  event_name: "push",
134
165
  actor: "octocat",
@@ -1,7 +1,7 @@
1
+ import { Context, Effect, Layer, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
4
  import { Repo } from "./Repo.js";
4
- import { Context, Effect, Layer, Schema } from "effect";
5
5
 
6
6
  // src/ArtifactMetadata.ts
7
7
  /**
package/Attestation.js CHANGED
@@ -1,7 +1,7 @@
1
+ import { Context, Effect, Layer, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
4
  import { Repo } from "./Repo.js";
4
- import { Context, Effect, Layer, Schema } from "effect";
5
5
 
6
6
  // src/Attestation.ts
7
7
  /**
@@ -1,8 +1,8 @@
1
+ import { Context, Effect, Layer, Schema, Stream } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GitHubError } from "./GitHubError.js";
3
4
  import { numericId } from "./internal/ids.js";
4
5
  import { unstubbed } from "./internal/unstubbed.js";
5
- import { Context, Effect, Layer, Schema, Stream } from "effect";
6
6
 
7
7
  // src/AuthenticatedApp.ts
8
8
  /**
package/ChangelogInfo.js CHANGED
@@ -1,8 +1,8 @@
1
+ import { Context, Effect, Exit, Layer, Option, Request, RequestResolver, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GitHubGraphQLError, GraphQLDocument } from "./GraphQL.js";
3
4
  import { unstubbed } from "./internal/unstubbed.js";
4
5
  import { Repo } from "./Repo.js";
5
- import { Context, Effect, Exit, Layer, Option, Request, RequestResolver, Schema } from "effect";
6
6
 
7
7
  // src/ChangelogInfo.ts
8
8
  /**
package/CheckRun.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { Cause, Context, DateTime, Duration, Effect, Exit, Layer, Option, Ref, Schedule, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GitHubError } from "./GitHubError.js";
3
4
  import { numericId } from "./internal/ids.js";
4
5
  import { unstubbed } from "./internal/unstubbed.js";
5
6
  import { Repo } from "./Repo.js";
6
- import { Cause, Context, DateTime, Duration, Effect, Exit, Layer, Option, Ref, Schedule, Schema } from "effect";
7
7
 
8
8
  // src/CheckRun.ts
9
9
  /** How a check run finished. @public */
package/CodeScanning.js CHANGED
@@ -1,7 +1,7 @@
1
+ import { Context, Effect, Layer } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
4
  import { Repo } from "./Repo.js";
4
- import { Context, Effect, Layer } from "effect";
5
5
 
6
6
  // src/CodeScanning.ts
7
7
  /**
@@ -1,8 +1,8 @@
1
+ import { Context, Effect, Layer } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { ENVIRONMENT_PUT_ROUTE_PARAMS, reservedBodyKey } from "./internal/requestOptions.js";
3
4
  import { unstubbed } from "./internal/unstubbed.js";
4
5
  import { Repo } from "./Repo.js";
5
- import { Context, Effect, Layer } from "effect";
6
6
 
7
7
  // src/DeploymentEnvironment.ts
8
8
  /**
package/GitBranch.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { Context, Effect, Layer, Option, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GitHubError } from "./GitHubError.js";
3
4
  import { GraphQLDocument } from "./GraphQL.js";
4
5
  import { unstubbed } from "./internal/unstubbed.js";
5
6
  import { Repo } from "./Repo.js";
6
- import { Context, Effect, Layer, Option, Schema } from "effect";
7
7
 
8
8
  // src/GitBranch.ts
9
9
  const CreateLinkedBranch = GraphQLDocument.make({
package/GitCommit.js CHANGED
@@ -1,8 +1,8 @@
1
+ import { Context, Effect, Layer, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GitHubError } from "./GitHubError.js";
3
4
  import { unstubbed } from "./internal/unstubbed.js";
4
5
  import { Repo } from "./Repo.js";
5
- import { Context, Effect, Layer, Schema } from "effect";
6
6
 
7
7
  // src/GitCommit.ts
8
8
  /**
package/GitHubApp.js CHANGED
@@ -1,3 +1,6 @@
1
+ import { Jwt, JwtKey } from "@effected/jwt";
2
+ import { Cause, Clock, Context, DateTime, Deferred, Duration, Effect, Layer, Option, Redacted, Ref, Schema, Semaphore, Stream } from "effect";
3
+ import { Signature } from "effect/crypto";
1
4
  import { GitHubClient, makeClientShape, resolveApiVersion } from "./GitHubClient.js";
2
5
  import { GitHubError } from "./GitHubError.js";
3
6
  import { GitHubGraphQLError } from "./GraphQL.js";
@@ -5,9 +8,6 @@ import { InstallationTokenStore } from "./InstallationTokenStore.js";
5
8
  import { numericId } from "./internal/ids.js";
6
9
  import { unstubbed } from "./internal/unstubbed.js";
7
10
  import { uploadChannelOf, withUploadChannel } from "./internal/uploads.js";
8
- import { Cause, Clock, Context, DateTime, Deferred, Duration, Effect, Layer, Option, Redacted, Ref, Schema, Semaphore, Stream } from "effect";
9
- import { Jwt, JwtKey } from "@effected/jwt";
10
- import { Signature } from "effect/crypto";
11
11
 
12
12
  // src/GitHubApp.ts
13
13
  /**
package/GitHubClient.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { Clock, Config, Context, Effect, Layer, Option, Schema, Stream } from "effect";
1
2
  import { GitHubError } from "./GitHubError.js";
2
3
  import { GitHubGraphQLError } from "./GraphQL.js";
3
4
  import { API_VERSION_PATTERN, DEFAULT_API_VERSION } from "./internal/apiVersion.js";
@@ -7,7 +8,6 @@ import { fromArray, paginate } from "./internal/paginate.js";
7
8
  import { unstubbed } from "./internal/unstubbed.js";
8
9
  import { DOTCOM_API_BASE_URL, originOf, uploadsBaseUrlFor, withUploadChannel } from "./internal/uploads.js";
9
10
  import { RetryPolicy } from "./Resilience.js";
10
- import { Clock, Config, Context, Effect, Layer, Option, Schema, Stream } from "effect";
11
11
 
12
12
  // src/GitHubClient.ts
13
13
  /** GitHub's own maximum page size, and the default this package requests. */
package/GitHubCommit.js CHANGED
@@ -1,8 +1,8 @@
1
+ import { Context, Effect, Layer, Option, Schema, Stream } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { paginate } from "./internal/paginate.js";
3
4
  import { unstubbed } from "./internal/unstubbed.js";
4
5
  import { Repo } from "./Repo.js";
5
- import { Context, Effect, Layer, Option, Schema, Stream } from "effect";
6
6
 
7
7
  // src/GitHubCommit.ts
8
8
  /**
package/GitHubContent.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { Context, Effect, Layer, Option, Result } from "effect";
2
+ import * as Base64 from "effect/encoding/Base64";
1
3
  import { GitHubClient } from "./GitHubClient.js";
2
4
  import { GitHubError } from "./GitHubError.js";
3
5
  import { unstubbed } from "./internal/unstubbed.js";
4
6
  import { Repo } from "./Repo.js";
5
- import { Context, Effect, Layer, Option, Result } from "effect";
6
- import * as Base64 from "effect/encoding/Base64";
7
7
 
8
8
  // src/GitHubContent.ts
9
9
  /**
package/GitHubError.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { Schema } from "effect";
1
2
  import { headerNumber, retryAfterMillisFrom } from "./internal/headers.js";
2
3
  import { scrubThrowable } from "./internal/scrub.js";
3
- import { Schema } from "effect";
4
4
 
5
5
  // src/GitHubError.ts
6
6
  /**
package/GitHubIssue.js CHANGED
@@ -1,10 +1,10 @@
1
+ import { Context, Effect, Layer, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GraphQLDocument } from "./GraphQL.js";
3
4
  import { numericId } from "./internal/ids.js";
4
5
  import { unstubbed } from "./internal/unstubbed.js";
5
6
  import { CommentRecord } from "./PullRequestComment.js";
6
7
  import { Repo } from "./Repo.js";
7
- import { Context, Effect, Layer, Schema } from "effect";
8
8
 
9
9
  // src/GitHubIssue.ts
10
10
  /**
package/GitHubRelease.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { Context, Effect, Layer, Option, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GitHubError } from "./GitHubError.js";
3
4
  import { unstubbed } from "./internal/unstubbed.js";
4
5
  import { originOf, uploadChannelOf, uploadsBaseUrlFor } from "./internal/uploads.js";
5
6
  import { Repo } from "./Repo.js";
6
- import { Context, Effect, Layer, Option, Schema } from "effect";
7
7
 
8
8
  // src/GitHubRelease.ts
9
9
  /**
@@ -1,10 +1,10 @@
1
+ import { Context, Effect, Layer, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GraphQLDocument } from "./GraphQL.js";
3
4
  import { REMOVED_BY_PINNED_VERSION, REPOSITORY_REST_SETTING_KEYS } from "./internal/repositoryRestSettingKeys.js";
4
5
  import { reservedSettingKey } from "./internal/requestOptions.js";
5
6
  import { unstubbed, unstubbedRead } from "./internal/unstubbed.js";
6
7
  import { Repo } from "./Repo.js";
7
- import { Context, Effect, Layer, Schema } from "effect";
8
8
 
9
9
  // src/GitHubRepository.ts
10
10
  /**
package/GitHubUserAuth.js CHANGED
@@ -1,8 +1,8 @@
1
- import { API_VERSION_PATTERN, DEFAULT_API_VERSION } from "./internal/apiVersion.js";
2
- import { unstubbed } from "./internal/unstubbed.js";
3
- import { Clock, Context, DateTime, Duration, Effect, Layer, Option, Redacted, Schema } from "effect";
4
1
  import { HttpRedaction } from "@effected/crypto";
2
+ import { Clock, Context, DateTime, Duration, Effect, Layer, Option, Redacted, Schema } from "effect";
5
3
  import { Base64 } from "effect/encoding";
4
+ import { API_VERSION_PATTERN, DEFAULT_API_VERSION } from "./internal/apiVersion.js";
5
+ import { unstubbed } from "./internal/unstubbed.js";
6
6
 
7
7
  // src/GitHubUserAuth.ts
8
8
  /**
package/GitTag.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { SemVer } from "@effected/semver";
2
+ import { Context, Effect, Layer, Option, Result, Schema, Stream } from "effect";
1
3
  import { GitHubClient } from "./GitHubClient.js";
2
4
  import { GitHubError } from "./GitHubError.js";
3
5
  import { unstubbed } from "./internal/unstubbed.js";
4
6
  import { Repo } from "./Repo.js";
5
- import { Context, Effect, Layer, Option, Result, Schema, Stream } from "effect";
6
- import { SemVer } from "@effected/semver";
7
7
 
8
8
  // src/GitTag.ts
9
9
  /** How many annotated-tag dereferences to follow before giving up. */
package/GraphQL.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { Schema } from "effect";
1
2
  import { retryAfterMillisFrom } from "./internal/headers.js";
2
3
  import { scrubThrowable } from "./internal/scrub.js";
3
- import { Schema } from "effect";
4
4
 
5
5
  // src/GraphQL.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { unstubbed } from "./internal/unstubbed.js";
2
1
  import { Clock, Context, Duration, Effect, Layer, Option, Ref } from "effect";
2
+ import { unstubbed } from "./internal/unstubbed.js";
3
3
 
4
4
  // src/InstallationTokenStore.ts
5
5
  /**
package/PullRequest.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { Context, DateTime, Effect, Layer, Option, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { fileOf } from "./GitHubCommit.js";
3
4
  import { GitHubError } from "./GitHubError.js";
@@ -5,7 +6,6 @@ import { GitHubGraphQLError, GraphQLDocument } from "./GraphQL.js";
5
6
  import { unstubbed } from "./internal/unstubbed.js";
6
7
  import { Repo } from "./Repo.js";
7
8
  import { PageOptions } from "./Rest.js";
8
- import { Context, DateTime, Effect, Layer, Option, Schema } from "effect";
9
9
 
10
10
  // src/PullRequest.ts
11
11
  /** How a pull request is merged. @public */
@@ -1,8 +1,8 @@
1
+ import { Context, Effect, Layer, Option, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { numericId } from "./internal/ids.js";
3
4
  import { unstubbed } from "./internal/unstubbed.js";
4
5
  import { Repo } from "./Repo.js";
5
- import { Context, Effect, Layer, Option, Schema } from "effect";
6
6
 
7
7
  // src/PullRequestComment.ts
8
8
  /**
@@ -1,9 +1,9 @@
1
+ import { Context, Effect, Layer, Redacted, Result } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GitHubError } from "./GitHubError.js";
3
4
  import { encryptSecret } from "./internal/crypto.js";
4
5
  import { unstubbed } from "./internal/unstubbed.js";
5
6
  import { Repo } from "./Repo.js";
6
- import { Context, Effect, Layer, Redacted, Result } from "effect";
7
7
 
8
8
  // src/RepositorySecret.ts
9
9
  const ROUTES = {
@@ -1,7 +1,7 @@
1
+ import { Context, Effect, Layer } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
4
  import { Repo } from "./Repo.js";
4
- import { Context, Effect, Layer } from "effect";
5
5
 
6
6
  // src/RepositorySecurity.ts
7
7
  /**
@@ -1,7 +1,7 @@
1
+ import { Context, Effect, Layer } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { unstubbed } from "./internal/unstubbed.js";
3
4
  import { Repo } from "./Repo.js";
4
- import { Context, Effect, Layer } from "effect";
5
5
 
6
6
  // src/RepositoryVariable.ts
7
7
  /**
package/Ruleset.js CHANGED
@@ -1,8 +1,8 @@
1
+ import { Context, Effect, Layer } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GitHubError } from "./GitHubError.js";
3
4
  import { unstubbed } from "./internal/unstubbed.js";
4
5
  import { Repo } from "./Repo.js";
5
- import { Context, Effect, Layer } from "effect";
6
6
 
7
7
  // src/Ruleset.ts
8
8
  /**
@@ -1,10 +1,10 @@
1
+ import { Context, DateTime, Duration, Effect, Layer, Option, Schedule, Schema } from "effect";
1
2
  import { GitHubClient } from "./GitHubClient.js";
2
3
  import { GitHubError } from "./GitHubError.js";
3
4
  import { numericId } from "./internal/ids.js";
4
5
  import { unstubbed, unstubbedRead } from "./internal/unstubbed.js";
5
6
  import { Repo } from "./Repo.js";
6
7
  import { PageOptions } from "./Rest.js";
7
- import { Context, DateTime, Duration, Effect, Layer, Option, Schedule, Schema } from "effect";
8
8
 
9
9
  // src/WorkflowDispatch.ts
10
10
  /**
package/index.d.ts CHANGED
@@ -70,6 +70,20 @@ declare const ActionsOidcClaims_base: Schema.Class<ActionsOidcClaims, Schema.Str
70
70
  readonly jobWorkflowRef: Schema.String;
71
71
  /** The git ref the run is for. */
72
72
  readonly ref: Schema.String;
73
+ /**
74
+ * Whether `ref` is protected (wire key `ref_protected`): a protected
75
+ * branch, or a tag under a ruleset or tag protection. The token carries it
76
+ * as the string `"true"` or `"false"`; anything else fails verification as
77
+ * `claims`. Gate a privileged action, such as writing a build cache other
78
+ * runs restore from, on this rather than on the ref's name.
79
+ */
80
+ readonly refProtected: Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>;
81
+ /** The kind of `ref`, `branch` or `tag` (wire key `ref_type`). */
82
+ readonly refType: Schema.Literals<readonly ["branch", "tag"]>;
83
+ /** A pull request's base ref; an empty string outside pull request events (wire key `base_ref`). */
84
+ readonly baseRef: Schema.String;
85
+ /** A pull request's head ref; an empty string outside pull request events (wire key `head_ref`). */
86
+ readonly headRef: Schema.String;
73
87
  /** The commit SHA the run is for. */
74
88
  readonly sha: Schema.String;
75
89
  /** The event that triggered the run, e.g. `push` (wire key `event_name`). */
@@ -132,6 +146,10 @@ export declare const ActionsOidcClaimsFromWire: Schema.encodeKeys<typeof Actions
132
146
  readonly runAttempt: "run_attempt";
133
147
  readonly workflowRef: "workflow_ref";
134
148
  readonly jobWorkflowRef: "job_workflow_ref";
149
+ readonly refProtected: "ref_protected";
150
+ readonly refType: "ref_type";
151
+ readonly baseRef: "base_ref";
152
+ readonly headRef: "head_ref";
135
153
  readonly eventName: "event_name";
136
154
  readonly actorId: "actor_id";
137
155
  readonly runnerEnvironment: "runner_environment";
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { CLOSING_KEYWORDS, harvestIssueReferences, parseBareLineReference } from "@effected/github-references";
1
2
  import { ActionsOidc, ActionsOidcClaims, ActionsOidcClaimsFromWire } from "./ActionsOidc.js";
2
3
  import { ArtifactMetadata, StorageRecordInput } from "./ArtifactMetadata.js";
3
4
  import { Attestation, AttestationListEntry, AttestationRecord } from "./Attestation.js";
@@ -31,6 +32,5 @@ import { PageOptions } from "./Rest.js";
31
32
  import { Ruleset } from "./Ruleset.js";
32
33
  import { ExtraPermission, PermissionGap, PermissionLevel, PermissionResult, TokenPermissionError, TokenPermissions } from "./TokenPermissions.js";
33
34
  import { DispatchedRun, WorkflowDispatch, WorkflowRunStatus } from "./WorkflowDispatch.js";
34
- import { CLOSING_KEYWORDS, harvestIssueReferences, parseBareLineReference } from "@effected/github-references";
35
35
 
36
36
  export { ActionsOidc, ActionsOidcClaims, ActionsOidcClaimsFromWire, Annotation, AnnotationLevel, AppIdentity, AppInfo, ArtifactMetadata, Attestation, AttestationListEntry, AttestationRecord, AuthenticatedApp, BotIdentity, BotUser, CLOSING_KEYWORDS, ChangelogInfo, CheckConclusion, CheckRun, CheckRunOutput, CheckRunRef, CheckRunStatus, CodeScanning, CommentMarker, CommentOnceResult, CommentRecord, CommitChangelogInfo, CommitComparison, CommitFile, CommitRef, CommitSummary, CreatedCommit, DeliveryAttempt, DeploymentEnvironment, DispatchedRun, ExpiringUserTokens, ExtraPermission, FileChange, FileContent, FileDeletion, FileMode, FileStatus, GRAPHQL_ONLY_SETTINGS, GitBranch, GitCommit, GitHubApp, GitHubAppError, GitHubClient, GitHubCommit, GitHubContent, GitHubError, GitHubErrorKind, GitHubFixtures, GitHubGraphQLError, GitHubIssue, GitHubRelease, GitHubRepository, GitHubUserAuth, GitHubUserAuthFinal, GitHubUserAuthOperation, GitHubUserAuthTemporary, GitHubUserTokens, GitHubValidationCode, GitHubValidationEntry, GitTag, GraphQLDocument, GraphQLErrorEntry, Installation, InstallationToken, InstallationTokenStore, InvalidChangelogRefError, InvalidRepoRefError, IssueInfo, LinkedIssue, MergeMethod, NonExpiringUserTokens, PageOptions, PermissionGap, PermissionLevel, PermissionResult, PullRequest, PullRequestChangelogInfo, PullRequestComment, PullRequestInfo, RateLimitSnapshot, RawFailure, ReleaseAsset, ReleaseInfo, Repo, RepoRef, ReportedCheckConclusion, ReportedCheckRunOutput, RepositorySecret, RepositorySecurity, RepositoryVariable, RetryPolicy, Ruleset, SECURITY_ANALYSIS_STATUS_FIELDS, SemverTag, StorageRecordInput, TagRef, TokenPermissionError, TokenPermissions, WorkflowDispatch, WorkflowRunStatus, harvestIssueReferences, parseBareLineReference, repositoryPatch, transformSecurityAndAnalysis, versionFromTag };
@@ -257,22 +257,22 @@ const BSIGMA = /* @__PURE__ */ Uint8Array.from([
257
257
  3
258
258
  ]);
259
259
  const B2B_IV = /* @__PURE__ */ Uint32Array.from([
260
- 4089235720,
261
- 1779033703,
262
- 2227873595,
263
- 3144134277,
264
- 4271175723,
265
- 1013904242,
266
- 1595750129,
267
- 2773480762,
268
- 2917565137,
269
- 1359893119,
260
+ 0xf3bcc908,
261
+ 0x6a09e667,
262
+ 0x84caa73b,
263
+ 0xbb67ae85,
264
+ 0xfe94f82b,
265
+ 0x3c6ef372,
266
+ 0x5f1d36f1,
267
+ 0xa54ff53a,
268
+ 0xade682d1,
269
+ 0x510e527f,
270
270
  725511199,
271
- 2600822924,
272
- 4215389547,
271
+ 0x9b05688c,
272
+ 0xfb41bd6b,
273
273
  528734635,
274
274
  327033209,
275
- 1541459225
275
+ 0x5be0cd19
276
276
  ]);
277
277
  const BBUF = /* @__PURE__ */ new Uint32Array(32);
278
278
  function G1b(a, b, c, d, msg, x) {
@@ -1,9 +1,9 @@
1
- import { blake2b } from "./blake2b.js";
2
- import { x25519, x25519PublicKey } from "./x25519.js";
3
- import { hsalsaKey, secretbox } from "./xsalsa20poly1305.js";
4
1
  import { Result } from "effect";
5
2
  import * as Base64 from "effect/encoding/Base64";
6
3
  import * as EncodingError from "effect/encoding/EncodingError";
4
+ import { blake2b } from "./blake2b.js";
5
+ import { x25519, x25519PublicKey } from "./x25519.js";
6
+ import { hsalsaKey, secretbox } from "./xsalsa20poly1305.js";
7
7
 
8
8
  // src/internal/crypto.ts
9
9
  /** A sealed box opens with the recipient's key; the nonce is derived, not sent. */
@@ -1,11 +1,11 @@
1
+ import { Octokit } from "@octokit/core";
2
+ import { composePaginateRest } from "@octokit/plugin-paginate-rest";
3
+ import { Clock, Effect, Option, Redacted, Ref } from "effect";
1
4
  import { GitHubError, readRateLimitHeaders } from "../GitHubError.js";
2
5
  import { GitHubGraphQLError } from "../GraphQL.js";
3
6
  import { RateLimitSnapshot } from "../Resilience.js";
4
7
  import { rawRequestRefusal, refusedRequest, reservedParamReason, routeReason } from "./confinement.js";
5
8
  import { DOTCOM_API_BASE_URL, originOf } from "./uploads.js";
6
- import { Clock, Effect, Option, Redacted, Ref } from "effect";
7
- import { Octokit } from "@octokit/core";
8
- import { composePaginateRest } from "@octokit/plugin-paginate-rest";
9
9
 
10
10
  // src/internal/octokit.ts
11
11
  const SILENT_LOG = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/github",
3
- "version": "0.33.0",
3
+ "version": "0.34.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": [