@celestoai/sdk 0.1.0 → 0.1.1

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { ComputersClient } from \"./computers\";\nimport { GatekeeperClient } from \"./gatekeeper\";\nimport type { ClientConfig } from \"./core/config\";\n\nexport { GatekeeperClient } from \"./gatekeeper\";\nexport type {\n GatekeeperAccessRules,\n GatekeeperAccessRulesParams,\n GatekeeperAccessRulesUpdate,\n GatekeeperConnectRequest,\n GatekeeperConnectResponse,\n GatekeeperConnection,\n GatekeeperDriveFile,\n GatekeeperDriveListParams,\n GatekeeperDriveListResponse,\n GatekeeperListConnectionsParams,\n GatekeeperListConnectionsResponse,\n GatekeeperRevokeParams,\n GatekeeperRevokeResponse,\n} from \"./gatekeeper\";\nexport { ComputersClient } from \"./computers\";\nexport type {\n ComputerConnectionInfo,\n ComputerExecResponse,\n ComputerInfo,\n ComputerListResponse,\n ComputerStatus,\n CreateComputerParams,\n ExecParams,\n TerminalConnectionInfo,\n} from \"./computers\";\nexport type { ClientConfig, RequestOverrides } from \"./core/config\";\nexport { CelestoError, CelestoApiError, CelestoNetworkError } from \"./core/errors\";\n\nexport class Celesto {\n readonly gatekeeper: GatekeeperClient;\n readonly computers: ComputersClient;\n\n constructor(config: ClientConfig) {\n this.gatekeeper = new GatekeeperClient(config);\n this.computers = new ComputersClient(config);\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAkCO,IAAM,UAAN,MAAc;AAAA,EAInB,YAAY,QAAsB;AAChC,SAAK,aAAa,IAAI,iBAAiB,MAAM;AAC7C,SAAK,YAAY,IAAI,gBAAgB,MAAM;AAAA,EAC7C;AACF;","names":[]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@celestoai/sdk",
3
- "version": "0.1.0",
4
- "description": "Celesto SDK (Gatekeeper client)",
3
+ "version": "0.1.1",
4
+ "description": "Celesto SDK Gatekeeper and Computers clients for Node.js",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -17,6 +17,11 @@
17
17
  "types": "./dist/gatekeeper/index.d.ts",
18
18
  "import": "./dist/gatekeeper/index.js",
19
19
  "require": "./dist/gatekeeper/index.cjs"
20
+ },
21
+ "./computers": {
22
+ "types": "./dist/computers/index.d.ts",
23
+ "import": "./dist/computers/index.js",
24
+ "require": "./dist/computers/index.cjs"
20
25
  }
21
26
  },
22
27
  "files": [
@@ -32,10 +37,13 @@
32
37
  "scripts": {
33
38
  "build": "tsup",
34
39
  "dev": "tsup --watch",
35
- "lint": "tsc -p tsconfig.json --noEmit"
40
+ "lint": "tsc -p tsconfig.json --noEmit",
41
+ "test": "tsx --test tests/computers.test.ts"
36
42
  },
37
43
  "devDependencies": {
44
+ "@types/node": "^20.14.0",
38
45
  "tsup": "^8.0.2",
46
+ "tsx": "^4.19.0",
39
47
  "typescript": "^5.5.4"
40
48
  }
41
49
  }