@runwayml/sdk 4.29.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 (80) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/generate/image.d.mts +2 -2
  4. package/resources/generate/image.d.ts +2 -2
  5. package/resources/generate/video.d.mts +5 -0
  6. package/resources/generate/video.d.mts.map +1 -1
  7. package/resources/generate/video.d.ts +5 -0
  8. package/resources/generate/video.d.ts.map +1 -1
  9. package/resources/image-to-video.d.mts +6 -1
  10. package/resources/image-to-video.d.mts.map +1 -1
  11. package/resources/image-to-video.d.ts +6 -1
  12. package/resources/image-to-video.d.ts.map +1 -1
  13. package/resources/organization/index.d.mts +1 -1
  14. package/resources/organization/index.d.mts.map +1 -1
  15. package/resources/organization/index.d.ts +1 -1
  16. package/resources/organization/index.d.ts.map +1 -1
  17. package/resources/organization/index.js.map +1 -1
  18. package/resources/organization/index.mjs.map +1 -1
  19. package/resources/organization/organization.d.mts +4 -4
  20. package/resources/organization/organization.d.mts.map +1 -1
  21. package/resources/organization/organization.d.ts +4 -4
  22. package/resources/organization/organization.d.ts.map +1 -1
  23. package/resources/organization/organization.js.map +1 -1
  24. package/resources/organization/organization.mjs.map +1 -1
  25. package/resources/organization/webapp/audit-logs.d.mts +34 -14
  26. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  27. package/resources/organization/webapp/audit-logs.d.ts +34 -14
  28. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  29. package/resources/organization/webapp/index.d.mts +1 -1
  30. package/resources/organization/webapp/index.d.mts.map +1 -1
  31. package/resources/organization/webapp/index.d.ts +1 -1
  32. package/resources/organization/webapp/index.d.ts.map +1 -1
  33. package/resources/organization/webapp/index.js.map +1 -1
  34. package/resources/organization/webapp/index.mjs.map +1 -1
  35. package/resources/organization/webapp/webapp.d.mts +79 -1
  36. package/resources/organization/webapp/webapp.d.mts.map +1 -1
  37. package/resources/organization/webapp/webapp.d.ts +79 -1
  38. package/resources/organization/webapp/webapp.d.ts.map +1 -1
  39. package/resources/organization/webapp/webapp.js +12 -0
  40. package/resources/organization/webapp/webapp.js.map +1 -1
  41. package/resources/organization/webapp/webapp.mjs +12 -0
  42. package/resources/organization/webapp/webapp.mjs.map +1 -1
  43. package/resources/tasks.d.mts +25 -2
  44. package/resources/tasks.d.mts.map +1 -1
  45. package/resources/tasks.d.ts +25 -2
  46. package/resources/tasks.d.ts.map +1 -1
  47. package/resources/text-to-image.d.mts +86 -4
  48. package/resources/text-to-image.d.mts.map +1 -1
  49. package/resources/text-to-image.d.ts +86 -4
  50. package/resources/text-to-image.d.ts.map +1 -1
  51. package/resources/text-to-speech.d.mts +77 -1
  52. package/resources/text-to-speech.d.mts.map +1 -1
  53. package/resources/text-to-speech.d.ts +77 -1
  54. package/resources/text-to-speech.d.ts.map +1 -1
  55. package/resources/text-to-video.d.mts +7 -2
  56. package/resources/text-to-video.d.mts.map +1 -1
  57. package/resources/text-to-video.d.ts +7 -2
  58. package/resources/text-to-video.d.ts.map +1 -1
  59. package/resources/video-to-video.d.mts +7 -2
  60. package/resources/video-to-video.d.mts.map +1 -1
  61. package/resources/video-to-video.d.ts +7 -2
  62. package/resources/video-to-video.d.ts.map +1 -1
  63. package/src/resources/generate/image.ts +2 -2
  64. package/src/resources/generate/video.ts +6 -0
  65. package/src/resources/image-to-video.ts +7 -1
  66. package/src/resources/organization/index.ts +3 -0
  67. package/src/resources/organization/organization.ts +16 -2
  68. package/src/resources/organization/webapp/audit-logs.ts +58 -12
  69. package/src/resources/organization/webapp/index.ts +3 -0
  70. package/src/resources/organization/webapp/webapp.ts +104 -0
  71. package/src/resources/tasks.ts +33 -2
  72. package/src/resources/text-to-image.ts +132 -4
  73. package/src/resources/text-to-speech.ts +143 -1
  74. package/src/resources/text-to-video.ts +13 -2
  75. package/src/resources/video-to-video.ts +13 -2
  76. package/src/version.ts +1 -1
  77. package/version.d.mts +1 -1
  78. package/version.d.ts +1 -1
  79. package/version.js +1 -1
  80. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/organization/webapp/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAMV,yBAAqB;AACtB,OAAO,EACL,MAAM,GAIP,qBAAiB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/organization/webapp/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAMV,yBAAqB;AACtB,OAAO,EACL,MAAM,GAOP,qBAAiB"}
