File tree Expand file tree Collapse file tree 18 files changed +48
-104
lines changed
Expand file tree Collapse file tree 18 files changed +48
-104
lines changed Original file line number Diff line number Diff line change 1+ ## 0.0.9 - 2025-12-10
2+ * SDK regeneration
3+ * Unable to analyze changes with AI, incrementing PATCH version.
4+
Original file line number Diff line number Diff line change 11{
22 "name" : " phenoml" ,
3- "version" : " 0.0.8 " ,
3+ "version" : " 0.0.9 " ,
44 "private" : false ,
5- "repository" : " github:phenoml /phenoml-ts-sdk" ,
5+ "repository" : " github:PhenoML /phenoml-ts-sdk" ,
66 "type" : " commonjs" ,
77 "main" : " ./dist/cjs/index.js" ,
88 "module" : " ./dist/esm/index.mjs" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export interface BaseClientOptions {
77 environment ?: core . Supplier < environments . phenomlEnvironment | string > ;
88 /** Specify a custom URL to connect the client to. */
99 baseUrl ?: core . Supplier < string > ;
10- token ? : core . Supplier < core . BearerToken | undefined > ;
10+ token : core . Supplier < core . BearerToken > ;
1111 /** Additional headers to include in requests. */
1212 headers ?: Record < string , string | core . Supplier < string | null | undefined > | null | undefined > ;
1313 /** The default maximum time to wait for a response in seconds. */
Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ export class phenomlClient {
3333 protected _tools : Tools | undefined ;
3434 protected _workflows : Workflows | undefined ;
3535
36- constructor ( _options : phenomlClient . Options = { } ) {
36+ constructor ( _options : phenomlClient . Options ) {
3737 this . _options = {
3838 ..._options ,
3939 headers : mergeHeaders (
4040 {
4141 "X-Fern-Language" : "JavaScript" ,
4242 "X-Fern-SDK-Name" : "phenoml" ,
43- "X-Fern-SDK-Version" : "0.0.8 " ,
44- "User-Agent" : "phenoml/0.0.8 " ,
43+ "X-Fern-SDK-Version" : "0.0.9 " ,
44+ "User-Agent" : "phenoml/AUTO " ,
4545 "X-Fern-Runtime" : core . RUNTIME . type ,
4646 "X-Fern-Runtime-Version" : core . RUNTIME . version ,
4747 } ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export class Agent {
1818 protected readonly _options : Agent . Options ;
1919 protected _prompts : Prompts | undefined ;
2020
21- constructor ( _options : Agent . Options = { } ) {
21+ constructor ( _options : Agent . Options ) {
2222 this . _options = _options ;
2323 }
2424
@@ -774,12 +774,7 @@ export class Agent {
774774 }
775775 }
776776
777- protected async _getAuthorizationHeader ( ) : Promise < string | undefined > {
778- const bearer = await core . Supplier . get ( this . _options . token ) ;
779- if ( bearer != null ) {
780- return `Bearer ${ bearer } ` ;
781- }
782-
783- return undefined ;
777+ protected async _getAuthorizationHeader ( ) : Promise < string > {
778+ return `Bearer ${ await core . Supplier . get ( this . _options . token ) } ` ;
784779 }
785780}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export declare namespace Prompts {
1616export class Prompts {
1717 protected readonly _options : Prompts . Options ;
1818
19- constructor ( _options : Prompts . Options = { } ) {
19+ constructor ( _options : Prompts . Options ) {
2020 this . _options = _options ;
2121 }
2222
@@ -632,12 +632,7 @@ export class Prompts {
632632 }
633633 }
634634
635- protected async _getAuthorizationHeader ( ) : Promise < string | undefined > {
636- const bearer = await core . Supplier . get ( this . _options . token ) ;
637- if ( bearer != null ) {
638- return `Bearer ${ bearer } ` ;
639- }
640-
641- return undefined ;
635+ protected async _getAuthorizationHeader ( ) : Promise < string > {
636+ return `Bearer ${ await core . Supplier . get ( this . _options . token ) } ` ;
642637 }
643638}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class Authtoken {
1111 protected readonly _options : Authtoken . Options ;
1212 protected _auth : Auth | undefined ;
1313
14- constructor ( _options : Authtoken . Options = { } ) {
14+ constructor ( _options : Authtoken . Options ) {
1515 this . _options = _options ;
1616 }
1717
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export declare namespace Cohort {
1616export class Cohort {
1717 protected readonly _options : Cohort . Options ;
1818
19- constructor ( _options : Cohort . Options = { } ) {
19+ constructor ( _options : Cohort . Options ) {
2020 this . _options = _options ;
2121 }
2222
@@ -109,12 +109,7 @@ export class Cohort {
109109 }
110110 }
111111
112- protected async _getAuthorizationHeader ( ) : Promise < string | undefined > {
113- const bearer = await core . Supplier . get ( this . _options . token ) ;
114- if ( bearer != null ) {
115- return `Bearer ${ bearer } ` ;
116- }
117-
118- return undefined ;
112+ protected async _getAuthorizationHeader ( ) : Promise < string > {
113+ return `Bearer ${ await core . Supplier . get ( this . _options . token ) } ` ;
119114 }
120115}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export declare namespace Construe {
1616export class Construe {
1717 protected readonly _options : Construe . Options ;
1818
19- constructor ( _options : Construe . Options = { } ) {
19+ constructor ( _options : Construe . Options ) {
2020 this . _options = _options ;
2121 }
2222
@@ -323,12 +323,7 @@ export class Construe {
323323 }
324324 }
325325
326- protected async _getAuthorizationHeader ( ) : Promise < string | undefined > {
327- const bearer = await core . Supplier . get ( this . _options . token ) ;
328- if ( bearer != null ) {
329- return `Bearer ${ bearer } ` ;
330- }
331-
332- return undefined ;
326+ protected async _getAuthorizationHeader ( ) : Promise < string > {
327+ return `Bearer ${ await core . Supplier . get ( this . _options . token ) } ` ;
333328 }
334329}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export declare namespace Fhir {
1717export class Fhir {
1818 protected readonly _options : Fhir . Options ;
1919
20- constructor ( _options : Fhir . Options = { } ) {
20+ constructor ( _options : Fhir . Options ) {
2121 this . _options = _options ;
2222 }
2323
@@ -778,12 +778,7 @@ export class Fhir {
778778 }
779779 }
780780
781- protected async _getAuthorizationHeader ( ) : Promise < string | undefined > {
782- const bearer = await core . Supplier . get ( this . _options . token ) ;
783- if ( bearer != null ) {
784- return `Bearer ${ bearer } ` ;
785- }
786-
787- return undefined ;
781+ protected async _getAuthorizationHeader ( ) : Promise < string > {
782+ return `Bearer ${ await core . Supplier . get ( this . _options . token ) } ` ;
788783 }
789784}
You can’t perform that action at this time.
0 commit comments