@runwayml/sdk 4.13.2 → 4.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.
Files changed (199) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/client.d.mts +3 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/character-performance.d.mts +17 -0
  12. package/resources/character-performance.d.mts.map +1 -1
  13. package/resources/character-performance.d.ts +17 -0
  14. package/resources/character-performance.d.ts.map +1 -1
  15. package/resources/generate/audio.d.mts +46 -24
  16. package/resources/generate/audio.d.mts.map +1 -1
  17. package/resources/generate/audio.d.ts +46 -24
  18. package/resources/generate/audio.d.ts.map +1 -1
  19. package/resources/generate/audio.js.map +1 -1
  20. package/resources/generate/audio.mjs.map +1 -1
  21. package/resources/generate/generate.d.mts +2 -2
  22. package/resources/generate/generate.d.mts.map +1 -1
  23. package/resources/generate/generate.d.ts +2 -2
  24. package/resources/generate/generate.d.ts.map +1 -1
  25. package/resources/generate/generate.js.map +1 -1
  26. package/resources/generate/generate.mjs.map +1 -1
  27. package/resources/generate/image.d.mts +21 -0
  28. package/resources/generate/image.d.mts.map +1 -1
  29. package/resources/generate/image.d.ts +21 -0
  30. package/resources/generate/image.d.ts.map +1 -1
  31. package/resources/generate/index.d.mts +1 -1
  32. package/resources/generate/index.d.mts.map +1 -1
  33. package/resources/generate/index.d.ts +1 -1
  34. package/resources/generate/index.d.ts.map +1 -1
  35. package/resources/generate/index.js.map +1 -1
  36. package/resources/generate/index.mjs +1 -1
  37. package/resources/generate/index.mjs.map +1 -1
  38. package/resources/generate/video.d.mts +21 -0
  39. package/resources/generate/video.d.mts.map +1 -1
  40. package/resources/generate/video.d.ts +21 -0
  41. package/resources/generate/video.d.ts.map +1 -1
  42. package/resources/image-to-video.d.mts +146 -19
  43. package/resources/image-to-video.d.mts.map +1 -1
  44. package/resources/image-to-video.d.ts +146 -19
  45. package/resources/image-to-video.d.ts.map +1 -1
  46. package/resources/image-upscale.d.mts +17 -0
  47. package/resources/image-upscale.d.mts.map +1 -1
  48. package/resources/image-upscale.d.ts +17 -0
  49. package/resources/image-upscale.d.ts.map +1 -1
  50. package/resources/index.d.mts +2 -2
  51. package/resources/index.d.mts.map +1 -1
  52. package/resources/index.d.ts +2 -2
  53. package/resources/index.d.ts.map +1 -1
  54. package/resources/index.js +1 -1
  55. package/resources/index.js.map +1 -1
  56. package/resources/index.mjs +1 -1
  57. package/resources/index.mjs.map +1 -1
  58. package/resources/organization/index.d.mts +3 -0
  59. package/resources/organization/index.d.mts.map +1 -0
  60. package/resources/organization/index.d.ts +3 -0
  61. package/resources/organization/index.d.ts.map +1 -0
  62. package/resources/organization/index.js +9 -0
  63. package/resources/organization/index.js.map +1 -0
  64. package/resources/organization/index.mjs +4 -0
  65. package/resources/organization/index.mjs.map +1 -0
  66. package/resources/organization/organization.d.mts +154 -0
  67. package/resources/organization/organization.d.mts.map +1 -0
  68. package/resources/organization/organization.d.ts +154 -0
  69. package/resources/organization/organization.d.ts.map +1 -0
  70. package/resources/organization/organization.js +32 -0
  71. package/resources/organization/organization.js.map +1 -0
  72. package/resources/organization/organization.mjs +27 -0
  73. package/resources/organization/organization.mjs.map +1 -0
  74. package/resources/organization/webapp/audit-logs.d.mts +216 -0
  75. package/resources/organization/webapp/audit-logs.d.mts.map +1 -0
  76. package/resources/organization/webapp/audit-logs.d.ts +216 -0
  77. package/resources/organization/webapp/audit-logs.d.ts.map +1 -0
  78. package/resources/organization/webapp/audit-logs.js +30 -0
  79. package/resources/organization/webapp/audit-logs.js.map +1 -0
  80. package/resources/organization/webapp/audit-logs.mjs +26 -0
  81. package/resources/organization/webapp/audit-logs.mjs.map +1 -0
  82. package/resources/organization/webapp/index.d.mts +3 -0
  83. package/resources/organization/webapp/index.d.mts.map +1 -0
  84. package/resources/organization/webapp/index.d.ts +3 -0
  85. package/resources/organization/webapp/index.d.ts.map +1 -0
  86. package/resources/organization/webapp/index.js +9 -0
  87. package/resources/organization/webapp/index.js.map +1 -0
  88. package/resources/organization/webapp/index.mjs +4 -0
  89. package/resources/organization/webapp/index.mjs.map +1 -0
  90. package/resources/organization/webapp/webapp.d.mts +73 -0
  91. package/resources/organization/webapp/webapp.d.mts.map +1 -0
  92. package/resources/organization/webapp/webapp.d.ts +73 -0
  93. package/resources/organization/webapp/webapp.d.ts.map +1 -0
  94. package/resources/organization/webapp/webapp.js +30 -0
  95. package/resources/organization/webapp/webapp.js.map +1 -0
  96. package/resources/organization/webapp/webapp.mjs +25 -0
  97. package/resources/organization/webapp/webapp.mjs.map +1 -0
  98. package/resources/organization/webapp.d.mts +2 -0
  99. package/resources/organization/webapp.d.mts.map +1 -0
  100. package/resources/organization/webapp.d.ts +2 -0
  101. package/resources/organization/webapp.d.ts.map +1 -0
  102. package/resources/organization/webapp.js +6 -0
  103. package/resources/organization/webapp.js.map +1 -0
  104. package/resources/organization/webapp.mjs +3 -0
  105. package/resources/organization/webapp.mjs.map +1 -0
  106. package/resources/organization.d.mts +1 -149
  107. package/resources/organization.d.mts.map +1 -1
  108. package/resources/organization.d.ts +1 -149
  109. package/resources/organization.d.ts.map +1 -1
  110. package/resources/organization.js +2 -20
  111. package/resources/organization.js.map +1 -1
  112. package/resources/organization.mjs +1 -18
  113. package/resources/organization.mjs.map +1 -1
  114. package/resources/recipes.d.mts +119 -0
  115. package/resources/recipes.d.mts.map +1 -1
  116. package/resources/recipes.d.ts +119 -0
  117. package/resources/recipes.d.ts.map +1 -1
  118. package/resources/routers.d.mts +194 -1
  119. package/resources/routers.d.mts.map +1 -1
  120. package/resources/routers.d.ts +194 -1
  121. package/resources/routers.d.ts.map +1 -1
  122. package/resources/routers.js +10 -0
  123. package/resources/routers.js.map +1 -1
  124. package/resources/routers.mjs +10 -0
  125. package/resources/routers.mjs.map +1 -1
  126. package/resources/sound-effect.d.mts +17 -0
  127. package/resources/sound-effect.d.mts.map +1 -1
  128. package/resources/sound-effect.d.ts +17 -0
  129. package/resources/sound-effect.d.ts.map +1 -1
  130. package/resources/speech-to-speech.d.mts +17 -0
  131. package/resources/speech-to-speech.d.mts.map +1 -1
  132. package/resources/speech-to-speech.d.ts +17 -0
  133. package/resources/speech-to-speech.d.ts.map +1 -1
  134. package/resources/tasks.d.mts +90 -0
  135. package/resources/tasks.d.mts.map +1 -1
  136. package/resources/tasks.d.ts +90 -0
  137. package/resources/tasks.d.ts.map +1 -1
  138. package/resources/text-to-image.d.mts +68 -1
  139. package/resources/text-to-image.d.mts.map +1 -1
  140. package/resources/text-to-image.d.ts +68 -1
  141. package/resources/text-to-image.d.ts.map +1 -1
  142. package/resources/text-to-speech.d.mts +77 -1
  143. package/resources/text-to-speech.d.mts.map +1 -1
  144. package/resources/text-to-speech.d.ts +77 -1
  145. package/resources/text-to-speech.d.ts.map +1 -1
  146. package/resources/text-to-video.d.mts +221 -16
  147. package/resources/text-to-video.d.mts.map +1 -1
  148. package/resources/text-to-video.d.ts +221 -16
  149. package/resources/text-to-video.d.ts.map +1 -1
  150. package/resources/video-to-video.d.mts +199 -7
  151. package/resources/video-to-video.d.mts.map +1 -1
  152. package/resources/video-to-video.d.ts +199 -7
  153. package/resources/video-to-video.d.ts.map +1 -1
  154. package/resources/video-upscale.d.mts +17 -0
  155. package/resources/video-upscale.d.mts.map +1 -1
  156. package/resources/video-upscale.d.ts +17 -0
  157. package/resources/video-upscale.d.ts.map +1 -1
  158. package/resources/voice-dubbing.d.mts +17 -0
  159. package/resources/voice-dubbing.d.mts.map +1 -1
  160. package/resources/voice-dubbing.d.ts +17 -0
  161. package/resources/voice-dubbing.d.ts.map +1 -1
  162. package/resources/voice-isolation.d.mts +17 -0
  163. package/resources/voice-isolation.d.mts.map +1 -1
  164. package/resources/voice-isolation.d.ts +17 -0
  165. package/resources/voice-isolation.d.ts.map +1 -1
  166. package/src/client.ts +12 -6
  167. package/src/resources/character-performance.ts +19 -0
  168. package/src/resources/generate/audio.ts +57 -27
  169. package/src/resources/generate/generate.ts +3 -1
  170. package/src/resources/generate/image.ts +24 -0
  171. package/src/resources/generate/index.ts +7 -1
  172. package/src/resources/generate/video.ts +24 -0
  173. package/src/resources/image-to-video.ts +189 -19
  174. package/src/resources/image-upscale.ts +19 -0
  175. package/src/resources/index.ts +4 -1
  176. package/src/resources/organization/index.ts +14 -0
  177. package/src/resources/organization/organization.ts +307 -0
  178. package/src/resources/organization/webapp/audit-logs.ts +440 -0
  179. package/src/resources/organization/webapp/index.ts +16 -0
  180. package/src/resources/organization/webapp/webapp.ts +118 -0
  181. package/src/resources/organization/webapp.ts +3 -0
  182. package/src/resources/organization.ts +1 -283
  183. package/src/resources/recipes.ts +133 -0
  184. package/src/resources/routers.ts +247 -0
  185. package/src/resources/sound-effect.ts +19 -0
  186. package/src/resources/speech-to-speech.ts +19 -0
  187. package/src/resources/tasks.ts +102 -0
  188. package/src/resources/text-to-image.ts +107 -0
  189. package/src/resources/text-to-speech.ts +142 -1
  190. package/src/resources/text-to-video.ts +276 -16
  191. package/src/resources/video-to-video.ts +252 -7
  192. package/src/resources/video-upscale.ts +19 -0
  193. package/src/resources/voice-dubbing.ts +19 -0
  194. package/src/resources/voice-isolation.ts +19 -0
  195. package/src/version.ts +1 -1
  196. package/version.d.mts +1 -1
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
  199. package/version.mjs +1 -1
@@ -6,10 +6,10 @@ export { Documents, type DocumentCreateResponse, type DocumentRetrieveResponse,
6
6
  export { Generate } from "./generate/generate.js";
7
7
  export { ImageToVideo, type ImageToVideoCreateResponse, type ImageToVideoCreateParams, } from "./image-to-video.js";
8
8
  export { ImageUpscale, type ImageUpscaleCreateResponse, type ImageUpscaleCreateParams, } from "./image-upscale.js";
9
- export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization.js";
9
+ export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization/organization.js";
10
10
  export { RealtimeSessions, type DeprecatedLivekit, type RealtimeSessionCreateResponse, type RealtimeSessionRetrieveResponse, type RealtimeSessionCreateParams, } from "./realtime-sessions.js";
11
11
  export { Recipes, type RecipeAdLocalizationResponse, type RecipeMarketingStockImageResponse, type RecipeMultiShotVideoResponse, type RecipeProductAdResponse, type RecipeProductCampaignImageResponse, type RecipeProductSwapResponse, type RecipeProductUgcResponse, type RecipeAdLocalizationParams, type RecipeMarketingStockImageParams, type RecipeMultiShotVideoParams, type RecipeProductAdParams, type RecipeProductCampaignImageParams, type RecipeProductSwapParams, type RecipeProductUgcParams, } from "./recipes.js";
12
- export { Routers, type RouterCreateResponse, type RouterRetrieveResponse, type RouterUpdateResponse, type RouterListResponse, type RouterCreateParams, type RouterUpdateParams, type RouterListParams, type RouterListResponsesCursorPage, } from "./routers.js";
12
+ export { Routers, type RouterCreateResponse, type RouterRetrieveResponse, type RouterUpdateResponse, type RouterListResponse, type RouterListRequestsResponse, type RouterCreateParams, type RouterUpdateParams, type RouterListParams, type RouterListRequestsParams, type RouterListResponsesCursorPage, type RouterListRequestsResponsesCursorPage, } from "./routers.js";
13
13
  export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from "./sound-effect.js";
14
14
  export { SpeechToSpeech, type SpeechToSpeechCreateResponse, type SpeechToSpeechCreateParams, } from "./speech-to-speech.js";
15
15
  export { Tasks, type TaskRetrieveResponse } from "./tasks.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,KAAK,kCAAkC,EACvC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,yCAAyC,GAC/C,kCAA+B;AAChC,OAAO,EAAE,YAAY,EAAE,KAAK,yBAAy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,EAC/B,KAAK,wBAAwB,GAC9B,4BAAyB;AAC1B,OAAO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE,2BAAwB;AAC5G,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,4BAAyB;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,2BAAwB;AACzB,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,2BAAwB;AACzB,OAAO,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,6BAA0B;AAC3B,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,GAClC,oBAAiB;AAClB,OAAO,EAAE,mBAAmB,EAAE,KAAK,kCAAkC,EAAE,kCAA+B;AACtG,OAAO,EACL,SAAS,EACT,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,uBAAoB;AACrB,OAAO,EAAE,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,4BAA4B,EAAE,qBAAkB"}
