@xemahq/space-registry-api-client 0.2.12 → 0.2.18

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 (30) hide show
  1. package/dist/custom-fetch.js +56 -4
  2. package/dist/endpoints/spaces/spaces.d.ts +2 -2
  3. package/dist/endpoints/spaces/spaces.js +2 -2
  4. package/dist/models/createSpaceDto.d.ts +4 -1
  5. package/dist/models/growthGateDto.d.ts +4 -1
  6. package/dist/models/index.d.ts +5 -4
  7. package/dist/models/index.js +5 -4
  8. package/dist/models/memberShellModeOverrideDto.d.ts +1 -0
  9. package/dist/models/orgGovernanceSettingsDto.d.ts +3 -0
  10. package/dist/models/orgGovernanceSettingsDto.js +0 -5
  11. package/dist/models/parameterSourceKind.d.ts +14 -0
  12. package/dist/models/parameterSourceKind.js +13 -0
  13. package/dist/models/parameterStepOutcome.d.ts +14 -0
  14. package/dist/models/parameterStepOutcome.js +13 -0
  15. package/dist/models/problemDetailsDto.d.ts +28 -0
  16. package/dist/models/problemFieldIssueDto.d.ts +10 -0
  17. package/dist/models/resourceRolesControllerResolveParams.d.ts +7 -0
  18. package/dist/models/spaceClassificationDto.d.ts +13 -0
  19. package/dist/models/spaceClassificationStepDto.d.ts +17 -0
  20. package/dist/models/updateOrgGovernanceSettingsDto.d.ts +4 -1
  21. package/dist/models/updateOrgGrowthSettingsDto.d.ts +2 -0
  22. package/package.json +26 -2
  23. package/dist/models/errorDetailsDto.d.ts +0 -10
  24. package/dist/models/errorDetailsDtoDetails.d.ts +0 -11
  25. package/dist/models/errorPayloadDto.d.ts +0 -11
  26. package/dist/models/errorResponseDto.d.ts +0 -9
  27. package/dist/models/errorResponseDto.js +0 -2
  28. /package/dist/models/{errorDetailsDto.js → problemDetailsDto.js} +0 -0
  29. /package/dist/models/{errorDetailsDtoDetails.js → problemFieldIssueDto.js} +0 -0
  30. /package/dist/models/{errorPayloadDto.js → spaceClassificationStepDto.js} +0 -0
@@ -223,14 +223,66 @@ const customFetch = async (url, options) => {
223
223
  }
224
224
  };
225
225
  exports.customFetch = customFetch;
