@ai-matrx/api 0.1.6 → 0.1.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog — @ai-matrx/api
2
2
 
3
+ ## 0.1.7
4
+
5
+ **Fix: `@ai-matrx/api/credentials` types.** 0.1.6 re-exported auth's credentials with a bare
6
+ `export *` of an external sibling, which built an EMPTY `dist/credentials.d.ts`. The names are
7
+ now re-exported by name (`MATRX_HEADERS`, `API_KEY_PREFIX`, `credentialToHeaders`,
8
+ `toCredentialsPort` and the four types), so types and the publish-time sibling-import guard see them.
9
+
3
10
  ## 0.1.6
4
11
 
5
12
  **Un-bundled (Wave 0 W14).** `@ai-matrx/auth` is now a real dependency (packed as `latest`)
@@ -0,0 +1 @@
1
+ export { API_KEY_PREFIX, MATRX_HEADERS, credentialToHeaders, toCredentialsPort } from '@ai-matrx/auth/credentials';
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var credentials = require('@ai-matrx/auth/credentials');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "API_KEY_PREFIX", {
8
+ enumerable: true,
9
+ get: function () { return credentials.API_KEY_PREFIX; }
10
+ });
11
+ Object.defineProperty(exports, "MATRX_HEADERS", {
12
+ enumerable: true,
13
+ get: function () { return credentials.MATRX_HEADERS; }
14
+ });
15
+ Object.defineProperty(exports, "credentialToHeaders", {
16
+ enumerable: true,
17
+ get: function () { return credentials.credentialToHeaders; }
18
+ });
19
+ Object.defineProperty(exports, "toCredentialsPort", {
20
+ enumerable: true,
21
+ get: function () { return credentials.toCredentialsPort; }
22
+ });
@@ -1,4 +1,22 @@
1
1
  'use strict';
2
2
 
3
- require('./chunk-PJXXT3GB.cjs');
3
+ var chunkMVXD6WI6_cjs = require('./chunk-MVXD6WI6.cjs');
4
4
 
5
+
6
+
7
+ Object.defineProperty(exports, "API_KEY_PREFIX", {
8
+ enumerable: true,
9
+ get: function () { return chunkMVXD6WI6_cjs.API_KEY_PREFIX; }
10
+ });
11
+ Object.defineProperty(exports, "MATRX_HEADERS", {
12
+ enumerable: true,
13
+ get: function () { return chunkMVXD6WI6_cjs.MATRX_HEADERS; }
14
+ });
15
+ Object.defineProperty(exports, "credentialToHeaders", {
16
+ enumerable: true,
17
+ get: function () { return chunkMVXD6WI6_cjs.credentialToHeaders; }
18
+ });
19
+ Object.defineProperty(exports, "toCredentialsPort", {
20
+ enumerable: true,
21
+ get: function () { return chunkMVXD6WI6_cjs.toCredentialsPort; }
22
+ });
@@ -1 +1 @@
1
- export * from '@ai-matrx/auth/credentials';
1
+ export { API_KEY_PREFIX, CredentialsPort, CredentialsSetting, MATRX_HEADERS, MatrxCredential, MatrxCredentialKind, credentialToHeaders, toCredentialsPort } from '@ai-matrx/auth/credentials';
@@ -1 +1 @@
1
- export * from '@ai-matrx/auth/credentials';
1
+ export { API_KEY_PREFIX, CredentialsPort, CredentialsSetting, MATRX_HEADERS, MatrxCredential, MatrxCredentialKind, credentialToHeaders, toCredentialsPort } from '@ai-matrx/auth/credentials';
@@ -1 +1 @@
1
- import './chunk-K27FH34N.js';
1
+ export { API_KEY_PREFIX, MATRX_HEADERS, credentialToHeaders, toCredentialsPort } from './chunk-7MZPBCFV.js';
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkFNIYADWI_cjs = require('./chunk-FNIYADWI.cjs');
4
- require('./chunk-PJXXT3GB.cjs');
4
+ var chunkMVXD6WI6_cjs = require('./chunk-MVXD6WI6.cjs');
5
5
  var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
6
6
  var chunk2SXAAKGV_cjs = require('./chunk-2SXAAKGV.cjs');
7
7
  var credentials = require('@ai-matrx/auth/credentials');
@@ -1745,6 +1745,22 @@ Object.defineProperty(exports, "monitorStream", {
1745
1745
  enumerable: true,
1746
1746
  get: function () { return chunkFNIYADWI_cjs.monitorStream; }
1747
1747
  });
