@runpod/typescript-api-sdk 0.3.0 → 0.5.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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // node_modules/.pnpm/openapi-fetch@0.17.0/node_modules/openapi-fetch/dist/index.mjs
1
+ // ../../node_modules/.pnpm/openapi-fetch@0.17.0/node_modules/openapi-fetch/dist/index.mjs
2
2
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
3
3
  var supportsRequestInitExt = () => {
4
4
  return typeof process === "object" && Number.parseInt(process?.versions?.node?.substring(0, 2)) >= 18 && process.versions.undici;
@@ -474,7 +474,7 @@ function removeTrailingSlash(url) {
474
474
  return url;
475
475
  }
476
476
 
477
- // node_modules/.pnpm/structured-headers@2.1.0/node_modules/structured-headers/dist/util.js
477
+ // ../../node_modules/.pnpm/structured-headers@2.1.1/node_modules/structured-headers/dist/util.js
478
478
  var asciiRe = /^[\x20-\x7E]*$/;
479
479
  var tokenRe = /^[a-zA-Z*][:/!#$%&'*+\-.^_`|~A-Za-z0-9]*$/;
480
480
  function isAscii(str) {
@@ -493,7 +493,7 @@ function base64ToArrayBuffer(b64) {
493
493
  return bytes.buffer;
494
494
  }
495
495
 
496
- // node_modules/.pnpm/structured-headers@2.1.0/node_modules/structured-headers/dist/token.js
496
+ // ../../node_modules/.pnpm/structured-headers@2.1.1/node_modules/structured-headers/dist/token.js
497
497
  var Token = class {
498
498
  constructor(value) {
499
499
  if (!isValidTokenStr(value)) {
@@ -506,7 +506,7 @@ var Token = class {
506
506
  }
507
507
  };
508
508
 
509
- // node_modules/.pnpm/structured-headers@2.1.0/node_modules/structured-headers/dist/displaystring.js
509
+ // ../../node_modules/.pnpm/structured-headers@2.1.1/node_modules/structured-headers/dist/displaystring.js
510
510
  var DisplayString = class {
511
511
  constructor(value) {
512
512
  this.value = value;
@@ -516,7 +516,7 @@ var DisplayString = class {
516
516
  }
517
517
  };
518
518
 
519
- // node_modules/.pnpm/structured-headers@2.1.0/node_modules/structured-headers/dist/parser.js
519
+ // ../../node_modules/.pnpm/structured-headers@2.1.1/node_modules/structured-headers/dist/parser.js
520
520
  function parseList(input) {
521
521
  const parser = new Parser(input);
522
522
  return parser.parseList();
@@ -578,10 +578,7 @@ var Parser = class {
578
578
  parseItem(standaloneItem = true) {
579
579
  if (standaloneItem)
580
580
  this.skipWS();
581
- const result = [
582
- this.parseBareItem(),
583
- this.parseParameters()
584
- ];
581
+ const result = [this.parseBareItem(), this.parseParameters()];
585
582
  if (standaloneItem)
586
583
  this.checkTrail();
587
584
  return result;
@@ -601,10 +598,7 @@ var Parser = class {
601
598
  this.skipWS();
602
599
  if (this.lookChar() === ")") {
603
600
  this.pos++;
604
- return [
605
- innerList,
606
- this.parseParameters()
607
- ];
601
+ return [innerList, this.parseParameters()];
608
602
  }
609
603
  innerList.push(this.parseItem(false));
610
604
  const nextChar = this.lookChar();
@@ -1201,7 +1195,6 @@ var LogEventParser = class {
1201
1195
  constructor(maxEventBytes) {
1202
1196
  this.maxEventBytes = maxEventBytes;
1203
1197
  }
1204
- maxEventBytes;
1205
1198
  line = "";
1206
1199
  dataLines = [];
1207
1200
  eventName = "";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@runpod/typescript-api-sdk",
3
- "version": "0.3.0",
4
- "description": "TypeScript SDK for the RunPod v2 REST API, generated from the OpenAPI spec",
3
+ "version": "0.5.0",
4
+ "description": "TypeScript SDK for the Runpod v2 REST API, generated from the OpenAPI spec",
5
5
  "license": "MIT",
6
6
  "homepage": "https://api.runpod.io/v2/docs",
7
7
  "keywords": [
@@ -38,39 +38,33 @@
38
38
  "engines": {
39
39
  "node": ">=20"
40
40
  },
41
- "scripts": {
42
- "generate": "node scripts/generate.mjs",
43
- "build": "tsup",
44
- "test": "vitest run",
45
- "typecheck": "tsc --noEmit",
46
- "generate:check": "node scripts/generate.mjs --check",
47
- "spec:check": "python3 scripts/sync_spec.py --check",
48
- "spec:pull": "python3 scripts/sync_spec.py",
49
- "test:spec": "python3 -m unittest discover -s scripts -p \"test_*.py\"",
50
- "test:scripts": "node --test scripts/test_query_contract.mjs",
51
- "prepack": "npm run build",
52
- "test:package": "node scripts/check_package.mjs",
53
- "test:examples": "node --test scripts/test_examples.mjs",
54
- "changeset": "changeset",
55
- "changeset:status": "changeset status",
56
- "changeset:version": "changeset version && pnpm install --lockfile-only --ignore-scripts",
57
- "test:release": "node --test scripts/test_release.mjs"
58
- },
59
41
  "dependencies": {
60
42
  "openapi-fetch": "^0.17.0",
61
43
  "structured-headers": "^2.1.0"
62
44
  },
63
45
  "devDependencies": {
64
- "@changesets/cli": "^2.31.1",
65
46
  "@types/node": "^24.0.0",
66
47
  "openapi-typescript": "^7.13.0",
67
48
  "tsup": "^8.5.1",
68
49
  "typescript": "^5.9.0",
69
50
  "vitest": "^4.1.10"
70
51
  },
71
- "packageManager": "pnpm@11.0.0",
72
52
  "repository": {
73
53
  "type": "git",
74
- "url": "git+https://github.com/runpod/typescript-api-sdk.git"
54
+ "url": "git+https://github.com/runpod/runpod-mcp.git",
55
+ "directory": "packages/typescript-api-sdk"
56
+ },
57
+ "scripts": {
58
+ "generate": "node scripts/generate.mjs",
59
+ "build": "tsup",
60
+ "test": "vitest run",
61
+ "typecheck": "tsc --noEmit",
62
+ "generate:check": "node scripts/generate.mjs --check",
63
+ "spec:check": "python3 scripts/sync_spec.py --check",
64
+ "spec:pull": "python3 scripts/sync_spec.py",
65
+ "test:spec": "python3 -m unittest discover -s scripts -p \"test_*.py\"",
66
+ "test:scripts": "node --test scripts/test_query_contract.mjs",
67
+ "test:package": "node scripts/check_package.mjs",
68
+ "test:examples": "node --test scripts/test_examples.mjs"
75
69
  }
76
- }
70
+ }