@runwayml/sdk 1.4.4 → 2.0.1
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.
- package/CHANGELOG.md +115 -0
- package/LICENSE +1 -1
- package/README.md +10 -10
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +13 -2
- package/core.d.ts.map +1 -1
- package/core.js +32 -14
- package/core.js.map +1 -1
- package/core.mjs +33 -15
- package/core.mjs.map +1 -1
- package/index.d.mts +8 -5
- package/index.d.ts +8 -5
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/image-to-video.d.ts +4 -7
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.ts +129 -0
- package/resources/organization.d.ts.map +1 -0
- package/resources/organization.js +16 -0
- package/resources/organization.js.map +1 -0
- package/resources/organization.mjs +12 -0
- package/resources/organization.mjs.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +52 -15
- package/src/index.ts +10 -5
- package/src/resources/image-to-video.ts +12 -8
- package/src/resources/index.ts +1 -0
- package/src/resources/organization.ts +150 -0
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
|
|
6
|
+
export class Organization extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get usage tier and credit balance information about the organization associated
|
|
9
|
+
* with the API key used to make the request.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(options?: Core.RequestOptions): Core.APIPromise<OrganizationRetrieveResponse> {
|
|
12
|
+
return this._client.get('/v1/organization', options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface OrganizationRetrieveResponse {
|
|
17
|
+
/**
|
|
18
|
+
* The number of credits remaining in the organization account.
|
|
19
|
+
*/
|
|
20
|
+
creditBalance: number;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Limits associated with the organization's tier.
|
|
24
|
+
*/
|
|
25
|
+
tier: OrganizationRetrieveResponse.Tier;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Usage data for the organization.
|
|
29
|
+
*/
|
|
30
|
+
usage: OrganizationRetrieveResponse.Usage;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export namespace OrganizationRetrieveResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Limits associated with the organization's tier.
|
|
36
|
+
*/
|
|
37
|
+
export interface Tier {
|
|
38
|
+
/**
|
|
39
|
+
* The maximum number of credits that can be purchased in a month.
|
|
40
|
+
*/
|
|
41
|
+
maxMonthlyCreditSpend: number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* An object containing model-specific limits. Each key represents a model.
|
|
45
|
+
*/
|
|
46
|
+
models: Tier.Models;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace Tier {
|
|
50
|
+
/**
|
|
51
|
+
* An object containing model-specific limits. Each key represents a model.
|
|
52
|
+
*/
|
|
53
|
+
export interface Models {
|
|
54
|
+
/**
|
|
55
|
+
* Limits associated with the gen3a_turbo model.
|
|
56
|
+
*/
|
|
57
|
+
gen3a_turbo?: Models.Gen3aTurbo;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Limits associated with the gen4_turbo model.
|
|
61
|
+
*/
|
|
62
|
+
gen4_turbo?: Models.Gen4Turbo;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export namespace Models {
|
|
66
|
+
/**
|
|
67
|
+
* Limits associated with the gen3a_turbo model.
|
|
68
|
+
*/
|
|
69
|
+
export interface Gen3aTurbo {
|
|
70
|
+
/**
|
|
71
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
72
|
+
*/
|
|
73
|
+
maxConcurrentGenerations: number;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The maximum number of generations that can be created each day for this model.
|
|
77
|
+
*/
|
|
78
|
+
maxDailyGenerations: number;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Limits associated with the gen4_turbo model.
|
|
83
|
+
*/
|
|
84
|
+
export interface Gen4Turbo {
|
|
85
|
+
/**
|
|
86
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
87
|
+
*/
|
|
88
|
+
maxConcurrentGenerations: number;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The maximum number of generations that can be created each day for this model.
|
|
92
|
+
*/
|
|
93
|
+
maxDailyGenerations: number;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Usage data for the organization.
|
|
100
|
+
*/
|
|
101
|
+
export interface Usage {
|
|
102
|
+
/**
|
|
103
|
+
* Usage data for each model.
|
|
104
|
+
*/
|
|
105
|
+
models: Usage.Models;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export namespace Usage {
|
|
109
|
+
/**
|
|
110
|
+
* Usage data for each model.
|
|
111
|
+
*/
|
|
112
|
+
export interface Models {
|
|
113
|
+
/**
|
|
114
|
+
* Usage data for the gen3a_turbo model.
|
|
115
|
+
*/
|
|
116
|
+
gen3a_turbo?: Models.Gen3aTurbo;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Usage data for the gen4_turbo model.
|
|
120
|
+
*/
|
|
121
|
+
gen4_turbo?: Models.Gen4Turbo;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export namespace Models {
|
|
125
|
+
/**
|
|
126
|
+
* Usage data for the gen3a_turbo model.
|
|
127
|
+
*/
|
|
128
|
+
export interface Gen3aTurbo {
|
|
129
|
+
/**
|
|
130
|
+
* The number of generations that have been run for this model in the past day.
|
|
131
|
+
*/
|
|
132
|
+
dailyGenerations: number;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Usage data for the gen4_turbo model.
|
|
137
|
+
*/
|
|
138
|
+
export interface Gen4Turbo {
|
|
139
|
+
/**
|
|
140
|
+
* The number of generations that have been run for this model in the past day.
|
|
141
|
+
*/
|
|
142
|
+
dailyGenerations: number;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export declare namespace Organization {
|
|
149
|
+
export { type OrganizationRetrieveResponse as OrganizationRetrieveResponse };
|
|
150
|
+
}
|
package/src/resources.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources/index';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.1'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "2.0.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|