@alpic-ai/sdk 0.0.0-dev.gefc16e2 → 0.0.0-dev.gf032af2
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/api/auth-scope.js +1 -0
- package/dist/api/auth-scope.js.map +1 -1
- package/dist/auth/api-key.d.ts +1 -0
- package/dist/auth/api-key.js +23 -0
- package/dist/auth/api-key.js.map +1 -0
- package/dist/auth/index.js +2 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/oauth-client.js +3 -2
- package/dist/auth/oauth-client.js.map +1 -1
- package/dist/auth/server/assets/authorize.html +1 -1
- package/dist/auth/store.js +1 -0
- package/dist/auth/store.js.map +1 -1
- package/dist/deploy/deployments.d.ts +4 -2
- package/dist/deploy/deployments.js +3 -2
- package/dist/deploy/deployments.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/emitter.js +5 -6
- package/dist/lib/emitter.js.map +1 -1
- package/dist/lib/errors.d.ts +3 -0
- package/dist/lib/errors.js +7 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/project/config.js +2 -0
- package/dist/project/config.js.map +1 -1
- package/dist/tunnel/tunnel.js +9 -19
- package/dist/tunnel/tunnel.js.map +1 -1
- package/dist/vendor/pipenet.js +76 -87
- package/dist/vendor/pipenet.js.map +4 -4
- package/dist/whoami.js +2 -1
- package/dist/whoami.js.map +1 -1
- package/package.json +11 -11
package/dist/whoami.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { readApiKeyFromEnv } from "./auth/api-key.js";
|
|
1
2
|
export async function whoami(auth, api) {
|
|
2
|
-
if (
|
|
3
|
+
if (readApiKeyFromEnv() !== undefined) {
|
|
3
4
|
const teams = await api.teams.list.v1();
|
|
4
5
|
return { method: "api_key", team: teams[0] };
|
|
5
6
|
}
|
package/dist/whoami.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whoami.js","sourceRoot":"","sources":["../src/whoami.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"whoami.js","sourceRoot":"","sources":["../src/whoami.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAUtD,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,IAAe,EAAE,GAAa;IACzD,IAAI,iBAAiB,EAAE,KAAK,SAAS,EAAE,CAAC;QACtC,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;QACxC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IACvC,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;AACzE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alpic-ai/sdk",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.gf032af2",
|
|
4
4
|
"description": "Programmatic SDK for Alpic (auth, API, tunnel)",
|
|
5
5
|
"homepage": "https://alpic.ai",
|
|
6
6
|
"repository": {
|
|
@@ -26,25 +26,25 @@
|
|
|
26
26
|
"author": "Alpic",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@orpc/client": "^1.
|
|
30
|
-
"@orpc/contract": "^1.
|
|
31
|
-
"@orpc/openapi-client": "^1.
|
|
29
|
+
"@orpc/client": "^1.15.0",
|
|
30
|
+
"@orpc/contract": "^1.15.0",
|
|
31
|
+
"@orpc/openapi-client": "^1.15.0",
|
|
32
32
|
"@t3-oss/env-core": "^0.13.11",
|
|
33
33
|
"env-paths": "^4.0.0",
|
|
34
34
|
"open": "^11.0.0",
|
|
35
35
|
"openid-client": "^6.8.4",
|
|
36
|
-
"tar": "^7.5.
|
|
36
|
+
"tar": "^7.5.22",
|
|
37
37
|
"zod": "^4.4.3",
|
|
38
|
-
"@alpic-ai/api": "0.0.0-dev.
|
|
38
|
+
"@alpic-ai/api": "0.0.0-dev.gf032af2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
42
|
-
"@types/node": "^25.9.
|
|
43
|
-
"esbuild": "^0.28.
|
|
42
|
+
"@types/node": "^25.9.5",
|
|
43
|
+
"esbuild": "^0.28.2",
|
|
44
44
|
"pipenet": "1.4.2",
|
|
45
45
|
"shx": "^0.4.0",
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
|
-
"vitest": "^4.1.
|
|
47
|
+
"vitest": "^4.1.10"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "shx rm -rf dist && tsc && pnpm run build:assets && node scripts/bundle-vendor.mjs",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"test": "pnpm run test:unit && pnpm run test:type && pnpm run test:format",
|
|
54
54
|
"test:unit": "vitest run",
|
|
55
55
|
"test:format": "biome check --error-on-warnings .",
|
|
56
|
-
"test:type": "
|
|
57
|
-
"publish:npm": "
|
|
56
|
+
"test:type": "tsgo --noEmit",
|
|
57
|
+
"publish:npm": "../../scripts/publish-if-new.sh"
|
|
58
58
|
}
|
|
59
59
|
}
|