@xemahq/org-database-pool-internal-api-client 0.1.0 → 0.2.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.
Files changed (77) hide show
  1. package/README.md +62 -0
  2. package/dist/custom-fetch.d.ts +1 -1
  3. package/dist/custom-fetch.js +1 -1
  4. package/dist/endpoints/admin-schema-access/admin-schema-access.d.ts +38 -0
  5. package/dist/endpoints/admin-schema-access/admin-schema-access.js +100 -0
  6. package/dist/endpoints/connections/connections.d.ts +2 -2
  7. package/dist/endpoints/connections/connections.js +3 -3
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.js +1 -0
  10. package/dist/models/adminSchemaColumnDto.d.ts +12 -0
  11. package/dist/models/adminSchemaColumnDto.js +9 -0
  12. package/dist/models/adminSchemaLeaseResponseDto.d.ts +18 -0
  13. package/dist/models/adminSchemaLeaseResponseDto.js +2 -0
  14. package/dist/models/adminSchemaLeaseResponseDtoAudience.d.ts +11 -0
  15. package/dist/models/adminSchemaLeaseResponseDtoAudience.js +13 -0
  16. package/dist/models/adminSchemaLeaseResponseDtoDataEnvelope.d.ts +11 -0
  17. package/dist/models/adminSchemaLeaseResponseDtoDataEnvelope.js +2 -0
  18. package/dist/models/adminSchemaLeaseResponseDtoOperationsItem.d.ts +14 -0
  19. package/dist/models/adminSchemaLeaseResponseDtoOperationsItem.js +16 -0
  20. package/dist/models/describeAdminSchemaTableDto.d.ts +16 -0
  21. package/dist/models/describeAdminSchemaTableDto.js +2 -0
  22. package/dist/models/describeAdminSchemaTableDtoAudience.d.ts +11 -0
  23. package/dist/models/describeAdminSchemaTableDtoAudience.js +13 -0
  24. package/dist/models/describeAdminSchemaTableResponseDto.d.ts +12 -0
  25. package/dist/models/describeAdminSchemaTableResponseDto.js +2 -0
  26. package/dist/models/describeAdminSchemaTableResponseDtoDataEnvelope.d.ts +11 -0
  27. package/dist/models/describeAdminSchemaTableResponseDtoDataEnvelope.js +2 -0
  28. package/dist/models/index.d.ts +31 -0
  29. package/dist/models/index.js +31 -0
  30. package/dist/models/insertAdminSchemaRowsDto.d.ts +22 -0
  31. package/dist/models/insertAdminSchemaRowsDto.js +2 -0
  32. package/dist/models/insertAdminSchemaRowsDtoAudience.d.ts +11 -0
  33. package/dist/models/insertAdminSchemaRowsDtoAudience.js +13 -0
  34. package/dist/models/insertAdminSchemaRowsDtoRowsItem.d.ts +10 -0
  35. package/dist/models/insertAdminSchemaRowsDtoRowsItem.js +9 -0
  36. package/dist/models/insertAdminSchemaRowsResponseDto.d.ts +10 -0
  37. package/dist/models/insertAdminSchemaRowsResponseDto.js +9 -0
  38. package/dist/models/insertAdminSchemaRowsResponseDtoDataEnvelope.d.ts +11 -0
  39. package/dist/models/insertAdminSchemaRowsResponseDtoDataEnvelope.js +2 -0
  40. package/dist/models/issueAdminSchemaLeaseDto.d.ts +23 -0
  41. package/dist/models/issueAdminSchemaLeaseDto.js +2 -0
  42. package/dist/models/issueAdminSchemaLeaseDtoAudience.d.ts +11 -0
  43. package/dist/models/issueAdminSchemaLeaseDtoAudience.js +13 -0
  44. package/dist/models/issueAdminSchemaLeaseDtoOperationsItem.d.ts +14 -0
  45. package/dist/models/issueAdminSchemaLeaseDtoOperationsItem.js +16 -0
  46. package/dist/models/mintConnectionDto.d.ts +11 -2
  47. package/dist/models/mintConnectionDto.js +1 -1
  48. package/dist/models/reconcileAdminSchemaRowsDto.d.ts +22 -0
  49. package/dist/models/reconcileAdminSchemaRowsDto.js +2 -0
  50. package/dist/models/reconcileAdminSchemaRowsDtoAudience.d.ts +11 -0
  51. package/dist/models/reconcileAdminSchemaRowsDtoAudience.js +13 -0
  52. package/dist/models/reconcileAdminSchemaRowsDtoRowsItem.d.ts +10 -0
  53. package/dist/models/reconcileAdminSchemaRowsDtoRowsItem.js +9 -0
  54. package/dist/models/reconcileAdminSchemaRowsResponseDto.d.ts +11 -0
  55. package/dist/models/reconcileAdminSchemaRowsResponseDto.js +9 -0
  56. package/dist/models/reconcileAdminSchemaRowsResponseDtoDataEnvelope.d.ts +11 -0
  57. package/dist/models/reconcileAdminSchemaRowsResponseDtoDataEnvelope.js +2 -0
  58. package/dist/models/revokeAdminSchemaLeaseDto.d.ts +15 -0
  59. package/dist/models/revokeAdminSchemaLeaseDto.js +2 -0
  60. package/dist/models/revokeAdminSchemaLeaseDtoAudience.d.ts +11 -0
  61. package/dist/models/revokeAdminSchemaLeaseDtoAudience.js +13 -0
  62. package/dist/models/revokeAdminSchemaLeaseResponseDto.d.ts +10 -0
  63. package/dist/models/revokeAdminSchemaLeaseResponseDto.js +9 -0
  64. package/dist/models/revokeAdminSchemaLeaseResponseDtoDataEnvelope.d.ts +11 -0
  65. package/dist/models/revokeAdminSchemaLeaseResponseDtoDataEnvelope.js +2 -0
  66. package/dist/models/scanAdminSchemaRowsDto.d.ts +25 -0
  67. package/dist/models/scanAdminSchemaRowsDto.js +2 -0
  68. package/dist/models/scanAdminSchemaRowsDtoAudience.d.ts +11 -0
  69. package/dist/models/scanAdminSchemaRowsDtoAudience.js +13 -0
  70. package/dist/models/scanAdminSchemaRowsResponseDto.d.ts +11 -0
  71. package/dist/models/scanAdminSchemaRowsResponseDto.js +2 -0
  72. package/dist/models/scanAdminSchemaRowsResponseDtoDataEnvelope.d.ts +11 -0
  73. package/dist/models/scanAdminSchemaRowsResponseDtoDataEnvelope.js +2 -0
  74. package/dist/models/scanAdminSchemaRowsResponseDtoRowsItem.d.ts +10 -0
  75. package/dist/models/scanAdminSchemaRowsResponseDtoRowsItem.js +9 -0
  76. package/package.json +11 -8
  77. package/LICENSE +0 -1