226
- async function parseBody(response) {
227
- const contentType = response.headers.get('content-type');
228
- if (contentType?.includes('application/json')) {
229
- return response.json();
226
+ /**
227
+ * Does this media type carry JSON?
228
+ *
229
+ * ── THE OUTAGE THIS FIXES ────────────────────────────────────────────────
230
+ *
231
+ * This used to be `contentType?.includes('application/json')`, and EVERY error
232
+ * this fleet returns failed that test. The platform's `GlobalExceptionFilter`
233
+ * emits RFC 9457 problem documents and sets the media type explicitly —
234
+ * `.type(PROBLEM_DETAILS_CONTENT_TYPE)` before `.json()`, so it cannot be
235
+ * overridden — and that constant is `application/problem+json`, which does NOT
236
+ * contain the substring `application/json`: after `application/` comes
237
+ * `problem+json`.
238
+ *
239
+ * So every non-2xx body fell through to `response.text()` and reached the
240
+ * caller as an UNPARSED STRING. `ClientError.body` is typed `unknown`, so
241
+ * nothing complained; every consumer that reads a machine-readable code off an
242
+ * error — `error.body.code`, `error.body.details.code` — silently read
243
+ * `undefined` instead, for every error, in every service.
244
+ *
245
+ * Measured in production on 2026-09-15: skill-registry-api's
246
+ * `resolveOrNull()` absorbs `RELEASE_CHANNEL_NOT_FOUND` into `null` by exactly
247
+ * that read. With the code unreadable the absorb never fired, a routine "no
248
+ * pointer on this channel" 404 became a 500 on `GET /skills` and
249
+ * `GET /describe-objects`, and agent-session-api's `apply_control_bundle` step
250
+ * aborted EVERY session launch in the organisation — 7,871 failed resolutions
251
+ * an hour. A fix written for that exact page months earlier was present in the
252
+ * running image and could not help, because the classifier it repaired was
253
+ * being handed a string.
254
+ *
255
+ * ── WHY THE STRUCTURED SUFFIX, NOT A SECOND SUBSTRING ────────────────────
256
+ *
257
+ * Adding `|| includes('application/problem+json')` would fix this one media
258
+ * type and leave the next one — `application/vnd.api+json`, and anything else
259
+ * a service legitimately emits. RFC 6839 defines `+json` as the structured
260
+ * syntax suffix meaning "this is JSON"; that is the actual rule, so it is the
261
+ * rule implemented. Parameters are stripped first, because
262
+ * `application/problem+json; charset=utf-8` is the same media type.
263
+ */
264
+ function isJsonMediaType(contentType) {
265
+ if (contentType === null) {
266
+ return false;
230
267
  }
268
+ const essence = contentType.split(';')[0]?.trim().toLowerCase() ?? '';
269
+ return essence === 'application/json' || essence.endsWith('+json');
270
+ }
271
+ async function parseBody(response) {
272
+ // 204 FIRST, and deliberately — this ORDER is carried from `develop`, which
273
+ // fixed the same defect independently and got this half right where `main`
274
+ // did not. A 204 carries no body, so `response.json()` on one throws
275
+ // SyntaxError; and a 204 whose headers STILL declare a JSON content type is
276
+ // ordinary, because the framework sets the header before the handler returns
277
+ // nothing. With the JSON branch first, a documented `undefined` becomes a
278
+ // thrown parse error. Pinned by a case in `transport-problem-json.test.cjs`.
231
279
  if (response.status === 204) {
232
280
  return undefined;
233
281
  }
282
+ const contentType = response.headers.get('content-type');
283
+ if (isJsonMediaType(contentType)) {
284
+ return response.json();
285
+ }
234
286
  return response.text();
235
287
  }
236
288
  function parseRetryAfter(value) {
@@ -65,8 +65,8 @@ export declare const getSpacesControllerAncestorsUrl: (params: SpacesControllerA
65
65
  export declare const spacesControllerAncestors: (params: SpacesControllerAncestorsParams, options?: RequestInit) => Promise<SpaceAncestorsDtoDataEnvelope>;
66
66
  export declare const getSpacesControllerClassificationUrl: (params: SpacesControllerClassificationParams) => string;
67
67
  /**
68
- * Same tenant rule as /spaces/resolve. A data-classification label is exactly the kind of metadata a cross-tenant read must not expose, so a ref naming another organization is refused with 403.
69
- * @summary Resolve effective (most-specific-wins) classification over the ancestry.
68
+ * The monotone JOIN over every declaration on the ref and its ancestors — NOT most-specific-wins, which is the whole safety property: a project declaring `public` cannot escape an org that declared `secret`. The response carries the ANSWER as well as the value — `configured`, `source`, the full `inheritancePath` (silent rungs included) and `clampedByRefUri`, the ancestor that overrode a nearer declaration. Same tenant rule as /spaces/resolve. A data-classification label is exactly the kind of metadata a cross-tenant read must not expose, so a ref naming another organization is refused with 403.
69
+ * @summary Resolve the effective classification over the ancestry, with its source.
70
70
  */
71
71
  export declare const spacesControllerClassification: (params: SpacesControllerClassificationParams, options?: RequestInit) => Promise<SpaceClassificationDtoDataEnvelope>;
72
72
  export declare const getSpacesControllerGetByIdUrl: (id: string) => string;
@@ -240,8 +240,8 @@ const getSpacesControllerClassificationUrl = (params) => {
240
240
  };
241
241
  exports.getSpacesControllerClassificationUrl = getSpacesControllerClassificationUrl;
242
242
  /**
243
- * Same tenant rule as /spaces/resolve. A data-classification label is exactly the kind of metadata a cross-tenant read must not expose, so a ref naming another organization is refused with 403.
244
- * @summary Resolve effective (most-specific-wins) classification over the ancestry.
243
+ * The monotone JOIN over every declaration on the ref and its ancestors — NOT most-specific-wins, which is the whole safety property: a project declaring `public` cannot escape an org that declared `secret`. The response carries the ANSWER as well as the value — `configured`, `source`, the full `inheritancePath` (silent rungs included) and `clampedByRefUri`, the ancestor that overrode a nearer declaration. Same tenant rule as /spaces/resolve. A data-classification label is exactly the kind of metadata a cross-tenant read must not expose, so a ref naming another organization is refused with 403.
244
+ * @summary Resolve the effective classification over the ancestry, with its source.
245
245
  */
246
246
  const spacesControllerClassification = async (params, options) => {
247
247
  return (0, custom_fetch_1.customFetch)((0, exports.getSpacesControllerClassificationUrl)(params), {
@@ -6,7 +6,10 @@
6
6
  import type { CreateSpaceDtoLabels } from './createSpaceDtoLabels.js';
7
7
  import type { DataClassification } from './dataClassification.js';
8
8
  export interface CreateSpaceDto {
9
- /** Canonical xema:// Space URI to create. */
9
+ /**
10
+ * Canonical xema:// Space URI to create.
11
+ * @pattern /^xema:\/\//
12
+ */
10
13
  ref: string;
11
14
  /** Human-readable label for this Space. */
12
15
  displayName: string;
@@ -9,6 +9,9 @@ export interface GrowthGateDto {
9
9
  enabled?: boolean;
10
10
  /** Minimum organization role. Absent means every member satisfies it. */
11
11
  minimumOrgRole?: GrowthGateDtoMinimumOrgRole;
12
- /** Restrict to members of these identity groups. Absent or empty means no group restriction was stated — it never means "nobody". */
12
+ /**
13
+ * Restrict to members of these identity groups. Absent or empty means no group restriction was stated — it never means "nobody".
14
+ * @items.maxLength 256
15
+ */
13
16
  restrictedToGroupIds?: string[];
14
17
  }
@@ -1,10 +1,6 @@
1
1
  export * from './createSpaceDto';
2
2
  export * from './createSpaceDtoLabels';
3
3
  export * from './dataClassification';
4
- export * from './errorDetailsDto';
5
- export * from './errorDetailsDtoDetails';
6
- export * from './errorPayloadDto';
7
- export * from './errorResponseDto';
8
4
  export * from './growthGateDto';
9
5
  export * from './growthGateDtoMinimumOrgRole';
10
6
  export * from './memberShellModeOverrideDto';
@@ -18,6 +14,10 @@ export * from './orgGovernanceSettingsDto';
18
14
  export * from './orgGovernanceSettingsDtoDataEnvelope';
19
15
  export * from './orgGrowthSettingsDto';
20
16
  export * from './orgGrowthSettingsDtoDataEnvelope';
17
+ export * from './parameterSourceKind';
18
+ export * from './parameterStepOutcome';
19
+ export * from './problemDetailsDto';
20
+ export * from './problemFieldIssueDto';
21
21
  export * from './resolvedResourceRoleBindingResponseDto';
22
22
  export * from './resolvedResourceRoleBindingResponseDtoDataEnvelope';
23
23
  export * from './resourceRoleBindingListResponseDto';
@@ -39,6 +39,7 @@ export * from './spaceAncestorsDto';
39
39
  export * from './spaceAncestorsDtoDataEnvelope';
40
40
  export * from './spaceClassificationDto';
41
41
  export * from './spaceClassificationDtoDataEnvelope';
42
+ export * from './spaceClassificationStepDto';
42
43
  export * from './spaceDto';
43
44
  export * from './spaceDtoDataArrayEnvelope';
44
45
  export * from './spaceDtoDataEnvelope';
@@ -18,10 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(require("./createSpaceDto"), exports);
19
19
  __exportStar(require("./createSpaceDtoLabels"), exports);
20
20
  __exportStar(require("./dataClassification"), exports);
21
- __exportStar(require("./errorDetailsDto"), exports);
22
- __exportStar(require("./errorDetailsDtoDetails"), exports);
23
- __exportStar(require("./errorPayloadDto"), exports);
24
- __exportStar(require("./errorResponseDto"), exports);
25
21
  __exportStar(require("./growthGateDto"), exports);
26
22
  __exportStar(require("./growthGateDtoMinimumOrgRole"), exports);
27
23
  __exportStar(require("./memberShellModeOverrideDto"), exports);
@@ -35,6 +31,10 @@ __exportStar(require("./orgGovernanceSettingsDto"), exports);
35
31
  __exportStar(require("./orgGovernanceSettingsDtoDataEnvelope"), exports);
36
32
  __exportStar(require("./orgGrowthSettingsDto"), exports);
37
33
  __exportStar(require("./orgGrowthSettingsDtoDataEnvelope"), exports);
34
+ __exportStar(require("./parameterSourceKind"), exports);
35
+ __exportStar(require("./parameterStepOutcome"), exports);
36
+ __exportStar(require("./problemDetailsDto"), exports);
37
+ __exportStar(require("./problemFieldIssueDto"), exports);
38
38
  __exportStar(require("./resolvedResourceRoleBindingResponseDto"), exports);
39
39
  __exportStar(require("./resolvedResourceRoleBindingResponseDtoDataEnvelope"), exports);
40
40
  __exportStar(require("./resourceRoleBindingListResponseDto"), exports);
@@ -56,6 +56,7 @@ __exportStar(require("./spaceAncestorsDto"), exports);
56
56
  __exportStar(require("./spaceAncestorsDtoDataEnvelope"), exports);
57
57
  __exportStar(require("./spaceClassificationDto"), exports);
58
58
  __exportStar(require("./spaceClassificationDtoDataEnvelope"), exports);
59
+ __exportStar(require("./spaceClassificationStepDto"), exports);
59
60
  __exportStar(require("./spaceDto"), exports);
60
61
  __exportStar(require("./spaceDtoDataArrayEnvelope"), exports);
61
62
  __exportStar(require("./spaceDtoDataEnvelope"), exports);
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import type { MemberShellModeOverrideDtoMode } from './memberShellModeOverrideDtoMode.js';
7
7
  export interface MemberShellModeOverrideDto {
8
+ /** @maxLength 256 */
8
9
  groupId: string;
9
10
  mode: MemberShellModeOverrideDtoMode;
10
11
  }
@@ -3,9 +3,12 @@
3
3
  * Space Registry API
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
+ import type { ParameterSourceKind } from './parameterSourceKind.js';
6
7
  export interface OrgGovernanceSettingsDto {
7
8
  /** False when this organization has never written a governance setting — the resting state, not an error. */
8
9
  configured: boolean;
10
+ /** Where an effective value came from: `platform-default` (nobody stated it anywhere), `stated` (the scope being read stated it) or `inherited` (a less specific scope in the same chain stated it). */
11
+ source: ParameterSourceKind;
9
12
  /** When true, LOWERING a Space classification opens a Decision addressed to the data-governance group instead of performing the write. Raising a classification is never affected. */
10
13
  downgradeSeparationOfDuties: boolean;
11
14
  /**
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Space Registry API
5
- * OpenAPI spec version: 0.1.0
6
- */
7
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ /**
7
+ * Where an effective value came from: `platform-default` (nobody stated it anywhere), `stated` (the scope being read stated it) or `inherited` (a less specific scope in the same chain stated it).
8
+ */
9
+ export type ParameterSourceKind = typeof ParameterSourceKind[keyof typeof ParameterSourceKind];
10
+ export declare const ParameterSourceKind: {
11
+ readonly 'platform-default': "platform-default";
12
+ readonly stated: "stated";
13
+ readonly inherited: "inherited";
14
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Space Registry API
5
+ * OpenAPI spec version: 0.1.0
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ParameterSourceKind = void 0;
9
+ exports.ParameterSourceKind = {
10
+ 'platform-default': 'platform-default',
11
+ stated: 'stated',
12
+ inherited: 'inherited',
13
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ /**
7
+ * What this rung did: `silent` (declared nothing), `decided` (its value IS the effective one — exactly one rung ever is), `shadowed` (it declared something and something else decided).
8
+ */
9
+ export type ParameterStepOutcome = typeof ParameterStepOutcome[keyof typeof ParameterStepOutcome];
10
+ export declare const ParameterStepOutcome: {
11
+ readonly silent: "silent";
12
+ readonly decided: "decided";
13
+ readonly shadowed: "shadowed";
14
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Space Registry API
5
+ * OpenAPI spec version: 0.1.0
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ParameterStepOutcome = void 0;
9
+ exports.ParameterStepOutcome = {
10
+ silent: 'silent',
11
+ decided: 'decided',
12
+ shadowed: 'shadowed',
13
+ };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ import type { ProblemFieldIssueDto } from './problemFieldIssueDto.js';
7
+ /**
8
+ * RFC 9457 problem document. The declared members are the reserved core; extension members are TOP-LEVEL and OPEN, owned by the refusing plane.
9
+ */
10
+ export interface ProblemDetailsDto {
11
+ /** Absolute URI identifying the refusal TYPE. Derived one-to-one from `code`, so a caller may branch on either and can never be told two different things. Never `about:blank`. */
12
+ type: string;
13
+ /** Short, human-readable, and STABLE for a given `type`. Never per-occurrence — that is `detail`. */
14
+ title: string;
15
+ /** The HTTP status code, repeated in the body so a logged document is self-contained. */
16
+ status: number;
17
+ /** SCREAMING_SNAKE_CASE. The machine-branchable refusal, and the value a policy rule, a retry predicate and a UI branch all name. */
18
+ code: string;
19
+ /** Human-readable and specific to THIS occurrence. */
20
+ detail?: string;
21
+ /** URI reference identifying the occurrence — a request path, a run, a row. */
22
+ instance?: string;
23
+ /** W3C trace-context trace-id, present when the caller sent a `traceparent`. Omitted rather than invented when it did not. */
24
+ traceId?: string;
25
+ /** Field-level issues, when the refusal is about the request body. */
26
+ errors?: ProblemFieldIssueDto[];
27
+ [key: string]: unknown;
28
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ export interface ProblemFieldIssueDto {
7
+ /** RFC 6901 JSON Pointer into the request body. Root is "/". */
8
+ pointer: string;
9
+ detail: string;
10
+ }
@@ -4,6 +4,13 @@
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
6
  export type ResourceRolesControllerResolveParams = {
7
+ /**
8
+ * The owner space to resolve AT, as `<fence>::<SpaceRef>`. Resolution walks the ladder from here; the most specific statement wins.
9
+ */
7
10
  ownerSpaceRef: string;
11
+ /**
12
+ * The role, as `<resourceKind>.<role>`. Roles are an OPEN vocabulary, so this is validated for GRAMMAR only — an unknown but well-formed role resolves to `configured: false`, which is an answer rather than an error.
13
+ * @pattern ^[a-z][a-z0-9-]{0,62}\.[a-z][a-z0-9-]{0,62}$
14
+ */
8
15
  roleKey: string;
9
16
  };
@@ -4,6 +4,8 @@
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
6
  import type { DataClassification } from './dataClassification.js';
7
+ import type { ParameterSourceKind } from './parameterSourceKind.js';
8
+ import type { SpaceClassificationStepDto } from './spaceClassificationStepDto.js';
7
9
  export interface SpaceClassificationDto {
8
10
  /** The Space URI that was resolved. */
9
11
  refUri: string;
@@ -14,4 +16,15 @@ export interface SpaceClassificationDto {
14
16
  * @nullable
15
17
  */
16
18
  resolvedFromRefUri?: string | null;
19
+ /** Did ANYBODY in the chain declare a classification? A different fact from what the value is: `false` means "nobody has armed this", which a UI must not present as "this is public". */
20
+ configured: boolean;
21
+ /** `platform-default` (nobody declared anything), `stated` (this ref declared the winning value), `inherited` (an ancestor did). */
22
+ source: ParameterSourceKind;
23
+ /** Every rung considered, CLOSEST-FIRST with the ref itself at index 0, silent rungs included. */
24
+ inheritancePath: SpaceClassificationStepDto[];
25
+ /**
26
+ * The ANCESTOR whose floor overrode a declaration this ref itself made — Law 9's "which override decided this". Null when nothing was taken away, including when this ref declared nothing.
27
+ * @nullable
28
+ */
29
+ clampedByRefUri?: string | null;
17
30
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ import type { DataClassification } from './dataClassification.js';
7
+ import type { ParameterStepOutcome } from './parameterStepOutcome.js';
8
+ export interface SpaceClassificationStepDto {
9
+ /** The Space URI of this rung. */
10
+ refUri: string;
11
+ /** The rung's tier (`SpaceKind` value). Carried so a UI can say "your org's floor" without re-parsing the URI. */
12
+ tier: string;
13
+ /** What THIS rung declares. Null when it declares nothing — the join's identity, and indistinguishable from having no row at all. */
14
+ declared?: DataClassification | null;
15
+ /** What this rung did: `silent` (declared nothing), `decided` (its value IS the effective one — exactly one rung ever is), `shadowed` (it declared something and something else decided). */
16
+ outcome: ParameterStepOutcome;
17
+ }
@@ -6,7 +6,10 @@
6
6
  export interface UpdateOrgGovernanceSettingsDto {
7
7
  /** Arm (true) or disarm (false) separation of duties on classification downgrades. Arming REQUIRES dataGovernanceGroupId. */
8
8
  downgradeSeparationOfDuties: boolean;
9
- /** Identity group the approval is addressed to. decision-api expands it against the identity directory at open time; an empty or unknown group fails the downgrade fast rather than producing an ask nobody can answer. */
9
+ /**
10
+ * Identity group the approval is addressed to. decision-api expands it against the identity directory at open time; an empty or unknown group fails the downgrade fast rather than producing an ask nobody can answer.
11
+ * @maxLength 256
12
+ */
10
13
  dataGovernanceGroupId?: string;
11
14
  /**
12
15
  * Approvals required. Defaults to 2.
@@ -15,6 +15,8 @@ export interface UpdateOrgGrowthSettingsDto {
15
15
  * @maximum 10
16
16
  */
17
17
  internalPublishReviewQuorum?: number;
18
+ /** @items.maxLength 128 */
18
19
  allowedCapabilityDomains?: string[];
20
+ /** @items.maxLength 128 */
19
21
  allowedConnectorProviders?: string[];
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/space-registry-api-client",
3
- "version": "0.2.12",
3
+ "version": "0.2.18",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -19,7 +19,7 @@
19
19
  "service": "space-registry-api",
20
20
  "biome": "space-registry",
21
21
  "target": "server",
22
- "generator": "@xemahq/api-client-generator@0.15.2",
22
+ "generator": "@xemahq/api-client-generator@0.21.0",
23
23
  "source": "openapi.public.json"
24
24
  },
25
25
  "license": "LicenseRef-Xema-BSL-1.1",
@@ -32,6 +32,30 @@
32
32
  "directory": "packages/clients/space-registry-api"
33
33
  },
34
34
  "description": "Generated public API client for the Xema space-registry-api service.",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "default": "./dist/index.js"
39
+ },
40
+ "./models": {
41
+ "types": "./dist/models/index.d.ts",
42
+ "default": "./dist/models/index.js"
43
+ },
44
+ "./models/*": {
45
+ "types": "./dist/models/*.d.ts",
46
+ "default": "./dist/models/*.js"
47
+ },
48
+ "./endpoints/*": {
49
+ "types": "./dist/endpoints/*.d.ts",
50
+ "default": "./dist/endpoints/*.js"
51
+ },
52
+ "./custom-fetch": {
53
+ "types": "./dist/custom-fetch.d.ts",
54
+ "default": "./dist/custom-fetch.js"
55
+ },
56
+ "./package.json": "./package.json"
57
+ },
58
+ "sideEffects": false,
35
59
  "scripts": {
36
60
  "build": "tsc -p tsconfig.json"
37
61
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Space Registry API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- import type { ErrorDetailsDtoDetails } from './errorDetailsDtoDetails.js';
7
- export interface ErrorDetailsDto {
8
- /** @nullable */
9
- details: ErrorDetailsDtoDetails;
10
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Space Registry API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- /**
7
- * @nullable
8
- */
9
- export type ErrorDetailsDtoDetails = {
10
- [key: string]: unknown;
11
- } | null;
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Space Registry API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- import type { ErrorDetailsDto } from './errorDetailsDto.js';
7
- export interface ErrorPayloadDto {
8
- code: string;
9
- message: string;
10
- details: ErrorDetailsDto | null;
11
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Space Registry API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- import type { ErrorPayloadDto } from './errorPayloadDto.js';
7
- export interface ErrorResponseDto {
8
- error: ErrorPayloadDto;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });