pendra 0.14.0 → 0.15.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/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +757 -649
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +757 -649
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -41,6 +41,13 @@ declare class Transcriptions {
|
|
|
41
41
|
private client;
|
|
42
42
|
constructor(client: Pendra);
|
|
43
43
|
create(params: TranscriptionCreateParams): Promise<TranscriptionResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Private-inference transcription. There is no multipart upload: the audio
|
|
46
|
+
* bytes ride inside the envelope (sealed under the request's data key) and
|
|
47
|
+
* the request options are the sealed JSON body, POSTed as JSON to the same
|
|
48
|
+
* route.
|
|
49
|
+
*/
|
|
50
|
+
private createEncrypted;
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
declare class Audio {
|
|
@@ -485,6 +492,7 @@ declare class Generations {
|
|
|
485
492
|
private client;
|
|
486
493
|
constructor(client: Pendra);
|
|
487
494
|
create(params: ImageGenerationCreateParams): Promise<ImageResponse>;
|
|
495
|
+
private createEncrypted;
|
|
488
496
|
}
|
|
489
497
|
|
|
490
498
|
declare class Images {
|
|
@@ -652,6 +660,7 @@ declare class PrivateInferenceEngine {
|
|
|
652
660
|
/**
|
|
653
661
|
* Seal a request body to the resolved org key. Returns `{ topLevel, decryptor }`.
|
|
654
662
|
* `messages` (chat only) drives the affinity token; pass undefined for non-chat.
|
|
663
|
+
* `binary` (audio only) is sealed under the same data key as the body.
|
|
655
664
|
*/
|
|
656
665
|
seal(args: {
|
|
657
666
|
model: string;
|
|
@@ -659,6 +668,7 @@ declare class PrivateInferenceEngine {
|
|
|
659
668
|
taskType: string;
|
|
660
669
|
body: Uint8Array;
|
|
661
670
|
messages?: AffinityMessage[] | null;
|
|
671
|
+
binary?: Uint8Array | null;
|
|
662
672
|
}): {
|
|
663
673
|
topLevel: Record<string, unknown>;
|
|
664
674
|
decryptor: ResponseDecryptor;
|
|
@@ -712,6 +722,8 @@ declare class Pendra {
|
|
|
712
722
|
method: string;
|
|
713
723
|
body?: Record<string, unknown>;
|
|
714
724
|
headers?: Record<string, string>;
|
|
725
|
+
/** Overrides the client timeout for this request (ms). */
|
|
726
|
+
timeout?: number;
|
|
715
727
|
}): Promise<{
|
|
716
728
|
response: Response;
|
|
717
729
|
controller: AbortController;
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,13 @@ declare class Transcriptions {
|
|
|
41
41
|
private client;
|
|
42
42
|
constructor(client: Pendra);
|
|
43
43
|
create(params: TranscriptionCreateParams): Promise<TranscriptionResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Private-inference transcription. There is no multipart upload: the audio
|
|
46
|
+
* bytes ride inside the envelope (sealed under the request's data key) and
|
|
47
|
+
* the request options are the sealed JSON body, POSTed as JSON to the same
|
|
48
|
+
* route.
|
|
49
|
+
*/
|
|
50
|
+
private createEncrypted;
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
declare class Audio {
|
|
@@ -485,6 +492,7 @@ declare class Generations {
|
|
|
485
492
|
private client;
|
|
486
493
|
constructor(client: Pendra);
|
|
487
494
|
create(params: ImageGenerationCreateParams): Promise<ImageResponse>;
|
|
495
|
+
private createEncrypted;
|
|
488
496
|
}
|
|
489
497
|
|
|
490
498
|
declare class Images {
|
|
@@ -652,6 +660,7 @@ declare class PrivateInferenceEngine {
|
|
|
652
660
|
/**
|
|
653
661
|
* Seal a request body to the resolved org key. Returns `{ topLevel, decryptor }`.
|
|
654
662
|
* `messages` (chat only) drives the affinity token; pass undefined for non-chat.
|
|
663
|
+
* `binary` (audio only) is sealed under the same data key as the body.
|
|
655
664
|
*/
|
|
656
665
|
seal(args: {
|
|
657
666
|
model: string;
|
|
@@ -659,6 +668,7 @@ declare class PrivateInferenceEngine {
|
|
|
659
668
|
taskType: string;
|
|
660
669
|
body: Uint8Array;
|
|
661
670
|
messages?: AffinityMessage[] | null;
|
|
671
|
+
binary?: Uint8Array | null;
|
|
662
672
|
}): {
|
|
663
673
|
topLevel: Record<string, unknown>;
|
|
664
674
|
decryptor: ResponseDecryptor;
|
|
@@ -712,6 +722,8 @@ declare class Pendra {
|
|
|
712
722
|
method: string;
|
|
713
723
|
body?: Record<string, unknown>;
|
|
714
724
|
headers?: Record<string, string>;
|
|
725
|
+
/** Overrides the client timeout for this request (ms). */
|
|
726
|
+
timeout?: number;
|
|
715
727
|
}): Promise<{
|
|
716
728
|
response: Response;
|
|
717
729
|
controller: AbortController;
|