@xemahq/space-registry-internal-api-client 0.1.0 → 0.1.2

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/LICENSE ADDED
@@ -0,0 +1,174 @@
1
+ Xema Business Source License 1.1
2
+
3
+ License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved.
4
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
5
+
6
+ -----------------------------------------------------------------------------
7
+
8
+ Parameters
9
+
10
+ Licensor: Neuralchowder Inc.
11
+
12
+ Licensed Work: Xema. The Licensed Work is (c) 2026 Neuralchowder Inc..
13
+
14
+ The Licensed Work includes, without limitation, Xema Core, Xema Runtime,
15
+ Xema Kernel, Xema control plane, Xema application runtime, Xema biome
16
+ runtime, Xema biome registry, Xema store services, Xema orchestration
17
+ services, Xema agents, Xema skills, Xema memory services, Xema APIs, Xema
18
+ user interfaces, Xema command-line tools, Xema deployment artifacts, Xema
19
+ templates, Xema specifications, Xema schemas, Xema manifests, Xema
20
+ documentation, Xema examples, and all source code, object code, binaries,
21
+ packages, modules, configuration files, manifests, schemas, examples,
22
+ templates, documentation, and derivative works included in or distributed
23
+ as part of the Xema software project.
24
+
25
+ The Licensed Work does not include any third-party software, libraries,
26
+ dependencies, packages, assets, or components that are distributed with the
27
+ Licensed Work but are governed by their own separate license terms. Such
28
+ third-party materials remain subject to their respective licenses.
29
+
30
+ A specific file, package, component, or directory may state that it is
31
+ governed by a different license. In that case, that specific file, package,
32
+ component, or directory is governed by the license expressly stated therein.
33
+
34
+ Additional Use Grant:
35
+
36
+ You may make production use of the Licensed Work, provided that your use
37
+ does not include offering, providing, making available, distributing,
38
+ hosting, managing, embedding, reselling, white-labeling, sublicensing,
39
+ commercializing, or otherwise making the Licensed Work, or any modified
40
+ version or derivative work of the Licensed Work, available to Third Parties
41
+ as part of a Competitive Offering.
42
+
43
+ The following definitions and clarifications form part of, and govern
44
+ the interpretation of, the Additional Use Grant set out above.
45
+
46
+ 1. "Production Use" means any use of the Licensed Work other than for
47
+ development, testing, evaluation, demonstration, experimentation,
48
+ benchmarking, or other non-production purposes.
49
+
50
+ 2. "Affiliate" means any entity that, directly or indirectly,
51
+ controls, is controlled by, or is under common control with you,
52
+ where "control" means ownership of more than fifty percent (50%) of
53
+ the voting interests of the entity, or the power to direct its
54
+ management.
55
+
56
+ 3. "Third Party" means any natural person or legal entity other than
57
+ you and your Affiliates.
58
+
59
+ 4. "Competitive Offering" means any product or service, made available
60
+ to one or more Third Parties for a fee or other consideration
61
+ (including without limitation on a paid, subscription,
62
+ advertising-supported, hosted, or managed-service basis), that is
63
+ offered or marketed as, or that competes with, a software platform,
64
+ runtime, orchestration system, agent or automation system,
65
+ extension or distribution marketplace, or other software system
66
+ that provides, in substantial part, the same or substantially
67
+ similar capabilities as those provided by the Licensed Work. A
68
+ product or service is a Competitive Offering whether the Licensed
69
+ Work is provided in whole or in part, alone or bundled with other
70
+ software, and whether modified or unmodified.
71
+
72
+ 5. Providing, hosting, or managing the Licensed Work for a Third Party,
73
+ or otherwise making the Licensed Work available to a Third Party as
74
+ a hosted or managed service such that the Third Party obtains the
75
+ principal value or functionality of the Licensed Work, is a
76
+ Competitive Offering and is not permitted by the Additional Use
77
+ Grant.
78
+
79
+ 6. Subject to the foregoing, the Additional Use Grant permits you to
80
+ make Production Use of the Licensed Work for your own internal
81
+ business purposes and to build, operate, and provide your own
82
+ products and services to Third Parties, provided that the Licensed
83
+ Work itself (whether modified or unmodified) is not the product or
84
+ service, and is not a Competitive Offering, made available to those
85
+ Third Parties.
86
+
87
+ 7. You may modify the Licensed Work and create derivative works for
88
+ any purpose permitted by this License. Any Production Use of such
89
+ modified or derivative works remains subject to the same
90
+ restrictions as the Licensed Work, including the prohibition on
91
+ Competitive Offerings.
92
+
93
+ 8. Use of the Licensed Work by your own employees, contractors, and
94
+ agents, acting on your behalf and for your benefit, is not by
95
+ itself making the Licensed Work available to a Third Party.
96
+
97
+ 9. Embedding or distributing the Licensed Work as a component of your
98
+ own product or service is permitted only where the Licensed Work
99
+ does not constitute the principal value of that product or service
100
+ and the product or service is not a Competitive Offering.
101
+
102
+ 10. Nothing in this Additional Use Grant grants any right to use any
103
+ name, trademark, service mark, or logo of the Licensor or its
104
+ Affiliates, except as reasonably required for customary
105
+ attribution.
106
+
107
+ 11. The rights stated in this Additional Use Grant are the maximum
108
+ rights granted for Production Use prior to the Change Date. Any
109
+ Production Use not expressly permitted requires a separate
110
+ commercial license from the Licensor.
111
+
112
+ 12. If any provision of this Additional Use Grant is held invalid or
113
+ unenforceable, that provision shall be limited or eliminated to
114
+ the minimum extent necessary so that the remainder of this
115
+ Additional Use Grant, and of this License, remains in full force
116
+ and effect. The Licensor reserves all rights not expressly granted
117
+ by this License.
118
+
119
+ Change Date: Four years from the date the specific version of the Licensed
120
+ Work is first publicly released by Licensor.
121
+
122
+ Change License: Mozilla Public License, Version 2.0
123
+
124
+ For information about alternative licensing arrangements, commercial
125
+ licensing, enterprise licensing, OEM licensing, appliance licensing, managed
126
+ service licensing, cloud provider licensing, or other commercial use of the
127
+ Licensed Work, please contact: licensing@neuralchowder.com
128
+
129
+ -----------------------------------------------------------------------------
130
+
131
+ Notice
132
+
133
+ Business Source License 1.1
134
+
135
+ Terms
136
+
137
+ The Licensor hereby grants you the right to copy, modify, create derivative
138
+ works, redistribute, and make non-production use of the Licensed Work. The
139
+ Licensor may make an Additional Use Grant, above, permitting limited
140
+ production use.
141
+
142
+ Effective on the Change Date, or the fourth anniversary of the first publicly
143
+ available distribution of a specific version of the Licensed Work under this
144
+ License, whichever comes first, the Licensor hereby grants you rights under
145
+ the terms of the Change License, and the rights granted in the paragraph above
146
+ terminate.
147
+
148
+ If your use of the Licensed Work does not comply with the requirements
149
+ currently in effect as described in this License, you must purchase a
150
+ commercial license from the Licensor, its affiliated entities, or authorized
151
+ resellers, or you must refrain from using the Licensed Work.
152
+
153
+ All copies of the original and modified Licensed Work, and derivative works of
154
+ the Licensed Work, are subject to this License. This License applies separately
155
+ for each version of the Licensed Work and the Change Date may vary for each
156
+ version of the Licensed Work released by Licensor.
157
+
158
+ You must conspicuously display this License on each original or modified copy
159
+ of the Licensed Work. If you receive the Licensed Work in original or modified
160
+ form from a third party, the terms and conditions set forth in this License
161
+ apply to your use of that work.
162
+
163
+ Any use of the Licensed Work in violation of this License will automatically
164
+ terminate your rights under this License for the current and all other
165
+ versions of the Licensed Work.
166
+
167
+ This License does not grant you any right in any trademark or logo of Licensor
168
+ or its affiliates, provided that you may use a trademark or logo of Licensor
169
+ as expressly required by this License.
170
+
171
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN
172
+ "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS
173
+ OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS
174
+ FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
package/README.md CHANGED
@@ -59,4 +59,4 @@ from the service's OpenAPI spec.
59
59
 
