@distilled.cloud/expo-eas 0.19.1 → 0.20.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/lib/credentials.d.ts +8 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +2 -2
- package/lib/credentials.js.map +1 -1
- package/lib/operations/accountCancelAllSubscriptionsImmediately.d.ts +1 -1
- package/lib/operations/accountCancelScheduledSubscriptionChange.d.ts +1 -1
- package/lib/operations/accountChangeAdditionalAgentCreditsCount.d.ts +1 -1
- package/lib/operations/accountChangeAdditionalConcurrenciesCount.d.ts +1 -1
- package/lib/operations/accountChangePlan.d.ts +1 -1
- package/lib/operations/accountGrantActorPermissions.d.ts +1 -1
- package/lib/operations/accountRemoveProfileImage.d.ts +1 -1
- package/lib/operations/accountRename.d.ts +1 -1
- package/lib/operations/accountRequestRefund.d.ts +1 -1
- package/lib/operations/accountRevokeActorPermissions.d.ts +1 -1
- package/lib/operations/accountSetDisplayName.d.ts +1 -1
- package/lib/operations/accountSetPushSecurityEnabled.d.ts +1 -1
- package/lib/operations/accountSetRequireTwoFactor.d.ts +1 -1
- package/lib/operations/accountSetUserSpecifiedAccountUsage.d.ts +1 -1
- package/lib/operations/appSetAppInfo.d.ts +1 -1
- package/lib/operations/appSetPushSecurityEnabled.d.ts +1 -1
- package/lib/operations/appSetResourceClassExperiment.d.ts +1 -1
- package/lib/operations/echoTurnCompleteTurn.d.ts +1 -1
- package/package.json +3 -3
- package/src/credentials.ts +2 -2
package/lib/credentials.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EAS (Expo Application Services) credentials.
|
|
3
|
+
*
|
|
4
|
+
* The EAS backend is a single GraphQL endpoint. Authentication is via a
|
|
5
|
+
* Personal/Organization Access Token issued from
|
|
6
|
+
* https://expo.dev/settings/access-tokens, sent as `Authorization: Bearer <token>`.
|
|
7
|
+
*/
|
|
8
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
1
9
|
import * as Context from "effect/Context";
|
|
2
10
|
import * as Layer from "effect/Layer";
|
|
3
11
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
5
12
|
/** Default EAS GraphQL host. The endpoint path (`/graphql`) is set per operation. */
|
|
6
13
|
export declare const DEFAULT_API_BASE_URL = "https://api.expo.dev";
|
|
7
14
|
export interface Config {
|
package/lib/credentials.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,qFAAqF;AACrF,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AASJ;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,8CAc9B,CAAC"}
|
package/lib/credentials.js
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Personal/Organization Access Token issued from
|
|
6
6
|
* https://expo.dev/settings/access-tokens, sent as `Authorization: Bearer <token>`.
|
|
7
7
|
*/
|
|
8
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
8
9
|
import * as EffectConfig from "effect/Config";
|
|
9
10
|
import * as Context from "effect/Context";
|
|
10
11
|
import * as Effect from "effect/Effect";
|
|
11
12
|
import * as Layer from "effect/Layer";
|
|
12
13
|
import * as Redacted from "effect/Redacted";
|
|
13
|
-
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
14
14
|
/** Default EAS GraphQL host. The endpoint path (`/graphql`) is set per operation. */
|
|
15
15
|
export const DEFAULT_API_BASE_URL = "https://api.expo.dev";
|
|
16
16
|
export class Credentials extends Context.Service()("EasCredentials") {
|
|
@@ -28,7 +28,7 @@ const envConfig = EffectConfig.all({
|
|
|
28
28
|
* https://api.expo.dev). Set to `https://staging-api.expo.dev` to target
|
|
29
29
|
* staging, mirroring eas-cli's `EXPO_STAGING=1` flag.
|
|
30
30
|
*/
|
|
31
|
-
export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.
|
|
31
|
+
export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.pipe(Effect.mapError(() => new ConfigError({
|
|
32
32
|
message: "EXPO_TOKEN environment variable is required",
|
|
33
33
|
})), Effect.map(({ accessToken, apiBaseUrl }) => ({
|
|
34
34
|
accessToken: Redacted.make(accessToken),
|
package/lib/credentials.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,qFAAqF;AACrF,MAAM,CAAC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAO3D,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,gBAAgB,CACjB;CAAG;AAEJ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC;IAC9C,UAAU,EAAE,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,IAAI,CAClD,YAAY,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAC/C;CACF,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,SAAS,CAAC,IAAI,CACZ,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;IACd,OAAO,EAAE,6CAA6C;CACvD,CAAC,CACL,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3C,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC;IACvC,UAAU;CACX,CAAC,CAAC,CACJ,CACF,CAAC"}
|
|
@@ -729,8 +729,8 @@ export declare const AccountCancelAllSubscriptionsImmediatelyOutput: Schema.Stru
|
|
|
729
729
|
}>;
|
|
730
730
|
export type AccountCancelAllSubscriptionsImmediatelyOutput = typeof AccountCancelAllSubscriptionsImmediatelyOutput.Type;
|
|
731
731
|
export declare const accountCancelAllSubscriptionsImmediately: import("@distilled.cloud/core/client").OperationMethod<{
|
|
732
|
-
readonly accountID: string;
|
|
733
732
|
readonly accountName?: string | null | undefined;
|
|
733
|
+
readonly accountID: string;
|
|
734
734
|
}, {
|
|
735
735
|
readonly accessTokens: readonly ({
|
|
736
736
|
readonly createdAt: string;
|
|
@@ -729,8 +729,8 @@ export declare const AccountCancelScheduledSubscriptionChangeOutput: Schema.Stru
|
|
|
729
729
|
}>;
|
|
730
730
|
export type AccountCancelScheduledSubscriptionChangeOutput = typeof AccountCancelScheduledSubscriptionChangeOutput.Type;
|
|
731
731
|
export declare const accountCancelScheduledSubscriptionChange: import("@distilled.cloud/core/client").OperationMethod<{
|
|
732
|
-
readonly accountID: string;
|
|
733
732
|
readonly accountName?: string | null | undefined;
|
|
733
|
+
readonly accountID: string;
|
|
734
734
|
}, {
|
|
735
735
|
readonly accessTokens: readonly ({
|
|
736
736
|
readonly createdAt: string;
|
|
@@ -730,8 +730,8 @@ export declare const AccountChangeAdditionalAgentCreditsCountOutput: Schema.Stru
|
|
|
730
730
|
}>;
|
|
731
731
|
export type AccountChangeAdditionalAgentCreditsCountOutput = typeof AccountChangeAdditionalAgentCreditsCountOutput.Type;
|
|
732
732
|
export declare const accountChangeAdditionalAgentCreditsCount: import("@distilled.cloud/core/client").OperationMethod<{
|
|
733
|
-
readonly accountID: string;
|
|
734
733
|
readonly accountName?: string | null | undefined;
|
|
734
|
+
readonly accountID: string;
|
|
735
735
|
readonly newAdditionalAgentCreditsCount: number;
|
|
736
736
|
}, {
|
|
737
737
|
readonly accessTokens: readonly ({
|
|
@@ -730,8 +730,8 @@ export declare const AccountChangeAdditionalConcurrenciesCountOutput: Schema.Str
|
|
|
730
730
|
}>;
|
|
731
731
|
export type AccountChangeAdditionalConcurrenciesCountOutput = typeof AccountChangeAdditionalConcurrenciesCountOutput.Type;
|
|
732
732
|
export declare const accountChangeAdditionalConcurrenciesCount: import("@distilled.cloud/core/client").OperationMethod<{
|
|
733
|
-
readonly accountID: string;
|
|
734
733
|
readonly accountName?: string | null | undefined;
|
|
734
|
+
readonly accountID: string;
|
|
735
735
|
readonly newAdditionalConcurrenciesCount: number;
|
|
736
736
|
}, {
|
|
737
737
|
readonly accessTokens: readonly ({
|
|
@@ -731,8 +731,8 @@ export declare const AccountChangePlanOutput: Schema.Struct<{
|
|
|
731
731
|
}>;
|
|
732
732
|
export type AccountChangePlanOutput = typeof AccountChangePlanOutput.Type;
|
|
733
733
|
export declare const accountChangePlan: import("@distilled.cloud/core/client").OperationMethod<{
|
|
734
|
-
readonly accountID: string;
|
|
735
734
|
readonly accountName?: string | null | undefined;
|
|
735
|
+
readonly accountID: string;
|
|
736
736
|
readonly couponCode?: string | null | undefined;
|
|
737
737
|
readonly newPlanIdentifier: string;
|
|
738
738
|
}, {
|
|
@@ -731,8 +731,8 @@ export declare const AccountGrantActorPermissionsOutput: Schema.Struct<{
|
|
|
731
731
|
}>;
|
|
732
732
|
export type AccountGrantActorPermissionsOutput = typeof AccountGrantActorPermissionsOutput.Type;
|
|
733
733
|
export declare const accountGrantActorPermissions: import("@distilled.cloud/core/client").OperationMethod<{
|
|
734
|
-
readonly accountID: string;
|
|
735
734
|
readonly accountName?: string | null | undefined;
|
|
735
|
+
readonly accountID: string;
|
|
736
736
|
readonly actorID: string;
|
|
737
737
|
readonly permissions?: readonly ("ADMIN" | "OWN" | "PUBLISH" | "VIEW" | null)[] | null | undefined;
|
|
738
738
|
}, {
|
|
@@ -729,8 +729,8 @@ export declare const AccountRemoveProfileImageOutput: Schema.Struct<{
|
|
|
729
729
|
}>;
|
|
730
730
|
export type AccountRemoveProfileImageOutput = typeof AccountRemoveProfileImageOutput.Type;
|
|
731
731
|
export declare const accountRemoveProfileImage: import("@distilled.cloud/core/client").OperationMethod<{
|
|
732
|
-
readonly accountID: string;
|
|
733
732
|
readonly accountName?: string | null | undefined;
|
|
733
|
+
readonly accountID: string;
|
|
734
734
|
}, {
|
|
735
735
|
readonly accessTokens: readonly ({
|
|
736
736
|
readonly createdAt: string;
|
|
@@ -730,8 +730,8 @@ export declare const AccountRenameOutput: Schema.Struct<{
|
|
|
730
730
|
}>;
|
|
731
731
|
export type AccountRenameOutput = typeof AccountRenameOutput.Type;
|
|
732
732
|
export declare const accountRename: import("@distilled.cloud/core/client").OperationMethod<{
|
|
733
|
-
readonly accountID: string;
|
|
734
733
|
readonly accountName?: string | null | undefined;
|
|
734
|
+
readonly accountID: string;
|
|
735
735
|
readonly newName: string;
|
|
736
736
|
}, {
|
|
737
737
|
readonly accessTokens: readonly ({
|
|
@@ -10,8 +10,8 @@ export type AccountRequestRefundInput = typeof AccountRequestRefundInput.Type;
|
|
|
10
10
|
export declare const AccountRequestRefundOutput: Schema.NullOr<Schema.Boolean>;
|
|
11
11
|
export type AccountRequestRefundOutput = typeof AccountRequestRefundOutput.Type;
|
|
12
12
|
export declare const accountRequestRefund: import("@distilled.cloud/core/client").OperationMethod<{
|
|
13
|
-
readonly accountID: string;
|
|
14
13
|
readonly accountName?: string | null | undefined;
|
|
14
|
+
readonly accountID: string;
|
|
15
15
|
readonly chargeID: string;
|
|
16
16
|
readonly description?: string | null | undefined;
|
|
17
17
|
readonly reason?: string | null | undefined;
|
|
@@ -731,8 +731,8 @@ export declare const AccountRevokeActorPermissionsOutput: Schema.Struct<{
|
|
|
731
731
|
}>;
|
|
732
732
|
export type AccountRevokeActorPermissionsOutput = typeof AccountRevokeActorPermissionsOutput.Type;
|
|
733
733
|
export declare const accountRevokeActorPermissions: import("@distilled.cloud/core/client").OperationMethod<{
|
|
734
|
-
readonly accountID: string;
|
|
735
734
|
readonly accountName?: string | null | undefined;
|
|
735
|
+
readonly accountID: string;
|
|
736
736
|
readonly actorID: string;
|
|
737
737
|
readonly permissions?: readonly ("ADMIN" | "OWN" | "PUBLISH" | "VIEW" | null)[] | null | undefined;
|
|
738
738
|
}, {
|
|
@@ -730,8 +730,8 @@ export declare const AccountSetDisplayNameOutput: Schema.Struct<{
|
|
|
730
730
|
}>;
|
|
731
731
|
export type AccountSetDisplayNameOutput = typeof AccountSetDisplayNameOutput.Type;
|
|
732
732
|
export declare const accountSetDisplayName: import("@distilled.cloud/core/client").OperationMethod<{
|
|
733
|
-
readonly accountID: string;
|
|
734
733
|
readonly accountName?: string | null | undefined;
|
|
734
|
+
readonly accountID: string;
|
|
735
735
|
readonly displayName: string;
|
|
736
736
|
}, {
|
|
737
737
|
readonly accessTokens: readonly ({
|
|
@@ -730,8 +730,8 @@ export declare const AccountSetPushSecurityEnabledOutput: Schema.Struct<{
|
|
|
730
730
|
}>;
|
|
731
731
|
export type AccountSetPushSecurityEnabledOutput = typeof AccountSetPushSecurityEnabledOutput.Type;
|
|
732
732
|
export declare const accountSetPushSecurityEnabled: import("@distilled.cloud/core/client").OperationMethod<{
|
|
733
|
-
readonly accountID: string;
|
|
734
733
|
readonly accountName?: string | null | undefined;
|
|
734
|
+
readonly accountID: string;
|
|
735
735
|
readonly pushSecurityEnabled: boolean;
|
|
736
736
|
}, {
|
|
737
737
|
readonly accessTokens: readonly ({
|
|
@@ -730,8 +730,8 @@ export declare const AccountSetRequireTwoFactorOutput: Schema.Struct<{
|
|
|
730
730
|
}>;
|
|
731
731
|
export type AccountSetRequireTwoFactorOutput = typeof AccountSetRequireTwoFactorOutput.Type;
|
|
732
732
|
export declare const accountSetRequireTwoFactor: import("@distilled.cloud/core/client").OperationMethod<{
|
|
733
|
-
readonly accountID: string;
|
|
734
733
|
readonly accountName?: string | null | undefined;
|
|
734
|
+
readonly accountID: string;
|
|
735
735
|
readonly requireTwoFactor: boolean;
|
|
736
736
|
}, {
|
|
737
737
|
readonly accessTokens: readonly ({
|
|
@@ -730,8 +730,8 @@ export declare const AccountSetUserSpecifiedAccountUsageOutput: Schema.Struct<{
|
|
|
730
730
|
}>;
|
|
731
731
|
export type AccountSetUserSpecifiedAccountUsageOutput = typeof AccountSetUserSpecifiedAccountUsageOutput.Type;
|
|
732
732
|
export declare const accountSetUserSpecifiedAccountUsage: import("@distilled.cloud/core/client").OperationMethod<{
|
|
733
|
-
readonly accountID: string;
|
|
734
733
|
readonly accountName?: string | null | undefined;
|
|
734
|
+
readonly accountID: string;
|
|
735
735
|
readonly userSpecifiedAccountUsage: "COMPANY" | "PERSONAL";
|
|
736
736
|
}, {
|
|
737
737
|
readonly accessTokens: readonly ({
|
|
@@ -691,10 +691,10 @@ export declare const AppSetAppInfoOutput: Schema.Struct<{
|
|
|
691
691
|
export type AppSetAppInfoOutput = typeof AppSetAppInfoOutput.Type;
|
|
692
692
|
export declare const appSetAppInfo: import("@distilled.cloud/core/client").OperationMethod<{
|
|
693
693
|
readonly appId?: string | null | undefined;
|
|
694
|
+
readonly setAppInfoAppId: string;
|
|
694
695
|
readonly appInfo: {
|
|
695
696
|
readonly displayName?: string | null | undefined;
|
|
696
697
|
};
|
|
697
|
-
readonly setAppInfoAppId: string;
|
|
698
698
|
}, {
|
|
699
699
|
readonly accessTokens: readonly ({
|
|
700
700
|
readonly createdAt: string;
|
|
@@ -689,8 +689,8 @@ export declare const AppSetPushSecurityEnabledOutput: Schema.Struct<{
|
|
|
689
689
|
export type AppSetPushSecurityEnabledOutput = typeof AppSetPushSecurityEnabledOutput.Type;
|
|
690
690
|
export declare const appSetPushSecurityEnabled: import("@distilled.cloud/core/client").OperationMethod<{
|
|
691
691
|
readonly appId?: string | null | undefined;
|
|
692
|
-
readonly pushSecurityEnabled: boolean;
|
|
693
692
|
readonly setPushSecurityEnabledAppId: string;
|
|
693
|
+
readonly pushSecurityEnabled: boolean;
|
|
694
694
|
}, {
|
|
695
695
|
readonly accessTokens: readonly ({
|
|
696
696
|
readonly createdAt: string;
|
|
@@ -689,8 +689,8 @@ export declare const AppSetResourceClassExperimentOutput: Schema.Struct<{
|
|
|
689
689
|
export type AppSetResourceClassExperimentOutput = typeof AppSetResourceClassExperimentOutput.Type;
|
|
690
690
|
export declare const appSetResourceClassExperiment: import("@distilled.cloud/core/client").OperationMethod<{
|
|
691
691
|
readonly appId?: string | null | undefined;
|
|
692
|
-
readonly resourceClassExperiment?: "C3D" | "N2" | null | undefined;
|
|
693
692
|
readonly setResourceClassExperimentAppId: string;
|
|
693
|
+
readonly resourceClassExperiment?: "C3D" | "N2" | null | undefined;
|
|
694
694
|
}, {
|
|
695
695
|
readonly accessTokens: readonly ({
|
|
696
696
|
readonly createdAt: string;
|
|
@@ -110,8 +110,8 @@ export declare const echoTurnCompleteTurn: import("@distilled.cloud/core/client"
|
|
|
110
110
|
readonly cacheWrite?: number | null | undefined;
|
|
111
111
|
readonly cacheWriteBreakdown?: {
|
|
112
112
|
readonly ttl1h?: number | null | undefined;
|
|
113
|
-
readonly ttl24h?: number | null | undefined;
|
|
114
113
|
readonly ttl5m?: number | null | undefined;
|
|
114
|
+
readonly ttl24h?: number | null | undefined;
|
|
115
115
|
} | null | undefined;
|
|
116
116
|
readonly input: number;
|
|
117
117
|
readonly output: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/expo-eas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"specs:update": "git -C specs/eas-cli fetch && git -C specs/eas-cli checkout main && git -C specs/eas-cli pull && git -C specs/expo fetch && git -C specs/expo checkout main && git -C specs/expo pull"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@distilled.cloud/core": "0.
|
|
76
|
+
"@distilled.cloud/core": "0.20.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/bun": "^1.3.0",
|
|
@@ -82,6 +82,6 @@
|
|
|
82
82
|
"vitest": "^3.2.3"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"effect": ">=4.0.0-beta.
|
|
85
|
+
"effect": ">=4.0.0-beta.66 || >=4.0.0"
|
|
86
86
|
}
|
|
87
87
|
}
|
package/src/credentials.ts
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Personal/Organization Access Token issued from
|
|
6
6
|
* https://expo.dev/settings/access-tokens, sent as `Authorization: Bearer <token>`.
|
|
7
7
|
*/
|
|
8
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
8
9
|
import * as EffectConfig from "effect/Config";
|
|
9
10
|
import * as Context from "effect/Context";
|
|
10
11
|
import * as Effect from "effect/Effect";
|
|
11
12
|
import * as Layer from "effect/Layer";
|
|
12
13
|
import * as Redacted from "effect/Redacted";
|
|
13
|
-
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
14
14
|
|
|
15
15
|
/** Default EAS GraphQL host. The endpoint path (`/graphql`) is set per operation. */
|
|
16
16
|
export const DEFAULT_API_BASE_URL = "https://api.expo.dev";
|
|
@@ -42,7 +42,7 @@ const envConfig = EffectConfig.all({
|
|
|
42
42
|
*/
|
|
43
43
|
export const CredentialsFromEnv = Layer.effect(
|
|
44
44
|
Credentials,
|
|
45
|
-
envConfig.
|
|
45
|
+
envConfig.pipe(
|
|
46
46
|
Effect.mapError(
|
|
47
47
|
() =>
|
|
48
48
|
new ConfigError({
|