@@ -5,6 +5,13 @@ import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pa
5
5
  import { RequestOptions } from "../../../internal/request-options.mjs";
6
6
  export declare class Webapp extends APIResource {
7
7
  auditLogs: AuditLogsAPI.AuditLogs;
8
+ /**
9
+ * List the members of the linked Runway workspaces you administer, one row per
10
+ * member per workspace, including pending invites and members who were removed.
11
+ * Ordered by `membershipId`. Authorized via the account link between this API
12
+ * project and the workspace.
13
+ */
14
+ listMembers(query?: WebappListMembersParams | null | undefined, options?: RequestOptions): PagePromise<WebappListMembersResponsesCursorPage, WebappListMembersResponse>;
8
15
  /**
9
16
  * List per-generation credit-usage rows for the linked Runway workspaces you
10
17
  * administer, newest first. Unlike `/v1/organization/usage` (this API project's
@@ -13,7 +20,64 @@ export declare class Webapp extends APIResource {
13
20
  */
14
21
  listUsage(query: WebappListUsageParams, options?: RequestOptions): PagePromise<WebappListUsageResponsesCursorPage, WebappListUsageResponse>;
15
22
  }
23
+ export type WebappListMembersResponsesCursorPage = CursorPage<WebappListMembersResponse>;
16
24
  export type WebappListUsageResponsesCursorPage = CursorPage<WebappListUsageResponse>;
25
+ export interface WebappListMembersResponse {
26
+ /**
27
+ * Why the membership is `deactivated`. `removed`: the member was removed from the
28
+ * workspace. `invite_ended`: the invite was declined or revoked, which are
29
+ * recorded the same way. `suspended`: the user is suspended. `null` unless
30
+ * `status` is `deactivated`.
31
+ */
32
+ deactivationReason: 'removed' | 'invite_ended' | 'suspended' | null;
33
+ /**
34
+ * Approximately when the member was removed, or the invite was declined or
35
+ * revoked: the membership's last change. `null` when the membership was not ended,
36
+ * including for a suspended user.
37
+ */
38
+ deprovisionedAt: string | null;
39
+ /**
40
+ * Email of the member, or the email the invite was sent to.
41
+ */
42
+ email: string;
43
+ /**
44
+ * Last UTC date the member used Runway, on the web or mobile app and in any
45
+ * workspace. `null` when they never accepted the invite or have no recorded
46
+ * activity.
47
+ */
48
+ lastActiveDate: string | null;
49
+ /**
50
+ * Unique ID of the membership. Stable across requests, so use it to update a
51
+ * member's row between pulls.
52
+ */
53
+ membershipId: number;
54
+ /**
55
+ * When the member was added, or when the invite was sent.
56
+ */
57
+ provisionedAt: string;
58
+ /**
59
+ * Role in the workspace. `non-generating-admin` is a Billing Admin.
60
+ */
61
+ role: 'viewer' | 'editor' | 'admin' | 'non-generating-admin';
62
+ /**
63
+ * `active`: a member of the workspace. `invited`: invited, and the invite is not
64
+ * accepted yet. `deactivated`: no longer a member; `deactivationReason` says why.
65
+ */
66
+ status: 'active' | 'invited' | 'deactivated';
67
+ /**
68
+ * ID of the member's Runway user. It doesn't change when their email does. `null`
69
+ * for an invite to an email with no Runway account yet.
70
+ */
71
+ userId: number | null;
72
+ /**
73
+ * ID of the workspace.
74
+ */
75
+ workspaceId: number;
76
+ /**
77
+ * Name of the workspace.
78
+ */
79
+ workspaceName: string;
80
+ }
17
81
  export interface WebappListUsageResponse {
18
82
  /**
19
83
  * Credits charged for this generation.
@@ -96,6 +160,20 @@ export interface WebappListUsageResponse {
96
160
  */
97
161
  workspaceName: string;
98
162
  }