60
60
  ## License
61
61
 
62
- Apache-2.0 © Xema — [xema.dev](https://xema.dev)
62
+ Proprietary © Xema. All rights reserved. — [xema.dev](https://xema.dev)
@@ -16,7 +16,7 @@
16
16
  * configureClient({
17
17
  * baseUrl: 'http://governance-api:3400',
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://governance-api:3400',
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 });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Generated by orval v8.15.0 🍺
2
+ * Generated by orval v8.16.0 🍺
3
3
  * Do not edit manually.
4
4
  * Space Registry API
5
5
  * Authoritative Space ownership + data-classification plane: Space CRUD, hierarchy, and most-specific-wins classification resolution.
@@ -0,0 +1,5 @@
1
+ export declare const getOrgErasureControllerEraseUrl: (orgId: string) => string;
2
+ /**
3
+ * @summary Erase every row belonging to an org across this service's org-scoped models
4
+ */
5
+ export declare const orgErasureControllerErase: (orgId: string, options?: RequestInit) => Promise<void>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.orgErasureControllerErase = exports.getOrgErasureControllerEraseUrl = void 0;
4
+ /**
5
+ * Generated by orval v8.16.0 🍺
6
+ * Do not edit manually.
7
+ * Space Registry API
8
+ * Authoritative Space ownership + data-classification plane: Space CRUD, hierarchy, and most-specific-wins classification resolution.
9
+ * OpenAPI spec version: 0.1.0
10
+ */
11
+ const custom_fetch_1 = require("../../custom-fetch");
12
+ const getOrgErasureControllerEraseUrl = (orgId) => {
13
+ return `/internal/org-erasure/${orgId}`;
14
+ };
15
+ exports.getOrgErasureControllerEraseUrl = getOrgErasureControllerEraseUrl;
16
+ /**
17
+ * @summary Erase every row belonging to an org across this service's org-scoped models
18
+ */
19
+ const orgErasureControllerErase = async (orgId, options) => {
20
+ return (0, custom_fetch_1.customFetch)((0, exports.getOrgErasureControllerEraseUrl)(orgId), {
21
+ ...options,
22
+ method: 'POST'
23
+ });
24
+ };
25
+ exports.orgErasureControllerErase = orgErasureControllerErase;
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
3
  export * from './endpoints/capabilities/capabilities';
4
+ export * from './endpoints/org-erasure/org-erasure';
package/dist/index.js CHANGED
@@ -23,3 +23,4 @@ Object.defineProperty(exports, "ClientError", { enumerable: true, get: function
23
23
  Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
24
24
  __exportStar(require("./models"), exports);
25
25
  __exportStar(require("./endpoints/capabilities/capabilities"), exports);
26
+ __exportStar(require("./endpoints/org-erasure/org-erasure"), exports);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Generated by orval v8.15.0 🍺
2
+ * Generated by orval v8.16.0 🍺
3
3
  * Do not edit manually.
4
4
  * Space Registry API
5
5
  * Authoritative Space ownership + data-classification plane: Space CRUD, hierarchy, and most-specific-wins classification resolution.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Generated by orval v8.15.0 🍺
3
+ * Generated by orval v8.16.0 🍺
4
4
  * Do not edit manually.
5
5
  * Space Registry API
6
6
  * Authoritative Space ownership + data-classification plane: Space CRUD, hierarchy, and most-specific-wins classification resolution.
package/package.json CHANGED
@@ -1,21 +1,17 @@
1
1
  {
2
2
  "name": "@xemahq/space-registry-internal-api-client",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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
- },
13
9
  "publishConfig": {
14
- "registry": "https://registry.npmjs.org/",
15
- "access": "public"
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
16
12
  },
17
13
  "devDependencies": {
18
- "typescript": "catalog:"
14
+ "typescript": "5.9.3"
19
15
  },
20
16
  "xema": {
21
17
  "kind": "api-client",
@@ -23,7 +19,20 @@
23
19
  "service": "space-registry-api",
24
20
  "biome": "space-registry",
25
21
  "target": "server",
26
- "generator": "@xemahq/api-client-generator@0.1.2",
22
+ "generator": "@xemahq/api-client-generator@0.2.0",
27
23
  "source": "openapi.internal.json"
24
+ },
25
+ "license": "LicenseRef-Xema-BSL-1.1",
26
+ "author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
27
+ "homepage": "https://xema.dev",
28
+ "bugs": "https://github.com/xema-dev/xema-community/issues",
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/xema-dev/xema-community.git",
32
+ "directory": "packages/clients/space-registry-internal-api"
33
+ },
34
+ "description": "Generated internal API client for the Xema space-registry-api service.",
35
+ "scripts": {
36
+ "build": "tsc -p tsconfig.json"
28
37
  }
29
- }
38
+ }