@openrouter/sdk 1.5.6 → 1.5.7

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 (158) hide show
  1. package/esm/lib/config.d.ts +2 -2
  2. package/esm/lib/config.js +2 -2
  3. package/esm/models/errors/index.d.ts +0 -2
  4. package/esm/models/errors/index.js +0 -2
  5. package/esm/models/index.d.ts +0 -40
  6. package/esm/models/index.js +0 -40
  7. package/esm/models/operations/index.d.ts +0 -15
  8. package/esm/models/operations/index.js +0 -15
  9. package/esm/sdk/sdk.d.ts +0 -3
  10. package/esm/sdk/sdk.js +0 -4
  11. package/jsr.json +1 -1
  12. package/package.json +9 -9
  13. package/esm/funcs/internsChat.d.ts +0 -42
  14. package/esm/funcs/internsChat.js +0 -109
  15. package/esm/funcs/internsCreateIntern.d.ts +0 -21
  16. package/esm/funcs/internsCreateIntern.js +0 -103
  17. package/esm/funcs/internsDeleteIntern.d.ts +0 -21
  18. package/esm/funcs/internsDeleteIntern.js +0 -108
  19. package/esm/funcs/internsGetIntern.d.ts +0 -21
  20. package/esm/funcs/internsGetIntern.js +0 -105
  21. package/esm/funcs/internsGetInternConnections.d.ts +0 -21
  22. package/esm/funcs/internsGetInternConnections.js +0 -105
  23. package/esm/funcs/internsGetInternDaemon.d.ts +0 -21
  24. package/esm/funcs/internsGetInternDaemon.js +0 -105
  25. package/esm/funcs/internsGetInternDaemonAccess.d.ts +0 -23
  26. package/esm/funcs/internsGetInternDaemonAccess.js +0 -107
  27. package/esm/funcs/internsGetInternIcon.d.ts +0 -20
  28. package/esm/funcs/internsGetInternIcon.js +0 -109
  29. package/esm/funcs/internsInvoke.d.ts +0 -26
  30. package/esm/funcs/internsInvoke.js +0 -119
  31. package/esm/funcs/internsListInterns.d.ts +0 -21
  32. package/esm/funcs/internsListInterns.js +0 -107
  33. package/esm/funcs/internsProvisionIntern.d.ts +0 -21
  34. package/esm/funcs/internsProvisionIntern.js +0 -105
  35. package/esm/funcs/internsSignInternDaemonAccessRequest.d.ts +0 -22
  36. package/esm/funcs/internsSignInternDaemonAccessRequest.js +0 -109
  37. package/esm/funcs/internsSignInternDaemonRequest.d.ts +0 -20
  38. package/esm/funcs/internsSignInternDaemonRequest.js +0 -109
  39. package/esm/funcs/internsSuspendIntern.d.ts +0 -21
  40. package/esm/funcs/internsSuspendIntern.js +0 -105
  41. package/esm/funcs/internsUpdateIntern.d.ts +0 -21
  42. package/esm/funcs/internsUpdateIntern.js +0 -108
  43. package/esm/models/createinternrequest.d.ts +0 -43
  44. package/esm/models/createinternrequest.js +0 -24
  45. package/esm/models/deleteinternrequest.d.ts +0 -18
  46. package/esm/models/deleteinternrequest.js +0 -18
  47. package/esm/models/deleteinternresponse.d.ts +0 -10
  48. package/esm/models/deleteinternresponse.js +0 -14
  49. package/esm/models/errors/internchaterrorresponse.d.ts +0 -31
  50. package/esm/models/errors/internchaterrorresponse.js +0 -35
  51. package/esm/models/errors/internlifecycleerror.d.ts +0 -25
  52. package/esm/models/errors/internlifecycleerror.js +0 -35
  53. package/esm/models/intern.d.ts +0 -120
  54. package/esm/models/intern.js +0 -74
  55. package/esm/models/internapprovalmode.d.ts +0 -16
  56. package/esm/models/internapprovalmode.js +0 -15
  57. package/esm/models/internchatassistantmessage.d.ts +0 -24
  58. package/esm/models/internchatassistantmessage.js +0 -22
  59. package/esm/models/internchatchoice.d.ts +0 -37
  60. package/esm/models/internchatchoice.js +0 -33
  61. package/esm/models/internchatcompletionchunk.d.ts +0 -48
  62. package/esm/models/internchatcompletionchunk.js +0 -34
  63. package/esm/models/internchatcompletionrequest.d.ts +0 -40
  64. package/esm/models/internchatcompletionrequest.js +0 -25
  65. package/esm/models/internchatdelta.d.ts +0 -24
  66. package/esm/models/internchatdelta.js +0 -28
  67. package/esm/models/internchatdevelopermessage.d.ts +0 -21
  68. package/esm/models/internchatdevelopermessage.js +0 -15
  69. package/esm/models/internchatechoedtoolcall.d.ts +0 -21
  70. package/esm/models/internchatechoedtoolcall.js +0 -15
  71. package/esm/models/internchatechoedtoolcallfunction.d.ts +0 -17
  72. package/esm/models/internchatechoedtoolcallfunction.js +0 -14
  73. package/esm/models/internchaterror.d.ts +0 -22
  74. package/esm/models/internchaterror.js +0 -17
  75. package/esm/models/internchaterrormetadata.d.ts +0 -48
  76. package/esm/models/internchaterrormetadata.js +0 -39
  77. package/esm/models/internchatmessage.d.ts +0 -16
  78. package/esm/models/internchatmessage.js +0 -22
  79. package/esm/models/internchatmessagecontent.d.ts +0 -12
  80. package/esm/models/internchatmessagecontent.js +0 -12
  81. package/esm/models/internchatprompttokensdetails.d.ts +0 -13
  82. package/esm/models/internchatprompttokensdetails.js +0 -19
  83. package/esm/models/internchatsteeredresponse.d.ts +0 -33
  84. package/esm/models/internchatsteeredresponse.js +0 -28
  85. package/esm/models/internchatstreamerror.d.ts +0 -22
  86. package/esm/models/internchatstreamerror.js +0 -17
  87. package/esm/models/internchatstreamingresponse.d.ts +0 -17
  88. package/esm/models/internchatstreamingresponse.js +0 -29
  89. package/esm/models/internchatsystemmessage.d.ts +0 -21
  90. package/esm/models/internchatsystemmessage.js +0 -15
  91. package/esm/models/internchattextpart.d.ts +0 -24
  92. package/esm/models/internchattextpart.js +0 -19
  93. package/esm/models/internchattoolcall.d.ts +0 -30
  94. package/esm/models/internchattoolcall.js +0 -23
  95. package/esm/models/internchattoolcallfunction.d.ts +0 -24
  96. package/esm/models/internchattoolcallfunction.js +0 -20
  97. package/esm/models/internchattoolmessage.d.ts +0 -23
  98. package/esm/models/internchattoolmessage.js +0 -21
  99. package/esm/models/internchatusage.d.ts +0 -24
  100. package/esm/models/internchatusage.js +0 -27
  101. package/esm/models/internchatusermessage.d.ts +0 -21
  102. package/esm/models/internchatusermessage.js +0 -15
  103. package/esm/models/internconnection.d.ts +0 -118
  104. package/esm/models/internconnection.js +0 -105
  105. package/esm/models/internconnectionlist.d.ts +0 -11
  106. package/esm/models/internconnectionlist.js +0 -15
  107. package/esm/models/interndaemonaccess.d.ts +0 -24
  108. package/esm/models/interndaemonaccess.js +0 -23
  109. package/esm/models/interninvokeacceptedresponse.d.ts +0 -34
  110. package/esm/models/interninvokeacceptedresponse.js +0 -30
  111. package/esm/models/interninvokerequest.d.ts +0 -23
  112. package/esm/models/interninvokerequest.js +0 -19
  113. package/esm/models/internlifecycleerror.d.ts +0 -23
  114. package/esm/models/internlifecycleerror.js +0 -32
  115. package/esm/models/internlistresponse.d.ts +0 -22
  116. package/esm/models/internlistresponse.js +0 -23
  117. package/esm/models/operations/createintern.d.ts +0 -61
  118. package/esm/models/operations/createintern.js +0 -25
  119. package/esm/models/operations/createinternchatcompletion.d.ts +0 -77
  120. package/esm/models/operations/createinternchatcompletion.js +0 -71
  121. package/esm/models/operations/deleteintern.d.ts +0 -61
  122. package/esm/models/operations/deleteintern.js +0 -24
  123. package/esm/models/operations/getintern.d.ts +0 -58
  124. package/esm/models/operations/getintern.js +0 -21
  125. package/esm/models/operations/getinternconnections.d.ts +0 -58
  126. package/esm/models/operations/getinternconnections.js +0 -21
  127. package/esm/models/operations/getinterndaemon.d.ts +0 -58
  128. package/esm/models/operations/getinterndaemon.js +0 -21
  129. package/esm/models/operations/getinterndaemonaccess.d.ts +0 -58
  130. package/esm/models/operations/getinterndaemonaccess.js +0 -21
  131. package/esm/models/operations/getinternicon.d.ts +0 -63
  132. package/esm/models/operations/getinternicon.js +0 -22
  133. package/esm/models/operations/invokeintern.d.ts +0 -72
  134. package/esm/models/operations/invokeintern.js +0 -38
  135. package/esm/models/operations/listinterns.d.ts +0 -87
  136. package/esm/models/operations/listinterns.js +0 -40
  137. package/esm/models/operations/provisionintern.d.ts +0 -58
  138. package/esm/models/operations/provisionintern.js +0 -21
  139. package/esm/models/operations/signinterndaemonaccessrequest.d.ts +0 -72
  140. package/esm/models/operations/signinterndaemonaccessrequest.js +0 -38
  141. package/esm/models/operations/signinterndaemonrequest.d.ts +0 -72
  142. package/esm/models/operations/signinterndaemonrequest.js +0 -38
  143. package/esm/models/operations/suspendintern.d.ts +0 -58
  144. package/esm/models/operations/suspendintern.js +0 -21
  145. package/esm/models/operations/updateintern.d.ts +0 -61
  146. package/esm/models/operations/updateintern.js +0 -24
  147. package/esm/models/provisioninternresponse.d.ts +0 -10
  148. package/esm/models/provisioninternresponse.js +0 -14
  149. package/esm/models/signinterndaemonrequest.d.ts +0 -54
  150. package/esm/models/signinterndaemonrequest.js +0 -30
  151. package/esm/models/signinterndaemonresponse.d.ts +0 -32
  152. package/esm/models/signinterndaemonresponse.js +0 -27
  153. package/esm/models/suspendinternresponse.d.ts +0 -10
  154. package/esm/models/suspendinternresponse.js +0 -14
  155. package/esm/models/updateinternrequest.d.ts +0 -33
  156. package/esm/models/updateinternrequest.js +0 -16
  157. package/esm/sdk/interns.d.ts +0 -143
  158. package/esm/sdk/interns.js +0 -163
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
50
50
  export declare const SDK_METADATA: {
51
51
  readonly language: "typescript";
52
52
  readonly openapiDocVersion: "1.0.0";
53
- readonly sdkVersion: "1.5.6";
53
+ readonly sdkVersion: "1.5.7";
54
54
  readonly genVersion: "2.948.4";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.6 2.948.4 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.7 2.948.4 1.0.0 @openrouter/sdk";
56
56
  };
