@xemahq/org-database-pool-internal-api-client 0.3.8 → 0.3.11

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.
@@ -5,10 +5,23 @@
5
5
  */
6
6
  import type { DescribeAdminSchemaTableDtoAudience } from './describeAdminSchemaTableDtoAudience.js';
7
7
  export interface DescribeAdminSchemaTableDto {
8
+ /**
9
+ * @minLength 1
10
+ * @maxLength 128
11
+ */
8
12
  orgId: string;
13
+ /**
14
+ * @minLength 1
15
+ * @maxLength 128
16
+ */
9
17
  schemaId: string;
10
18
  audience: DescribeAdminSchemaTableDtoAudience;
11
- /** Caller-scoped, single-writer command id. */
19
+ /**
20
+ * Caller-scoped, single-writer command id.
21
+ * @minLength 8
22
+ * @maxLength 128
23
+ */
12
24
  operationId: string;
25
+ /** @maxLength 63 */
13
26
  table: string;
14
27
  }
@@ -6,14 +6,28 @@
6
6
  import type { InsertAdminSchemaRowsDtoAudience } from './insertAdminSchemaRowsDtoAudience.js';
7
7
  import type { InsertAdminSchemaRowsDtoRowsItem } from './insertAdminSchemaRowsDtoRowsItem.js';
