@crvouga/mockingbird-service-aws-speech 3.3.0 → 3.4.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 +12 -4
- package/dist/{chunk-5DQXOMOW.js → chunk-M7JQW4G3.js} +2 -2
- package/dist/{chunk-VXKULNMO.js → chunk-PFJYH66F.js} +108 -5
- package/dist/chunk-PFJYH66F.js.map +7 -0
- package/dist/cli.js +3953 -145
- package/dist/cli.js.map +4 -4
- package/dist/index.d.ts +15 -1
- package/dist/index.js +1 -1
- package/dist/server.d.ts +31 -2
- package/dist/server.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-VXKULNMO.js.map +0 -7
- /package/dist/{chunk-5DQXOMOW.js.map → chunk-M7JQW4G3.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -522,6 +522,8 @@ type SnapshotDocument = {
|
|
|
522
522
|
faults?: unknown;
|
|
523
523
|
latency?: unknown;
|
|
524
524
|
virtualTime?: boolean;
|
|
525
|
+
/** Quiescent webhook endpoints, delivery history and fault state. Contains private configuration. */
|
|
526
|
+
webhooks?: unknown;
|
|
525
527
|
};
|
|
526
528
|
/** Controls for one namespace. */
|
|
527
529
|
type NamespaceControls = {
|
|
@@ -735,6 +737,8 @@ type CredentialRegistry = {
|
|
|
735
737
|
}[];
|
|
736
738
|
};
|
|
737
739
|
|
|
740
|
+
type OwnedTransport = (request: Request, namespace: string, send: typeof fetch) => Promise<Response>;
|
|
741
|
+
|
|
738
742
|
/**
|
|
739
743
|
* A point-in-time copy of everything a service namespace holds.
|
|
740
744
|
*
|
|
@@ -852,8 +856,16 @@ type PublishInput = {
|
|
|
852
856
|
id?: string;
|
|
853
857
|
};
|
|
854
858
|
type WebhookHub = {
|
|
859
|
+
observeDeliveries(listener: (event: {
|
|
860
|
+
namespace: string;
|
|
861
|
+
state: string;
|
|
862
|
+
deliveryId: string;
|
|
863
|
+
}) => void): () => void;
|
|
864
|
+
setTransportPolicy(policy: OwnedTransport): void;
|
|
855
865
|
pending(namespace: string): number;
|
|
856
866
|
snapshot(namespace: string): unknown;
|
|
867
|
+
exportSnapshot(handle: unknown): unknown;
|
|
868
|
+
importSnapshot(namespace: string, document: unknown): unknown;
|
|
857
869
|
restore(namespace: string, snapshot: unknown): void;
|
|
858
870
|
publish(input: PublishInput): WebhookMessage;
|
|
859
871
|
/** Replace a namespace's own endpoints (`PUT /__admin/webhook-endpoints`). */
|
|
@@ -866,7 +878,7 @@ type WebhookHub = {
|
|
|
866
878
|
/** Run every pending retry (and release held reordered messages) now, and every retry those attempts schedule, until nothing is pending. */
|
|
867
879
|
flush(): Promise<void>;
|
|
868
880
|
/** Resolve once nothing is in flight. */
|
|
869
|
-
idle(): Promise<void>;
|
|
881
|
+
idle(namespace?: string): Promise<void>;
|
|
870
882
|
fault(namespace: string, fault: WebhookFault): void;
|
|
871
883
|
clear(namespace?: string): void;
|
|
872
884
|
};
|
|
@@ -910,6 +922,8 @@ type ServiceRuntime<T extends ServiceInstance> = FetchAPI & {
|
|
|
910
922
|
/** Opaque in-process checkpoint including records, controls and webhook history. */
|
|
911
923
|
fleetSnapshot(namespace: string): object;
|
|
912
924
|
fleetRestore(snapshot: unknown, namespace: string): void;
|
|
925
|
+
fleetExport(snapshot: unknown): SnapshotDocument;
|
|
926
|
+
fleetImport(namespace: string, document: unknown): object;
|
|
913
927
|
/** Expand a named preset into fault rules (and webhook faults) for `namespace`. */
|
|
914
928
|
applyPreset(name: string, namespace?: string, overrides?: Partial<FaultRule>): FaultRule[];
|
|
915
929
|
/** The instance behind `namespace` (the default one when omitted), created on first use. */
|
package/dist/index.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -445,6 +445,8 @@ type SnapshotDocument$1 = {
|
|
|
445
445
|
faults?: unknown;
|
|
446
446
|
latency?: unknown;
|
|
447
447
|
virtualTime?: boolean;
|
|
448
|
+
/** Quiescent webhook endpoints, delivery history and fault state. Contains private configuration. */
|
|
449
|
+
webhooks?: unknown;
|
|
448
450
|
};
|
|
449
451
|
/** Controls for one namespace. */
|
|
450
452
|
type NamespaceControls$1 = {
|
|
@@ -658,6 +660,8 @@ type CredentialRegistry$1 = {
|
|
|
658
660
|
}[];
|
|
659
661
|
};
|
|
660
662
|
|
|
663
|
+
type OwnedTransport$1 = (request: Request, namespace: string, send: typeof fetch) => Promise<Response>;
|
|
664
|
+
|
|
661
665
|
/**
|
|
662
666
|
* A point-in-time copy of everything a service namespace holds.
|
|
663
667
|
*
|
|
@@ -775,8 +779,16 @@ type PublishInput$1 = {
|
|
|
775
779
|
id?: string;
|
|
776
780
|
};
|
|
777
781
|
type WebhookHub$1 = {
|
|
782
|
+
observeDeliveries(listener: (event: {
|
|
783
|
+
namespace: string;
|
|
784
|
+
state: string;
|
|
785
|
+
deliveryId: string;
|
|
786
|
+
}) => void): () => void;
|
|
787
|
+
setTransportPolicy(policy: OwnedTransport$1): void;
|
|
778
788
|
pending(namespace: string): number;
|
|
779
789
|
snapshot(namespace: string): unknown;
|
|
790
|
+
exportSnapshot(handle: unknown): unknown;
|
|
791
|
+
importSnapshot(namespace: string, document: unknown): unknown;
|
|
780
792
|
restore(namespace: string, snapshot: unknown): void;
|
|
781
793
|
publish(input: PublishInput$1): WebhookMessage$1;
|
|
782
794
|
/** Replace a namespace's own endpoints (`PUT /__admin/webhook-endpoints`). */
|
|
@@ -789,7 +801,7 @@ type WebhookHub$1 = {
|
|
|
789
801
|
/** Run every pending retry (and release held reordered messages) now, and every retry those attempts schedule, until nothing is pending. */
|
|
790
802
|
flush(): Promise<void>;
|
|
791
803
|
/** Resolve once nothing is in flight. */
|
|
792
|
-
idle(): Promise<void>;
|
|
804
|
+
idle(namespace?: string): Promise<void>;
|
|
793
805
|
fault(namespace: string, fault: WebhookFault$1): void;
|
|
794
806
|
clear(namespace?: string): void;
|
|
795
807
|
};
|
|
@@ -833,6 +845,8 @@ type ServiceRuntime$1<T extends ServiceInstance$1> = FetchAPI$2 & {
|
|
|
833
845
|
/** Opaque in-process checkpoint including records, controls and webhook history. */
|
|
834
846
|
fleetSnapshot(namespace: string): object;
|
|
835
847
|
fleetRestore(snapshot: unknown, namespace: string): void;
|
|
848
|
+
fleetExport(snapshot: unknown): SnapshotDocument$1;
|
|
849
|
+
fleetImport(namespace: string, document: unknown): object;
|
|
836
850
|
/** Expand a named preset into fault rules (and webhook faults) for `namespace`. */
|
|
837
851
|
applyPreset(name: string, namespace?: string, overrides?: Partial<FaultRule$1>): FaultRule$1[];
|
|
838
852
|
/** The instance behind `namespace` (the default one when omitted), created on first use. */
|
|
@@ -925,6 +939,7 @@ type CommonServeOptions = {
|
|
|
925
939
|
* `serveTarget`, which is also how `serve --config` finds services by name.
|
|
926
940
|
*/
|
|
927
941
|
type ServeTarget = {
|
|
942
|
+
packageVersion?: string;
|
|
928
943
|
name: string;
|
|
929
944
|
defaultPort: number;
|
|
930
945
|
/** Serve flags beyond the common ones. */
|
|
@@ -1464,6 +1479,8 @@ type SnapshotDocument = {
|
|
|
1464
1479
|
faults?: unknown;
|
|
1465
1480
|
latency?: unknown;
|
|
1466
1481
|
virtualTime?: boolean;
|
|
1482
|
+
/** Quiescent webhook endpoints, delivery history and fault state. Contains private configuration. */
|
|
1483
|
+
webhooks?: unknown;
|
|
1467
1484
|
};
|
|
1468
1485
|
/** Controls for one namespace. */
|
|
1469
1486
|
type NamespaceControls = {
|
|
@@ -1677,6 +1694,8 @@ type CredentialRegistry = {
|
|
|
1677
1694
|
}[];
|
|
1678
1695
|
};
|
|
1679
1696
|
|
|
1697
|
+
type OwnedTransport = (request: Request, namespace: string, send: typeof fetch) => Promise<Response>;
|
|
1698
|
+
|
|
1680
1699
|
/**
|
|
1681
1700
|
* A point-in-time copy of everything a service namespace holds.
|
|
1682
1701
|
*
|
|
@@ -1794,8 +1813,16 @@ type PublishInput = {
|
|
|
1794
1813
|
id?: string;
|
|
1795
1814
|
};
|
|
1796
1815
|
type WebhookHub = {
|
|
1816
|
+
observeDeliveries(listener: (event: {
|
|
1817
|
+
namespace: string;
|
|
1818
|
+
state: string;
|
|
1819
|
+
deliveryId: string;
|
|
1820
|
+
}) => void): () => void;
|
|
1821
|
+
setTransportPolicy(policy: OwnedTransport): void;
|
|
1797
1822
|
pending(namespace: string): number;
|
|
1798
1823
|
snapshot(namespace: string): unknown;
|
|
1824
|
+
exportSnapshot(handle: unknown): unknown;
|
|
1825
|
+
importSnapshot(namespace: string, document: unknown): unknown;
|
|
1799
1826
|
restore(namespace: string, snapshot: unknown): void;
|
|
1800
1827
|
publish(input: PublishInput): WebhookMessage;
|
|
1801
1828
|
/** Replace a namespace's own endpoints (`PUT /__admin/webhook-endpoints`). */
|
|
@@ -1808,7 +1835,7 @@ type WebhookHub = {
|
|
|
1808
1835
|
/** Run every pending retry (and release held reordered messages) now, and every retry those attempts schedule, until nothing is pending. */
|
|
1809
1836
|
flush(): Promise<void>;
|
|
1810
1837
|
/** Resolve once nothing is in flight. */
|
|
1811
|
-
idle(): Promise<void>;
|
|
1838
|
+
idle(namespace?: string): Promise<void>;
|
|
1812
1839
|
fault(namespace: string, fault: WebhookFault): void;
|
|
1813
1840
|
clear(namespace?: string): void;
|
|
1814
1841
|
};
|
|
@@ -1852,6 +1879,8 @@ type ServiceRuntime<T extends ServiceInstance> = FetchAPI & {
|
|
|
1852
1879
|
/** Opaque in-process checkpoint including records, controls and webhook history. */
|
|
1853
1880
|
fleetSnapshot(namespace: string): object;
|
|
1854
1881
|
fleetRestore(snapshot: unknown, namespace: string): void;
|
|
1882
|
+
fleetExport(snapshot: unknown): SnapshotDocument;
|
|
1883
|
+
fleetImport(namespace: string, document: unknown): object;
|
|
1855
1884
|
/** Expand a named preset into fault rules (and webhook faults) for `namespace`. */
|
|
1856
1885
|
applyPreset(name: string, namespace?: string, overrides?: Partial<FaultRule>): FaultRule[];
|
|
1857
1886
|
/** The instance behind `namespace` (the default one when omitted), created on first use. */
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-aws-speech",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Stateful emulator of AWS Polly (SynthesizeSpeech, StartSpeechSynthesisStream) and Transcribe (streaming over h2c, batch jobs), with exact event-stream framing and scripted transcripts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|