@brightoutcome/guidistry-client 0.4.0 → 0.6.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +359 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -328,6 +328,57 @@ export interface paths {
328
328
  patch?: never;
329
329
  trace?: never;
330
330
  };
331
+ "/v1/guides": {
332
+ parameters: {
333
+ query?: never;
334
+ header?: never;
335
+ path?: never;
336
+ cookie?: never;
337
+ };
338
+ /** BrightOutcome guides: staff-only guides for every customer, outside any template */
339
+ get: operations["list_brightoutcome_guides_v1_guides_get"];
340
+ put?: never;
341
+ post?: never;
342
+ delete?: never;
343
+ options?: never;
344
+ head?: never;
345
+ patch?: never;
346
+ trace?: never;
347
+ };
348
+ "/v1/guides/{slug}/facilitator": {
349
+ parameters: {
350
+ query?: never;
351
+ header?: never;
352
+ path?: never;
353
+ cookie?: never;
354
+ };
355
+ /** A BrightOutcome facilitator guide (staff at any customer) */
356
+ get: operations["get_brightoutcome_guide_v1_guides__slug__facilitator_get"];
357
+ put?: never;
358
+ post?: never;
359
+ delete?: never;
360
+ options?: never;
361
+ head?: never;
362
+ patch?: never;
363
+ trace?: never;
364
+ };
365
+ "/v1/guides/{slug}/facilitator/{doc_id}": {
366
+ parameters: {
367
+ query?: never;
368
+ header?: never;
369
+ path?: never;
370
+ cookie?: never;
371
+ };
372
+ /** One document of a BrightOutcome facilitator guide, with its body */
373
+ get: operations["get_brightoutcome_document_v1_guides__slug__facilitator__doc_id__get"];
374
+ put?: never;
375
+ post?: never;
376
+ delete?: never;
377
+ options?: never;
378
+ head?: never;
379
+ patch?: never;
380
+ trace?: never;
381
+ };
331
382
  "/v1/invitations": {
332
383
  parameters: {
333
384
  query?: never;
@@ -655,6 +706,63 @@ export interface paths {
655
706
  patch?: never;
656
707
  trace?: never;
657
708
  };
709
+ "/v1/speech/synthesize": {
710
+ parameters: {
711
+ query?: never;
712
+ header?: never;
713
+ path?: never;
714
+ cookie?: never;
715
+ };
716
+ get?: never;
717
+ put?: never;
718
+ /**
719
+ * Read text aloud (MP3)
720
+ * @description One passage per call (up to 3,000 characters); split longer text by paragraph.
721
+ */
722
+ post: operations["synthesize_v1_speech_synthesize_post"];
723
+ delete?: never;
724
+ options?: never;
725
+ head?: never;
726
+ patch?: never;
727
+ trace?: never;
728
+ };
729
+ "/v1/speech/transcribe": {
730
+ parameters: {
731
+ query?: never;
732
+ header?: never;
733
+ path?: never;
734
+ cookie?: never;
735
+ };
736
+ get?: never;
737
+ put?: never;
738
+ /** Turn a recording into text */
739
+ post: operations["transcribe_v1_speech_transcribe_post"];
740
+ delete?: never;
741
+ options?: never;
742
+ head?: never;
743
+ patch?: never;
744
+ trace?: never;
745
+ };
746
+ "/v1/speech/voices": {
747
+ parameters: {
748
+ query?: never;
749
+ header?: never;
750
+ path?: never;
751
+ cookie?: never;
752
+ };
753
+ /**
754
+ * Voices for read-aloud
755
+ * @description The first voice is the default.
756
+ */
757
+ get: operations["list_voices_v1_speech_voices_get"];
758
+ put?: never;
759
+ post?: never;
760
+ delete?: never;
761
+ options?: never;
762
+ head?: never;
763
+ patch?: never;
764
+ trace?: never;
765
+ };
658
766
  }
659
767
  export type webhooks = Record<string, never>;
660
768
  export interface components {
@@ -710,6 +818,42 @@ export interface components {
710
818
  */
711
819
  sso?: string | null;
712
820
  };
821
+ /** Body_transcribe_v1_speech_transcribe_post */
822
+ Body_transcribe_v1_speech_transcribe_post: {
823
+ /**
824
+ * Audio
825
+ * @description 16-bit PCM WAV, mono or stereo, up to 8 MB
826
+ */
827
+ audio: string;
828
+ /**
829
+ * Language
830
+ * @default en-US
831
+ */
832
+ language: string;
833
+ };
834
+ /**
835
+ * BrightOutcomeGuideOut
836
+ * @description A guide BrightOutcome provides to every customer, outside any template (D-025).
837
+ */
838
+ BrightOutcomeGuideOut: {
839
+ /** Edition */
840
+ edition: string | null;
841
+ /** Kind */
842
+ kind: string;
843
+ /** Language */
844
+ language: string;
845
+ /**
846
+ * Published At
847
+ * Format: date-time
848
+ */
849
+ published_at: string;
850
+ /** Revision */
851
+ revision: number;
852
+ /** Slug */
853
+ slug: string;
854
+ /** Title */
855
+ title: string;
856
+ };
713
857
  /** CalloutBlock */
714
858
  CalloutBlock: {
715
859
  /** Html */
@@ -1960,6 +2104,16 @@ export interface components {
1960
2104
  /** Value */
1961
2105
  value: unknown;
1962
2106
  };
2107
+ /** SpeakIn */
2108
+ SpeakIn: {
2109
+ /** Text */
2110
+ text: string;
2111
+ /**
2112
+ * Voice
2113
+ * @description A voice id from /v1/speech/voices
2114
+ */
2115
+ voice?: string | null;
2116
+ };
1963
2117
  /** StructureOut */
1964
2118
  StructureOut: {
1965
2119
  /** Approved At */
@@ -2059,6 +2213,11 @@ export interface components {
2059
2213
  /** Title */
2060
2214
  title: string;
2061
2215
  };
2216
+ /** TranscriptOut */
2217
+ TranscriptOut: {
2218
+ /** Text */
2219
+ text: string;
2220
+ };
2062
2221
  /** ValidationError */
2063
2222
  ValidationError: {
2064
2223
  /** Context */
@@ -2124,6 +2283,15 @@ export interface components {
2124
2283
  [key: string]: boolean;
2125
2284
  };
2126
2285
  };
2286
+ /** VoiceOut */
2287
+ VoiceOut: {
2288
+ /** Description */
2289
+ description: string;
2290
+ /** Id */
2291
+ id: string;
2292
+ /** Name */
2293
+ name: string;
2294
+ };
2127
2295
  };
2128
2296
  responses: never;
2129
2297
  parameters: never;
@@ -2759,6 +2927,111 @@ export interface operations {
2759
2927
  };
2760
2928
  };
2761
2929
  };
2930
+ list_brightoutcome_guides_v1_guides_get: {
2931
+ parameters: {
2932
+ query?: never;
2933
+ header?: {
2934
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2935
+ "X-Guidistry-Context"?: string | null;
2936
+ };
2937
+ path?: never;
2938
+ cookie?: never;
2939
+ };
2940
+ requestBody?: never;
2941
+ responses: {
2942
+ /** @description Successful Response */
2943
+ 200: {
2944
+ headers: {
2945
+ [name: string]: unknown;
2946
+ };
2947
+ content: {
2948
+ "application/json": components["schemas"]["BrightOutcomeGuideOut"][];
2949
+ };
2950
+ };
2951
+ /** @description Validation Error */
2952
+ 422: {
2953
+ headers: {
2954
+ [name: string]: unknown;
2955
+ };
2956
+ content: {
2957
+ "application/json": components["schemas"]["HTTPValidationError"];
2958
+ };
2959
+ };
2960
+ };
2961
+ };
2962
+ get_brightoutcome_guide_v1_guides__slug__facilitator_get: {
2963
+ parameters: {
2964
+ query?: {
2965
+ language?: string | null;
2966
+ };
2967
+ header?: {
2968
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2969
+ "X-Guidistry-Context"?: string | null;
2970
+ };
2971
+ path: {
2972
+ slug: string;
2973
+ };
2974
+ cookie?: never;
2975
+ };
2976
+ requestBody?: never;
2977
+ responses: {
2978
+ /** @description Successful Response */
2979
+ 200: {
2980
+ headers: {
2981
+ [name: string]: unknown;
2982
+ };
2983
+ content: {
2984
+ "application/json": components["schemas"]["GuideOut"];
2985
+ };
2986
+ };
2987
+ /** @description Validation Error */
2988
+ 422: {
2989
+ headers: {
2990
+ [name: string]: unknown;
2991
+ };
2992
+ content: {
2993
+ "application/json": components["schemas"]["HTTPValidationError"];
2994
+ };
2995
+ };
2996
+ };
2997
+ };
2998
+ get_brightoutcome_document_v1_guides__slug__facilitator__doc_id__get: {
2999
+ parameters: {
3000
+ query?: {
3001
+ language?: string | null;
3002
+ };
3003
+ header?: {
3004
+ /** @description Membership the caller is acting through (from GET /v1/me) */
3005
+ "X-Guidistry-Context"?: string | null;
3006
+ };
3007
+ path: {
3008
+ slug: string;
3009
+ doc_id: string;
3010
+ };
3011
+ cookie?: never;
3012
+ };
3013
+ requestBody?: never;
3014
+ responses: {
3015
+ /** @description Successful Response */
3016
+ 200: {
3017
+ headers: {
3018
+ [name: string]: unknown;
3019
+ };
3020
+ content: {
3021
+ "application/json": components["schemas"]["GuideDocumentOut"];
3022
+ };
3023
+ };
3024
+ /** @description Validation Error */
3025
+ 422: {
3026
+ headers: {
3027
+ [name: string]: unknown;
3028
+ };
3029
+ content: {
3030
+ "application/json": components["schemas"]["HTTPValidationError"];
3031
+ };
3032
+ };
3033
+ };
3034
+ };
2762
3035
  list_invitations_v1_invitations_get: {
2763
3036
  parameters: {
2764
3037
  query?: {
@@ -3601,4 +3874,90 @@ export interface operations {
3601
3874
  };
3602
3875
  };
3603
3876
  };
3877
+ synthesize_v1_speech_synthesize_post: {
3878
+ parameters: {
3879
+ query?: never;
3880
+ header?: never;
3881
+ path?: never;
3882
+ cookie?: never;
3883
+ };
3884
+ requestBody: {
3885
+ content: {
3886
+ "application/json": components["schemas"]["SpeakIn"];
3887
+ };
3888
+ };
3889
+ responses: {
3890
+ /** @description MP3 audio, 24 kHz */
3891
+ 200: {
3892
+ headers: {
3893
+ [name: string]: unknown;
3894
+ };
3895
+ content: {
3896
+ "audio/mpeg": unknown;
3897
+ };
3898
+ };
3899
+ /** @description Validation Error */
3900
+ 422: {
3901
+ headers: {
3902
+ [name: string]: unknown;
3903
+ };
3904
+ content: {
3905
+ "application/json": components["schemas"]["HTTPValidationError"];
3906
+ };
3907
+ };
3908
+ };
3909
+ };
3910
+ transcribe_v1_speech_transcribe_post: {
3911
+ parameters: {
3912
+ query?: never;
3913
+ header?: never;
3914
+ path?: never;
3915
+ cookie?: never;
3916
+ };
3917
+ requestBody: {
3918
+ content: {
3919
+ "multipart/form-data": components["schemas"]["Body_transcribe_v1_speech_transcribe_post"];
3920
+ };
3921
+ };
3922
+ responses: {
3923
+ /** @description Successful Response */
3924
+ 200: {
3925
+ headers: {
3926
+ [name: string]: unknown;
3927
+ };
3928
+ content: {
3929
+ "application/json": components["schemas"]["TranscriptOut"];
3930
+ };
3931
+ };
3932
+ /** @description Validation Error */
3933
+ 422: {
3934
+ headers: {
3935
+ [name: string]: unknown;
3936
+ };
3937
+ content: {
3938
+ "application/json": components["schemas"]["HTTPValidationError"];
3939
+ };
3940
+ };
3941
+ };
3942
+ };
3943
+ list_voices_v1_speech_voices_get: {
3944
+ parameters: {
3945
+ query?: never;
3946
+ header?: never;
3947
+ path?: never;
3948
+ cookie?: never;
3949
+ };
3950
+ requestBody?: never;
3951
+ responses: {
3952
+ /** @description Successful Response */
3953
+ 200: {
3954
+ headers: {
3955
+ [name: string]: unknown;
3956
+ };
3957
+ content: {
3958
+ "application/json": components["schemas"]["VoiceOut"][];
3959
+ };
3960
+ };
3961
+ };
3962
+ };
3604
3963
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightoutcome/guidistry-client",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Typed client and sign-in helpers for the Guidistry API",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",