@barekey/sdk 0.1.2 → 0.1.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.
- package/README.md +9 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/internal/node-runtime.d.ts +2 -1
- package/dist/internal/node-runtime.d.ts.map +1 -1
- package/dist/internal/node-runtime.js +7 -4
- package/dist/internal/public-runtime.d.ts +14 -0
- package/dist/internal/public-runtime.d.ts.map +1 -0
- package/dist/internal/public-runtime.js +78 -0
- package/dist/internal/typegen.d.ts +5 -0
- package/dist/internal/typegen.d.ts.map +1 -1
- package/dist/internal/typegen.js +41 -10
- package/dist/public-client.d.ts +36 -0
- package/dist/public-client.d.ts.map +1 -0
- package/dist/public-client.js +150 -0
- package/dist/public-types.d.ts +26 -0
- package/dist/public-types.d.ts.map +1 -0
- package/dist/public-types.js +1 -0
- package/dist/public.d.ts +6 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.js +3 -0
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +3 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/generated.public.d.ts +8 -0
- package/{generated.d.ts → generated.server.d.ts} +8 -2
- package/index.d.ts +0 -1
- package/package.json +18 -3
- package/public.d.ts +2 -0
- package/server.d.ts +2 -0
- package/src/index.ts +7 -0
- package/src/internal/node-runtime.ts +9 -5
- package/src/internal/public-runtime.ts +123 -0
- package/src/internal/typegen.ts +63 -10
- package/src/public-client.ts +229 -0
- package/src/public-types.ts +57 -0
- package/src/public.ts +69 -0
- package/src/server.ts +60 -0
- package/src/types.ts +2 -0
package/src/public.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export { PublicBarekeyClient } from "./public-client.js";
|
|
2
|
+
export { BarekeyEnvHandle } from "./handle.js";
|
|
3
|
+
export {
|
|
4
|
+
BarekeyError,
|
|
5
|
+
BillingUnavailableError,
|
|
6
|
+
CoerceFailedError,
|
|
7
|
+
DeviceCodeExpiredError,
|
|
8
|
+
DeviceCodeNotFoundError,
|
|
9
|
+
EvaluationFailedError,
|
|
10
|
+
FsNotAvailableError,
|
|
11
|
+
InvalidConfigurationProvidedError,
|
|
12
|
+
InvalidCredentialsProvidedError,
|
|
13
|
+
InvalidDynamicOptionsError,
|
|
14
|
+
InvalidJsonError,
|
|
15
|
+
InvalidOrgScopeError,
|
|
16
|
+
InvalidRefreshTokenError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
NetworkError,
|
|
19
|
+
NoConfigurationProvidedError,
|
|
20
|
+
NoCredentialsProvidedError,
|
|
21
|
+
OrgScopeInvalidError,
|
|
22
|
+
RequirementsValidationFailedError,
|
|
23
|
+
SdkModuleNotFoundError,
|
|
24
|
+
TemporalNotAvailableError,
|
|
25
|
+
TypegenReadFailedError,
|
|
26
|
+
TypegenUnsupportedSdkError,
|
|
27
|
+
TypegenWriteFailedError,
|
|
28
|
+
UnauthorizedError,
|
|
29
|
+
UnknownError,
|
|
30
|
+
UsageLimitExceededError,
|
|
31
|
+
UserCodeInvalidError,
|
|
32
|
+
VariableNotFoundError,
|
|
33
|
+
createBarekeyErrorFromCode,
|
|
34
|
+
docsUrlForErrorCode,
|
|
35
|
+
formatBarekeyErrorMessage,
|
|
36
|
+
isBarekeyErrorCode,
|
|
37
|
+
normalizeErrorCode,
|
|
38
|
+
} from "./errors.js";
|
|
39
|
+
|
|
40
|
+
export type {
|
|
41
|
+
AB,
|
|
42
|
+
BarekeyCoerceTarget,
|
|
43
|
+
BarekeyDeclaredType,
|
|
44
|
+
BarekeyDecision,
|
|
45
|
+
BarekeyErrorCode,
|
|
46
|
+
BarekeyEvaluatedValue,
|
|
47
|
+
BarekeyGetOptions,
|
|
48
|
+
BarekeyJsonConfig,
|
|
49
|
+
BarekeyResolvedKind,
|
|
50
|
+
BarekeyRolloutFunction,
|
|
51
|
+
BarekeyRolloutMatchedRule,
|
|
52
|
+
BarekeyRolloutMilestone,
|
|
53
|
+
BarekeyStandardSchemaV1,
|
|
54
|
+
BarekeyTemporalInstant,
|
|
55
|
+
BarekeyTemporalInstantLike,
|
|
56
|
+
BarekeyTtlInput,
|
|
57
|
+
BarekeyVariableDefinition,
|
|
58
|
+
EaseInOut,
|
|
59
|
+
Env,
|
|
60
|
+
Linear,
|
|
61
|
+
Secret,
|
|
62
|
+
Step,
|
|
63
|
+
} from "./types.js";
|
|
64
|
+
|
|
65
|
+
export type {
|
|
66
|
+
BarekeyPublicGeneratedTypeMap,
|
|
67
|
+
BarekeyPublicKnownKey,
|
|
68
|
+
PublicBarekeyClientOptions,
|
|
69
|
+
} from "./public-types.js";
|
package/src/server.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export { BarekeyClient } from "./client.js";
|
|
2
|
+
export { BarekeyEnvHandle } from "./handle.js";
|
|
3
|
+
export {
|
|
4
|
+
BarekeyError,
|
|
5
|
+
BillingUnavailableError,
|
|
6
|
+
CoerceFailedError,
|
|
7
|
+
DeviceCodeExpiredError,
|
|
8
|
+
DeviceCodeNotFoundError,
|
|
9
|
+
EvaluationFailedError,
|
|
10
|
+
FsNotAvailableError,
|
|
11
|
+
InvalidConfigurationProvidedError,
|
|
12
|
+
InvalidCredentialsProvidedError,
|
|
13
|
+
InvalidDynamicOptionsError,
|
|
14
|
+
InvalidJsonError,
|
|
15
|
+
InvalidOrgScopeError,
|
|
16
|
+
InvalidRefreshTokenError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
NetworkError,
|
|
19
|
+
NoConfigurationProvidedError,
|
|
20
|
+
NoCredentialsProvidedError,
|
|
21
|
+
OrgScopeInvalidError,
|
|
22
|
+
RequirementsValidationFailedError,
|
|
23
|
+
SdkModuleNotFoundError,
|
|
24
|
+
TemporalNotAvailableError,
|
|
25
|
+
TypegenReadFailedError,
|
|
26
|
+
TypegenUnsupportedSdkError,
|
|
27
|
+
TypegenWriteFailedError,
|
|
28
|
+
UnauthorizedError,
|
|
29
|
+
UnknownError,
|
|
30
|
+
UsageLimitExceededError,
|
|
31
|
+
UserCodeInvalidError,
|
|
32
|
+
VariableNotFoundError,
|
|
33
|
+
createBarekeyErrorFromCode,
|
|
34
|
+
docsUrlForErrorCode,
|
|
35
|
+
formatBarekeyErrorMessage,
|
|
36
|
+
isBarekeyErrorCode,
|
|
37
|
+
normalizeErrorCode,
|
|
38
|
+
} from "./errors.js";
|
|
39
|
+
|
|
40
|
+
export type {
|
|
41
|
+
AB,
|
|
42
|
+
BarekeyClientOptions,
|
|
43
|
+
BarekeyCoerceTarget,
|
|
44
|
+
BarekeyDeclaredType,
|
|
45
|
+
BarekeyErrorCode,
|
|
46
|
+
BarekeyGeneratedTypeMap,
|
|
47
|
+
BarekeyGetOptions,
|
|
48
|
+
BarekeyJsonConfig,
|
|
49
|
+
BarekeyKnownKey,
|
|
50
|
+
BarekeyResolvedKind,
|
|
51
|
+
BarekeyRolloutMilestone,
|
|
52
|
+
BarekeyStandardSchemaV1,
|
|
53
|
+
BarekeyTemporalInstant,
|
|
54
|
+
BarekeyTemporalInstantLike,
|
|
55
|
+
BarekeyTtlInput,
|
|
56
|
+
BarekeyTypegenResult,
|
|
57
|
+
Env,
|
|
58
|
+
Linear,
|
|
59
|
+
Secret,
|
|
60
|
+
} from "./types.js";
|