@kosha-ai/server 0.6.0 → 0.7.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.
@@ -1 +1 @@
1
- {"version":3,"file":"run-query.dto.d.ts","sourceRoot":"","sources":["../../../src/query/dto/run-query.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,WAAW;IAStB,GAAG,EAAG,MAAM,CAAC;IAQb,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB"}
1
+ {"version":3,"file":"run-query.dto.d.ts","sourceRoot":"","sources":["../../../src/query/dto/run-query.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,WAAW;IAWtB,GAAG,EAAG,MAAM,CAAC;IASb,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB"}
@@ -7,9 +7,11 @@ export class RunQueryDto {
7
7
  }
8
8
  __decorate([
9
9
  ApiProperty({
10
- example: 'SELECT id, name FROM users WHERE id = $1',
11
- description: 'Run inside a read-only transaction that is always rolled back — a ' +
12
- 'write statement is rejected by the database itself.',
10
+ // No placeholders, so the example runs as-is on every query provider.
11
+ example: 'SELECT 1 AS ok',
12
+ description: 'Run read-only — a write statement is rejected by the database ' +
13
+ 'itself, not by Kosha parsing the SQL. How each provider enforces it ' +
14
+ 'is in its setup docs.',
13
15
  }),
14
16
  IsString(),
15
17
  MinLength(1),
@@ -17,8 +19,8 @@ __decorate([
17
19
  ], RunQueryDto.prototype, "sql", void 0);
18
20
  __decorate([
19
21
  ApiPropertyOptional({
20
- example: [42],
21
- description: 'Positional parameters for the SQL above, e.g. $1, $2.',
22
+ description: 'Positional parameters for the SQL above, e.g. $1, $2 — only for a ' +
23
+ 'provider that binds them (Postgres). ClickHouse refuses them.',
22
24
  }),
23
25
  IsOptional(),
24
26
  IsArray(),
@@ -43,9 +43,9 @@ __decorate([
43
43
  ApiOperation({
44
44
  summary: 'Run a read-only query against a connected provider',
45
45
  description: 'The environment comes from the API key. `owner` is the app’s own id ' +
46
- 'for the person who connected. Every call runs inside a read-only ' +
47
- 'transaction that is always rolled back — a write statement is ' +
48
- 'rejected by the database itself, not by Kosha parsing the SQL.',
46
+ 'for the person who connected. Every call runs read-only — a write ' +
47
+ 'statement is rejected by the database itself, not by Kosha parsing ' +
48
+ 'the SQL.',
49
49
  }),
50
50
  __param(0, Req()),
51
51
  __param(1, Param('provider')),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosha-ai/server",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Kosha server: OAuth handshake, encrypted credential storage, token refresh, and an authenticated request proxy for third-party integrations",
5
5
  "keywords": [
6
6
  "kosha",
@@ -109,7 +109,7 @@
109
109
  "rxjs": "^7.8.0",
110
110
  "tslib": "^2.3.0",
111
111
  "zod": "4.5.4",
112
- "@kosha-ai/integration-sdk": "0.6.0"
112
+ "@kosha-ai/integration-sdk": "0.7.0"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@nestjs/testing": "^11.0.0",
@@ -117,7 +117,7 @@
117
117
  "@types/node-forge": "^1.3.14",
118
118
  "@types/pg": "^8.23.1",
119
119
  "prisma": "^7.10.0",
120
- "@kosha-ai/integration-github": "0.6.0",
121
- "@kosha-ai/integration-slack": "0.6.0"
120
+ "@kosha-ai/integration-slack": "0.7.0",
121
+ "@kosha-ai/integration-github": "0.7.0"
122
122
  }
123
123
  }