8
8
  export interface InsertAdminSchemaRowsDto {
9
+ /**
10
+ * @minLength 1
11
+ * @maxLength 128
12
+ */
9
13
  orgId: string;
14
+ /**
15
+ * @minLength 1
16
+ * @maxLength 128
17
+ */
10
18
  schemaId: string;
11
19
  audience: InsertAdminSchemaRowsDtoAudience;
12
- /** Caller-scoped, single-writer command id. */
20
+ /**
21
+ * Caller-scoped, single-writer command id.
22
+ * @minLength 8
23
+ * @maxLength 128
24
+ */
13
25
  operationId: string;
26
+ /** @maxLength 63 */
14
27
  table: string;
15
28
  /**
16
29
  * Rows inserted with ON CONFLICT (id) DO NOTHING. Every row must include id.
30
+ * @minItems 1
17
31
  * @maxItems 500
18
32
  */
19
33
  rows: InsertAdminSchemaRowsDtoRowsItem[];
@@ -6,16 +6,32 @@
6
6
  import type { IssueAdminSchemaLeaseDtoAudience } from './issueAdminSchemaLeaseDtoAudience.js';
7
7
  import type { IssueAdminSchemaLeaseDtoOperationsItem } from './issueAdminSchemaLeaseDtoOperationsItem.js';
8
8
  export interface IssueAdminSchemaLeaseDto {
9
+ /**
10
+ * @minLength 1
11
+ * @maxLength 128
12
+ */
9
13
  orgId: string;
10
- /** Registered OrgSchema id. Schema names are never caller-authoritative. */
14
+ /**
15
+ * Registered OrgSchema id. Schema names are never caller-authoritative.
16
+ * @minLength 1
17
+ * @maxLength 128
18
+ */
11
19
  schemaId: string;
12
20
  audience: IssueAdminSchemaLeaseDtoAudience;
21
+ /**
22
+ * @minItems 1
23
+ * @maxItems 4
24
+ */
13
25
  operations: IssueAdminSchemaLeaseDtoOperationsItem[];
14
26
  /**
15
27
  * @minimum 30
16
28
  * @maximum 900
17
29
  */
18
30
  ttlSeconds: number;
19
- /** Caller-scoped key. Reuse with a different request is rejected. */
31
+ /**
32
+ * Caller-scoped key. Reuse with a different request is rejected.
33
+ * @minLength 8
34
+ * @maxLength 128
35
+ */
20
36
  idempotencyKey: string;
21
37
  }
@@ -4,11 +4,16 @@
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
6
  export interface MintConnectionDto {
7
+ /** @minLength 1 */
7
8
  databaseId: string;
8
- /** @maxLength 63 */
9
+ /**
10
+ * @minLength 1
11
+ * @maxLength 63
12
+ */
9
13
  schemaName: string;
10
14
  /**
11
15
  * One of the schema access roles reported by the pool. Never derived by the caller.
16
+ * @minLength 1
12
17
  * @maxLength 63
13
18
  */
14
19
  roleName: string;
@@ -6,14 +6,28 @@
6
6
  import type { ReconcileAdminSchemaRowsDtoAudience } from './reconcileAdminSchemaRowsDtoAudience.js';
7
7
  import type { ReconcileAdminSchemaRowsDtoRowsItem } from './reconcileAdminSchemaRowsDtoRowsItem.js';
8
8
  export interface ReconcileAdminSchemaRowsDto {
9
+ /**
10
+ * @minLength 1
11
+ * @maxLength 128
12
+ */
9
13
  orgId: string;
14
+ /**
15
+ * @minLength 1
16
+ * @maxLength 128
17
+ */
10
18
  schemaId: string;
11
19
  audience: ReconcileAdminSchemaRowsDtoAudience;
12
- /** Caller-scoped, single-writer command id. */
20
+ /**
21
+ * Caller-scoped, single-writer command id.
22
+ * @minLength 8
23
+ * @maxLength 128
24
+ */
13
25
  operationId: string;
26
+ /** @maxLength 63 */
14
27
  table: string;
15
28
  /**
16
29
  * Authoritative migration rows. Missing rows are inserted; existing rows are replaced only when their version is not newer. Every row must include id and version.
30
+ * @minItems 1
17
31
  * @maxItems 500
18
32
  */
19
33
  rows: ReconcileAdminSchemaRowsDtoRowsItem[];
@@ -5,9 +5,21 @@
5
5
  */
6
6
  import type { RevokeAdminSchemaLeaseDtoAudience } from './revokeAdminSchemaLeaseDtoAudience.js';
7
7
  export interface RevokeAdminSchemaLeaseDto {
8
+ /**
9
+ * @minLength 1
10
+ * @maxLength 128
11
+ */
8
12
  orgId: string;
13
+ /**
14
+ * @minLength 1
15
+ * @maxLength 128
16
+ */
9
17
  schemaId: string;
10
18
  audience: RevokeAdminSchemaLeaseDtoAudience;
11
- /** Caller-scoped, single-writer command id. */
19
+ /**
20
+ * Caller-scoped, single-writer command id.
21
+ * @minLength 8
22
+ * @maxLength 128
23
+ */
12
24
  operationId: string;
13
25
  }
@@ -5,15 +5,34 @@
5
5
  */
6
6
  import type { ScanAdminSchemaRowsDtoAudience } from './scanAdminSchemaRowsDtoAudience.js';
7
7
  export interface ScanAdminSchemaRowsDto {
8
+ /**
9
+ * @minLength 1
10
+ * @maxLength 128
11
+ */
8
12
  orgId: string;
13
+ /**
14
+ * @minLength 1
15
+ * @maxLength 128
16
+ */
9
17
  schemaId: string;
10
18
  audience: ScanAdminSchemaRowsDtoAudience;
11
- /** Caller-scoped, single-writer command id. */
19
+ /**
20
+ * Caller-scoped, single-writer command id.
21
+ * @minLength 8
22
+ * @maxLength 128
23
+ */
12
24
  operationId: string;
25
+ /** @maxLength 63 */
13
26
  table: string;
14
- /** @maxItems 128 */
27
+ /**
28
+ * @minItems 1
29
+ * @maxItems 128
30
+ */
15
31
  columns: string[];
16
- /** @nullable */
32
+ /**
33
+ * @maxLength 256
34
+ * @nullable
35
+ */
17
36
  afterId?: string | null;
18
37
  /**
19
38
  * @minimum 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/org-database-pool-internal-api-client",
3
- "version": "0.3.8",
3
+ "version": "0.3.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/xema-dev/xema-base.git",
@@ -24,10 +24,34 @@
24
24
  "service": "org-database-pool-api",
25
25
  "biome": "org-database-pool",
26
26
  "target": "server",
27
- "generator": "@xemahq/api-client-generator@0.15.2",
27
+ "generator": "@xemahq/api-client-generator@0.19.0",
28
28
  "source": "openapi.internal.json"
29
29
  },
30
30
  "license": "LicenseRef-Xema-BSL-1.1",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "default": "./dist/index.js"
35
+ },
36
+ "./models": {
37
+ "types": "./dist/models/index.d.ts",
38
+ "default": "./dist/models/index.js"
39
+ },
40
+ "./models/*": {
41
+ "types": "./dist/models/*.d.ts",
42
+ "default": "./dist/models/*.js"
43
+ },
44
+ "./endpoints/*": {
45
+ "types": "./dist/endpoints/*.d.ts",
46
+ "default": "./dist/endpoints/*.js"
47
+ },
48
+ "./custom-fetch": {
49
+ "types": "./dist/custom-fetch.d.ts",
50
+ "default": "./dist/custom-fetch.js"
51
+ },
52
+ "./package.json": "./package.json"
53
+ },
54
+ "sideEffects": false,
31
55
  "scripts": {
32
56
  "build": "tsc -p tsconfig.json"
33
57
  }