package/README.md ADDED
@@ -0,0 +1,62 @@
1
+ <!-- Generated by @xemahq/api-client-generator. Do not edit by hand. -->
2
+ <p align="center">
3
+ <svg width="680" height="120" viewBox="0 0 680 120" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="@xemahq/org-database-pool-internal-api-client">
4
+ <rect width="680" height="120" rx="14" fill="#0B1020"/>
5
+ <g transform="translate(28,34)">
6
+ <path d="M26 0 L52 15 L52 45 L26 60 L0 45 L0 15 Z" fill="#14B8A6" opacity="0.18"/>
7
+ <path d="M26 12 L41 21 L41 39 L26 48 L11 39 L11 21 Z" fill="#14B8A6"/>
8
+ </g>
9
+ <text x="92" y="52" font-family="ui-monospace,SFMono-Regular,Menlo,monospace" font-size="22" fill="#F8FAFC" font-weight="700">@xemahq/org-database-pool-internal-api-client</text>
10
+ <text x="92" y="80" font-family="ui-sans-serif,system-ui,sans-serif" font-size="15" fill="#94A3B8">Typed, generated internal HTTP client for the Org Database Pool API.</text>
11
+ <text x="652" y="105" text-anchor="end" font-family="ui-sans-serif,system-ui,sans-serif" font-size="12" fill="#475569">xema.dev</text>
12
+ </svg>
13
+ </p>
14
+
15
+ <p align="center">
16
+ <a href="https://xema.dev">Website</a> &middot;
17
+ <a href="https://www.npmjs.com/package/@xemahq/org-database-pool-internal-api-client">npm</a>
18
+ </p>
19
+
20
+ <p align="center">
21
+ <img alt="npm" src="https://img.shields.io/npm/v/%40xemahq%2Forg-database-pool-internal-api-client?color=2563eb&label=npm">
22
+ <img alt="license" src="https://img.shields.io/npm/l/%40xemahq%2Forg-database-pool-internal-api-client?color=10b981">
23
+ <img alt="types" src="https://img.shields.io/npm/types/%40xemahq%2Forg-database-pool-internal-api-client?color=3178c6">
24
+ </p>
25
+
26
+ # @xemahq/org-database-pool-internal-api-client
27
+
28
+ > Typed, generated internal HTTP client for the Org Database Pool API.
29
+
30
+ ## Overview
31
+
32
+ Auto-generated TypeScript client for the **Org Database Pool API**. It exports typed
33
+ request functions and response models that mirror the service's OpenAPI surface,
34
+ so callers get end-to-end type safety without hand-writing HTTP calls. This
35
+ package is produced by `@xemahq/api-client-generator` and regenerated whenever
36
+ the service's API changes — do not edit it by hand.
37
+
38
+ ## When to use it
39
+
40
+ - Use it from any TypeScript service or app that calls the Org Database Pool API over HTTP.
41
+ - You get compile-time types for every endpoint and payload; regenerate to pick
42
+ up API changes rather than editing the client.
43
+
44
+ ## Installation
45
+
46
+ ```bash
47
+ pnpm add @xemahq/org-database-pool-internal-api-client
48
+ ```
49
+
50
+ ## Usage
51
+
52
+ ```ts
53
+ // Every endpoint function and response model is exported from the package root.
54
+ import * as client from '@xemahq/org-database-pool-internal-api-client';
55
+ ```
56
+
57
+ Call the typed endpoint functions; request and response shapes are fully typed
58
+ from the service's OpenAPI spec.
59
+
60
+ ## License
61
+
62
+ Proprietary — &copy; Xema. All rights reserved. — [xema.dev](https://xema.dev)
@@ -16,7 +16,7 @@
16
16
  * configureClient({
17
17
  * baseUrl: 'http://org-database-pool-api:3000',
18
18
  * getAuthToken: () => identityBootstrapService.getAccessToken(),
19
- * getHeaders: () => ({ 'X-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
19
+ * getHeaders: () => ({ 'X-Xema-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
20
20
  * });
21
21
  */
22
22
  export interface ClientConfig {
@@ -17,7 +17,7 @@
17
17
  * configureClient({
18
18
  * baseUrl: 'http://org-database-pool-api:3000',
19
19
  * getAuthToken: () => identityBootstrapService.getAccessToken(),
20
- * getHeaders: () => ({ 'X-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
20
+ * getHeaders: () => ({ 'X-Xema-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
21
21
  * });
22
22
  */
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { AdminSchemaLeaseResponseDtoDataEnvelope, DescribeAdminSchemaTableDto, DescribeAdminSchemaTableResponseDtoDataEnvelope, InsertAdminSchemaRowsDto, InsertAdminSchemaRowsResponseDtoDataEnvelope, IssueAdminSchemaLeaseDto, ReconcileAdminSchemaRowsDto, ReconcileAdminSchemaRowsResponseDtoDataEnvelope, RevokeAdminSchemaLeaseDto, RevokeAdminSchemaLeaseResponseDtoDataEnvelope, ScanAdminSchemaRowsDto, ScanAdminSchemaRowsResponseDtoDataEnvelope } from '../../models';
9
+ export declare const getAdminSchemaAccessControllerIssueLeaseUrl: () => string;
10
+ /**
11
+ * @summary Issue a short-lived, caller-bound schema migration lease
12
+ */
13
+ export declare const adminSchemaAccessControllerIssueLease: (issueAdminSchemaLeaseDto: IssueAdminSchemaLeaseDto, options?: RequestInit) => Promise<AdminSchemaLeaseResponseDtoDataEnvelope>;
14
+ export declare const getAdminSchemaAccessControllerDescribeTableUrl: (leaseId: string) => string;
15
+ /**
16
+ * @summary Describe one table through a bounded migration lease
17
+ */
18
+ export declare const adminSchemaAccessControllerDescribeTable: (leaseId: string, describeAdminSchemaTableDto: DescribeAdminSchemaTableDto, options?: RequestInit) => Promise<DescribeAdminSchemaTableResponseDtoDataEnvelope>;
19
+ export declare const getAdminSchemaAccessControllerInsertRowsIfAbsentUrl: (leaseId: string) => string;
20
+ /**
21
+ * @summary Insert bounded rows idempotently through a migration lease
22
+ */
23
+ export declare const adminSchemaAccessControllerInsertRowsIfAbsent: (leaseId: string, insertAdminSchemaRowsDto: InsertAdminSchemaRowsDto, options?: RequestInit) => Promise<InsertAdminSchemaRowsResponseDtoDataEnvelope>;
24
+ export declare const getAdminSchemaAccessControllerReconcileRowsByVersionUrl: (leaseId: string) => string;
25
+ /**
26
+ * @summary Insert missing rows and replace non-newer rows through a migration lease
27
+ */
28
+ export declare const adminSchemaAccessControllerReconcileRowsByVersion: (leaseId: string, reconcileAdminSchemaRowsDto: ReconcileAdminSchemaRowsDto, options?: RequestInit) => Promise<ReconcileAdminSchemaRowsResponseDtoDataEnvelope>;
29
+ export declare const getAdminSchemaAccessControllerScanRowsUrl: (leaseId: string) => string;
30
+ /**
31
+ * @summary Read a bounded keyset page through a migration lease
32
+ */
33
+ export declare const adminSchemaAccessControllerScanRows: (leaseId: string, scanAdminSchemaRowsDto: ScanAdminSchemaRowsDto, options?: RequestInit) => Promise<ScanAdminSchemaRowsResponseDtoDataEnvelope>;
34
+ export declare const getAdminSchemaAccessControllerRevokeLeaseUrl: (leaseId: string) => string;
35
+ /**
36
+ * @summary Revoke a migration lease immediately
37
+ */
38
+ export declare const adminSchemaAccessControllerRevokeLease: (leaseId: string, revokeAdminSchemaLeaseDto: RevokeAdminSchemaLeaseDto, options?: RequestInit) => Promise<RevokeAdminSchemaLeaseResponseDtoDataEnvelope>;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.adminSchemaAccessControllerRevokeLease = exports.getAdminSchemaAccessControllerRevokeLeaseUrl = exports.adminSchemaAccessControllerScanRows = exports.getAdminSchemaAccessControllerScanRowsUrl = exports.adminSchemaAccessControllerReconcileRowsByVersion = exports.getAdminSchemaAccessControllerReconcileRowsByVersionUrl = exports.adminSchemaAccessControllerInsertRowsIfAbsent = exports.getAdminSchemaAccessControllerInsertRowsIfAbsentUrl = exports.adminSchemaAccessControllerDescribeTable = exports.getAdminSchemaAccessControllerDescribeTableUrl = exports.adminSchemaAccessControllerIssueLease = exports.getAdminSchemaAccessControllerIssueLeaseUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getAdminSchemaAccessControllerIssueLeaseUrl = () => {
6
+ return `/internal/admin-schema-access/leases`;
7
+ };
8
+ exports.getAdminSchemaAccessControllerIssueLeaseUrl = getAdminSchemaAccessControllerIssueLeaseUrl;
9
+ /**
10
+ * @summary Issue a short-lived, caller-bound schema migration lease
11
+ */
12
+ const adminSchemaAccessControllerIssueLease = async (issueAdminSchemaLeaseDto, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getAdminSchemaAccessControllerIssueLeaseUrl)(), {
14
+ ...options,
15
+ method: 'POST',
16
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
17
+ body: JSON.stringify(issueAdminSchemaLeaseDto)
18
+ });
19
+ };
20
+ exports.adminSchemaAccessControllerIssueLease = adminSchemaAccessControllerIssueLease;
21
+ const getAdminSchemaAccessControllerDescribeTableUrl = (leaseId) => {
22
+ return `/internal/admin-schema-access/leases/${leaseId}/describe-table`;
23
+ };
24
+ exports.getAdminSchemaAccessControllerDescribeTableUrl = getAdminSchemaAccessControllerDescribeTableUrl;
25
+ /**
26
+ * @summary Describe one table through a bounded migration lease
27
+ */
28
+ const adminSchemaAccessControllerDescribeTable = async (leaseId, describeAdminSchemaTableDto, options) => {
29
+ return (0, custom_fetch_1.customFetch)((0, exports.getAdminSchemaAccessControllerDescribeTableUrl)(leaseId), {
30
+ ...options,
31
+ method: 'POST',
32
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
33
+ body: JSON.stringify(describeAdminSchemaTableDto)
34
+ });
35
+ };
36
+ exports.adminSchemaAccessControllerDescribeTable = adminSchemaAccessControllerDescribeTable;
37
+ const getAdminSchemaAccessControllerInsertRowsIfAbsentUrl = (leaseId) => {
38
+ return `/internal/admin-schema-access/leases/${leaseId}/insert-rows-if-absent`;
39
+ };
40
+ exports.getAdminSchemaAccessControllerInsertRowsIfAbsentUrl = getAdminSchemaAccessControllerInsertRowsIfAbsentUrl;
41
+ /**
42
+ * @summary Insert bounded rows idempotently through a migration lease
43
+ */
44
+ const adminSchemaAccessControllerInsertRowsIfAbsent = async (leaseId, insertAdminSchemaRowsDto, options) => {
45
+ return (0, custom_fetch_1.customFetch)((0, exports.getAdminSchemaAccessControllerInsertRowsIfAbsentUrl)(leaseId), {
46
+ ...options,
47
+ method: 'POST',
48
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
49
+ body: JSON.stringify(insertAdminSchemaRowsDto)
50
+ });
51
+ };
52
+ exports.adminSchemaAccessControllerInsertRowsIfAbsent = adminSchemaAccessControllerInsertRowsIfAbsent;
53
+ const getAdminSchemaAccessControllerReconcileRowsByVersionUrl = (leaseId) => {
54
+ return `/internal/admin-schema-access/leases/${leaseId}/reconcile-rows-by-version`;
55
+ };
56
+ exports.getAdminSchemaAccessControllerReconcileRowsByVersionUrl = getAdminSchemaAccessControllerReconcileRowsByVersionUrl;
57
+ /**
58
+ * @summary Insert missing rows and replace non-newer rows through a migration lease
59
+ */
60
+ const adminSchemaAccessControllerReconcileRowsByVersion = async (leaseId, reconcileAdminSchemaRowsDto, options) => {
61
+ return (0, custom_fetch_1.customFetch)((0, exports.getAdminSchemaAccessControllerReconcileRowsByVersionUrl)(leaseId), {
62
+ ...options,
63
+ method: 'POST',
64
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
65
+ body: JSON.stringify(reconcileAdminSchemaRowsDto)
66
+ });
67
+ };
68
+ exports.adminSchemaAccessControllerReconcileRowsByVersion = adminSchemaAccessControllerReconcileRowsByVersion;
69
+ const getAdminSchemaAccessControllerScanRowsUrl = (leaseId) => {
70
+ return `/internal/admin-schema-access/leases/${leaseId}/scan-rows`;
71
+ };
72
+ exports.getAdminSchemaAccessControllerScanRowsUrl = getAdminSchemaAccessControllerScanRowsUrl;
73
+ /**
74
+ * @summary Read a bounded keyset page through a migration lease
75
+ */
76
+ const adminSchemaAccessControllerScanRows = async (leaseId, scanAdminSchemaRowsDto, options) => {
77
+ return (0, custom_fetch_1.customFetch)((0, exports.getAdminSchemaAccessControllerScanRowsUrl)(leaseId), {
78
+ ...options,
79
+ method: 'POST',
80
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
81
+ body: JSON.stringify(scanAdminSchemaRowsDto)
82
+ });
83
+ };
84
+ exports.adminSchemaAccessControllerScanRows = adminSchemaAccessControllerScanRows;
85
+ const getAdminSchemaAccessControllerRevokeLeaseUrl = (leaseId) => {
86
+ return `/internal/admin-schema-access/leases/${leaseId}/revoke`;
87
+ };
88
+ exports.getAdminSchemaAccessControllerRevokeLeaseUrl = getAdminSchemaAccessControllerRevokeLeaseUrl;
89
+ /**
90
+ * @summary Revoke a migration lease immediately
91
+ */
92
+ const adminSchemaAccessControllerRevokeLease = async (leaseId, revokeAdminSchemaLeaseDto, options) => {
93
+ return (0, custom_fetch_1.customFetch)((0, exports.getAdminSchemaAccessControllerRevokeLeaseUrl)(leaseId), {
94
+ ...options,
95
+ method: 'POST',
96
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
97
+ body: JSON.stringify(revokeAdminSchemaLeaseDto)
98
+ });
99
+ };
100
+ exports.adminSchemaAccessControllerRevokeLease = adminSchemaAccessControllerRevokeLease;
@@ -1,13 +1,13 @@
1
1
  /**
2
- * Generated by orval v8.6.2 🍺
2
+ * Generated by orval v8.16.0 🍺
3
3
  * Do not edit manually.
4
4
  * Org Database Pool API
5
5
  * Org Database Pool API extract (generated for client codegen).
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
8
  import type { MintConnectionDto } from '../../models';
9
+ export declare const getConnectionControllerMintUrl: () => string;
9
10
  /**
10
11
  * @summary Mint a short-lived connection grant for an org database
11
12
  */
12
- export declare const getConnectionControllerMintUrl: () => string;
13
13
  export declare const connectionControllerMint: (mintConnectionDto: MintConnectionDto, options?: RequestInit) => Promise<void>;
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.connectionControllerMint = exports.getConnectionControllerMintUrl = void 0;
4
4
  const custom_fetch_1 = require("../../custom-fetch");
5
- /**
6
- * @summary Mint a short-lived connection grant for an org database
7
- */
8
5
  const getConnectionControllerMintUrl = () => {
9
6
  return `/connections/mint`;
10
7
  };
11
8
  exports.getConnectionControllerMintUrl = getConnectionControllerMintUrl;
9
+ /**
10
+ * @summary Mint a short-lived connection grant for an org database
11
+ */
12
12
  const connectionControllerMint = async (mintConnectionDto, options) => {
13
13
  return (0, custom_fetch_1.customFetch)((0, exports.getConnectionControllerMintUrl)(), {
14
14
  ...options,
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
2
2
  export * from './models';
3
+ export * from './endpoints/admin-schema-access/admin-schema-access';
3
4
  export * from './endpoints/connections/connections';
package/dist/index.js CHANGED
@@ -22,4 +22,5 @@ Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: funct
22
22
  Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
23
23
  Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
24
24
  __exportStar(require("./models"), exports);
25
+ __exportStar(require("./endpoints/admin-schema-access/admin-schema-access"), exports);
25
26
  __exportStar(require("./endpoints/connections/connections"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface AdminSchemaColumnDto {
9
+ name: string;
10
+ dataType: string;
11
+ nullable: boolean;
12
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { AdminSchemaLeaseResponseDtoAudience } from './adminSchemaLeaseResponseDtoAudience.js';
9
+ import type { AdminSchemaLeaseResponseDtoOperationsItem } from './adminSchemaLeaseResponseDtoOperationsItem.js';
10
+ export interface AdminSchemaLeaseResponseDto {
11
+ leaseId: string;
12
+ orgId: string;
13
+ schemaId: string;
14
+ schemaName: string;
15
+ audience: AdminSchemaLeaseResponseDtoAudience;
16
+ operations: AdminSchemaLeaseResponseDtoOperationsItem[];
17
+ expiresAt: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type AdminSchemaLeaseResponseDtoAudience = typeof AdminSchemaLeaseResponseDtoAudience[keyof typeof AdminSchemaLeaseResponseDtoAudience];
9
+ export declare const AdminSchemaLeaseResponseDtoAudience: {
10
+ readonly schema_data_migration: "schema_data_migration";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.AdminSchemaLeaseResponseDtoAudience = void 0;
11
+ exports.AdminSchemaLeaseResponseDtoAudience = {
12
+ schema_data_migration: 'schema_data_migration',
13
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { AdminSchemaLeaseResponseDto } from './adminSchemaLeaseResponseDto.js';
9
+ export interface AdminSchemaLeaseResponseDtoDataEnvelope {
10
+ data: AdminSchemaLeaseResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type AdminSchemaLeaseResponseDtoOperationsItem = typeof AdminSchemaLeaseResponseDtoOperationsItem[keyof typeof AdminSchemaLeaseResponseDtoOperationsItem];
9
+ export declare const AdminSchemaLeaseResponseDtoOperationsItem: {
10
+ readonly describe_table: "describe_table";
11
+ readonly insert_rows_if_absent: "insert_rows_if_absent";
12
+ readonly reconcile_rows_by_version: "reconcile_rows_by_version";
13
+ readonly scan_rows: "scan_rows";
14
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.AdminSchemaLeaseResponseDtoOperationsItem = void 0;
11
+ exports.AdminSchemaLeaseResponseDtoOperationsItem = {
12
+ describe_table: 'describe_table',
13
+ insert_rows_if_absent: 'insert_rows_if_absent',
14
+ reconcile_rows_by_version: 'reconcile_rows_by_version',
15
+ scan_rows: 'scan_rows',
16
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { DescribeAdminSchemaTableDtoAudience } from './describeAdminSchemaTableDtoAudience.js';
9
+ export interface DescribeAdminSchemaTableDto {
10
+ orgId: string;
11
+ schemaId: string;
12
+ audience: DescribeAdminSchemaTableDtoAudience;
13
+ /** Caller-scoped, single-writer command id. */
14
+ operationId: string;
15
+ table: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type DescribeAdminSchemaTableDtoAudience = typeof DescribeAdminSchemaTableDtoAudience[keyof typeof DescribeAdminSchemaTableDtoAudience];
9
+ export declare const DescribeAdminSchemaTableDtoAudience: {
10
+ readonly schema_data_migration: "schema_data_migration";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.DescribeAdminSchemaTableDtoAudience = void 0;
11
+ exports.DescribeAdminSchemaTableDtoAudience = {
12
+ schema_data_migration: 'schema_data_migration',
13
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { AdminSchemaColumnDto } from './adminSchemaColumnDto.js';
9
+ export interface DescribeAdminSchemaTableResponseDto {
10
+ table: string;
11
+ columns: AdminSchemaColumnDto[];
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { DescribeAdminSchemaTableResponseDto } from './describeAdminSchemaTableResponseDto.js';
9
+ export interface DescribeAdminSchemaTableResponseDtoDataEnvelope {
10
+ data: DescribeAdminSchemaTableResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,32 @@
1
+ export * from './adminSchemaColumnDto';
2
+ export * from './adminSchemaLeaseResponseDto';
3
+ export * from './adminSchemaLeaseResponseDtoAudience';
4
+ export * from './adminSchemaLeaseResponseDtoDataEnvelope';
5
+ export * from './adminSchemaLeaseResponseDtoOperationsItem';
6
+ export * from './describeAdminSchemaTableDto';
7
+ export * from './describeAdminSchemaTableDtoAudience';
8
+ export * from './describeAdminSchemaTableResponseDto';
9
+ export * from './describeAdminSchemaTableResponseDtoDataEnvelope';
10
+ export * from './insertAdminSchemaRowsDto';
11
+ export * from './insertAdminSchemaRowsDtoAudience';
12
+ export * from './insertAdminSchemaRowsDtoRowsItem';
13
+ export * from './insertAdminSchemaRowsResponseDto';
14
+ export * from './insertAdminSchemaRowsResponseDtoDataEnvelope';
15
+ export * from './issueAdminSchemaLeaseDto';
16
+ export * from './issueAdminSchemaLeaseDtoAudience';
17
+ export * from './issueAdminSchemaLeaseDtoOperationsItem';
1
18
  export * from './mintConnectionDto';
19
+ export * from './reconcileAdminSchemaRowsDto';
20
+ export * from './reconcileAdminSchemaRowsDtoAudience';
21
+ export * from './reconcileAdminSchemaRowsDtoRowsItem';
22
+ export * from './reconcileAdminSchemaRowsResponseDto';
23
+ export * from './reconcileAdminSchemaRowsResponseDtoDataEnvelope';
24
+ export * from './revokeAdminSchemaLeaseDto';
25
+ export * from './revokeAdminSchemaLeaseDtoAudience';
26
+ export * from './revokeAdminSchemaLeaseResponseDto';
27
+ export * from './revokeAdminSchemaLeaseResponseDtoDataEnvelope';
28
+ export * from './scanAdminSchemaRowsDto';
29
+ export * from './scanAdminSchemaRowsDtoAudience';
30
+ export * from './scanAdminSchemaRowsResponseDto';
31
+ export * from './scanAdminSchemaRowsResponseDtoDataEnvelope';
32
+ export * from './scanAdminSchemaRowsResponseDtoRowsItem';
@@ -15,4 +15,35 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
18
+ __exportStar(require("./adminSchemaColumnDto"), exports);
19
+ __exportStar(require("./adminSchemaLeaseResponseDto"), exports);
20
+ __exportStar(require("./adminSchemaLeaseResponseDtoAudience"), exports);
21
+ __exportStar(require("./adminSchemaLeaseResponseDtoDataEnvelope"), exports);
22
+ __exportStar(require("./adminSchemaLeaseResponseDtoOperationsItem"), exports);
23
+ __exportStar(require("./describeAdminSchemaTableDto"), exports);
24
+ __exportStar(require("./describeAdminSchemaTableDtoAudience"), exports);
25
+ __exportStar(require("./describeAdminSchemaTableResponseDto"), exports);
26
+ __exportStar(require("./describeAdminSchemaTableResponseDtoDataEnvelope"), exports);
27
+ __exportStar(require("./insertAdminSchemaRowsDto"), exports);
28
+ __exportStar(require("./insertAdminSchemaRowsDtoAudience"), exports);
29
+ __exportStar(require("./insertAdminSchemaRowsDtoRowsItem"), exports);
30
+ __exportStar(require("./insertAdminSchemaRowsResponseDto"), exports);
31
+ __exportStar(require("./insertAdminSchemaRowsResponseDtoDataEnvelope"), exports);
32
+ __exportStar(require("./issueAdminSchemaLeaseDto"), exports);
33
+ __exportStar(require("./issueAdminSchemaLeaseDtoAudience"), exports);
34
+ __exportStar(require("./issueAdminSchemaLeaseDtoOperationsItem"), exports);
18
35
  __exportStar(require("./mintConnectionDto"), exports);
36
+ __exportStar(require("./reconcileAdminSchemaRowsDto"), exports);
37
+ __exportStar(require("./reconcileAdminSchemaRowsDtoAudience"), exports);
38
+ __exportStar(require("./reconcileAdminSchemaRowsDtoRowsItem"), exports);
39
+ __exportStar(require("./reconcileAdminSchemaRowsResponseDto"), exports);
40
+ __exportStar(require("./reconcileAdminSchemaRowsResponseDtoDataEnvelope"), exports);
41
+ __exportStar(require("./revokeAdminSchemaLeaseDto"), exports);
42
+ __exportStar(require("./revokeAdminSchemaLeaseDtoAudience"), exports);
43
+ __exportStar(require("./revokeAdminSchemaLeaseResponseDto"), exports);
44
+ __exportStar(require("./revokeAdminSchemaLeaseResponseDtoDataEnvelope"), exports);
45
+ __exportStar(require("./scanAdminSchemaRowsDto"), exports);
46
+ __exportStar(require("./scanAdminSchemaRowsDtoAudience"), exports);
47
+ __exportStar(require("./scanAdminSchemaRowsResponseDto"), exports);
48
+ __exportStar(require("./scanAdminSchemaRowsResponseDtoDataEnvelope"), exports);
49
+ __exportStar(require("./scanAdminSchemaRowsResponseDtoRowsItem"), exports);
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { InsertAdminSchemaRowsDtoAudience } from './insertAdminSchemaRowsDtoAudience.js';
9
+ import type { InsertAdminSchemaRowsDtoRowsItem } from './insertAdminSchemaRowsDtoRowsItem.js';
10
+ export interface InsertAdminSchemaRowsDto {
11
+ orgId: string;
12
+ schemaId: string;
13
+ audience: InsertAdminSchemaRowsDtoAudience;
14
+ /** Caller-scoped, single-writer command id. */
15
+ operationId: string;
16
+ table: string;
17
+ /**
18
+ * Rows inserted with ON CONFLICT (id) DO NOTHING. Every row must include id.
19
+ * @maxItems 500
20
+ */
21
+ rows: InsertAdminSchemaRowsDtoRowsItem[];
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type InsertAdminSchemaRowsDtoAudience = typeof InsertAdminSchemaRowsDtoAudience[keyof typeof InsertAdminSchemaRowsDtoAudience];
9
+ export declare const InsertAdminSchemaRowsDtoAudience: {
10
+ readonly schema_data_migration: "schema_data_migration";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.InsertAdminSchemaRowsDtoAudience = void 0;
11
+ exports.InsertAdminSchemaRowsDtoAudience = {
12
+ schema_data_migration: 'schema_data_migration',
13
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type InsertAdminSchemaRowsDtoRowsItem = {
9
+ [key: string]: unknown;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface InsertAdminSchemaRowsResponseDto {
9
+ inserted: number;
10
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { InsertAdminSchemaRowsResponseDto } from './insertAdminSchemaRowsResponseDto.js';
9
+ export interface InsertAdminSchemaRowsResponseDtoDataEnvelope {
10
+ data: InsertAdminSchemaRowsResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { IssueAdminSchemaLeaseDtoAudience } from './issueAdminSchemaLeaseDtoAudience.js';
9
+ import type { IssueAdminSchemaLeaseDtoOperationsItem } from './issueAdminSchemaLeaseDtoOperationsItem.js';
10
+ export interface IssueAdminSchemaLeaseDto {
11
+ orgId: string;
12
+ /** Registered OrgSchema id. Schema names are never caller-authoritative. */
13
+ schemaId: string;
14
+ audience: IssueAdminSchemaLeaseDtoAudience;
15
+ operations: IssueAdminSchemaLeaseDtoOperationsItem[];
16
+ /**
17
+ * @minimum 30
18
+ * @maximum 900
19
+ */
20
+ ttlSeconds: number;
21
+ /** Caller-scoped key. Reuse with a different request is rejected. */
22
+ idempotencyKey: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type IssueAdminSchemaLeaseDtoAudience = typeof IssueAdminSchemaLeaseDtoAudience[keyof typeof IssueAdminSchemaLeaseDtoAudience];
9
+ export declare const IssueAdminSchemaLeaseDtoAudience: {
10
+ readonly schema_data_migration: "schema_data_migration";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.IssueAdminSchemaLeaseDtoAudience = void 0;
11
+ exports.IssueAdminSchemaLeaseDtoAudience = {
12
+ schema_data_migration: 'schema_data_migration',
13
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type IssueAdminSchemaLeaseDtoOperationsItem = typeof IssueAdminSchemaLeaseDtoOperationsItem[keyof typeof IssueAdminSchemaLeaseDtoOperationsItem];
9
+ export declare const IssueAdminSchemaLeaseDtoOperationsItem: {
10
+ readonly describe_table: "describe_table";
11
+ readonly insert_rows_if_absent: "insert_rows_if_absent";
12
+ readonly reconcile_rows_by_version: "reconcile_rows_by_version";
13
+ readonly scan_rows: "scan_rows";
14
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.IssueAdminSchemaLeaseDtoOperationsItem = void 0;
11
+ exports.IssueAdminSchemaLeaseDtoOperationsItem = {
12
+ describe_table: 'describe_table',
13
+ insert_rows_if_absent: 'insert_rows_if_absent',
14
+ reconcile_rows_by_version: 'reconcile_rows_by_version',
15
+ scan_rows: 'scan_rows',
16
+ };
@@ -1,10 +1,19 @@
1
1
  /**
2
- * Generated by orval v8.6.2 🍺
2
+ * Generated by orval v8.16.0 🍺
3
3
  * Do not edit manually.
4
4
  * Org Database Pool API
5
5
  * Org Database Pool API extract (generated for client codegen).
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
8
  export interface MintConnectionDto {
9
- [key: string]: unknown;
9
+ databaseId: string;
10
+ /** @maxLength 63 */
11
+ schemaName: string;
12
+ /**
13
+ * One of the schema access roles reported by the pool. Never derived by the caller.
14
+ * @maxLength 63
15
+ */
16
+ roleName: string;
17
+ /** @minimum 1 */
18
+ ttlSeconds: number;
10
19
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Generated by orval v8.6.2 🍺
3
+ * Generated by orval v8.16.0 🍺
4
4
  * Do not edit manually.
5
5
  * Org Database Pool API
6
6
  * Org Database Pool API extract (generated for client codegen).
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { ReconcileAdminSchemaRowsDtoAudience } from './reconcileAdminSchemaRowsDtoAudience.js';
9
+ import type { ReconcileAdminSchemaRowsDtoRowsItem } from './reconcileAdminSchemaRowsDtoRowsItem.js';
10
+ export interface ReconcileAdminSchemaRowsDto {
11
+ orgId: string;
12
+ schemaId: string;
13
+ audience: ReconcileAdminSchemaRowsDtoAudience;
14
+ /** Caller-scoped, single-writer command id. */
15
+ operationId: string;
16
+ table: string;
17
+ /**
18
+ * 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.
19
+ * @maxItems 500
20
+ */
21
+ rows: ReconcileAdminSchemaRowsDtoRowsItem[];
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type ReconcileAdminSchemaRowsDtoAudience = typeof ReconcileAdminSchemaRowsDtoAudience[keyof typeof ReconcileAdminSchemaRowsDtoAudience];
9
+ export declare const ReconcileAdminSchemaRowsDtoAudience: {
10
+ readonly schema_data_migration: "schema_data_migration";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ReconcileAdminSchemaRowsDtoAudience = void 0;
11
+ exports.ReconcileAdminSchemaRowsDtoAudience = {
12
+ schema_data_migration: 'schema_data_migration',
13
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type ReconcileAdminSchemaRowsDtoRowsItem = {
9
+ [key: string]: unknown;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface ReconcileAdminSchemaRowsResponseDto {
9
+ applied: number;
10
+ ignoredNewer: number;
11
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { ReconcileAdminSchemaRowsResponseDto } from './reconcileAdminSchemaRowsResponseDto.js';
9
+ export interface ReconcileAdminSchemaRowsResponseDtoDataEnvelope {
10
+ data: ReconcileAdminSchemaRowsResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { RevokeAdminSchemaLeaseDtoAudience } from './revokeAdminSchemaLeaseDtoAudience.js';
9
+ export interface RevokeAdminSchemaLeaseDto {
10
+ orgId: string;
11
+ schemaId: string;
12
+ audience: RevokeAdminSchemaLeaseDtoAudience;
13
+ /** Caller-scoped, single-writer command id. */
14
+ operationId: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type RevokeAdminSchemaLeaseDtoAudience = typeof RevokeAdminSchemaLeaseDtoAudience[keyof typeof RevokeAdminSchemaLeaseDtoAudience];
9
+ export declare const RevokeAdminSchemaLeaseDtoAudience: {
10
+ readonly schema_data_migration: "schema_data_migration";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.RevokeAdminSchemaLeaseDtoAudience = void 0;
11
+ exports.RevokeAdminSchemaLeaseDtoAudience = {
12
+ schema_data_migration: 'schema_data_migration',
13
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface RevokeAdminSchemaLeaseResponseDto {
9
+ revokedAt: string;
10
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { RevokeAdminSchemaLeaseResponseDto } from './revokeAdminSchemaLeaseResponseDto.js';
9
+ export interface RevokeAdminSchemaLeaseResponseDtoDataEnvelope {
10
+ data: RevokeAdminSchemaLeaseResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { ScanAdminSchemaRowsDtoAudience } from './scanAdminSchemaRowsDtoAudience.js';
9
+ export interface ScanAdminSchemaRowsDto {
10
+ orgId: string;
11
+ schemaId: string;
12
+ audience: ScanAdminSchemaRowsDtoAudience;
13
+ /** Caller-scoped, single-writer command id. */
14
+ operationId: string;
15
+ table: string;
16
+ /** @maxItems 128 */
17
+ columns: string[];
18
+ /** @nullable */
19
+ afterId?: string | null;
20
+ /**
21
+ * @minimum 1
22
+ * @maximum 500
23
+ */
24
+ limit: number;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type ScanAdminSchemaRowsDtoAudience = typeof ScanAdminSchemaRowsDtoAudience[keyof typeof ScanAdminSchemaRowsDtoAudience];
9
+ export declare const ScanAdminSchemaRowsDtoAudience: {
10
+ readonly schema_data_migration: "schema_data_migration";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ScanAdminSchemaRowsDtoAudience = void 0;
11
+ exports.ScanAdminSchemaRowsDtoAudience = {
12
+ schema_data_migration: 'schema_data_migration',
13
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { ScanAdminSchemaRowsResponseDtoRowsItem } from './scanAdminSchemaRowsResponseDtoRowsItem.js';
9
+ export interface ScanAdminSchemaRowsResponseDto {
10
+ rows: ScanAdminSchemaRowsResponseDtoRowsItem[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { ScanAdminSchemaRowsResponseDto } from './scanAdminSchemaRowsResponseDto.js';
9
+ export interface ScanAdminSchemaRowsResponseDtoDataEnvelope {
10
+ data: ScanAdminSchemaRowsResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * Org Database Pool API
5
+ * Org Database Pool API extract (generated for client codegen).
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type ScanAdminSchemaRowsResponseDtoRowsItem = {
9
+ [key: string]: unknown;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * Org Database Pool API
6
+ * Org Database Pool API extract (generated for client codegen).
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,16 +1,21 @@
1
1
  {
2
2
  "name": "@xemahq/org-database-pool-internal-api-client",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
+ "scripts": {
10
+ "build": "tsc -p tsconfig.json",
11
+ "prepublishOnly": "npm run build"
12
+ },
9
13
  "publishConfig": {
10
- "registry": "https://npm.pkg.github.com"
14
+ "access": "public",
15
+ "registry": "https://registry.npmjs.org/"
11
16
  },
12
17
  "devDependencies": {
13
- "typescript": "5.9.3"
18
+ "typescript": "catalog:"
14
19
  },
15
20
  "xema": {
16
21
  "kind": "api-client",
@@ -18,10 +23,8 @@
18
23
  "service": "org-database-pool-api",
19
24
  "biome": "org-database-pool",
20
25
  "target": "server",
21
- "generator": "@xemahq/api-client-generator@0.1.0",
26
+ "generator": "@xemahq/api-client-generator@0.2.0",
22
27
  "source": "openapi.internal.json"
23
28
  },
24
- "scripts": {
25
- "build": "tsc -p tsconfig.json"
26
- }
27
- }
29
+ "license": "LicenseRef-Xema-BSL-1.1"
30
+ }
package/LICENSE DELETED
@@ -1 +0,0 @@
1
- Copyright (c) 2026 Xema. All rights reserved.