@@ -18,7 +18,7 @@ var image_to_video_1 = require("./image-to-video.js");
18
18
  Object.defineProperty(exports, "ImageToVideo", { enumerable: true, get: function () { return image_to_video_1.ImageToVideo; } });
19
19
  var image_upscale_1 = require("./image-upscale.js");
20
20
  Object.defineProperty(exports, "ImageUpscale", { enumerable: true, get: function () { return image_upscale_1.ImageUpscale; } });
21
- var organization_1 = require("./organization.js");
21
+ var organization_1 = require("./organization/organization.js");
22
22
  Object.defineProperty(exports, "Organization", { enumerable: true, get: function () { return organization_1.Organization; } });
23
23
  var realtime_sessions_1 = require("./realtime-sessions.js");
24
24
  Object.defineProperty(exports, "RealtimeSessions", { enumerable: true, get: function () { return realtime_sessions_1.RealtimeSessions; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kEAMgC;AAL9B,2HAAA,mBAAmB,OAAA;AAMrB,oDAA6G;AAApG,6GAAA,YAAY,OAAA;AACrB,wCAYmB;AAXjB,kGAAA,OAAO,OAAA;AAYT,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,4CASqB;AARnB,sGAAA,SAAS,OAAA;AASX,mDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,4DAM6B;AAL3B,qHAAA,gBAAgB,OAAA;AAMlB,wCAgBmB;AAfjB,kGAAA,OAAO,OAAA;AAgBT,wCAUmB;AATjB,kGAAA,OAAO,OAAA;AAUT,kDAA2G;AAAlG,2GAAA,WAAW,OAAA;AACpB,0DAI4B;AAH1B,kHAAA,cAAc,OAAA;AAIhB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,wDAI2B;AAHzB,iHAAA,cAAc,OAAA;AAIhB,sCAYkB;AAXhB,gGAAA,MAAM,OAAA;AAYR,kEAAsG;AAA7F,2HAAA,mBAAmB,OAA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AAA"}
@@ -7,7 +7,7 @@ export { Documents, } from "./documents.mjs";
7
7
  export { Generate } from "./generate/generate.mjs";
8
8
  export { ImageToVideo, } from "./image-to-video.mjs";
9
9
  export { ImageUpscale, } from "./image-upscale.mjs";
10
- export { Organization, } from "./organization.mjs";
10
+ export { Organization, } from "./organization/organization.mjs";
11
11
  export { RealtimeSessions, } from "./realtime-sessions.mjs";
12
12
  export { Recipes, } from "./recipes.mjs";
13
13
  export { Routers, } from "./routers.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,mBAAmB,GAKpB,mCAA+B;AAChC,OAAO,EAAE,YAAY,EAAgE,4BAAwB;AAC7G,OAAO,EACL,OAAO,GAWR,sBAAkB;AACnB,OAAO,EACL,oBAAoB,GAGrB,oCAAgC;AACjC,OAAO,EACL,SAAS,GAQV,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,gCAA4B;AAC/C,OAAO,EACL,YAAY,GAGb,6BAAyB;AAC1B,OAAO,EACL,YAAY,GAGb,4BAAwB;AACzB,OAAO,EACL,YAAY,GAIb,2BAAuB;AACxB,OAAO,EACL,gBAAgB,GAKjB,gCAA4B;AAC7B,OAAO,EACL,OAAO,GAeR,sBAAkB;AACnB,OAAO,EACL,OAAO,GASR,sBAAkB;AACnB,OAAO,EAAE,WAAW,EAAgE,2BAAuB;AAC3G,OAAO,EACL,cAAc,GAGf,+BAA2B;AAC5B,OAAO,EAAE,KAAK,EAA6B,oBAAgB;AAC3D,OAAO,EAAE,WAAW,EAAgE,4BAAwB;AAC5G,OAAO,EACL,YAAY,GAGb,6BAAyB;AAC1B,OAAO,EAAE,WAAW,EAAgE,4BAAwB;AAC5G,OAAO,EACL,YAAY,GAGb,6BAAyB;AAC1B,OAAO,EACL,YAAY,GAGb,4BAAwB;AACzB,OAAO,EACL,YAAY,GAGb,4BAAwB;AACzB,OAAO,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AKV,wBAAoB;AACrB,OAAO,EAAE,OAAO,EAAyE,sBAAkB"}
@@ -0,0 +1,3 @@
1
+ export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization.mjs";
2
+ export { Webapp, type WebappListUsageResponse, type WebappListUsageParams, type WebappListUsageResponsesCursorPage, } from "./webapp/index.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,2BAAuB;AACxB,OAAO,EACL,MAAM,EACN,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,GACxC,2BAAuB"}
@@ -0,0 +1,3 @@
1
+ export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization.js";
2
+ export { Webapp, type WebappListUsageResponse, type WebappListUsageParams, type WebappListUsageResponsesCursorPage, } from "./webapp/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,0BAAuB;AACxB,OAAO,EACL,MAAM,EACN,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,GACxC,0BAAuB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Webapp = exports.Organization = void 0;
5
+ var organization_1 = require("./organization.js");
6
+ Object.defineProperty(exports, "Organization", { enumerable: true, get: function () { return organization_1.Organization; } });
7
+ var index_1 = require("./webapp/index.js");
8
+ Object.defineProperty(exports, "Webapp", { enumerable: true, get: function () { return index_1.Webapp; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,2CAKwB;AAJtB,+FAAA,MAAM,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Organization, } from "./organization.mjs";
3
+ export { Webapp, } from "./webapp/index.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,YAAY,GAIb,2BAAuB;AACxB,OAAO,EACL,MAAM,GAIP,2BAAuB"}
@@ -0,0 +1,154 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as WebappAPI from "./webapp/webapp.mjs";
3
+ import { Webapp, WebappListUsageParams, WebappListUsageResponse, WebappListUsageResponsesCursorPage } from "./webapp/webapp.mjs";
4
+ import { APIPromise } from "../../core/api-promise.mjs";
5
+ import { RequestOptions } from "../../internal/request-options.mjs";
6
+ export declare class Organization extends APIResource {
7
+ webapp: WebappAPI.Webapp;
8
+ /**
9
+ * Get usage tier and credit balance information about the organization associated
10
+ * with the API key used to make the request.
11
+ */
12
+ retrieve(options?: RequestOptions): APIPromise<OrganizationRetrieveResponse>;
13
+ /**
14
+ * Fetch credit usage data broken down by model and day for the organization
15
+ * associated with the API key used to make the request. Up to 90 days of data can
16
+ * be queried at a time.
17
+ */
18
+ retrieveUsage(body?: OrganizationRetrieveUsageParams | null | undefined, options?: RequestOptions): APIPromise<OrganizationRetrieveUsageResponse>;
19
+ }
20
+ export interface OrganizationRetrieveResponse {
21
+ /**
22
+ * The number of credits remaining in the organization account.
23
+ */
24
+ creditBalance: number;
25
+ /**
26
+ * Limits associated with the organization's tier.
27
+ */
28
+ tier: OrganizationRetrieveResponse.Tier;
29
+ /**
30
+ * Usage data for the organization.
31
+ */
32
+ usage: OrganizationRetrieveResponse.Usage;
33
+ }
34
+ export declare namespace OrganizationRetrieveResponse {
35
+ /**
36
+ * Limits associated with the organization's tier.
37
+ */
38
+ interface Tier {
39
+ /**
40
+ * The maximum number of credits that can be purchased in a month.
41
+ */
42
+ maxMonthlyCreditSpend: number;
43
+ /**
44
+ * An object containing model-specific limits. Each key represents a model.
45
+ */
46
+ models: {
47
+ [key: string]: Tier.Models;
48
+ };
49
+ }
50
+ namespace Tier {
51
+ /**
52
+ * Limits associated with the model.
53
+ */
54
+ interface Models {
55
+ /**
56
+ * The maximum number of generations that can be run concurrently for this model.
57
+ */
58
+ maxConcurrentGenerations: number;
59
+ /**
60
+ * The maximum number of generations that can be created each day for this model.
61
+ */
62
+ maxDailyGenerations: number;
63
+ }
64
+ }
65
+ /**
66
+ * Usage data for the organization.
67
+ */
68
+ interface Usage {
69
+ models: {
70
+ [key: string]: Usage.Models;
71
+ };
72
+ }
73
+ namespace Usage {
74
+ /**
75
+ * Usage data for the model.
76
+ */
77
+ interface Models {
78
+ /**
79
+ * The number of generations that have been run for this model in the past day.
80
+ */
81
+ dailyGenerations: number;
82
+ }
83
+ }
84
+ }
85
+ export interface OrganizationRetrieveUsageResponse {
86
+ /**
87
+ * The list of models with usage during the queried time range.
88
+ */
89
+ models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'seedream5_pro' | 'seedream5_lite' | 'gemini_omni_flash' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2' | 'seedance2_5' | 'seedance2_fast' | 'seedance2_mini' | 'hailuo3' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'kling2.5_turbo_pro' | 'kling3.0_pro' | 'kling3.0_4k' | 'kling3.0_standard' | 'klingO3_pro' | 'klingO3_standard' | 'klingO3_4k' | 'happyhorse_1_0' | 'aleph2' | 'product_swap' | 'product_ad' | 'multi_shot_video' | 'product_ugc' | 'marketing_stock_image' | 'product_campaign_image' | 'ad_localization'>;
90
+ results: Array<OrganizationRetrieveUsageResponse.Result>;
91
+ /**
92
+ * Reserved for future use.
93
+ */
94
+ apiKeys?: Array<string>;
95
+ /**
96
+ * Reserved for future use.
97
+ */
98
+ resultsByApiKey?: Array<OrganizationRetrieveUsageResponse.ResultsByAPIKey>;
99
+ }
100
+ export declare namespace OrganizationRetrieveUsageResponse {
101
+ interface Result {
102
+ /**
103
+ * The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in
104
+ * UTC.
105
+ */
106
+ date: string;
107
+ /**
108
+ * The credits used per model for the given date.
109
+ */
110
+ usedCredits: Array<Result.UsedCredit>;
111
+ }
112
+ namespace Result {
113
+ interface UsedCredit {
114
+ /**
115
+ * The net number of credits spent on the model. May be negative if refunds
116
+ * exceeded charges on this day.
117
+ */
118
+ amount: number;
119
+ /**
120
+ * The model that credits were spent on.
121
+ */
122
+ model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'seedream5_pro' | 'seedream5_lite' | 'gemini_omni_flash' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2' | 'seedance2_5' | 'seedance2_fast' | 'seedance2_mini' | 'hailuo3' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'kling2.5_turbo_pro' | 'kling3.0_pro' | 'kling3.0_4k' | 'kling3.0_standard' | 'klingO3_pro' | 'klingO3_standard' | 'klingO3_4k' | 'happyhorse_1_0' | 'aleph2' | 'product_swap' | 'product_ad' | 'multi_shot_video' | 'product_ugc' | 'marketing_stock_image' | 'product_campaign_image' | 'ad_localization';
123
+ }
124
+ }
125
+ interface ResultsByAPIKey {
126
+ date: string;
127
+ usedCredits: Array<ResultsByAPIKey.UsedCredit>;
128
+ }
129
+ namespace ResultsByAPIKey {
130
+ interface UsedCredit {
131
+ amount: number;
132
+ apiKeyId: string;
133
+ }
134
+ }
135
+ }
136
+ export interface OrganizationRetrieveUsageParams {
137
+ /**
138
+ * The end date of the usage data in ISO-8601 format (YYYY-MM-DD), not inclusive.
139
+ * If unspecified, it will default to thirty days after the start date. Must be
140
+ * less than or equal to 90 days after the start date. All dates are in UTC.
141
+ */
142
+ beforeDate?: string;
143
+ /**
144
+ * The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If
145
+ * unspecified, it will default to 30 days before the current date. All dates are
146
+ * in UTC.
147
+ */
148
+ startDate?: string;
149
+ }
150
+ export declare namespace Organization {
151
+ export { type OrganizationRetrieveResponse as OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams, };
152
+ export { Webapp as Webapp, type WebappListUsageResponse as WebappListUsageResponse, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListUsageParams as WebappListUsageParams, };
153
+ }
154
+ //# sourceMappingURL=organization.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.d.mts","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EACL,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,kCAAkC,EACnC,4BAAwB;AACzB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI5E;;;;OAIG;IACH,aAAa,CACX,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC;CAC3C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;SAAE,CAAC;KACxC;IAED,UAAiB,IAAI,CAAC;QACpB;;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,MAAM,EAAE,MAAM,CAAC;YAEf,QAAQ,EAAE,MAAM,CAAC;SAClB;KACF;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -0,0 +1,154 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as WebappAPI from "./webapp/webapp.js";
3
+ import { Webapp, WebappListUsageParams, WebappListUsageResponse, WebappListUsageResponsesCursorPage } from "./webapp/webapp.js";
4
+ import { APIPromise } from "../../core/api-promise.js";
5
+ import { RequestOptions } from "../../internal/request-options.js";
6
+ export declare class Organization extends APIResource {
7
+ webapp: WebappAPI.Webapp;
8
+ /**
9
+ * Get usage tier and credit balance information about the organization associated
10
+ * with the API key used to make the request.
11
+ */
12
+ retrieve(options?: RequestOptions): APIPromise<OrganizationRetrieveResponse>;
13
+ /**
14
+ * Fetch credit usage data broken down by model and day for the organization
15
+ * associated with the API key used to make the request. Up to 90 days of data can
16
+ * be queried at a time.
17
+ */
18
+ retrieveUsage(body?: OrganizationRetrieveUsageParams | null | undefined, options?: RequestOptions): APIPromise<OrganizationRetrieveUsageResponse>;
19
+ }
20
+ export interface OrganizationRetrieveResponse {
21
+ /**
22
+ * The number of credits remaining in the organization account.
23
+ */
24
+ creditBalance: number;
25
+ /**
26
+ * Limits associated with the organization's tier.
27
+ */
28
+ tier: OrganizationRetrieveResponse.Tier;
29
+ /**
30
+ * Usage data for the organization.
31
+ */
32
+ usage: OrganizationRetrieveResponse.Usage;
33
+ }
34
+ export declare namespace OrganizationRetrieveResponse {
35
+ /**
36
+ * Limits associated with the organization's tier.
37
+ */
38
+ interface Tier {
39
+ /**
40
+ * The maximum number of credits that can be purchased in a month.
41
+ */
42
+ maxMonthlyCreditSpend: number;
43
+ /**
44
+ * An object containing model-specific limits. Each key represents a model.
45
+ */
46
+ models: {
47
+ [key: string]: Tier.Models;
48
+ };
49
+ }
50
+ namespace Tier {
51
+ /**
52
+ * Limits associated with the model.
53
+ */
54
+ interface Models {
55
+ /**
56
+ * The maximum number of generations that can be run concurrently for this model.
57
+ */
58
+ maxConcurrentGenerations: number;
59
+ /**
60
+ * The maximum number of generations that can be created each day for this model.
61
+ */
62
+ maxDailyGenerations: number;
63
+ }
64
+ }
65
+ /**
66
+ * Usage data for the organization.
67
+ */
68
+ interface Usage {
69
+ models: {
70
+ [key: string]: Usage.Models;
71
+ };
72
+ }
73
+ namespace Usage {
74
+ /**
75
+ * Usage data for the model.
76
+ */
77
+ interface Models {
78
+ /**
79
+ * The number of generations that have been run for this model in the past day.
80
+ */
81
+ dailyGenerations: number;
82
+ }
83
+ }
84
+ }
85
+ export interface OrganizationRetrieveUsageResponse {
86
+ /**
87
+ * The list of models with usage during the queried time range.
88
+ */
89
+ models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'seedream5_pro' | 'seedream5_lite' | 'gemini_omni_flash' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2' | 'seedance2_5' | 'seedance2_fast' | 'seedance2_mini' | 'hailuo3' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'kling2.5_turbo_pro' | 'kling3.0_pro' | 'kling3.0_4k' | 'kling3.0_standard' | 'klingO3_pro' | 'klingO3_standard' | 'klingO3_4k' | 'happyhorse_1_0' | 'aleph2' | 'product_swap' | 'product_ad' | 'multi_shot_video' | 'product_ugc' | 'marketing_stock_image' | 'product_campaign_image' | 'ad_localization'>;
90
+ results: Array<OrganizationRetrieveUsageResponse.Result>;
91
+ /**
92
+ * Reserved for future use.
93
+ */
94
+ apiKeys?: Array<string>;
95
+ /**
96
+ * Reserved for future use.
97
+ */
98
+ resultsByApiKey?: Array<OrganizationRetrieveUsageResponse.ResultsByAPIKey>;
99
+ }
100
+ export declare namespace OrganizationRetrieveUsageResponse {
101
+ interface Result {
102
+ /**
103
+ * The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in
104
+ * UTC.
105
+ */
106
+ date: string;
107
+ /**
108
+ * The credits used per model for the given date.
109
+ */
110
+ usedCredits: Array<Result.UsedCredit>;
111
+ }
112
+ namespace Result {
113
+ interface UsedCredit {
114
+ /**
115
+ * The net number of credits spent on the model. May be negative if refunds
116
+ * exceeded charges on this day.
117
+ */
118
+ amount: number;
119
+ /**
120
+ * The model that credits were spent on.
121
+ */
122
+ model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'seedream5_pro' | 'seedream5_lite' | 'gemini_omni_flash' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2' | 'seedance2_5' | 'seedance2_fast' | 'seedance2_mini' | 'hailuo3' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'kling2.5_turbo_pro' | 'kling3.0_pro' | 'kling3.0_4k' | 'kling3.0_standard' | 'klingO3_pro' | 'klingO3_standard' | 'klingO3_4k' | 'happyhorse_1_0' | 'aleph2' | 'product_swap' | 'product_ad' | 'multi_shot_video' | 'product_ugc' | 'marketing_stock_image' | 'product_campaign_image' | 'ad_localization';
123
+ }
124
+ }
125
+ interface ResultsByAPIKey {
126
+ date: string;
127
+ usedCredits: Array<ResultsByAPIKey.UsedCredit>;
128
+ }
129
+ namespace ResultsByAPIKey {
130
+ interface UsedCredit {
131
+ amount: number;
132
+ apiKeyId: string;
133
+ }
134
+ }
135
+ }
136
+ export interface OrganizationRetrieveUsageParams {
137
+ /**
138
+ * The end date of the usage data in ISO-8601 format (YYYY-MM-DD), not inclusive.
139
+ * If unspecified, it will default to thirty days after the start date. Must be
140
+ * less than or equal to 90 days after the start date. All dates are in UTC.
141
+ */
142
+ beforeDate?: string;
143
+ /**
144
+ * The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If
145
+ * unspecified, it will default to 30 days before the current date. All dates are
146
+ * in UTC.
147
+ */
148
+ startDate?: string;
149
+ }
150
+ export declare namespace Organization {
151
+ export { type OrganizationRetrieveResponse as OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams, };
152
+ export { Webapp as Webapp, type WebappListUsageResponse as WebappListUsageResponse, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListUsageParams as WebappListUsageParams, };
153
+ }
154
+ //# sourceMappingURL=organization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,SAAS,2BAAwB;AAC7C,OAAO,EACL,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,kCAAkC,EACnC,2BAAwB;AACzB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI5E;;;;OAIG;IACH,aAAa,CACX,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC;CAC3C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;SAAE,CAAC;KACxC;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,wBAAwB,EAAE,MAAM,CAAC;YAEjC;;eAEG;YACH,mBAAmB,EAAE,MAAM,CAAC;SAC7B;KACF;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB,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IG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Organization = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const WebappAPI = tslib_1.__importStar(require("./webapp/webapp.js"));
8
+ const webapp_1 = require("./webapp/webapp.js");
9
+ class Organization extends resource_1.APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.webapp = new WebappAPI.Webapp(this._client);
13
+ }
14
+ /**
15
+ * Get usage tier and credit balance information about the organization associated
16
+ * with the API key used to make the request.
17
+ */
18
+ retrieve(options) {
19
+ return this._client.get('/v1/organization', options);
20
+ }
21
+ /**
22
+ * Fetch credit usage data broken down by model and day for the organization
23
+ * associated with the API key used to make the request. Up to 90 days of data can
24
+ * be queried at a time.
25
+ */
26
+ retrieveUsage(body = {}, options) {
27
+ return this._client.post('/v1/organization/usage', { body, ...options });
28
+ }
29
+ }
30
+ exports.Organization = Organization;
31
+ Organization.Webapp = webapp_1.Webapp;
32
+ //# sourceMappingURL=organization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,sEAA6C;AAC7C,+CAKyB;AAIzB,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqBhE,CAAC;IAnBC;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,OAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAtBD,oCAsBC;AAgQD,YAAY,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -0,0 +1,27 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as WebappAPI from "./webapp/webapp.mjs";
4
+ import { Webapp, } from "./webapp/webapp.mjs";
5
+ export class Organization extends APIResource {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.webapp = new WebappAPI.Webapp(this._client);
9
+ }
10
+ /**
11
+ * Get usage tier and credit balance information about the organization associated
12
+ * with the API key used to make the request.
13
+ */
14
+ retrieve(options) {
15
+ return this._client.get('/v1/organization', options);
16
+ }
17
+ /**
18
+ * Fetch credit usage data broken down by model and day for the organization
19
+ * associated with the API key used to make the request. Up to 90 days of data can
20
+ * be queried at a time.
21
+ */
22
+ retrieveUsage(body = {}, options) {
23
+ return this._client.post('/v1/organization/usage', { body, ...options });
24
+ }
25
+ }
26
+ Organization.Webapp = Webapp;
27
+ //# sourceMappingURL=organization.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.mjs","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EACL,MAAM,GAIP,4BAAwB;AAIzB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqBhE,CAAC;IAnBC;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,OAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAgQD,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC"}