163
+ export interface WebappListMembersParams extends CursorPageParams {
164
+ /**
165
+ * Organization to report on. Optional when this API project is linked to a single
166
+ * organization; required when it is linked to more than one. If it is missing
167
+ * then, the 400 response lists the IDs and names of the linked organizations in
168
+ * `details.organizations`.
169
+ */
170
+ organizationId?: string;
171
+ /**
172
+ * Restrict results to these workspace IDs, as a comma-separated list of up to 50
173
+ * IDs. Defaults to every workspace you administer in the organization.
174
+ */
175
+ workspaceIds?: string;
176
+ }
99
177
  export interface WebappListUsageParams extends CursorPageParams {
100
178
  /**
101
179
  * Start of the time window (inclusive), ISO-8601 datetime or date. A date means
@@ -122,7 +200,7 @@ export interface WebappListUsageParams extends CursorPageParams {
122
200
  workspaceIds?: string;
123
201
  }
124
202
  export declare namespace Webapp {
125
- export { type WebappListUsageResponse as WebappListUsageResponse, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListUsageParams as WebappListUsageParams, };
203
+ export { type WebappListMembersResponse as WebappListMembersResponse, type WebappListUsageResponse as WebappListUsageResponse, type WebappListMembersResponsesCursorPage as WebappListMembersResponsesCursorPage, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListMembersParams as WebappListMembersParams, type WebappListUsageParams as WebappListUsageParams, };
126
204
  export { AuditLogs as AuditLogs, type AuditLogRetrieveResponse as AuditLogRetrieveResponse, type AuditLogListResponse as AuditLogListResponse, type AuditLogListResponsesCursorPage as AuditLogListResponsesCursorPage, type AuditLogRetrieveParams as AuditLogRetrieveParams, type AuditLogListParams as AuditLogListParams, };
127
205
  }
128
206
  //# sourceMappingURL=webapp.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webapp.d.mts","sourceRoot":"","sources":["../../../src/resources/organization/webapp/webapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,YAAY,yBAAqB;AAC7C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,+BAA+B,EAC/B,sBAAsB,EACtB,wBAAwB,EACxB,SAAS,EACV,yBAAqB;AACtB,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,qCAAiC;AAC1F,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEn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ACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;;OAGG;IACH,IAAI,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAEpC;;;;OAIG;IACH,EAAE,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAElC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
1
+ {"version":3,"file":"webapp.d.mts","sourceRoot":"","sources":["../../../src/resources/organization/webapp/webapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,YAAY,yBAAqB;AAC7C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,+BAA+B,EAC/B,sBAAsB,EACtB,wBAAwB,EACxB,SAAS,EACV,yBAAqB;AACtB,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,qCAAiC;AAC1F,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC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AAG,EAAE,CAAC,CAAC;IAElC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,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;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -5,6 +5,13 @@ import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pa
5
5
  import { RequestOptions } from "../../../internal/request-options.js";
6
6
  export declare class Webapp extends APIResource {
7
7
  auditLogs: AuditLogsAPI.AuditLogs;
8
+ /**
9
+ * List the members of the linked Runway workspaces you administer, one row per
10
+ * member per workspace, including pending invites and members who were removed.
11
+ * Ordered by `membershipId`. Authorized via the account link between this API
12
+ * project and the workspace.
13
+ */
14
+ listMembers(query?: WebappListMembersParams | null | undefined, options?: RequestOptions): PagePromise<WebappListMembersResponsesCursorPage, WebappListMembersResponse>;
8
15
  /**
9
16
  * List per-generation credit-usage rows for the linked Runway workspaces you
10
17
  * administer, newest first. Unlike `/v1/organization/usage` (this API project's
@@ -13,7 +20,64 @@ export declare class Webapp extends APIResource {
13
20
  */
14
21
  listUsage(query: WebappListUsageParams, options?: RequestOptions): PagePromise<WebappListUsageResponsesCursorPage, WebappListUsageResponse>;
15
22
  }
23
+ export type WebappListMembersResponsesCursorPage = CursorPage<WebappListMembersResponse>;
16
24
  export type WebappListUsageResponsesCursorPage = CursorPage<WebappListUsageResponse>;
