@crvouga/mockingbird-service-fullscript 1.8.0 → 2.0.0
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 +23 -1
- package/DISCOVERY.md +55 -0
- package/README.md +1 -1
- package/SUPPORT.md +20 -0
- package/dist/{chunk-VH7HDXIA.js → chunk-EZGGE5JC.js} +44 -24
- package/dist/chunk-EZGGE5JC.js.map +7 -0
- package/dist/{chunk-L5A2NSLT.js → chunk-R7LD4QOX.js} +625 -237
- package/dist/chunk-R7LD4QOX.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/server.d.ts +4 -1
- package/dist/server.js +2 -2
- package/openapi.yaml +776 -0
- package/package.json +29 -4
- package/dist/chunk-L5A2NSLT.js.map +0 -7
- package/dist/chunk-VH7HDXIA.js.map +0 -7
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -976,6 +976,7 @@ type FullscriptRuntimeOptions = {
|
|
|
976
976
|
sqlite?: SqliteClient;
|
|
977
977
|
clock?: Clock;
|
|
978
978
|
seed?: number | string;
|
|
979
|
+
adminPrefix?: string;
|
|
979
980
|
adminKey?: string;
|
|
980
981
|
onLog?: (entry: RequestLog) => void;
|
|
981
982
|
settings?: Partial<Settings>;
|
|
@@ -995,8 +996,8 @@ type FullscriptRuntime = ServiceRuntime<FullscriptAPI> & {
|
|
|
995
996
|
readonly webhooks: WebhookHub;
|
|
996
997
|
};
|
|
997
998
|
/**
|
|
998
|
-
* The Fullscript mock with Mockingbird's full service contract: `/health`, `/__admin/*`,
|
|
999
|
-
* namespaces by header, by `/ns/<name>` path prefix on FULLSCRIPT_API_URL, or by OAuth client
|
|
999
|
+
* The Fullscript mock with Mockingbird's full service contract: `/__admin/health`, `/__admin/*`,
|
|
1000
|
+
* namespaces by header, by `/__admin/ns/<name>` path prefix on FULLSCRIPT_API_URL, or by OAuth client
|
|
1000
1001
|
* (for API calls), clock control, fault presets, signed webhooks and a request journal.
|
|
1001
1002
|
*/
|
|
1002
1003
|
declare const createRuntime: (options?: FullscriptRuntimeOptions) => FullscriptRuntime;
|
|
@@ -1030,7 +1031,8 @@ type SeedOrder = {
|
|
|
1030
1031
|
type FullscriptAPIOptions = APIOptions & {
|
|
1031
1032
|
settings?: Partial<Settings>;
|
|
1032
1033
|
orders?: readonly SeedOrder[];
|
|
1033
|
-
/** The public namespace, so result PDF URLs carry a `/ns/<name>` prefix. */
|
|
1034
|
+
/** The public namespace, so result PDF URLs carry a `/__admin/ns/<name>` prefix. */
|
|
1035
|
+
adminPrefix?: string;
|
|
1034
1036
|
publicNamespace?: string;
|
|
1035
1037
|
/** Called for every event; the runtime signs and delivers it. */
|
|
1036
1038
|
onEvent?: (event: EventRecord) => void;
|
package/dist/index.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -593,6 +593,7 @@ type CliOption = {
|
|
|
593
593
|
};
|
|
594
594
|
type CliValues = Record<string, string | boolean | undefined>;
|
|
595
595
|
type CommonServeOptions = {
|
|
596
|
+
adminPrefix?: string;
|
|
596
597
|
adminKey: string | undefined;
|
|
597
598
|
seed: string | undefined;
|
|
598
599
|
onLog: ((entry: RequestLog$1) => void) | undefined;
|
|
@@ -1403,7 +1404,8 @@ type SeedOrder = {
|
|
|
1403
1404
|
type FullscriptAPIOptions = APIOptions & {
|
|
1404
1405
|
settings?: Partial<Settings>;
|
|
1405
1406
|
orders?: readonly SeedOrder[];
|
|
1406
|
-
/** The public namespace, so result PDF URLs carry a `/ns/<name>` prefix. */
|
|
1407
|
+
/** The public namespace, so result PDF URLs carry a `/__admin/ns/<name>` prefix. */
|
|
1408
|
+
adminPrefix?: string;
|
|
1407
1409
|
publicNamespace?: string;
|
|
1408
1410
|
/** Called for every event; the runtime signs and delivers it. */
|
|
1409
1411
|
onEvent?: (event: EventRecord) => void;
|
|
@@ -1460,6 +1462,7 @@ type FullscriptRuntimeOptions = {
|
|
|
1460
1462
|
sqlite?: SqliteClient;
|
|
1461
1463
|
clock?: Clock;
|
|
1462
1464
|
seed?: number | string;
|
|
1465
|
+
adminPrefix?: string;
|
|
1463
1466
|
adminKey?: string;
|
|
1464
1467
|
onLog?: (entry: RequestLog) => void;
|
|
1465
1468
|
settings?: Partial<Settings>;
|