@foxnose/sdk 0.5.0 → 0.5.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.
- package/README.md +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -93,8 +93,8 @@ interface RetryConfig {
|
|
|
93
93
|
methods: readonly string[];
|
|
94
94
|
}
|
|
95
95
|
declare const DEFAULT_RETRY_CONFIG: Readonly<RetryConfig>;
|
|
96
|
-
declare const SDK_VERSION = "0.5.
|
|
97
|
-
declare const DEFAULT_USER_AGENT = "foxnose-sdk-js/0.5.
|
|
96
|
+
declare const SDK_VERSION = "0.5.1";
|
|
97
|
+
declare const DEFAULT_USER_AGENT = "foxnose-sdk-js/0.5.1";
|
|
98
98
|
/**
|
|
99
99
|
* General transport-level configuration shared by all clients.
|
|
100
100
|
*/
|
|
@@ -581,6 +581,16 @@ interface APIInfo {
|
|
|
581
581
|
environment: string;
|
|
582
582
|
version?: string | null;
|
|
583
583
|
is_auth_required: boolean;
|
|
584
|
+
/** Whether the MCP endpoint (`/{prefix}/_mcp`) is exposed. Defaults to true. */
|
|
585
|
+
mcp_enabled?: boolean;
|
|
586
|
+
/** Whether router introspection (`/{prefix}/_router`) is exposed. Defaults to true. */
|
|
587
|
+
router_introspection_enabled?: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* Allowed browser origins for cross-origin reads. Empty (the default) means
|
|
590
|
+
* CORS is off; `["*"]` allows any origin. Server-validated and normalized.
|
|
591
|
+
* Covers public read traffic only — writes still require a key.
|
|
592
|
+
*/
|
|
593
|
+
cors_origins?: string[];
|
|
584
594
|
created_at: string;
|
|
585
595
|
path?: string | null;
|
|
586
596
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -93,8 +93,8 @@ interface RetryConfig {
|
|
|
93
93
|
methods: readonly string[];
|
|
94
94
|
}
|
|
95
95
|
declare const DEFAULT_RETRY_CONFIG: Readonly<RetryConfig>;
|
|
96
|
-
declare const SDK_VERSION = "0.5.
|
|
97
|
-
declare const DEFAULT_USER_AGENT = "foxnose-sdk-js/0.5.
|
|
96
|
+
declare const SDK_VERSION = "0.5.1";
|
|
97
|
+
declare const DEFAULT_USER_AGENT = "foxnose-sdk-js/0.5.1";
|
|
98
98
|
/**
|
|
99
99
|
* General transport-level configuration shared by all clients.
|
|
100
100
|
*/
|
|
@@ -581,6 +581,16 @@ interface APIInfo {
|
|
|
581
581
|
environment: string;
|
|
582
582
|
version?: string | null;
|
|
583
583
|
is_auth_required: boolean;
|
|
584
|
+
/** Whether the MCP endpoint (`/{prefix}/_mcp`) is exposed. Defaults to true. */
|
|
585
|
+
mcp_enabled?: boolean;
|
|
586
|
+
/** Whether router introspection (`/{prefix}/_router`) is exposed. Defaults to true. */
|
|
587
|
+
router_introspection_enabled?: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* Allowed browser origins for cross-origin reads. Empty (the default) means
|
|
590
|
+
* CORS is off; `["*"]` allows any origin. Server-validated and normalized.
|
|
591
|
+
* Covers public read traffic only — writes still require a key.
|
|
592
|
+
*/
|
|
593
|
+
cors_origins?: string[];
|
|
584
594
|
created_at: string;
|
|
585
595
|
path?: string | null;
|
|
586
596
|
}
|
package/dist/index.js
CHANGED
|
@@ -308,7 +308,7 @@ var DEFAULT_RETRY_CONFIG = {
|
|
|
308
308
|
statusCodes: [408, 425, 429, 500, 502, 503, 504],
|
|
309
309
|
methods: ["GET", "HEAD", "OPTIONS", "PUT", "DELETE"]
|
|
310
310
|
};
|
|
311
|
-
var SDK_VERSION = "0.5.
|
|
311
|
+
var SDK_VERSION = "0.5.1";
|
|
312
312
|
var DEFAULT_USER_AGENT = `foxnose-sdk-js/${SDK_VERSION}`;
|
|
313
313
|
function createConfig(options) {
|
|
314
314
|
if (!options.baseUrl) {
|