25
+ export interface WebappListMembersResponse {
26
+ /**
27
+ * Why the membership is `deactivated`. `removed`: the member was removed from the
28
+ * workspace. `invite_ended`: the invite was declined or revoked, which are
29
+ * recorded the same way. `suspended`: the user is suspended. `null` unless
30
+ * `status` is `deactivated`.
31
+ */
32
+ deactivationReason: 'removed' | 'invite_ended' | 'suspended' | null;
33
+ /**
34
+ * Approximately when the member was removed, or the invite was declined or
35
+ * revoked: the membership's last change. `null` when the membership was not ended,
36
+ * including for a suspended user.
37
+ */
38
+ deprovisionedAt: string | null;
39
+ /**
40
+ * Email of the member, or the email the invite was sent to.
41
+ */
42
+ email: string;
43
+ /**
44
+ * Last UTC date the member used Runway, on the web or mobile app and in any
45
+ * workspace. `null` when they never accepted the invite or have no recorded
46
+ * activity.
47
+ */
48
+ lastActiveDate: string | null;
49
+ /**
50
+ * Unique ID of the membership. Stable across requests, so use it to update a
51
+ * member's row between pulls.
52
+ */
53
+ membershipId: number;
54
+ /**
55
+ * When the member was added, or when the invite was sent.
56
+ */
57
+ provisionedAt: string;
58
+ /**
59
+ * Role in the workspace. `non-generating-admin` is a Billing Admin.
60
+ */
61
+ role: 'viewer' | 'editor' | 'admin' | 'non-generating-admin';
62
+ /**
63
+ * `active`: a member of the workspace. `invited`: invited, and the invite is not
64
+ * accepted yet. `deactivated`: no longer a member; `deactivationReason` says why.
65
+ */
66
+ status: 'active' | 'invited' | 'deactivated';
67
+ /**
68
+ * ID of the member's Runway user. It doesn't change when their email does. `null`
69
+ * for an invite to an email with no Runway account yet.
70
+ */
71
+ userId: number | null;
72
+ /**
73
+ * ID of the workspace.
74
+ */
75
+ workspaceId: number;
76
+ /**
77
+ * Name of the workspace.
78
+ */
79
+ workspaceName: string;
80
+ }
17
81
  export interface WebappListUsageResponse {
18
82
  /**
19
83
  * Credits charged for this generation.
@@ -96,6 +160,20 @@ export interface WebappListUsageResponse {
96
160
  */
97
161
  workspaceName: string;
98
162
  }
