@runwayml/sdk 4.28.0 → 4.30.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 (132) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +2 -2
  3. package/package.json +1 -1
  4. package/resources/avatar-conversations.d.mts +1 -1
  5. package/resources/avatar-conversations.d.mts.map +1 -1
  6. package/resources/avatar-conversations.d.ts +1 -1
  7. package/resources/avatar-conversations.d.ts.map +1 -1
  8. package/resources/avatar-conversations.js +1 -1
  9. package/resources/avatar-conversations.js.map +1 -1
  10. package/resources/avatar-conversations.mjs +1 -1
  11. package/resources/avatar-conversations.mjs.map +1 -1
  12. package/resources/avatars.d.mts +2 -4
  13. package/resources/avatars.d.mts.map +1 -1
  14. package/resources/avatars.d.ts +2 -4
  15. package/resources/avatars.d.ts.map +1 -1
  16. package/resources/avatars.js +2 -4
  17. package/resources/avatars.js.map +1 -1
  18. package/resources/avatars.mjs +2 -4
  19. package/resources/avatars.mjs.map +1 -1
  20. package/resources/documents.d.mts +4 -10
  21. package/resources/documents.d.mts.map +1 -1
  22. package/resources/documents.d.ts +4 -10
  23. package/resources/documents.d.ts.map +1 -1
  24. package/resources/documents.js +2 -8
  25. package/resources/documents.js.map +1 -1
  26. package/resources/documents.mjs +2 -8
  27. package/resources/documents.mjs.map +1 -1
  28. package/resources/generate/image.d.mts +2 -2
  29. package/resources/generate/image.d.ts +2 -2
  30. package/resources/generate/video.d.mts +5 -0
  31. package/resources/generate/video.d.mts.map +1 -1
  32. package/resources/generate/video.d.ts +5 -0
  33. package/resources/generate/video.d.ts.map +1 -1
  34. package/resources/image-to-video.d.mts +78 -2
  35. package/resources/image-to-video.d.mts.map +1 -1
  36. package/resources/image-to-video.d.ts +78 -2
  37. package/resources/image-to-video.d.ts.map +1 -1
  38. package/resources/organization/index.d.mts +1 -1
  39. package/resources/organization/index.d.mts.map +1 -1
  40. package/resources/organization/index.d.ts +1 -1
  41. package/resources/organization/index.d.ts.map +1 -1
  42. package/resources/organization/index.js.map +1 -1
  43. package/resources/organization/index.mjs.map +1 -1
  44. package/resources/organization/organization.d.mts +54 -5
  45. package/resources/organization/organization.d.mts.map +1 -1
  46. package/resources/organization/organization.d.ts +54 -5
  47. package/resources/organization/organization.d.ts.map +1 -1
  48. package/resources/organization/organization.js +1 -1
  49. package/resources/organization/organization.js.map +1 -1
  50. package/resources/organization/organization.mjs +1 -1
  51. package/resources/organization/organization.mjs.map +1 -1
  52. package/resources/organization/webapp/audit-logs.d.mts +64 -12
  53. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  54. package/resources/organization/webapp/audit-logs.d.ts +64 -12
  55. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  56. package/resources/organization/webapp/audit-logs.js +1 -1
  57. package/resources/organization/webapp/audit-logs.js.map +1 -1
  58. package/resources/organization/webapp/audit-logs.mjs +1 -1
  59. package/resources/organization/webapp/audit-logs.mjs.map +1 -1
  60. package/resources/organization/webapp/index.d.mts +1 -1
  61. package/resources/organization/webapp/index.d.mts.map +1 -1
  62. package/resources/organization/webapp/index.d.ts +1 -1
  63. package/resources/organization/webapp/index.d.ts.map +1 -1
  64. package/resources/organization/webapp/index.js.map +1 -1
  65. package/resources/organization/webapp/index.mjs.map +1 -1
  66. package/resources/organization/webapp/webapp.d.mts +95 -2
  67. package/resources/organization/webapp/webapp.d.mts.map +1 -1
  68. package/resources/organization/webapp/webapp.d.ts +95 -2
  69. package/resources/organization/webapp/webapp.d.ts.map +1 -1
  70. package/resources/organization/webapp/webapp.js +12 -0
  71. package/resources/organization/webapp/webapp.js.map +1 -1
  72. package/resources/organization/webapp/webapp.mjs +12 -0
  73. package/resources/organization/webapp/webapp.mjs.map +1 -1
  74. package/resources/routers.d.mts +32 -26
  75. package/resources/routers.d.mts.map +1 -1
  76. package/resources/routers.d.ts +32 -26
  77. package/resources/routers.d.ts.map +1 -1
  78. package/resources/routers.js +2 -2
  79. package/resources/routers.js.map +1 -1
  80. package/resources/routers.mjs +2 -2
  81. package/resources/routers.mjs.map +1 -1
  82. package/resources/tasks.d.mts +25 -2
  83. package/resources/tasks.d.mts.map +1 -1
  84. package/resources/tasks.d.ts +25 -2
  85. package/resources/tasks.d.ts.map +1 -1
  86. package/resources/text-to-image.d.mts +204 -1
  87. package/resources/text-to-image.d.mts.map +1 -1
  88. package/resources/text-to-image.d.ts +204 -1
  89. package/resources/text-to-image.d.ts.map +1 -1
  90. package/resources/text-to-speech.d.mts +77 -1
  91. package/resources/text-to-speech.d.mts.map +1 -1
  92. package/resources/text-to-speech.d.ts +77 -1
  93. package/resources/text-to-speech.d.ts.map +1 -1
  94. package/resources/text-to-video.d.mts +94 -3
  95. package/resources/text-to-video.d.mts.map +1 -1
  96. package/resources/text-to-video.d.ts +94 -3
  97. package/resources/text-to-video.d.ts.map +1 -1
  98. package/resources/video-to-video.d.mts +107 -3
  99. package/resources/video-to-video.d.mts.map +1 -1
  100. package/resources/video-to-video.d.ts +107 -3
  101. package/resources/video-to-video.d.ts.map +1 -1
  102. package/resources/voices.d.mts +1 -1
  103. package/resources/voices.d.mts.map +1 -1
  104. package/resources/voices.d.ts +1 -1
  105. package/resources/voices.d.ts.map +1 -1
  106. package/resources/voices.js +1 -1
  107. package/resources/voices.js.map +1 -1
  108. package/resources/voices.mjs +1 -1
  109. package/resources/voices.mjs.map +1 -1
  110. package/src/resources/avatar-conversations.ts +1 -1
  111. package/src/resources/avatars.ts +2 -4
  112. package/src/resources/documents.ts +4 -10
  113. package/src/resources/generate/image.ts +2 -2
  114. package/src/resources/generate/video.ts +6 -0
  115. package/src/resources/image-to-video.ts +105 -2
  116. package/src/resources/organization/index.ts +3 -0
  117. package/src/resources/organization/organization.ts +82 -3
  118. package/src/resources/organization/webapp/audit-logs.ts +144 -10
  119. package/src/resources/organization/webapp/index.ts +3 -0
  120. package/src/resources/organization/webapp/webapp.ts +122 -1
  121. package/src/resources/routers.ts +38 -26
  122. package/src/resources/tasks.ts +33 -2
  123. package/src/resources/text-to-image.ts +350 -1
  124. package/src/resources/text-to-speech.ts +143 -1
  125. package/src/resources/text-to-video.ts +128 -3
  126. package/src/resources/video-to-video.ts +143 -3
  127. package/src/resources/voices.ts +1 -1
  128. package/src/version.ts +1 -1
  129. package/version.d.mts +1 -1
  130. package/version.d.ts +1 -1
  131. package/version.js +1 -1
  132. package/version.mjs +1 -1
@@ -1,6 +1,6 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as WebappAPI from "./webapp/webapp.mjs";
3
- import { Webapp, WebappListUsageParams, WebappListUsageResponse, WebappListUsageResponsesCursorPage } from "./webapp/webapp.mjs";
3
+ import { Webapp, WebappListMembersParams, WebappListMembersResponse, WebappListMembersResponsesCursorPage, WebappListUsageParams, WebappListUsageResponse, WebappListUsageResponsesCursorPage } from "./webapp/webapp.mjs";
4
4
  import { APIPromise } from "../../core/api-promise.mjs";
5
5
  import { RequestOptions } from "../../internal/request-options.mjs";
6
6
  export declare class Organization extends APIResource {
@@ -13,7 +13,7 @@ export declare class Organization extends APIResource {
13
13
  /**
14
14
  * Fetch credit usage data broken down by model and day for the organization
15
15
  * associated with the API key used to make the request. Up to 90 days of data can
16
- * be queried at a time.
16
+ * be queried at a time. Usage updates hourly; recent activity may not appear yet.
17
17
  */
18
18
  retrieveUsage(body?: OrganizationRetrieveUsageParams | null | undefined, options?: RequestOptions): APIPromise<OrganizationRetrieveUsageResponse>;
19
19
  }
@@ -88,7 +88,7 @@ export interface OrganizationRetrieveUsageResponse {
88
88
  /**
89
89
  * The list of models with usage during the queried time range.
90
90
  */
91
- models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'ideogram_vector' | 'recraft_v4_1_vector' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'gpt_image_2_5_flare' | 'gpt_image_2_5_sunburst' | 'gpt_image_2_6_flare' | 'gpt_image_2_6_sunburst' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'gemini_image3.1_flash_lite' | 'nano_banana_2.1' | 'recraft_v4_1_flash' | 'seedream5_pro_layers' | 'seedream5_pro' | 'seedream5_flash' | 'seedream5_lite' | 'gemini_omni_flash' | 'gemini_omni_flash_1.2' | 'gemini_omni_flash_1.1' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_v4' | 'gemini_3.8_flash_tts' | 'gemini_3.8_flash_lite_tts' | 'eleven_text_to_sound_v2' | 'mirelo_sfx_2_0' | 'eleven_music_v2_5' | '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' | 'hailuo3_highspeed' | 'hailuo3_lite' | 'h3_max' | 'wan3' | 'wan3_prime' | 'grok_imagine_1_5' | 'grok_imagine_1_5_lite' | 'grok_imagine_image_2' | 'muse_image' | 'bria_fibo_1_5' | 'bria_fibo_edit_1_5' | 'ideogram_4_0' | 'ideogram_4_5' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'ruby' | 'enhance_frame_rate' | 'kling2.5_turbo_pro' | 'kling_4_flash' | 'kling_4' | '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'>;
91
+ models: Array<'trellis_2' | 'hunyuan_3d_3_1_pro' | 'tripo3d_h3_1' | 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'ideogram_vector' | 'recraft_v4_1_vector' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'gpt_image_2_5_flare' | 'gpt_image_2_5_sunburst' | 'gpt_image_2_6_flare' | 'gpt_image_2_6_sunburst' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'gemini_image3.1_flash_lite' | 'nano_banana_2.1' | 'recraft_v4_1_flash' | 'seedream5_pro_layers' | 'seedream5_pro' | 'seedream5_flash' | 'seedream5.5' | 'seedream5.5_layers' | 'seedream5_lite' | 'gemini_omni_flash' | 'gemini_omni_flash_1.2' | 'gemini_omni_flash_1.1' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_v4' | 'eleven_v4_turbo' | 'gemini_3.8_flash_tts' | 'gemini_3.8_flash_lite_tts' | 'eleven_text_to_sound_v2' | 'mirelo_sfx_2_0' | 'eleven_music_v2_5' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2' | 'seedance2_5' | 'seedance2_5_flash' | 'seedance2_fast' | 'seedance2_mini' | 'hailuo3' | 'hailuo3_highspeed' | 'hailuo3_lite' | 'h3_max' | 'wan3' | 'wan3_prime' | 'grok_imagine_1_5' | 'grok_imagine_1_5_lite' | 'grok_imagine_image_2' | 'muse_image' | 'minimax_h3_image' | 'bria_fibo_1_5' | 'bria_fibo_edit_1_5' | 'ideogram_4_0' | 'ideogram_4_5' | 'ideogram_4_6' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'ruby' | 'enhance_frame_rate' | 'kling2.5_turbo_pro' | 'kling_4_flash' | 'kling_4' | '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'>;
92
92
  results: Array<OrganizationRetrieveUsageResponse.Result>;
93
93
  /**
94
94
  * Reserved for future use.
@@ -98,6 +98,18 @@ export interface OrganizationRetrieveUsageResponse {
98
98
  * Reserved for future use.
99
99
  */
100
100
  resultsByApiKey?: Array<OrganizationRetrieveUsageResponse.ResultsByAPIKey>;
101
+ /**
102
+ * Credit usage broken down by tag, present when `groupBy` is set. With
103
+ * `groupBy: "tag"`, a generation with several tags counts toward each of them, so
104
+ * the buckets can add up to more than the total. With `groupBy: "tag:<key>"`, each
105
+ * generation counts once, under its `<key>:<value>` tag.
106
+ */
107
+ resultsByTag?: Array<OrganizationRetrieveUsageResponse.ResultsByTag>;
108
+ /**
109
+ * The tags on usage in the queried time range, sorted alphabetically, present when
110
+ * `tags` or `groupBy` is set. Lists at most the 1,000 tags with the most credits.
111
+ */
112
+ tags?: Array<string>;
101
113
  }
102
114
  export declare namespace OrganizationRetrieveUsageResponse {
103
115
  interface Result {
@@ -121,7 +133,7 @@ export declare namespace OrganizationRetrieveUsageResponse {
121
133
  /**
122
134
  * The model that credits were spent on.
123
135
  */
124
- model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'ideogram_vector' | 'recraft_v4_1_vector' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'gpt_image_2_5_flare' | 'gpt_image_2_5_sunburst' | 'gpt_image_2_6_flare' | 'gpt_image_2_6_sunburst' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'gemini_image3.1_flash_lite' | 'nano_banana_2.1' | 'recraft_v4_1_flash' | 'seedream5_pro_layers' | 'seedream5_pro' | 'seedream5_flash' | 'seedream5_lite' | 'gemini_omni_flash' | 'gemini_omni_flash_1.2' | 'gemini_omni_flash_1.1' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_v4' | 'gemini_3.8_flash_tts' | 'gemini_3.8_flash_lite_tts' | 'eleven_text_to_sound_v2' | 'mirelo_sfx_2_0' | 'eleven_music_v2_5' | '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' | 'hailuo3_highspeed' | 'hailuo3_lite' | 'h3_max' | 'wan3' | 'wan3_prime' | 'grok_imagine_1_5' | 'grok_imagine_1_5_lite' | 'grok_imagine_image_2' | 'muse_image' | 'bria_fibo_1_5' | 'bria_fibo_edit_1_5' | 'ideogram_4_0' | 'ideogram_4_5' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'ruby' | 'enhance_frame_rate' | 'kling2.5_turbo_pro' | 'kling_4_flash' | 'kling_4' | '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';
136
+ model: 'trellis_2' | 'hunyuan_3d_3_1_pro' | 'tripo3d_h3_1' | 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'ideogram_vector' | 'recraft_v4_1_vector' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'gpt_image_2_5_flare' | 'gpt_image_2_5_sunburst' | 'gpt_image_2_6_flare' | 'gpt_image_2_6_sunburst' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'gemini_image3.1_flash_lite' | 'nano_banana_2.1' | 'recraft_v4_1_flash' | 'seedream5_pro_layers' | 'seedream5_pro' | 'seedream5_flash' | 'seedream5.5' | 'seedream5.5_layers' | 'seedream5_lite' | 'gemini_omni_flash' | 'gemini_omni_flash_1.2' | 'gemini_omni_flash_1.1' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_v4' | 'eleven_v4_turbo' | 'gemini_3.8_flash_tts' | 'gemini_3.8_flash_lite_tts' | 'eleven_text_to_sound_v2' | 'mirelo_sfx_2_0' | 'eleven_music_v2_5' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2' | 'seedance2_5' | 'seedance2_5_flash' | 'seedance2_fast' | 'seedance2_mini' | 'hailuo3' | 'hailuo3_highspeed' | 'hailuo3_lite' | 'h3_max' | 'wan3' | 'wan3_prime' | 'grok_imagine_1_5' | 'grok_imagine_1_5_lite' | 'grok_imagine_image_2' | 'muse_image' | 'minimax_h3_image' | 'bria_fibo_1_5' | 'bria_fibo_edit_1_5' | 'ideogram_4_0' | 'ideogram_4_5' | 'ideogram_4_6' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'ruby' | 'enhance_frame_rate' | 'kling2.5_turbo_pro' | 'kling_4_flash' | 'kling_4' | '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';
125
137
  }
126
138
  }
127
139
  interface ResultsByAPIKey {
@@ -134,6 +146,30 @@ export declare namespace OrganizationRetrieveUsageResponse {
134
146
  apiKeyId: string;
135
147
  }
136
148
  }
149
+ interface ResultsByTag {
150
+ /**
151
+ * The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in
152
+ * UTC.
153
+ */
154
+ date: string;
155
+ /**
156
+ * The credits used per tag for the date.
157
+ */
158
+ usedCredits: Array<ResultsByTag.UsedCredit>;
159
+ }
160
+ namespace ResultsByTag {
161
+ interface UsedCredit {
162
+ /**
163
+ * The net number of credits spent under the tag. May be negative if refunds
164
+ * exceeded charges on this day.
165
+ */
166
+ amount: number;
167
+ /**
168
+ * The tag that credits were spent under, or null for usage without a matching tag.
169
+ */
170
+ tag: string | null;
171
+ }
172
+ }
137
173
  }
138
174
  export interface OrganizationRetrieveUsageParams {
139
175
  /**
@@ -142,15 +178,28 @@ export interface OrganizationRetrieveUsageParams {
142
178
  * less than or equal to 90 days after the start date. All dates are in UTC.
143
179
  */
144
180
  beforeDate?: string;
181
+ /**
182
+ * Also break usage down by tag in `resultsByTag`. `"tag"` gives one bucket per
183
+ * tag; a generation with several tags counts toward each of them. `"tag:<key>"`
184
+ * (for example `"tag:team"`) gives one bucket per value of that key, so each
185
+ * generation counts once. Generations without a matching tag fall under a `null`
186
+ * tag.
187
+ */
188
+ groupBy?: string;
145
189
  /**
146
190
  * The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If
147
191
  * unspecified, it will default to 30 days before the current date. All dates are
148
192
  * in UTC.
149
193
  */
150
194
  startDate?: string;
195
+ /**
196
+ * Only count generations that were created with every one of these tags in the
197
+ * `X-Runway-Tags` header. Tags are case-insensitive. Up to 10 tags.
198
+ */
199
+ tags?: Array<string>;
151
200
  }
152
201
  export declare namespace Organization {
153
202
  export { type OrganizationRetrieveResponse as OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams, };
154
- export { Webapp as Webapp, type WebappListUsageResponse as WebappListUsageResponse, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListUsageParams as WebappListUsageParams, };
203
+ export { Webapp as Webapp, type WebappListMembersResponse as WebappListMembersResponse, type WebappListUsageResponse as WebappListUsageResponse, type WebappListMembersResponsesCursorPage as WebappListMembersResponsesCursorPage, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListMembersParams as WebappListMembersParams, type WebappListUsageParams as WebappListUsageParams, };
155
204
  }
156
205
  //# sourceMappingURL=organization.d.mts.map
@@ -1 +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;KACx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AY,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"}
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,uBAAuB,EACvB,yBAAyB,EACzB,oCAAoC,EACpC,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,q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BAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -1,6 +1,6 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as WebappAPI from "./webapp/webapp.js";
3
- import { Webapp, WebappListUsageParams, WebappListUsageResponse, WebappListUsageResponsesCursorPage } from "./webapp/webapp.js";
3
+ import { Webapp, WebappListMembersParams, WebappListMembersResponse, WebappListMembersResponsesCursorPage, WebappListUsageParams, WebappListUsageResponse, WebappListUsageResponsesCursorPage } from "./webapp/webapp.js";
4
4
  import { APIPromise } from "../../core/api-promise.js";
5
5
  import { RequestOptions } from "../../internal/request-options.js";
6
6
  export declare class Organization extends APIResource {
@@ -13,7 +13,7 @@ export declare class Organization extends APIResource {
13
13
  /**
14
14
  * Fetch credit usage data broken down by model and day for the organization
15
15
  * associated with the API key used to make the request. Up to 90 days of data can
16
- * be queried at a time.
16
+ * be queried at a time. Usage updates hourly; recent activity may not appear yet.
17
17
  */
18
18
  retrieveUsage(body?: OrganizationRetrieveUsageParams | null | undefined, options?: RequestOptions): APIPromise<OrganizationRetrieveUsageResponse>;
19
19
  }
@@ -88,7 +88,7 @@ export interface OrganizationRetrieveUsageResponse {
88
88
  /**
89
89
  * The list of models with usage during the queried time range.
90
90
  */
91
- models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'ideogram_vector' | 'recraft_v4_1_vector' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'gpt_image_2_5_flare' | 'gpt_image_2_5_sunburst' | 'gpt_image_2_6_flare' | 'gpt_image_2_6_sunburst' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'gemini_image3.1_flash_lite' | 'nano_banana_2.1' | 'recraft_v4_1_flash' | 'seedream5_pro_layers' | 'seedream5_pro' | 'seedream5_flash' | 'seedream5_lite' | 'gemini_omni_flash' | 'gemini_omni_flash_1.2' | 'gemini_omni_flash_1.1' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_v4' | 'gemini_3.8_flash_tts' | 'gemini_3.8_flash_lite_tts' | 'eleven_text_to_sound_v2' | 'mirelo_sfx_2_0' | 'eleven_music_v2_5' | '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' | 'hailuo3_highspeed' | 'hailuo3_lite' | 'h3_max' | 'wan3' | 'wan3_prime' | 'grok_imagine_1_5' | 'grok_imagine_1_5_lite' | 'grok_imagine_image_2' | 'muse_image' | 'bria_fibo_1_5' | 'bria_fibo_edit_1_5' | 'ideogram_4_0' | 'ideogram_4_5' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'ruby' | 'enhance_frame_rate' | 'kling2.5_turbo_pro' | 'kling_4_flash' | 'kling_4' | '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'>;
91
+ models: Array<'trellis_2' | 'hunyuan_3d_3_1_pro' | 'tripo3d_h3_1' | 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'ideogram_vector' | 'recraft_v4_1_vector' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'gpt_image_2_5_flare' | 'gpt_image_2_5_sunburst' | 'gpt_image_2_6_flare' | 'gpt_image_2_6_sunburst' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'gemini_image3.1_flash_lite' | 'nano_banana_2.1' | 'recraft_v4_1_flash' | 'seedream5_pro_layers' | 'seedream5_pro' | 'seedream5_flash' | 'seedream5.5' | 'seedream5.5_layers' | 'seedream5_lite' | 'gemini_omni_flash' | 'gemini_omni_flash_1.2' | 'gemini_omni_flash_1.1' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_v4' | 'eleven_v4_turbo' | 'gemini_3.8_flash_tts' | 'gemini_3.8_flash_lite_tts' | 'eleven_text_to_sound_v2' | 'mirelo_sfx_2_0' | 'eleven_music_v2_5' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2' | 'seedance2_5' | 'seedance2_5_flash' | 'seedance2_fast' | 'seedance2_mini' | 'hailuo3' | 'hailuo3_highspeed' | 'hailuo3_lite' | 'h3_max' | 'wan3' | 'wan3_prime' | 'grok_imagine_1_5' | 'grok_imagine_1_5_lite' | 'grok_imagine_image_2' | 'muse_image' | 'minimax_h3_image' | 'bria_fibo_1_5' | 'bria_fibo_edit_1_5' | 'ideogram_4_0' | 'ideogram_4_5' | 'ideogram_4_6' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'ruby' | 'enhance_frame_rate' | 'kling2.5_turbo_pro' | 'kling_4_flash' | 'kling_4' | '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'>;
92
92
  results: Array<OrganizationRetrieveUsageResponse.Result>;
93
93
  /**
94
94
  * Reserved for future use.
@@ -98,6 +98,18 @@ export interface OrganizationRetrieveUsageResponse {
98
98
  * Reserved for future use.
99
99
  */
100
100
  resultsByApiKey?: Array<OrganizationRetrieveUsageResponse.ResultsByAPIKey>;
101
+ /**
102
+ * Credit usage broken down by tag, present when `groupBy` is set. With
103
+ * `groupBy: "tag"`, a generation with several tags counts toward each of them, so
104
+ * the buckets can add up to more than the total. With `groupBy: "tag:<key>"`, each
105
+ * generation counts once, under its `<key>:<value>` tag.
106
+ */
107
+ resultsByTag?: Array<OrganizationRetrieveUsageResponse.ResultsByTag>;
108
+ /**
109
+ * The tags on usage in the queried time range, sorted alphabetically, present when
110
+ * `tags` or `groupBy` is set. Lists at most the 1,000 tags with the most credits.
111
+ */
112
+ tags?: Array<string>;
101
113
  }
102
114
  export declare namespace OrganizationRetrieveUsageResponse {
103
115
  interface Result {
@@ -121,7 +133,7 @@ export declare namespace OrganizationRetrieveUsageResponse {
121
133
  /**
122
134
  * The model that credits were spent on.
123
135
  */
124
- model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'ideogram_vector' | 'recraft_v4_1_vector' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'gpt_image_2_5_flare' | 'gpt_image_2_5_sunburst' | 'gpt_image_2_6_flare' | 'gpt_image_2_6_sunburst' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'gemini_image3.1_flash_lite' | 'nano_banana_2.1' | 'recraft_v4_1_flash' | 'seedream5_pro_layers' | 'seedream5_pro' | 'seedream5_flash' | 'seedream5_lite' | 'gemini_omni_flash' | 'gemini_omni_flash_1.2' | 'gemini_omni_flash_1.1' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_v4' | 'gemini_3.8_flash_tts' | 'gemini_3.8_flash_lite_tts' | 'eleven_text_to_sound_v2' | 'mirelo_sfx_2_0' | 'eleven_music_v2_5' | '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' | 'hailuo3_highspeed' | 'hailuo3_lite' | 'h3_max' | 'wan3' | 'wan3_prime' | 'grok_imagine_1_5' | 'grok_imagine_1_5_lite' | 'grok_imagine_image_2' | 'muse_image' | 'bria_fibo_1_5' | 'bria_fibo_edit_1_5' | 'ideogram_4_0' | 'ideogram_4_5' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'ruby' | 'enhance_frame_rate' | 'kling2.5_turbo_pro' | 'kling_4_flash' | 'kling_4' | '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';
136
+ model: 'trellis_2' | 'hunyuan_3d_3_1_pro' | 'tripo3d_h3_1' | 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'ideogram_vector' | 'recraft_v4_1_vector' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'gpt_image_2_5_flare' | 'gpt_image_2_5_sunburst' | 'gpt_image_2_6_flare' | 'gpt_image_2_6_sunburst' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'gemini_image3.1_flash_lite' | 'nano_banana_2.1' | 'recraft_v4_1_flash' | 'seedream5_pro_layers' | 'seedream5_pro' | 'seedream5_flash' | 'seedream5.5' | 'seedream5.5_layers' | 'seedream5_lite' | 'gemini_omni_flash' | 'gemini_omni_flash_1.2' | 'gemini_omni_flash_1.1' | 'eleven_multilingual_v2' | 'seed_audio' | 'eleven_v3' | 'eleven_v4' | 'eleven_v4_turbo' | 'gemini_3.8_flash_tts' | 'gemini_3.8_flash_lite_tts' | 'eleven_text_to_sound_v2' | 'mirelo_sfx_2_0' | 'eleven_music_v2_5' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2' | 'seedance2_5' | 'seedance2_5_flash' | 'seedance2_fast' | 'seedance2_mini' | 'hailuo3' | 'hailuo3_highspeed' | 'hailuo3_lite' | 'h3_max' | 'wan3' | 'wan3_prime' | 'grok_imagine_1_5' | 'grok_imagine_1_5_lite' | 'grok_imagine_image_2' | 'muse_image' | 'minimax_h3_image' | 'bria_fibo_1_5' | 'bria_fibo_edit_1_5' | 'ideogram_4_0' | 'ideogram_4_5' | 'ideogram_4_6' | 'magnific_precision_upscaler_v2' | 'magnific_video_upscaler_creative' | 'ruby' | 'enhance_frame_rate' | 'kling2.5_turbo_pro' | 'kling_4_flash' | 'kling_4' | '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';
125
137
  }
126
138
  }
127
139
  interface ResultsByAPIKey {
@@ -134,6 +146,30 @@ export declare namespace OrganizationRetrieveUsageResponse {
134
146
  apiKeyId: string;
135
147
  }
136
148
  }
149
+ interface ResultsByTag {
150
+ /**
151
+ * The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in
152
+ * UTC.
153
+ */
154
+ date: string;
155
+ /**
156
+ * The credits used per tag for the date.
157
+ */
158
+ usedCredits: Array<ResultsByTag.UsedCredit>;
159
+ }
160
+ namespace ResultsByTag {
161
+ interface UsedCredit {
162
+ /**
163
+ * The net number of credits spent under the tag. May be negative if refunds
164
+ * exceeded charges on this day.
165
+ */
166
+ amount: number;
167
+ /**
168
+ * The tag that credits were spent under, or null for usage without a matching tag.
169
+ */
170
+ tag: string | null;
171
+ }
172
+ }
137
173
  }
138
174
  export interface OrganizationRetrieveUsageParams {
139
175
  /**
@@ -142,15 +178,28 @@ export interface OrganizationRetrieveUsageParams {
142
178
  * less than or equal to 90 days after the start date. All dates are in UTC.
143
179
  */
144
180
  beforeDate?: string;
181
+ /**
182
+ * Also break usage down by tag in `resultsByTag`. `"tag"` gives one bucket per
183
+ * tag; a generation with several tags counts toward each of them. `"tag:<key>"`
184
+ * (for example `"tag:team"`) gives one bucket per value of that key, so each
185
+ * generation counts once. Generations without a matching tag fall under a `null`
186
+ * tag.
187
+ */
188
+ groupBy?: string;
145
189
  /**
146
190
  * The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If
147
191
  * unspecified, it will default to 30 days before the current date. All dates are
148
192
  * in UTC.
149
193
  */
150
194
  startDate?: string;
195
+ /**
196
+ * Only count generations that were created with every one of these tags in the
197
+ * `X-Runway-Tags` header. Tags are case-insensitive. Up to 10 tags.
198
+ */
199
+ tags?: Array<string>;
151
200
  }
152
201
  export declare namespace Organization {
153
202
  export { type OrganizationRetrieveResponse as OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams, };
154
- export { Webapp as Webapp, type WebappListUsageResponse as WebappListUsageResponse, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListUsageParams as WebappListUsageParams, };
203
+ export { Webapp as Webapp, type WebappListMembersResponse as WebappListMembersResponse, type WebappListUsageResponse as WebappListUsageResponse, type WebappListMembersResponsesCursorPage as WebappListMembersResponsesCursorPage, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListMembersParams as WebappListMembersParams, type WebappListUsageParams as WebappListUsageParams, };
155
204
  }
156
205
  //# sourceMappingURL=organization.d.ts.map
@@ -1 +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;;;eAGG;YACH,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;YAExC;;;eAGG;YACH,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;SACpC;K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AAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
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,uBAAuB,EACvB,yBAAyB,EACzB,oCAAoC,EACpC,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,UAA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CAAC,CAAC;KAChD;IAED,UAAiB,eAAe,CAAC;QAC/B,UAAiB,UAAU;YACzB,MAAM,EAAE,MAAM,CAAC;YAEf,QAAQ,EAAE,MAAM,CAAC;SAClB;KACF;IAED,UAAiB,YAAY;QAC3B;;;WAGG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;KAC7C;IAED,UAAiB,YAAY,CAAC;QAC5B,UAAiB,UAAU;YACzB;;;eAGG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;SACpB;KACF;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;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,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -21,7 +21,7 @@ class Organization extends resource_1.APIResource {
21
21
  /**
22
22
  * Fetch credit usage data broken down by model and day for the organization
23
23
  * associated with the API key used to make the request. Up to 90 days of data can
24
- * be queried at a time.
24
+ * be queried at a time. Usage updates hourly; recent activity may not appear yet.
25
25
  */
26
26
  retrieveUsage(body = {}, options) {
27
27
  return this._client.post('/v1/organization/usage', { body, ...options });
@@ -1 +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;AAwUD,YAAY,CAAC,MAAM,GAAG,eAAM,CAAC"}
1
+ {"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,sEAA6C;AAC7C,+CAQyB;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;AAiZD,YAAY,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -17,7 +17,7 @@ export class Organization extends APIResource {
17
17
  /**
18
18
  * Fetch credit usage data broken down by model and day for the organization
19
19
  * associated with the API key used to make the request. Up to 90 days of data can
20
- * be queried at a time.
20
+ * be queried at a time. Usage updates hourly; recent activity may not appear yet.
21
21
  */
22
22
  retrieveUsage(body = {}, options) {
23
23
  return this._client.post('/v1/organization/usage', { body, ...options });
@@ -1 +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;AAwUD,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"organization.mjs","sourceRoot":"","sources":["../../src/resources/organ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