57
57
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
29
29
  export const SDK_METADATA = {
30
30
  language: "typescript",
31
31
  openapiDocVersion: "1.0.0",
32
- sdkVersion: "1.5.6",
32
+ sdkVersion: "1.5.7",
33
33
  genVersion: "2.948.4",
34
- userAgent: "speakeasy-sdk/typescript 1.5.6 2.948.4 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.7 2.948.4 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -12,8 +12,6 @@ export * from "./gatewaytimeoutresponseerror.js";
12
12
  export * from "./goneresponseerror.js";
13
13
  export * from "./httpclienterrors.js";
14
14
  export * from "./internalserverresponseerror.js";
15
- export * from "./internchaterrorresponse.js";
16
- export * from "./internlifecycleerror.js";
17
15
  export * from "./notfoundresponseerror.js";
18
16
  export * from "./oautherrorresponse.js";
19
17
  export * from "./openrouterdefaulterror.js";
@@ -16,8 +16,6 @@ export * from "./gatewaytimeoutresponseerror.js";
16
16
  export * from "./goneresponseerror.js";
17
17
  export * from "./httpclienterrors.js";
18
18
  export * from "./internalserverresponseerror.js";
19
- export * from "./internchaterrorresponse.js";
20
- export * from "./internlifecycleerror.js";
21
19
  export * from "./notfoundresponseerror.js";
22
20
  export * from "./oautherrorresponse.js";
23
21
  export * from "./openrouterdefaulterror.js";
@@ -271,7 +271,6 @@ export * from "./createbyokkeyresponse.js";
271
271
  export * from "./createexternaluserrequest.js";
272
272
  export * from "./createguardrailrequest.js";
273
273
  export * from "./createguardrailresponse.js";
274
- export * from "./createinternrequest.js";
275
274
  export * from "./createobservabilitydestinationrequest.js";
276
275
  export * from "./createobservabilitydestinationresponse.js";
277
276
  export * from "./createpresetfrominferenceresponse.js";
@@ -309,8 +308,6 @@ export * from "./deferredtoolscontrol.js";
309
308
  export * from "./deferredtoolssearchstrategy.js";
310
309
  export * from "./deletebyokkeyresponse.js";
311
310
  export * from "./deleteguardrailresponse.js";
312
- export * from "./deleteinternrequest.js";
313
- export * from "./deleteinternresponse.js";
314
311
  export * from "./deleteobservabilitydestinationresponse.js";
315
312
  export * from "./deleteprivateendpointresponse.js";
316
313
  export * from "./deletescimgroupmappingresponse.js";
@@ -420,39 +417,7 @@ export * from "./inputsunion.js";
420
417
  export * from "./inputtext.js";
421
418
  export * from "./inputvideo.js";
422
419
  export * from "./instructtype.js";
423
- export * from "./intern.js";
424
420
  export * from "./internalserverresponseerrordata.js";
425
- export * from "./internapprovalmode.js";
426
- export * from "./internchatassistantmessage.js";
427
- export * from "./internchatchoice.js";
428
- export * from "./internchatcompletionchunk.js";
429
- export * from "./internchatcompletionrequest.js";
430
- export * from "./internchatdelta.js";
431
- export * from "./internchatdevelopermessage.js";
432
- export * from "./internchatechoedtoolcall.js";
433
- export * from "./internchatechoedtoolcallfunction.js";
434
- export * from "./internchaterror.js";
435
- export * from "./internchaterrormetadata.js";
436
- export * from "./internchatmessage.js";
437
- export * from "./internchatmessagecontent.js";
438
- export * from "./internchatprompttokensdetails.js";
439
- export * from "./internchatsteeredresponse.js";
440
- export * from "./internchatstreamerror.js";
441
- export * from "./internchatstreamingresponse.js";
442
- export * from "./internchatsystemmessage.js";
443
- export * from "./internchattextpart.js";
444
- export * from "./internchattoolcall.js";
445
- export * from "./internchattoolcallfunction.js";
446
- export * from "./internchattoolmessage.js";
447
- export * from "./internchatusage.js";
448
- export * from "./internchatusermessage.js";
449
- export * from "./internconnection.js";
450
- export * from "./internconnectionlist.js";
451
- export * from "./interndaemonaccess.js";
452
- export * from "./interninvokeacceptedresponse.js";
453
- export * from "./interninvokerequest.js";
454
- export * from "./internlifecycleerror.js";
455
- export * from "./internlistresponse.js";
456
421
  export * from "./itemreferenceitem.js";
457
422
  export * from "./jevrouterplugin.js";
458
423
  export * from "./keyassignment.js";
@@ -664,7 +629,6 @@ export * from "./providerpreferences.js";
664
629
  export * from "./providerresponse.js";
665
630
  export * from "./providersort.js";
666
631
  export * from "./providersortconfig.js";
667
- export * from "./provisioninternresponse.js";
668
632
  export * from "./publicendpoint.js";
669
633
  export * from "./publicpricing.js";
670
634
  export * from "./publicservicetier.js";
@@ -734,8 +698,6 @@ export * from "./shellservertoolconfig.js";
734
698
  export * from "./shellservertoolengine.js";
735
699
  export * from "./shellservertoolenvironment.js";
736
700
  export * from "./shellservertoolopenrouter.js";
737
- export * from "./signinterndaemonrequest.js";
738
- export * from "./signinterndaemonresponse.js";
739
701
  export * from "./speechinput.js";
740
702
  export * from "./speechinputreference.js";
741
703
  export * from "./speechinputreferenceaudio.js";
@@ -776,7 +738,6 @@ export * from "./subagentservertoolconfig.js";
776
738
  export * from "./subagentservertoolopenrouter.js";
777
739
  export * from "./submitgenerationfeedbackrequest.js";
778
740
  export * from "./submitgenerationfeedbackresponse.js";
779
- export * from "./suspendinternresponse.js";
780
741
  export * from "./switchyardrouterplugin.js";
781
742
  export * from "./taskclassificationitem.js";
782
743
  export * from "./taskclassificationmacrocategory.js";
@@ -813,7 +774,6 @@ export * from "./updatebyokkeyresponse.js";
813
774
  export * from "./updateexternaluserrequest.js";
814
775
  export * from "./updateguardrailrequest.js";
815
776
  export * from "./updateguardrailresponse.js";
816
- export * from "./updateinternrequest.js";
817
777
  export * from "./updateobservabilitydestinationrequest.js";
818
778
  export * from "./updateobservabilitydestinationresponse.js";
819
779
  export * from "./updateorganizationsettingsrequest.js";
@@ -275,7 +275,6 @@ export * from "./createbyokkeyresponse.js";
275
275
  export * from "./createexternaluserrequest.js";
276
276
  export * from "./createguardrailrequest.js";
277
277
  export * from "./createguardrailresponse.js";
278
- export * from "./createinternrequest.js";
279
278
  export * from "./createobservabilitydestinationrequest.js";
280
279
  export * from "./createobservabilitydestinationresponse.js";
281
280
  export * from "./createpresetfrominferenceresponse.js";
@@ -313,8 +312,6 @@ export * from "./deferredtoolscontrol.js";
313
312
  export * from "./deferredtoolssearchstrategy.js";
314
313
  export * from "./deletebyokkeyresponse.js";
315
314
  export * from "./deleteguardrailresponse.js";
316
- export * from "./deleteinternrequest.js";
317
- export * from "./deleteinternresponse.js";
318
315
  export * from "./deleteobservabilitydestinationresponse.js";
319
316
  export * from "./deleteprivateendpointresponse.js";
320
317
  export * from "./deletescimgroupmappingresponse.js";
@@ -424,39 +421,7 @@ export * from "./inputsunion.js";
424
421
  export * from "./inputtext.js";
425
422
  export * from "./inputvideo.js";
426
423
  export * from "./instructtype.js";
427
- export * from "./intern.js";
428
424
  export * from "./internalserverresponseerrordata.js";
429
- export * from "./internapprovalmode.js";
430
- export * from "./internchatassistantmessage.js";
431
- export * from "./internchatchoice.js";
432
- export * from "./internchatcompletionchunk.js";
433
- export * from "./internchatcompletionrequest.js";
434
- export * from "./internchatdelta.js";
435
- export * from "./internchatdevelopermessage.js";
436
- export * from "./internchatechoedtoolcall.js";
437
- export * from "./internchatechoedtoolcallfunction.js";
438
- export * from "./internchaterror.js";
439
- export * from "./internchaterrormetadata.js";
440
- export * from "./internchatmessage.js";
441
- export * from "./internchatmessagecontent.js";
442
- export * from "./internchatprompttokensdetails.js";
443
- export * from "./internchatsteeredresponse.js";
444
- export * from "./internchatstreamerror.js";
445
- export * from "./internchatstreamingresponse.js";
446
- export * from "./internchatsystemmessage.js";
447
- export * from "./internchattextpart.js";
448
- export * from "./internchattoolcall.js";
449
- export * from "./internchattoolcallfunction.js";
450
- export * from "./internchattoolmessage.js";
451
- export * from "./internchatusage.js";
452
- export * from "./internchatusermessage.js";
453
- export * from "./internconnection.js";
454
- export * from "./internconnectionlist.js";
455
- export * from "./interndaemonaccess.js";
456
- export * from "./interninvokeacceptedresponse.js";
457
- export * from "./interninvokerequest.js";
458
- export * from "./internlifecycleerror.js";
459
- export * from "./internlistresponse.js";
460
425
  export * from "./itemreferenceitem.js";
461
426
  export * from "./jevrouterplugin.js";
462
427
  export * from "./keyassignment.js";
@@ -668,7 +633,6 @@ export * from "./providerpreferences.js";
668
633
  export * from "./providerresponse.js";
669
634
  export * from "./providersort.js";
670
635
  export * from "./providersortconfig.js";
671
- export * from "./provisioninternresponse.js";
672
636
  export * from "./publicendpoint.js";
673
637
  export * from "./publicpricing.js";
674
638
  export * from "./publicservicetier.js";
@@ -738,8 +702,6 @@ export * from "./shellservertoolconfig.js";
738
702
  export * from "./shellservertoolengine.js";
739
703
  export * from "./shellservertoolenvironment.js";
740
704
  export * from "./shellservertoolopenrouter.js";
741
- export * from "./signinterndaemonrequest.js";
742
- export * from "./signinterndaemonresponse.js";
743
705
  export * from "./speechinput.js";
744
706
  export * from "./speechinputreference.js";
745
707
  export * from "./speechinputreferenceaudio.js";
@@ -780,7 +742,6 @@ export * from "./subagentservertoolconfig.js";
780
742
  export * from "./subagentservertoolopenrouter.js";
781
743
  export * from "./submitgenerationfeedbackrequest.js";
782
744
  export * from "./submitgenerationfeedbackresponse.js";
783
- export * from "./suspendinternresponse.js";
784
745
  export * from "./switchyardrouterplugin.js";
785
746
  export * from "./taskclassificationitem.js";
786
747
  export * from "./taskclassificationmacrocategory.js";
@@ -817,7 +778,6 @@ export * from "./updatebyokkeyresponse.js";
817
778
  export * from "./updateexternaluserrequest.js";
818
779
  export * from "./updateguardrailrequest.js";
819
780
  export * from "./updateguardrailresponse.js";
820
- export * from "./updateinternrequest.js";
821
781
  export * from "./updateobservabilitydestinationrequest.js";
822
782
  export * from "./updateobservabilitydestinationresponse.js";
823
783
  export * from "./updateorganizationsettingsrequest.js";
@@ -17,8 +17,6 @@ export * from "./createembeddings.js";
17
17
  export * from "./createexternaluser.js";
18
18
  export * from "./createguardrail.js";
19
19
  export * from "./createimages.js";
20
- export * from "./createintern.js";
21
- export * from "./createinternchatcompletion.js";
22
20
  export * from "./createkeys.js";
23
21
  export * from "./createoauthtoken.js";
24
22
  export * from "./createobservabilitydestination.js";
@@ -38,7 +36,6 @@ export * from "./deletebyokkey.js";
38
36
  export * from "./deleteexternaluser.js";
39
37
  export * from "./deletefile.js";
40
38
  export * from "./deleteguardrail.js";
41
- export * from "./deleteintern.js";
42
39
  export * from "./deleteinternvaultsecret.js";
43
40
  export * from "./deletekeys.js";
44
41
  export * from "./deleteobservabilitydestination.js";
@@ -64,11 +61,6 @@ export * from "./getexternaluser.js";
64
61
  export * from "./getfilemetadata.js";
65
62
  export * from "./getgeneration.js";
66
63
  export * from "./getguardrail.js";
67
- export * from "./getintern.js";
68
- export * from "./getinternconnections.js";
69
- export * from "./getinterndaemon.js";
70
- export * from "./getinterndaemonaccess.js";
71
- export * from "./getinternicon.js";
72
64
  export * from "./getkey.js";
73
65
  export * from "./getmodel.js";
74
66
  export * from "./getmodels.js";
@@ -87,7 +79,6 @@ export * from "./getuseractivity.js";
87
79
  export * from "./getvideos.js";
88
80
  export * from "./getworkspace.js";
89
81
  export * from "./getworkspacebudget.js";
90
- export * from "./invokeintern.js";
91
82
  export * from "./list.js";
92
83
  export * from "./listbatches.js";
93
84
  export * from "./listbyokkeys.js";
@@ -105,7 +96,6 @@ export * from "./listimagemodelendpoints.js";
105
96
  export * from "./listimagemodels.js";
106
97
  export * from "./listinternconnections.js";
107
98
  export * from "./listinterneffectivevaultsecrets.js";
108
- export * from "./listinterns.js";
109
99
  export * from "./listinternvaultsecrets.js";
110
100
  export * from "./listkeyassignments.js";
111
101
  export * from "./listmemberassignments.js";
@@ -128,19 +118,14 @@ export * from "./listworkspacebudgets.js";
128
118
  export * from "./listworkspacemembers.js";
129
119
  export * from "./listworkspaces.js";
130
120
  export * from "./promotecontainerfile.js";
131
- export * from "./provisionintern.js";
132
121
  export * from "./queryanalytics.js";
133
122
  export * from "./sendchatcompletionrequest.js";
134
- export * from "./signinterndaemonaccessrequest.js";
135
- export * from "./signinterndaemonrequest.js";
136
123
  export * from "./storeinternvaultsecret.js";
137
124
  export * from "./storevaultsecret.js";
138
125
  export * from "./submitgenerationfeedback.js";
139
- export * from "./suspendintern.js";
140
126
  export * from "./updatebyokkey.js";
141
127
  export * from "./updateexternaluser.js";
142
128
  export * from "./updateguardrail.js";
143
- export * from "./updateintern.js";
144
129
  export * from "./updatekeys.js";
145
130
  export * from "./updateobservabilitydestination.js";
146
131
  export * from "./updateorganizationsettings.js";
@@ -21,8 +21,6 @@ export * from "./createembeddings.js";
21
21
  export * from "./createexternaluser.js";
22
22
  export * from "./createguardrail.js";
23
23
  export * from "./createimages.js";
24
- export * from "./createintern.js";
25
- export * from "./createinternchatcompletion.js";
26
24
  export * from "./createkeys.js";
27
25
  export * from "./createoauthtoken.js";
28
26
  export * from "./createobservabilitydestination.js";
@@ -42,7 +40,6 @@ export * from "./deletebyokkey.js";
42
40
  export * from "./deleteexternaluser.js";
43
41
  export * from "./deletefile.js";
44
42
  export * from "./deleteguardrail.js";
45
- export * from "./deleteintern.js";
46
43
  export * from "./deleteinternvaultsecret.js";
47
44
  export * from "./deletekeys.js";
48
45
  export * from "./deleteobservabilitydestination.js";
@@ -68,11 +65,6 @@ export * from "./getexternaluser.js";
68
65
  export * from "./getfilemetadata.js";
69
66
  export * from "./getgeneration.js";
70
67
  export * from "./getguardrail.js";
71
- export * from "./getintern.js";
72
- export * from "./getinternconnections.js";
73
- export * from "./getinterndaemon.js";
74
- export * from "./getinterndaemonaccess.js";
75
- export * from "./getinternicon.js";
76
68
  export * from "./getkey.js";
77
69
  export * from "./getmodel.js";
78
70
  export * from "./getmodels.js";
@@ -91,7 +83,6 @@ export * from "./getuseractivity.js";
91
83
  export * from "./getvideos.js";
92
84
  export * from "./getworkspace.js";
93
85
  export * from "./getworkspacebudget.js";
94
- export * from "./invokeintern.js";
95
86
  export * from "./list.js";
96
87
  export * from "./listbatches.js";
97
88
  export * from "./listbyokkeys.js";
@@ -109,7 +100,6 @@ export * from "./listimagemodelendpoints.js";
109
100
  export * from "./listimagemodels.js";
110
101
  export * from "./listinternconnections.js";
111
102
  export * from "./listinterneffectivevaultsecrets.js";
112
- export * from "./listinterns.js";
113
103
  export * from "./listinternvaultsecrets.js";
114
104
  export * from "./listkeyassignments.js";
115
105
  export * from "./listmemberassignments.js";
@@ -132,19 +122,14 @@ export * from "./listworkspacebudgets.js";
132
122
  export * from "./listworkspacemembers.js";
133
123
  export * from "./listworkspaces.js";
134
124
  export * from "./promotecontainerfile.js";
135
- export * from "./provisionintern.js";
136
125
  export * from "./queryanalytics.js";
137
126
  export * from "./sendchatcompletionrequest.js";
138
- export * from "./signinterndaemonaccessrequest.js";
139
- export * from "./signinterndaemonrequest.js";
140
127
  export * from "./storeinternvaultsecret.js";
141
128
  export * from "./storevaultsecret.js";
142
129
  export * from "./submitgenerationfeedback.js";
143
- export * from "./suspendintern.js";
144
130
  export * from "./updatebyokkey.js";
145
131
  export * from "./updateexternaluser.js";
146
132
  export * from "./updateguardrail.js";
147
- export * from "./updateintern.js";
148
133
  export * from "./updatekeys.js";
149
134
  export * from "./updateobservabilitydestination.js";
150
135
  export * from "./updateorganizationsettings.js";
package/esm/sdk/sdk.d.ts CHANGED
@@ -19,7 +19,6 @@ import { Files } from "./files.js";
19
19
  import { Generations } from "./generations.js";
20
20
  import { Guardrails } from "./guardrails.js";
21
21
  import { Images } from "./images.js";
22
- import { Interns } from "./interns.js";
23
22
  import { Models } from "./models.js";
24
23
  import { OAuth } from "./oauth.js";
25
24
  import { Observability } from "./observability.js";
@@ -86,8 +85,6 @@ export declare class OpenRouter extends ClientSDK {
86
85
  get guardrails(): Guardrails;
87
86
  private _images?;
88
87
  get images(): Images;
89
- private _interns?;
90
- get interns(): Interns;
91
88
  private _apiKeys?;
92
89
  get apiKeys(): APIKeys;
93
90
  private _models?;
package/esm/sdk/sdk.js CHANGED
@@ -23,7 +23,6 @@ import { Files } from "./files.js";
23
23
  import { Generations } from "./generations.js";
24
24
  import { Guardrails } from "./guardrails.js";
25
25
  import { Images } from "./images.js";
26
- import { Interns } from "./interns.js";
27
26
  import { Models } from "./models.js";
28
27
  import { OAuth } from "./oauth.js";
29
28
  import { Observability } from "./observability.js";
@@ -109,9 +108,6 @@ export class OpenRouter extends ClientSDK {
109
108
  get images() {
110
109
  return (this._images ?? (this._images = new Images(this._options)));
111
110
  }
112
- get interns() {
113
- return (this._interns ?? (this._interns = new Interns(this._options)));
114
- }
115
111
  get apiKeys() {
116
112
  return (this._apiKeys ?? (this._apiKeys = new APIKeys(this._options)));
117
113
  }
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.6",
5
+ "version": "1.5.7",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
6
6
  "keywords": [
@@ -21,8 +21,8 @@
21
21
  "license": "Apache-2.0",
22
22
  "packageManager": "pnpm@10.22.0",
23
23
  "publishConfig": {
24
- "provenance": true,
25
- "access": "public"
24
+ "access": "public",
25
+ "provenance": true
26
26
  },
27
27
  "type": "module",
28
28
  "main": "./esm/index.js",
@@ -73,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "test:transit": "exit 0",
77
- "typecheck:transit": "exit 0",
76
+ "compile": "tsc && node scripts/unbarrel-imports.js",
78
77
  "prepare": "npm run build",
79
- "test:watch": "vitest --watch --project unit",
78
+ "test": "vitest --run --project unit",
79
+ "test:e2e": "vitest --run --project e2e",
80
80
  "typecheck": "tsc --noEmit",
81
- "compile": "tsc && node scripts/unbarrel-imports.js",
82
81
  "postinstall": "node scripts/check-types.js || true",
83
- "test": "vitest --run --project unit",
84
- "test:e2e": "vitest --run --project e2e"
82
+ "test:transit": "exit 0",
83
+ "test:watch": "vitest --watch --project unit",
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {
87
87
 
@@ -1,42 +0,0 @@
1
- import { OpenRouterCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
- import * as errors from "../models/errors/index.js";
5
- import { OpenRouterError } from "../models/errors/openroutererror.js";
6
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
- import * as operations from "../models/operations/index.js";
9
- import { APIPromise } from "../types/async.js";
10
- import { Result } from "../types/fp.js";
11
- /**
12
- * Stream a chat completion with an intern
13
- *
14
- * @remarks
15
- * Sends a prompt to one of your interns and streams the reply as OpenAI-compatible server-sent events ending with `[DONE]`. The run executes on the intern, which may pause to ask you something. It then streams one `openrouter.provide_input` tool call and finishes with `finish_reason: "tool_calls"`, and the run stays open on the intern.
16
- *
17
- * Every response, whether it ends with `stop`, `tool_calls` or `error`, is followed by a final chunk with empty `choices` that carries `session_id`, then `data: [DONE]`. That chunk carries the `usage` the intern reported for the run, after `stop` or `error`, and `null` when the intern reported none. After `tool_calls` its `usage` is `null` because the turn is not over. Read through `[DONE]`: the `session_id` you need to reply arrives after the `tool_calls` finish chunk.
18
- *
19
- * To answer, send a second request with the same `session_id`, the assistant message echoing that tool call, and a `tool` message whose `tool_call_id` is the tool call id and whose `content` is the answer. The answer is delivered to the run that asked and the stream continues from where it paused. A question stays open for its interaction deadline (5 minutes by default) and the run is cancelled when that passes. Rejected replies do not extend the deadline.
20
- *
21
- * Closing the connection after the `[DONE]` that follows `finish_reason: "tool_calls"` keeps the run alive. Disconnecting while a response is still streaming cancels the run. The stream writes a `: keepalive` comment whenever nothing else has been written for 30 seconds, so a disconnect is noticed within that interval even while the intern is silent.
22
- *
23
- * A run the intern ends while you are still connected, by cancellation or by a deadline, ends the stream with a `finish_reason: "error"` chunk carrying `410` and reason `run_ended`, then the final empty-`choices` chunk and `[DONE]`. That error reports only an ending the intern confirmed. A connection that breaks without that confirmation ends with reason `stream_severed`, and a client that has already disconnected is promised no final event.
24
- *
25
- * Set `approval_mode` to `manual` to have the intern ask before approval-bearing tools such as the shell. Omitted, the run self-drives and consents on your behalf. The mode belongs to the run started by that prompt and must be repeated on later prompts.
26
- *
27
- * Available to interns programme members. Callers outside the programme receive `404` for every path under `/api/v1/interns`.
28
- *
29
- * If set, this operation will use {@link Security.apiKey} from the global security.
30
- */
31
- export declare function internsChat(client: OpenRouterCore, request: operations.CreateInternChatCompletionRequest & {
32
- internChatCompletionRequest: {
33
- stream?: false;
34
- };
35
- }, options?: RequestOptions): APIPromise<Result<operations.CreateInternChatCompletionResponse, errors.InternChatErrorResponse | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
36
- export declare function internsChat(client: OpenRouterCore, request: operations.CreateInternChatCompletionRequest & {
37
- internChatCompletionRequest: {
38
- stream: true;
39
- };
40
- }, options?: RequestOptions): APIPromise<Result<operations.CreateInternChatCompletionResponse, errors.InternChatErrorResponse | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
41
- export declare function internsChat(client: OpenRouterCore, request: operations.CreateInternChatCompletionRequest, options?: RequestOptions): APIPromise<Result<operations.CreateInternChatCompletionResponse, errors.InternChatErrorResponse | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
42
- //# sourceMappingURL=internsChat.d.ts.map
@@ -1,109 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 36149dc7ea8d
4
- */
5
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
6
- import { matchStatusCode } from "../lib/http.js";
7
- import * as M from "../lib/matchers.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
- import { pathToFunc } from "../lib/url.js";
12
- import { InternChatErrorResponse$inboundSchema as errors_InternChatErrorResponse$inboundSchema } from "../models/errors/internchaterrorresponse.js";
13
- import { CreateInternChatCompletionRequest$outboundSchema as operations_CreateInternChatCompletionRequest$outboundSchema, CreateInternChatCompletionResponse$inboundSchema as operations_CreateInternChatCompletionResponse$inboundSchema } from "../models/operations/createinternchatcompletion.js";
14
- import { APIPromise } from "../types/async.js";
15
- export function internsChat(client, request, options) {
16
- return new APIPromise($do(client, request, options));
17
- }
18
- async function $do(client, request, options) {
19
- const parsed = safeParse(request, (value) => operations_CreateInternChatCompletionRequest$outboundSchema.parse(value), "Input validation failed");
20
- if (!parsed.ok) {
21
- return [parsed, { status: "invalid" }];
22
- }
23
- const payload = parsed.value;
24
- const body = encodeJSON("body", payload.InternChatCompletionRequest, {
25
- explode: true,
26
- });
27
- const pathParams = {
28
- internId: encodeSimple("internId", payload.internId, {
29
- explode: false,
30
- charEncoding: "percent",
31
- }),
32
- };
33
- const path = pathToFunc("/interns/{internId}/chat/completions")(pathParams);
34
- const headers = new Headers(compactMap({
35
- "Content-Type": "application/json",
36
- Accept: request?.internChatCompletionRequest?.stream
37
- ? "text/event-stream"
38
- : "application/json",
39
- "HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
40
- "X-OpenRouter-Categories": encodeSimple("X-OpenRouter-Categories", payload.appCategories ?? client._options.appCategories, { explode: false, charEncoding: "none" }),
41
- "X-OpenRouter-Title": encodeSimple("X-OpenRouter-Title", payload.appTitle ?? client._options.appTitle, { explode: false, charEncoding: "none" }),
42
- }));
43
- const secConfig = await extractSecurity(client._options.apiKey);
44
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
45
- const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
46
- const context = {
47
- options: client._options,
48
- baseURL: options?.serverURL ?? client._baseURL ?? "",
49
- operationID: "createInternChatCompletion",
50
- oAuth2Scopes: null,
51
- resolvedSecurity: requestSecurity,
52
- securitySource: client._options.apiKey,
53
- retryConfig: options?.retries
54
- || client._options.retryConfig
55
- || {
56
- strategy: "backoff",
57
- backoff: {
58
- initialInterval: 500,
59
- maxInterval: 60000,
60
- exponent: 1.5,
61
- maxElapsedTime: 3600000,
62
- },
63
- retryConnectionErrors: true,
64
- }
65
- || { strategy: "none" },
66
- retryCodes: options?.retryCodes || ["5XX"],
67
- };
68
- const requestRes = client._createRequest(context, {
69
- security: requestSecurity,
70
- method: "POST",
71
- baseURL: options?.serverURL,
72
- path: path,
73
- headers: headers,
74
- body: body,
75
- userAgent: client._options.userAgent,
76
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
77
- }, options);
78
- if (!requestRes.ok) {
79
- return [requestRes, { status: "invalid" }];
80
- }
81
- const req = requestRes.value;
82
- const doResult = await client._do(req, {
83
- context,
84
- isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
85
- retryConfig: context.retryConfig,
86
- retryCodes: context.retryCodes,
87
- });
88
- if (!doResult.ok) {
89
- return [doResult, { status: "request-error", request: req }];
90
- }
91
- const response = doResult.value;
92
- const responseFields = {
93
- HttpMeta: { Response: response, Request: req },
94
- };
95
- const [result] = await M.match(M.sse(200, operations_CreateInternChatCompletionResponse$inboundSchema, {
96
- key: "Result",
97
- }), M.json(202, operations_CreateInternChatCompletionResponse$inboundSchema, {
98
- key: "Result",
99
- }), M.jsonErr([400, 401, 403, 404, 408, 410, 413], errors_InternChatErrorResponse$inboundSchema), M.jsonErr([409, 429], errors_InternChatErrorResponse$inboundSchema, {
100
- hdrs: true,
101
- }), M.jsonErr(503, errors_InternChatErrorResponse$inboundSchema, {
102
- hdrs: true,
103
- }), M.jsonErr([502, 504], errors_InternChatErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
104
- if (!result.ok) {
105
- return [result, { status: "complete", request: req, response }];
106
- }
107
- return [result, { status: "complete", request: req, response }];
108
- }
109
- //# sourceMappingURL=internsChat.js.map
@@ -1,21 +0,0 @@
1
- import { OpenRouterCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
- import * as errors from "../models/errors/index.js";
5
- import { OpenRouterError } from "../models/errors/openroutererror.js";
6
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
- import * as models from "../models/index.js";
9
- import * as operations from "../models/operations/index.js";
10
- import { APIPromise } from "../types/async.js";
11
- import { Result } from "../types/fp.js";
12
- /**
13
- * Create an intern
14
- *
15
- * @remarks
16
- * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
17
- *
18
- * If set, this operation will use {@link Security.apiKey} from the global security.
19
- */
20
- export declare function internsCreateIntern(client: OpenRouterCore, request: operations.CreateInternRequest, options?: RequestOptions): APIPromise<Result<models.Intern, errors.InternLifecycleError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
21
- //# sourceMappingURL=internsCreateIntern.d.ts.map