163
+ export interface WebappListMembersParams extends CursorPageParams {
164
+ /**
165
+ * Organization to report on. Optional when this API project is linked to a single
166
+ * organization; required when it is linked to more than one. If it is missing
167
+ * then, the 400 response lists the IDs and names of the linked organizations in
168
+ * `details.organizations`.
169
+ */
170
+ organizationId?: string;
171
+ /**
172
+ * Restrict results to these workspace IDs, as a comma-separated list of up to 50
173
+ * IDs. Defaults to every workspace you administer in the organization.
174
+ */
175
+ workspaceIds?: string;
176
+ }
99
177
  export interface WebappListUsageParams extends CursorPageParams {
100
178
  /**
101
179
  * Start of the time window (inclusive), ISO-8601 datetime or date. A date means
@@ -122,7 +200,7 @@ export interface WebappListUsageParams extends CursorPageParams {
122
200
  workspaceIds?: string;
123
201
  }
124
202
  export declare namespace Webapp {
125
- export { type WebappListUsageResponse as WebappListUsageResponse, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListUsageParams as WebappListUsageParams, };
203
+ export { type WebappListMembersResponse as WebappListMembersResponse, type WebappListUsageResponse as WebappListUsageResponse, type WebappListMembersResponsesCursorPage as WebappListMembersResponsesCursorPage, type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage, type WebappListMembersParams as WebappListMembersParams, type WebappListUsageParams as WebappListUsageParams, };
126
204
  export { AuditLogs as AuditLogs, type AuditLogRetrieveResponse as AuditLogRetrieveResponse, type AuditLogListResponse as AuditLogListResponse, type AuditLogListResponsesCursorPage as AuditLogListResponsesCursorPage, type AuditLogRetrieveParams as AuditLogRetrieveParams, type AuditLogListParams as AuditLogListParams, };
127
205
  }
128
206
  //# sourceMappingURL=webapp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webapp.d.ts","sourceRoot":"","sources":["../../../src/resources/organization/webapp/webapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,YAAY,wBAAqB;AAC7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AM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;;OAGG;IACH,IAAI,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAEpC;;;;OAIG;IACH,EAAE,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAElC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,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;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -12,6 +12,18 @@ class Webapp extends resource_1.APIResource {
12
12
  super(...arguments);
13
13
  this.auditLogs = new AuditLogsAPI.AuditLogs(this._client);
14
14
  }
15
+ /**
16
+ * List the members of the linked Runway workspaces you administer, one row per
17
+ * member per workspace, including pending invites and members who were removed.
18
+ * Ordered by `membershipId`. Authorized via the account link between this API
19
+ * project and the workspace.
20
+ */
21
+ listMembers(query = {}, options) {
22
+ return this._client.getAPIList('/v1/organization/webapp/members', (pagination_1.CursorPage), {
23
+ query,
24
+ ...options,
25
+ });
26
+ }
15
27
  /**
16
28
  * List per-generation credit-usage rows for the linked Runway workspaces you
17
29
  * administer, newest first. Unlike `/v1/organization/usage` (this API project's
@@ -1 +1 @@
1
- {"version":3,"file":"webapp.js","sourceRoot":"","sources":["../../../src/resources/organization/webapp/webapp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,sEAA6C;AAC7C,gDAOsB;AACtB,4DAA0F;AAG1F,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiB/E,CAAC;IAfC;;;;;OAKG;IACH,SAAS,CACP,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAA,uBAAmC,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAlBD,wBAkBC;AA+ID,MAAM,CAAC,SAAS,GAAG,sBAAS,CAAC"}
1
+ {"version":3,"file":"webapp.js","sourceRoot":"","sources":["../../../src/resources/organization/webapp/webapp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,sEAA6C;AAC7C,gDAOsB;AACtB,4DAA0F;AAG1F,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiC/E,CAAC;IA/BC;;;;;OAKG;IACH,WAAW,CACT,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iCAAiC,EAAE,CAAA,uBAAqC,CAAA,EAAE;YACvG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,SAAS,CACP,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAA,uBAAmC,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAlCD,wBAkCC;AAoOD,MAAM,CAAC,SAAS,GAAG,sBAAS,CAAC"}
@@ -8,6 +8,18 @@ export class Webapp extends APIResource {
8
8
  super(...arguments);
9
9
  this.auditLogs = new AuditLogsAPI.AuditLogs(this._client);
10
10
  }
11
+ /**
12
+ * List the members of the linked Runway workspaces you administer, one row per
13
+ * member per workspace, including pending invites and members who were removed.
14
+ * Ordered by `membershipId`. Authorized via the account link between this API
15
+ * project and the workspace.
16
+ */
17
+ listMembers(query = {}, options) {
18
+ return this._client.getAPIList('/v1/organization/webapp/members', (CursorPage), {
19
+ query,
20
+ ...options,
21
+ });
22
+ }
11
23
  /**
12
24
  * List per-generation credit-usage rows for the linked Runway workspaces you
13
25
  * administer, newest first. Unlike `/v1/organization/usage` (this API project's
@@ -1 +1 @@
1
- {"version":3,"file":"webapp.mjs","sourceRoot":"","sources":["../../../src/resources/organization/webapp/webapp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,YAAY,yBAAqB;AAC7C,OAAO,EAML,SAAS,GACV,yBAAqB;AACtB,OAAO,EAAE,UAAU,EAAsC,qCAAiC;AAG1F,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiB/E,CAAC;IAfC;;;;;OAKG;IACH,SAAS,CACP,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAA,UAAmC,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA+ID,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"webapp.mjs","sourceRoot":"","sources":["../../../src/resources/organization/webapp/webapp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,YAAY,yBAAqB;AAC7C,OAAO,EAML,SAAS,GACV,yBAAqB;AACtB,OAAO,EAAE,UAAU,EAAsC,qCAAiC;AAG1F,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiC/E,CAAC;IA/BC;;;;;OAKG;IACH,WAAW,CACT,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iCAAiC,EAAE,CAAA,UAAqC,CAAA,EAAE;YACvG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,SAAS,CACP,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAA,UAAmC,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAoOD,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC"}
@@ -218,8 +218,13 @@ export declare namespace TaskRetrieveResponse {
218
218
  output: Array<string>;
219
219
  status: 'SUCCEEDED';
220
220
  /**
221
- * Layer details for successful Seedream layer decomposition tasks. Each URI
222
- * matches the output URL at the same index.
221
+ * The ads an ad generation task made. Each URI matches the output URL at the same
222
+ * index.
223
+ */
224
+ ads?: Array<Succeeded.Ad>;
225
+ /**
226
+ * Layer details for successful layer decomposition tasks. Each URI matches the
227
+ * output URL at the same index.
223
228
  */
224
229
  layers?: Array<Succeeded.Layer>;
225
230
  }