1748
+ Object.defineProperty(exports, "API_KEY_PREFIX", {
1749
+ enumerable: true,
1750
+ get: function () { return chunkMVXD6WI6_cjs.API_KEY_PREFIX; }
1751
+ });
1752
+ Object.defineProperty(exports, "MATRX_HEADERS", {
1753
+ enumerable: true,
1754
+ get: function () { return chunkMVXD6WI6_cjs.MATRX_HEADERS; }
1755
+ });
1756
+ Object.defineProperty(exports, "credentialToHeaders", {
1757
+ enumerable: true,
1758
+ get: function () { return chunkMVXD6WI6_cjs.credentialToHeaders; }
1759
+ });
1760
+ Object.defineProperty(exports, "toCredentialsPort", {
1761
+ enumerable: true,
1762
+ get: function () { return chunkMVXD6WI6_cjs.toCredentialsPort; }
1763
+ });
1748
1764
  Object.defineProperty(exports, "BackendApiError", {
1749
1765
  enumerable: true,
1750
1766
  get: function () { return chunkUO3H55R3_cjs.BackendApiError; }
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, c as MatrxStreamEnvelopeObservation, d as MatrxSseFrame } from './index-Xx6L_pWk.cjs';
2
2
  export { A as Api, e as ApiRequestInfo, a as ApiStream, f as AuthTier, g as CONTRACT_SHA256, C as CallOptions, h as CreateApiOptions, D as DEPLOYMENTS, i as DOMAINS, j as DeploymentName, E as Environment, H as HttpMethod, J as JsonOrStream, N as NdjsonEvent, O as OperationArgs, k as OperationDescriptor, l as OrgRule, S as SseEvent, m as StreamKind, n as createApi, o as openJsonOrStream, p as openStream } from './index-Xx6L_pWk.cjs';
3
3
  import { CredentialsPort } from '@ai-matrx/auth/credentials';
4
- export * from '@ai-matrx/auth/credentials';
4
+ export { API_KEY_PREFIX, CredentialsPort, CredentialsSetting, MATRX_HEADERS, MatrxCredential, MatrxCredentialKind, credentialToHeaders, toCredentialsPort } from '@ai-matrx/auth/credentials';
5
5
  import { ResilientFetchOptions } from './net.cjs';
6
6
  export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, NetError, NetErrorCode, NetworkError, OfflineError, ResilientFetchResult, RetryOptions, StreamMonitorOptions, TotalTimeoutError, extractErrorMessage, isNetError, isTransportFailure, monitorStream, resilientFetch, toNetError, withRetry } from './net.cjs';
7
7
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, c as MatrxStreamEnvelopeObservation, d as MatrxSseFrame } from './index-Xx6L_pWk.js';
2
2
  export { A as Api, e as ApiRequestInfo, a as ApiStream, f as AuthTier, g as CONTRACT_SHA256, C as CallOptions, h as CreateApiOptions, D as DEPLOYMENTS, i as DOMAINS, j as DeploymentName, E as Environment, H as HttpMethod, J as JsonOrStream, N as NdjsonEvent, O as OperationArgs, k as OperationDescriptor, l as OrgRule, S as SseEvent, m as StreamKind, n as createApi, o as openJsonOrStream, p as openStream } from './index-Xx6L_pWk.js';
3
3
  import { CredentialsPort } from '@ai-matrx/auth/credentials';
4
- export * from '@ai-matrx/auth/credentials';
4
+ export { API_KEY_PREFIX, CredentialsPort, CredentialsSetting, MATRX_HEADERS, MatrxCredential, MatrxCredentialKind, credentialToHeaders, toCredentialsPort } from '@ai-matrx/auth/credentials';
5
5
  import { ResilientFetchOptions } from './net.js';
6
6
  export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, NetError, NetErrorCode, NetworkError, OfflineError, ResilientFetchResult, RetryOptions, StreamMonitorOptions, TotalTimeoutError, extractErrorMessage, isNetError, isTransportFailure, monitorStream, resilientFetch, toNetError, withRetry } from './net.js';
7
7
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { monitorStream } from './chunk-YTEOFGFC.js';
2
- import './chunk-K27FH34N.js';
2
+ export { API_KEY_PREFIX, MATRX_HEADERS, credentialToHeaders, toCredentialsPort } from './chunk-7MZPBCFV.js';
3
3
  import { OrganizationContextError, BackendApiError, parseHttpError, MatrxApiError, applyOrganizationContextHeader, extractMatrxErrorCode, extractMatrxErrorMessage, readMatrxNdjsonStream, readMatrxSseStream, requireOrganizationContext, StreamTransportError } from './chunk-2FJPWNXG.js';
4
4
  export { BackendApiError, CONTRACT_SHA256, DEPLOYMENTS, DOMAINS, MatrxApiError, OrganizationContextError, StreamTransportError, applyOrganizationContextHeader, assertOrganizationMatchesOperation, assertQueryOrganizationMatchesContext, createApi, createOrganizationOperation, describeBackendFailure, extractMatrxErrorCode, extractMatrxErrorMessage, getUserMessage, isGenericUserMessage, isStreamTransportLost, openJsonOrStream, openStream, parseCallApiError, parseHttpError, parseHttpErrorBody, parsePersistedBackendError, parseStreamError, requireOrganizationContext, unwrapUpstreamError } from './chunk-2FJPWNXG.js';
5
5
  import { resilientFetch, isNetError, extractErrorMessage } from './chunk-KIEAFMKB.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/api",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "The one way every app talks to every AI Matrx server: generated from the server contract, split by domain so an app loads only the requests it calls. Transport, five credential kinds, organization binding, streams, job follow. No screens, app state or database code.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -364,8 +364,8 @@
364
364
  "./package.json": "./package.json"
365
365
  },
366
366
  "dependencies": {
367
- "@ai-matrx/kit": "latest",
368
- "@ai-matrx/auth": "latest"
367
+ "@ai-matrx/auth": "latest",
368
+ "@ai-matrx/kit": "latest"
369
369
  },
370
370
  "devDependencies": {
371
371
  "@arethetypeswrong/cli": "^0.18.5",
@@ -417,5 +417,5 @@
417
417
  "check:sections": "node scripts/section-probe.mjs \"$PWD\"",
418
418
  "verify:tarball": "node scripts/verify-tarball.mjs"
419
419
  },
420
- "gitHead": "52e133afe2930ba938d0aacb7d002e584fcaaae7"
420
+ "gitHead": "7b1d54dd61a869800f783e44d6d6c30142e39b8b"
421
421
  }
@@ -1 +0,0 @@
1
- export * from '@ai-matrx/auth/credentials';
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- var credentials = require('@ai-matrx/auth/credentials');
4
-
5
-
6
-
7
- Object.keys(credentials).forEach(function (k) {
8
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
- enumerable: true,
10
- get: function () { return credentials[k]; }
11
- });
12
- });