@inneropen/marvin-sdk 2.0.0-next.18 → 2.0.0-next.3
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 +11 -136
- package/dist/{HttpClient-CdF3IHM1.d.cts → HttpClient-CLtgQGXH.d.cts} +2 -49
- package/dist/{HttpClient-CdF3IHM1.d.ts → HttpClient-CLtgQGXH.d.ts} +2 -49
- package/dist/chunk-25F3IF6S.js +396 -0
- package/dist/index.cjs +25 -536
- package/dist/index.d.cts +544 -20
- package/dist/index.d.ts +544 -20
- package/dist/index.js +791 -27
- package/dist/platform.cjs +42 -681
- package/dist/platform.d.cts +80 -803
- package/dist/platform.d.ts +80 -803
- package/dist/platform.js +32 -449
- package/dist/types/index.d.cts +1 -9
- package/dist/types/index.d.ts +1 -9
- package/package.json +7 -18
- package/dist/chunk-GJNOYXUQ.js +0 -980
- package/dist/chunk-WJC4X7TB.js +0 -738
- package/dist/marvin-Bx5k6tsF.d.cts +0 -654
- package/dist/marvin-g7dayc83.d.ts +0 -654
- package/dist/publish.cjs +0 -1487
- package/dist/publish.d.cts +0 -49
- package/dist/publish.d.ts +0 -49
- package/dist/publish.js +0 -75
package/dist/publish.d.cts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { M as MarvinConfig, a as MarvinClient } from './marvin-Bx5k6tsF.cjs';
|
|
2
|
-
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-Bx5k6tsF.cjs';
|
|
3
|
-
export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite } from './types/index.cjs';
|
|
4
|
-
export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.cjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Publishing API Entry Point
|
|
8
|
-
*
|
|
9
|
-
* Read-only API for published content using site client tokens.
|
|
10
|
-
* Import via: import { createMarvinClient } from '@inneropen/marvin-sdk/publish'
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* import { createMarvinClient } from '@inneropen/marvin-sdk/publish';
|
|
15
|
-
*
|
|
16
|
-
* // Uses MARVIN_SITE_CLIENT_TOKEN from environment
|
|
17
|
-
* const marvin = createMarvinClient();
|
|
18
|
-
*
|
|
19
|
-
* // Or provide token explicitly
|
|
20
|
-
* const marvin = createMarvinClient({
|
|
21
|
-
* siteClientToken: 'your-token-here'
|
|
22
|
-
* });
|
|
23
|
-
*
|
|
24
|
-
* const entry = await marvin.entry('about');
|
|
25
|
-
* const projects = await marvin.projects();
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Create a Marvin Publishing API client from environment variables
|
|
31
|
-
*
|
|
32
|
-
* @param config - Optional configuration overrides
|
|
33
|
-
* @returns Configured Marvin client for read-only publishing API
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* // From environment variables (MARVIN_SITE_CLIENT_TOKEN)
|
|
38
|
-
* const marvin = createMarvinClient();
|
|
39
|
-
*
|
|
40
|
-
* // With overrides
|
|
41
|
-
* const marvin = createMarvinClient({
|
|
42
|
-
* apiUrl: 'https://marvin.example.com',
|
|
43
|
-
* siteClientToken: 'your-token-here'
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
declare function createMarvinClient(config?: Partial<MarvinConfig>): MarvinClient;
|
|
48
|
-
|
|
49
|
-
export { MarvinClient, MarvinConfig, createMarvinClient };
|
package/dist/publish.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { M as MarvinConfig, a as MarvinClient } from './marvin-g7dayc83.js';
|
|
2
|
-
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-g7dayc83.js';
|
|
3
|
-
export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite } from './types/index.js';
|
|
4
|
-
export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Publishing API Entry Point
|
|
8
|
-
*
|
|
9
|
-
* Read-only API for published content using site client tokens.
|
|
10
|
-
* Import via: import { createMarvinClient } from '@inneropen/marvin-sdk/publish'
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* import { createMarvinClient } from '@inneropen/marvin-sdk/publish';
|
|
15
|
-
*
|
|
16
|
-
* // Uses MARVIN_SITE_CLIENT_TOKEN from environment
|
|
17
|
-
* const marvin = createMarvinClient();
|
|
18
|
-
*
|
|
19
|
-
* // Or provide token explicitly
|
|
20
|
-
* const marvin = createMarvinClient({
|
|
21
|
-
* siteClientToken: 'your-token-here'
|
|
22
|
-
* });
|
|
23
|
-
*
|
|
24
|
-
* const entry = await marvin.entry('about');
|
|
25
|
-
* const projects = await marvin.projects();
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Create a Marvin Publishing API client from environment variables
|
|
31
|
-
*
|
|
32
|
-
* @param config - Optional configuration overrides
|
|
33
|
-
* @returns Configured Marvin client for read-only publishing API
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* // From environment variables (MARVIN_SITE_CLIENT_TOKEN)
|
|
38
|
-
* const marvin = createMarvinClient();
|
|
39
|
-
*
|
|
40
|
-
* // With overrides
|
|
41
|
-
* const marvin = createMarvinClient({
|
|
42
|
-
* apiUrl: 'https://marvin.example.com',
|
|
43
|
-
* siteClientToken: 'your-token-here'
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
declare function createMarvinClient(config?: Partial<MarvinConfig>): MarvinClient;
|
|
48
|
-
|
|
49
|
-
export { MarvinClient, MarvinConfig, createMarvinClient };
|
package/dist/publish.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Collection,
|
|
3
|
-
Entry,
|
|
4
|
-
MarvinClient,
|
|
5
|
-
Resource,
|
|
6
|
-
Workspace,
|
|
7
|
-
config_exports,
|
|
8
|
-
createConfigFromEnv,
|
|
9
|
-
init_collection,
|
|
10
|
-
init_config,
|
|
11
|
-
init_entry,
|
|
12
|
-
init_marvin,
|
|
13
|
-
init_resource,
|
|
14
|
-
init_workspace
|
|
15
|
-
} from "./chunk-GJNOYXUQ.js";
|
|
16
|
-
import {
|
|
17
|
-
BearerTokenAuth,
|
|
18
|
-
HttpClient,
|
|
19
|
-
MarvinApiError,
|
|
20
|
-
MarvinAuthError,
|
|
21
|
-
MarvinCache,
|
|
22
|
-
MarvinConfigError,
|
|
23
|
-
MarvinError,
|
|
24
|
-
MarvinNetworkError,
|
|
25
|
-
MarvinNotFoundError,
|
|
26
|
-
MarvinServerError,
|
|
27
|
-
MarvinValidationError,
|
|
28
|
-
__toCommonJS,
|
|
29
|
-
createPaginatedResponse,
|
|
30
|
-
extractData,
|
|
31
|
-
init_core,
|
|
32
|
-
isPaginatedResponse,
|
|
33
|
-
offsetToPage,
|
|
34
|
-
pageToOffset
|
|
35
|
-
} from "./chunk-WJC4X7TB.js";
|
|
36
|
-
|
|
37
|
-
// src/publish.ts
|
|
38
|
-
init_marvin();
|
|
39
|
-
init_config();
|
|
40
|
-
init_marvin();
|
|
41
|
-
init_workspace();
|
|
42
|
-
init_entry();
|
|
43
|
-
init_collection();
|
|
44
|
-
init_resource();
|
|
45
|
-
init_core();
|
|
46
|
-
function createMarvinClient(config) {
|
|
47
|
-
const { createConfigFromEnv: createConfigFromEnv2 } = (init_config(), __toCommonJS(config_exports));
|
|
48
|
-
const finalConfig = createConfigFromEnv2(config);
|
|
49
|
-
return new MarvinClient(finalConfig);
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
BearerTokenAuth,
|
|
53
|
-
Collection,
|
|
54
|
-
Entry,
|
|
55
|
-
HttpClient,
|
|
56
|
-
MarvinApiError,
|
|
57
|
-
MarvinAuthError,
|
|
58
|
-
MarvinCache,
|
|
59
|
-
MarvinClient,
|
|
60
|
-
MarvinConfigError,
|
|
61
|
-
MarvinError,
|
|
62
|
-
MarvinNetworkError,
|
|
63
|
-
MarvinNotFoundError,
|
|
64
|
-
MarvinServerError,
|
|
65
|
-
MarvinValidationError,
|
|
66
|
-
Resource,
|
|
67
|
-
Workspace,
|
|
68
|
-
createConfigFromEnv,
|
|
69
|
-
createMarvinClient,
|
|
70
|
-
createPaginatedResponse,
|
|
71
|
-
extractData,
|
|
72
|
-
isPaginatedResponse,
|
|
73
|
-
offsetToPage,
|
|
74
|
-
pageToOffset
|
|
75
|
-
};
|