@@ -234,6 +239,24 @@ export declare namespace TaskRetrieveResponse {
234
239
  */
235
240
  credits: number;
236
241
  }
242
+ interface Ad {
243
+ /**
244
+ * Which version this is, such as "9:16, Spanish".
245
+ */
246
+ label: string;
247
+ mediaType: 'image' | 'video';
248
+ /**
249
+ * An ephemeral URL for this ad, matching output at the same index.
250
+ */
251
+ uri: string;
252
+ durationSeconds?: number;
253
+ height?: number;
254
+ /**
255
+ * The post copy to run with the ad, when there is any.
256
+ */
257
+ postText?: string;
258
+ width?: number;
259
+ }
237
260
  interface Layer {
238
261
  /**
239
262
  * An ephemeral URL for this layer, matching output at the same index.
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.d.mts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,2BAA2B,CAAC,oBAAoB,CAAC;IAOjG;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,oBAAoB,CAAC,OAAO,GAC5B,oBAAoB,CAAC,SAAS,GAC9B,oBAAoB,CAAC,SAAS,GAC9B,oBAAoB,CAAC,OAAO,GAC5B,oBAAoB,CAAC,MAAM,GAC3B,oBAAoB,CAAC,SAAS,CAAC;AAEnC,yBAAiB,oBAAoB,CAAC;IACpC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG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,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAExB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;aAC3B;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D"}
@@ -218,8 +218,13 @@ export declare namespace TaskRetrieveResponse {
218
218
  output: Array<string>;
219
219
  status: 'SUCCEEDED';
220
220
  /**
221
- * Layer details for successful Seedream layer decomposition tasks. Each URI
222
- * matches the output URL at the same index.
221
+ * The ads an ad generation task made. Each URI matches the output URL at the same
222
+ * index.
223
+ */
224
+ ads?: Array<Succeeded.Ad>;
225
+ /**
226
+ * Layer details for successful layer decomposition tasks. Each URI matches the
227
+ * output URL at the same index.
223
228
  */
224
229
  layers?: Array<Succeeded.Layer>;
225
230
  }
@@ -234,6 +239,24 @@ export declare namespace TaskRetrieveResponse {
234
239
  */
235
240
  credits: number;
236
241
  }
242
+ interface Ad {
243
+ /**
244
+ * Which version this is, such as "9:16, Spanish".
245
+ */
246
+ label: string;
247
+ mediaType: 'image' | 'video';
248
+ /**
249
+ * An ephemeral URL for this ad, matching output at the same index.
250
+ */
251
+ uri: string;
252
+ durationSeconds?: number;
253
+ height?: number;
254
+ /**
255
+ * The post copy to run with the ad, when there is any.
256
+ */
257
+ postText?: string;
258
+ width?: number;
259
+ }
237
260
  interface Layer {
238
261
  /**
239
262
  * An ephemeral URL for this layer, matching output at the same index.
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW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SACjB;QAED,UAAiB,EAAE;YACjB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;YAE7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ,eAAe,CAAC,EAAE,MAAM,CAAC;YAEzB,MAAM,CAAC,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB;QAED,UAAiB,KAAK;YACpB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,WAAW,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;YAEhC;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB;QAED,UAAiB,KAAK,CAAC;YACrB;;;eAGG;YACH,UAAiB,WAAW;gBAC1B,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAExB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;aAC3B;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D"}
@@ -41,7 +41,7 @@ export declare namespace TextToImageCreateResponse {
41
41
  credits: number;
42
42
  }
43
43
  }
44
- export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.GeminiImage3_1Flash | TextToImageCreateParams.MuseImage | TextToImageCreateParams.Seedream5Pro | TextToImageCreateParams.Seedream5Lite | TextToImageCreateParams.GrokImagineImage2 | TextToImageCreateParams.GeminiImage3_1FlashLite | TextToImageCreateParams.GeminiImage3Pro | TextToImageCreateParams.GptImage2_5Flare | TextToImageCreateParams.GptImage2_5Sunburst | TextToImageCreateParams.BriaFibo1_5 | TextToImageCreateParams.BriaFiboEdit1_5 | TextToImageCreateParams.Ideogram4_0 | TextToImageCreateParams.Ideogram4_5 | TextToImageCreateParams.Seedream5Flash | TextToImageCreateParams.NanoBanana2_1 | TextToImageCreateParams.RecraftV4_1Flash | TextToImageCreateParams.RecraftV4_1Vector | TextToImageCreateParams.IdeogramVector | TextToImageCreateParams.GptImage2_6Sunburst | TextToImageCreateParams.GptImage2_6Flare | TextToImageCreateParams.Seedream5ProLayers | TextToImageCreateParams.Seedream5_5 | TextToImageCreateParams.Seedream5_5Layers | TextToImageCreateParams.MinimaxH3Image | TextToImageCreateParams.Gemini2_5Flash;
44
+ export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.GeminiImage3_1Flash | TextToImageCreateParams.MuseImage | TextToImageCreateParams.Seedream5Pro | TextToImageCreateParams.Seedream5Lite | TextToImageCreateParams.GrokImagineImage2 | TextToImageCreateParams.GeminiImage3_1FlashLite | TextToImageCreateParams.GeminiImage3Pro | TextToImageCreateParams.GptImage2_5Flare | TextToImageCreateParams.GptImage2_5Sunburst | TextToImageCreateParams.BriaFibo1_5 | TextToImageCreateParams.BriaFiboEdit1_5 | TextToImageCreateParams.Ideogram4_0 | TextToImageCreateParams.Ideogram4_5 | TextToImageCreateParams.Seedream5Flash | TextToImageCreateParams.NanoBanana2_1 | TextToImageCreateParams.RecraftV4_1Flash | TextToImageCreateParams.RecraftV4_1Vector | TextToImageCreateParams.IdeogramVector | TextToImageCreateParams.GptImage2_6Sunburst | TextToImageCreateParams.GptImage2_6Flare | TextToImageCreateParams.Seedream5ProLayers | TextToImageCreateParams.Seedream5_5 | TextToImageCreateParams.Seedream5_5Layers | TextToImageCreateParams.MinimaxH3Image | TextToImageCreateParams.Gemini2_5Flash | TextToImageCreateParams.Ideogram4_6;
45
45
  export declare namespace TextToImageCreateParams {
46
46
  interface Gen4ImageTurbo {
47
47
  model: 'gen4_image_turbo';
@@ -1105,10 +1105,11 @@ export declare namespace TextToImageCreateParams {
1105
1105
  promptText: string;
1106
1106
  /**
1107
1107
  * The resolution of the output image, expressed as `<width>:<height>`. Use
1108
- * `auto_1k`, `auto_1.5k` or `auto_2k` to let the model pick the aspect ratio at a
1109
- * fixed resolution tier.
1108
+ * `auto_1k`, `auto_1.5k`, `auto_2k` or `auto_4k` to let the model pick the aspect
1109
+ * ratio at a fixed resolution tier. With `auto_4k`, the output takes the 4K aspect
1110
+ * ratio nearest to the first reference image, or 1:1 without reference images.
1110
1111
  */
1111
- ratio: '1024:1024' | '1152:864' | '864:1152' | '1424:800' | '800:1424' | '1248:832' | '832:1248' | '1568:672' | '1536:1536' | '1792:1344' | '1344:1792' | '2048:1152' | '1152:2048' | '1872:1248' | '1248:1872' | '2352:1008' | '2048:2048' | '2368:1776' | '1776:2368' | '2816:1584' | '1584:2816' | '2496:1664' | '1664:2496' | '3136:1344' | 'auto_1k' | 'auto_1.5k' | 'auto_2k';
1112
+ ratio: '1024:1024' | '1152:864' | '864:1152' | '1424:800' | '800:1424' | '1248:832' | '832:1248' | '1568:672' | '1536:1536' | '1792:1344' | '1344:1792' | '2048:1152' | '1152:2048' | '1872:1248' | '1248:1872' | '2352:1008' | '2048:2048' | '2368:1776' | '1776:2368' | '2816:1584' | '1584:2816' | '2496:1664' | '1664:2496' | '3136:1344' | '2880:2880' | '3264:2448' | '2448:3264' | '3840:2160' | '2160:3840' | '3504:2336' | '2336:3504' | '4368:1872' | 'auto_1k' | 'auto_1.5k' | 'auto_2k' | 'auto_4k';
1112
1113
  /**
1113
1114
  * Whether the image has a transparent or an opaque background. A transparent
1114
1115
  * background needs the png output format. Omit to let the model decide from the
@@ -1250,6 +1251,87 @@ export declare namespace TextToImageCreateParams {
1250
1251
  tag?: string;
1251
1252
  }
1252
1253
  }
1254
+ interface Ideogram4_6 {
1255
+ model: 'ideogram_4_6';
1256
+ /**
1257
+ * Describe the image to generate, or the changes to make to the first reference
1258
+ * image.
1259
+ */
1260
+ promptText: string;
1261
+ /**
1262
+ * Use `transparent` to return a PNG with an alpha channel, or `opaque` for a solid
1263
+ * background. Omit it to let the model decide. Not available with `maskUri` or
1264
+ * `preciseEdit`.
1265
+ */
1266
+ background?: 'transparent' | 'opaque';
1267
+ /**
1268
+ * Precise-edit region: `none`, `auto` (requires `maskUri`), or
1269
+ * `top,left,bottom,right` in original-image pixels, with exclusive maximum edges.
1270
+ * A manual region preserves full resolution and all pixels outside it. All masked
1271
+ * edit pixels must lie inside a manual region. Requires edit-window access.
1272
+ */
1273
+ contextWindow?: string;
1274
+ /**
1275
+ * Whether Ideogram rewrites the prompt to add detail before generating. Defaults
1276
+ * to `auto`. Only `auto` is available with reference images.
1277
+ */
1278
+ magicPrompt?: 'auto' | 'on' | 'off';
1279
+ /**
1280
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1281
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1282
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1283
+ */
1284
+ maskUri?: string;
1285
+ /**
1286
+ * The number of images to generate. Increasing this number will affect the number
1287
+ * of credits consumed by the generation.
1288
+ */
1289
+ outputCount?: number;
1290
+ /**
1291
+ * When true, change part of the first reference image and keep its size. Requires
1292
+ * at least one reference image, which may be up to 64 megapixels. Whole-image
1293
+ * edits above 4,194,304 pixels are scaled down. Set `contextWindow` to edit a
1294
+ * region at full source resolution.
1295
+ */
1296
+ preciseEdit?: boolean;
1297
+ /**
1298
+ * How much rendering effort the model spends on each image. Defaults to `medium`.
1299
+ * Credits per image at 2K / 4K: `very_low` 1 (2K only), `low` 3 / 6, `medium` 6 /
1300
+ * 12, `high` 10 / 20. With reference images or `preciseEdit`: `medium` 6 / 20,
1301
+ * `high` 22 / 60. Edits that keep the source size are billed at 4K when the source
1302
+ * is larger than 2048×2048 pixels.
1303
+ */
1304
+ quality?: 'very_low' | 'low' | 'medium' | 'high';
1305
+ /**
1306
+ * The resolution of the output image, expressed as `<width>:<height>`. Omit it or
1307
+ * use `auto` to let the model choose a size around 2K. `4096:4096`, `4096:2304`,
1308
+ * `2304:4096`, `4096:3072`, `3072:4096`, `3840:2560`, `2560:3840`, `3840:3072`,
1309
+ * `3072:3840`, `4096:2048`, `2048:4096` are 4K and billed at the 4K price. Not
1310
+ * available with `maskUri` or `preciseEdit`, which keep the size of the first
1311
+ * reference image.
1312
+ */
1313
+ ratio?: 'auto' | '2048:2048' | '2560:1440' | '1440:2560' | '2304:1728' | '1728:2304' | '2496:1664' | '1664:2496' | '2240:1792' | '1792:2240' | '2880:1440' | '1440:2880' | '4096:4096' | '4096:2304' | '2304:4096' | '4096:3072' | '3072:4096' | '3840:2560' | '2560:3840' | '3840:3072' | '3072:3840' | '4096:2048' | '2048:4096';
1314
+ /**
1315
+ * Up to 5 images. The first image is the one being edited and the rest are
1316
+ * references.
1317
+ */
1318
+ referenceImages?: Array<Ideogram4_6.ReferenceImage>;
1319
+ /**
1320
+ * A fixed seed reproduces the same result for the same request. Omit it for a
1321
+ * random seed.
1322
+ */
1323
+ seed?: number;
1324
+ }
1325
+ namespace Ideogram4_6 {
1326
+ interface ReferenceImage {
1327
+ /**
1328
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1329
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1330
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1331
+ */
1332
+ uri: string;
1333
+ }
1334
+ }
1253
1335
  }
1254
1336
  export declare namespace TextToImage {
1255
1337
  export { type TextToImageCreateResponse as TextToImageCreateResponse, type TextToImageCreateParams as TextToImageCreateParams, };