@omnichar/contracts 0.0.0-d0bcbf5 → 0.0.0-eb7cbbe
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/dist/errors.d.ts +3 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +3 -0
- package/dist/errors.js.map +1 -1
- package/dist/v1/characters.d.ts +88 -8
- package/dist/v1/characters.d.ts.map +1 -1
- package/dist/v1/characters.js +54 -7
- package/dist/v1/characters.js.map +1 -1
- package/dist/v1/index.d.ts +1 -0
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +1 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/runs.d.ts +266 -0
- package/dist/v1/runs.d.ts.map +1 -1
- package/dist/v1/runs.js +54 -0
- package/dist/v1/runs.js.map +1 -1
- package/dist/v1/sessions.d.ts +102 -0
- package/dist/v1/sessions.d.ts.map +1 -1
- package/dist/v1/studio.d.ts +81 -3
- package/dist/v1/studio.d.ts.map +1 -1
- package/dist/v1/studio.js +150 -12
- package/dist/v1/studio.js.map +1 -1
- package/dist/v1/teams.d.ts +226 -0
- package/dist/v1/teams.d.ts.map +1 -0
- package/dist/v1/teams.js +97 -0
- package/dist/v1/teams.js.map +1 -0
- package/dist/v1/videoPricing.d.ts +2 -2
- package/dist/v1/videoPricing.d.ts.map +1 -1
- package/dist/v1/videoPricing.js +7 -4
- package/dist/v1/videoPricing.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TEAM_HEADER = "x-omnichar-team";
|
|
3
|
+
export declare const TEAM_ROLES: readonly ["owner", "admin", "developer", "member"];
|
|
4
|
+
export declare const teamRoleSchema: z.ZodEnum<{
|
|
5
|
+
admin: "admin";
|
|
6
|
+
member: "member";
|
|
7
|
+
owner: "owner";
|
|
8
|
+
developer: "developer";
|
|
9
|
+
}>;
|
|
10
|
+
export type TeamRole = z.infer<typeof teamRoleSchema>;
|
|
11
|
+
export declare const INVITE_ROLES: readonly ["admin", "developer", "member"];
|
|
12
|
+
export declare const inviteRoleSchema: z.ZodEnum<{
|
|
13
|
+
admin: "admin";
|
|
14
|
+
member: "member";
|
|
15
|
+
developer: "developer";
|
|
16
|
+
}>;
|
|
17
|
+
export declare const TEAM_PLANS: readonly ["free", "team", "partner"];
|
|
18
|
+
export declare const teamPlanSchema: z.ZodEnum<{
|
|
19
|
+
free: "free";
|
|
20
|
+
team: "team";
|
|
21
|
+
partner: "partner";
|
|
22
|
+
}>;
|
|
23
|
+
export type TeamPlan = z.infer<typeof teamPlanSchema>;
|
|
24
|
+
export declare const TEAM_ACTIONS: readonly ["generate", "manage_members", "view_billing", "delete_team", "transfer_ownership"];
|
|
25
|
+
export type TeamAction = (typeof TEAM_ACTIONS)[number];
|
|
26
|
+
/** The permission table. The control plane enforces it; the studio uses it to hide controls. */
|
|
27
|
+
export declare function teamCan(role: TeamRole, action: TeamAction): boolean;
|
|
28
|
+
export declare const teamFlagsSchema: z.ZodObject<{
|
|
29
|
+
provider: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
api_access: z.ZodDefault<z.ZodBoolean>;
|
|
31
|
+
sandbox: z.ZodDefault<z.ZodBoolean>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type TeamFlags = z.infer<typeof teamFlagsSchema>;
|
|
34
|
+
export declare const teamSlugSchema: z.ZodString;
|
|
35
|
+
export declare const teamSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodUUID;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
slug: z.ZodString;
|
|
39
|
+
personal: z.ZodBoolean;
|
|
40
|
+
plan: z.ZodEnum<{
|
|
41
|
+
free: "free";
|
|
42
|
+
team: "team";
|
|
43
|
+
partner: "partner";
|
|
44
|
+
}>;
|
|
45
|
+
role: z.ZodEnum<{
|
|
46
|
+
admin: "admin";
|
|
47
|
+
member: "member";
|
|
48
|
+
owner: "owner";
|
|
49
|
+
developer: "developer";
|
|
50
|
+
}>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type Team = z.infer<typeof teamSchema>;
|
|
53
|
+
export declare const teamListSchema: z.ZodObject<{
|
|
54
|
+
items: z.ZodArray<z.ZodObject<{
|
|
55
|
+
id: z.ZodUUID;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
slug: z.ZodString;
|
|
58
|
+
personal: z.ZodBoolean;
|
|
59
|
+
plan: z.ZodEnum<{
|
|
60
|
+
free: "free";
|
|
61
|
+
team: "team";
|
|
62
|
+
partner: "partner";
|
|
63
|
+
}>;
|
|
64
|
+
role: z.ZodEnum<{
|
|
65
|
+
admin: "admin";
|
|
66
|
+
member: "member";
|
|
67
|
+
owner: "owner";
|
|
68
|
+
developer: "developer";
|
|
69
|
+
}>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export declare const createTeamBodySchema: z.ZodObject<{
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export declare const renameTeamBodySchema: z.ZodObject<{
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const transferTeamBodySchema: z.ZodObject<{
|
|
79
|
+
userId: z.ZodUUID;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const memberSchema: z.ZodObject<{
|
|
82
|
+
userId: z.ZodUUID;
|
|
83
|
+
role: z.ZodEnum<{
|
|
84
|
+
admin: "admin";
|
|
85
|
+
member: "member";
|
|
86
|
+
owner: "owner";
|
|
87
|
+
developer: "developer";
|
|
88
|
+
}>;
|
|
89
|
+
email: z.ZodNullable<z.ZodString>;
|
|
90
|
+
name: z.ZodNullable<z.ZodString>;
|
|
91
|
+
avatarUrl: z.ZodNullable<z.ZodURL>;
|
|
92
|
+
joinedAt: z.ZodISODateTime;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type Member = z.infer<typeof memberSchema>;
|
|
95
|
+
export declare const memberListSchema: z.ZodObject<{
|
|
96
|
+
items: z.ZodArray<z.ZodObject<{
|
|
97
|
+
userId: z.ZodUUID;
|
|
98
|
+
role: z.ZodEnum<{
|
|
99
|
+
admin: "admin";
|
|
100
|
+
member: "member";
|
|
101
|
+
owner: "owner";
|
|
102
|
+
developer: "developer";
|
|
103
|
+
}>;
|
|
104
|
+
email: z.ZodNullable<z.ZodString>;
|
|
105
|
+
name: z.ZodNullable<z.ZodString>;
|
|
106
|
+
avatarUrl: z.ZodNullable<z.ZodURL>;
|
|
107
|
+
joinedAt: z.ZodISODateTime;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export declare const changeRoleBodySchema: z.ZodObject<{
|
|
111
|
+
role: z.ZodEnum<{
|
|
112
|
+
admin: "admin";
|
|
113
|
+
member: "member";
|
|
114
|
+
owner: "owner";
|
|
115
|
+
developer: "developer";
|
|
116
|
+
}>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export declare const inviteSchema: z.ZodObject<{
|
|
119
|
+
id: z.ZodUUID;
|
|
120
|
+
email: z.ZodString;
|
|
121
|
+
role: z.ZodEnum<{
|
|
122
|
+
admin: "admin";
|
|
123
|
+
member: "member";
|
|
124
|
+
developer: "developer";
|
|
125
|
+
}>;
|
|
126
|
+
createdAt: z.ZodISODateTime;
|
|
127
|
+
expiresAt: z.ZodISODateTime;
|
|
128
|
+
lastSentAt: z.ZodISODateTime;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
export type Invite = z.infer<typeof inviteSchema>;
|
|
131
|
+
export declare const inviteListSchema: z.ZodObject<{
|
|
132
|
+
items: z.ZodArray<z.ZodObject<{
|
|
133
|
+
id: z.ZodUUID;
|
|
134
|
+
email: z.ZodString;
|
|
135
|
+
role: z.ZodEnum<{
|
|
136
|
+
admin: "admin";
|
|
137
|
+
member: "member";
|
|
138
|
+
developer: "developer";
|
|
139
|
+
}>;
|
|
140
|
+
createdAt: z.ZodISODateTime;
|
|
141
|
+
expiresAt: z.ZodISODateTime;
|
|
142
|
+
lastSentAt: z.ZodISODateTime;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export declare const createInviteBodySchema: z.ZodObject<{
|
|
146
|
+
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
|
|
147
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
148
|
+
admin: "admin";
|
|
149
|
+
member: "member";
|
|
150
|
+
developer: "developer";
|
|
151
|
+
}>>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export declare const inviteResultSchema: z.ZodObject<{
|
|
154
|
+
invite: z.ZodObject<{
|
|
155
|
+
id: z.ZodUUID;
|
|
156
|
+
email: z.ZodString;
|
|
157
|
+
role: z.ZodEnum<{
|
|
158
|
+
admin: "admin";
|
|
159
|
+
member: "member";
|
|
160
|
+
developer: "developer";
|
|
161
|
+
}>;
|
|
162
|
+
createdAt: z.ZodISODateTime;
|
|
163
|
+
expiresAt: z.ZodISODateTime;
|
|
164
|
+
lastSentAt: z.ZodISODateTime;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
emailSent: z.ZodBoolean;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
export declare const adminTeamSchema: z.ZodObject<{
|
|
169
|
+
id: z.ZodUUID;
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
slug: z.ZodString;
|
|
172
|
+
personal: z.ZodBoolean;
|
|
173
|
+
plan: z.ZodEnum<{
|
|
174
|
+
free: "free";
|
|
175
|
+
team: "team";
|
|
176
|
+
partner: "partner";
|
|
177
|
+
}>;
|
|
178
|
+
flags: z.ZodObject<{
|
|
179
|
+
provider: z.ZodDefault<z.ZodBoolean>;
|
|
180
|
+
api_access: z.ZodDefault<z.ZodBoolean>;
|
|
181
|
+
sandbox: z.ZodDefault<z.ZodBoolean>;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
members: z.ZodNumber;
|
|
184
|
+
createdAt: z.ZodISODateTime;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export type AdminTeam = z.infer<typeof adminTeamSchema>;
|
|
187
|
+
export declare const adminTeamListSchema: z.ZodObject<{
|
|
188
|
+
items: z.ZodArray<z.ZodObject<{
|
|
189
|
+
id: z.ZodUUID;
|
|
190
|
+
name: z.ZodString;
|
|
191
|
+
slug: z.ZodString;
|
|
192
|
+
personal: z.ZodBoolean;
|
|
193
|
+
plan: z.ZodEnum<{
|
|
194
|
+
free: "free";
|
|
195
|
+
team: "team";
|
|
196
|
+
partner: "partner";
|
|
197
|
+
}>;
|
|
198
|
+
flags: z.ZodObject<{
|
|
199
|
+
provider: z.ZodDefault<z.ZodBoolean>;
|
|
200
|
+
api_access: z.ZodDefault<z.ZodBoolean>;
|
|
201
|
+
sandbox: z.ZodDefault<z.ZodBoolean>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
members: z.ZodNumber;
|
|
204
|
+
createdAt: z.ZodISODateTime;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
export declare const adminTeamQuerySchema: z.ZodObject<{
|
|
208
|
+
q: z.ZodString;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export declare const adminTeamPatchSchema: z.ZodObject<{
|
|
211
|
+
plan: z.ZodOptional<z.ZodEnum<{
|
|
212
|
+
free: "free";
|
|
213
|
+
team: "team";
|
|
214
|
+
partner: "partner";
|
|
215
|
+
}>>;
|
|
216
|
+
flags: z.ZodOptional<z.ZodObject<{
|
|
217
|
+
provider: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
218
|
+
api_access: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
219
|
+
sandbox: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
export type CreateTeamBody = z.infer<typeof createTeamBodySchema>;
|
|
223
|
+
export type CreateInviteBody = z.infer<typeof createInviteBodySchema>;
|
|
224
|
+
export type InviteResult = z.infer<typeof inviteResultSchema>;
|
|
225
|
+
export type AdminTeamPatch = z.infer<typeof adminTeamPatchSchema>;
|
|
226
|
+
//# sourceMappingURL=teams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../src/v1/teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,WAAW,oBAAoB,CAAA;AAG5C,eAAO,MAAM,UAAU,oDAAqD,CAAA;AAC5E,eAAO,MAAM,cAAc;;;;;EAAqB,CAAA;AAChD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAGrD,eAAO,MAAM,YAAY,2CAA4C,CAAA;AACrE,eAAO,MAAM,gBAAgB;;;;EAAuB,CAAA;AAEpD,eAAO,MAAM,UAAU,sCAAuC,CAAA;AAC9D,eAAO,MAAM,cAAc;;;;EAAqB,CAAA;AAChD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAErD,eAAO,MAAM,YAAY,8FAMf,CAAA;AACV,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA;AAUtD,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAEnE;AAED,eAAO,MAAM,eAAe;;;;iBAI1B,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEvD,eAAO,MAAM,cAAc,aAAwC,CAAA;AAEnE,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,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACrE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC7D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
package/dist/v1/teams.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
// Which team a request acts for; membership is proven before use, and a non-member gets 404.
|
|
3
|
+
export const TEAM_HEADER = 'x-omnichar-team';
|
|
4
|
+
// Named teamRole because the person-level role (admin, team, member, user) means staff access.
|
|
5
|
+
export const TEAM_ROLES = ['owner', 'admin', 'developer', 'member'];
|
|
6
|
+
export const teamRoleSchema = z.enum(TEAM_ROLES);
|
|
7
|
+
// Ownership moves by transfer, never by invite, so an invite cannot hand someone the team.
|
|
8
|
+
export const INVITE_ROLES = ['admin', 'developer', 'member'];
|
|
9
|
+
export const inviteRoleSchema = z.enum(INVITE_ROLES);
|
|
10
|
+
export const TEAM_PLANS = ['free', 'team', 'partner'];
|
|
11
|
+
export const teamPlanSchema = z.enum(TEAM_PLANS);
|
|
12
|
+
export const TEAM_ACTIONS = [
|
|
13
|
+
'generate',
|
|
14
|
+
'manage_members',
|
|
15
|
+
'view_billing',
|
|
16
|
+
'delete_team',
|
|
17
|
+
'transfer_ownership',
|
|
18
|
+
];
|
|
19
|
+
const ALLOWED = {
|
|
20
|
+
generate: ['owner', 'admin', 'developer', 'member'],
|
|
21
|
+
manage_members: ['owner', 'admin'],
|
|
22
|
+
view_billing: ['owner', 'admin'],
|
|
23
|
+
delete_team: ['owner'],
|
|
24
|
+
transfer_ownership: ['owner'],
|
|
25
|
+
};
|
|
26
|
+
/** The permission table. The control plane enforces it; the studio uses it to hide controls. */
|
|
27
|
+
export function teamCan(role, action) {
|
|
28
|
+
return ALLOWED[action].includes(role);
|
|
29
|
+
}
|
|
30
|
+
export const teamFlagsSchema = z.object({
|
|
31
|
+
provider: z.boolean().default(false),
|
|
32
|
+
api_access: z.boolean().default(false),
|
|
33
|
+
sandbox: z.boolean().default(false),
|
|
34
|
+
});
|
|
35
|
+
export const teamSlugSchema = z.string().regex(/^[a-z0-9-]{3,40}$/);
|
|
36
|
+
export const teamSchema = z.object({
|
|
37
|
+
id: z.uuid(),
|
|
38
|
+
name: z.string(),
|
|
39
|
+
slug: z.string(),
|
|
40
|
+
personal: z.boolean(),
|
|
41
|
+
plan: teamPlanSchema,
|
|
42
|
+
role: teamRoleSchema,
|
|
43
|
+
});
|
|
44
|
+
// Personal first, then shared teams by name.
|
|
45
|
+
export const teamListSchema = z.object({ items: z.array(teamSchema) });
|
|
46
|
+
export const createTeamBodySchema = z.object({ name: z.string().trim().min(2).max(60) });
|
|
47
|
+
export const renameTeamBodySchema = createTeamBodySchema;
|
|
48
|
+
export const transferTeamBodySchema = z.object({ userId: z.uuid() });
|
|
49
|
+
export const memberSchema = z.object({
|
|
50
|
+
userId: z.uuid(),
|
|
51
|
+
role: teamRoleSchema,
|
|
52
|
+
email: z.string().nullable(),
|
|
53
|
+
name: z.string().nullable(),
|
|
54
|
+
avatarUrl: z.url().nullable(),
|
|
55
|
+
joinedAt: z.iso.datetime(),
|
|
56
|
+
});
|
|
57
|
+
export const memberListSchema = z.object({ items: z.array(memberSchema) });
|
|
58
|
+
export const changeRoleBodySchema = z.object({ role: teamRoleSchema });
|
|
59
|
+
export const inviteSchema = z.object({
|
|
60
|
+
id: z.uuid(),
|
|
61
|
+
email: z.string(),
|
|
62
|
+
role: inviteRoleSchema,
|
|
63
|
+
createdAt: z.iso.datetime(),
|
|
64
|
+
expiresAt: z.iso.datetime(),
|
|
65
|
+
lastSentAt: z.iso.datetime(),
|
|
66
|
+
});
|
|
67
|
+
export const inviteListSchema = z.object({ items: z.array(inviteSchema) });
|
|
68
|
+
// Lowercased here so the stored value, the duplicate check and the sign-in match agree on one form.
|
|
69
|
+
export const createInviteBodySchema = z.object({
|
|
70
|
+
email: z
|
|
71
|
+
.email()
|
|
72
|
+
.max(254)
|
|
73
|
+
.transform((v) => v.toLowerCase()),
|
|
74
|
+
role: inviteRoleSchema.default('member'),
|
|
75
|
+
});
|
|
76
|
+
// Whether the email left. The invite is stored either way, since sign-in accepts it by address.
|
|
77
|
+
export const inviteResultSchema = z.object({ invite: inviteSchema, emailSent: z.boolean() });
|
|
78
|
+
// Staff only. Each field is optional, so a change touches only what it names.
|
|
79
|
+
export const adminTeamSchema = z.object({
|
|
80
|
+
id: z.uuid(),
|
|
81
|
+
name: z.string(),
|
|
82
|
+
slug: z.string(),
|
|
83
|
+
personal: z.boolean(),
|
|
84
|
+
plan: teamPlanSchema,
|
|
85
|
+
flags: teamFlagsSchema,
|
|
86
|
+
members: z.number().int(),
|
|
87
|
+
createdAt: z.iso.datetime(),
|
|
88
|
+
});
|
|
89
|
+
export const adminTeamListSchema = z.object({ items: z.array(adminTeamSchema) });
|
|
90
|
+
export const adminTeamQuerySchema = z.object({ q: z.string().trim().min(1).max(60) });
|
|
91
|
+
export const adminTeamPatchSchema = z
|
|
92
|
+
.object({
|
|
93
|
+
plan: teamPlanSchema.optional(),
|
|
94
|
+
flags: teamFlagsSchema.partial().optional(),
|
|
95
|
+
})
|
|
96
|
+
.refine((v) => v.plan !== undefined || v.flags !== undefined, 'Nothing to change.');
|
|
97
|
+
//# sourceMappingURL=teams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.js","sourceRoot":"","sources":["../../src/v1/teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,6FAA6F;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAA;AAE5C,+FAA+F;AAC/F,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAA;AAC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ything it cannot price. A quote that fell back to the cheapest tier for an unknown
|
|
36
36
|
* resolution would undercharge silently, which is the one failure nobody would report.
|
|
37
37
|
*/
|
|
38
|
-
export declare function videoRunMicro(input: VideoQuoteInput): number;
|
|
38
|
+
export declare function videoRunMicro(input: VideoQuoteInput, card?: Partial<Record<VideoResolution, number>>): number;
|
|
39
39
|
/** The same price in whole credits, which is the only form a caller ever sees. */
|
|
40
|
-
export declare function videoRunCredits(input: VideoQuoteInput): number;
|
|
40
|
+
export declare function videoRunCredits(input: VideoQuoteInput, card?: Partial<Record<VideoResolution, number>>): number;
|
|
41
41
|
export type VideoAlternative = {
|
|
42
42
|
resolution: VideoResolution;
|
|
43
43
|
seconds: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"videoPricing.d.ts","sourceRoot":"","sources":["../../src/v1/videoPricing.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,iBAAiB,uCAAwC,CAAA;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEhE,gDAAgD;AAChD,eAAO,MAAM,iBAAiB,IAAI,CAAA;AAClC,eAAO,MAAM,iBAAiB,KAAK,CAAA;AAInC,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAKlE,CAAA;AAID,eAAO,MAAM,qBAAqB,IAAI,CAAA;AACtC,eAAO,MAAM,+BAA+B,WAAa,CAAA;AAGzD,eAAO,MAAM,mBAAmB,oEAQtB,CAAA;AACV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAGnE,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAK5D,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,eAAe,CAAA;IAC3B,OAAO,EAAE,MAAM,CAAA;IAEf,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AmBR;AAED,kFAAkF;AAClF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,eAAe,EACtB,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,GAC9C,MAAM,CAER;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,eAAe,CAAA;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,eAAe,EACtB,KAAK,SAAI,GACR,gBAAgB,EAAE,CA6BpB;AAED,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAErC;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAG9F"}
|
package/dist/v1/videoPricing.js
CHANGED
|
@@ -51,8 +51,11 @@ export class VideoQuoteError extends Error {
|
|
|
51
51
|
* Throws on anything it cannot price. A quote that fell back to the cheapest tier for an unknown
|
|
52
52
|
* resolution would undercharge silently, which is the one failure nobody would report.
|
|
53
53
|
*/
|
|
54
|
-
export function videoRunMicro(input
|
|
55
|
-
|
|
54
|
+
export function videoRunMicro(input,
|
|
55
|
+
// Which renderer's rates to quote at. Defaulted, so every caller that predates a choice of
|
|
56
|
+
// renderer still quotes the one it was written against.
|
|
57
|
+
card = VIDEO_MICRO_PER_SECOND) {
|
|
58
|
+
const perSecond = card[input.resolution];
|
|
56
59
|
if (perSecond === undefined) {
|
|
57
60
|
throw new VideoQuoteError(`Unknown resolution ${String(input.resolution)}.`);
|
|
58
61
|
}
|
|
@@ -70,8 +73,8 @@ export function videoRunMicro(input) {
|
|
|
70
73
|
return input.seconds * perSecond + extra * VIDEO_MICRO_PER_EXTRA_REFERENCE;
|
|
71
74
|
}
|
|
72
75
|
/** The same price in whole credits, which is the only form a caller ever sees. */
|
|
73
|
-
export function videoRunCredits(input) {
|
|
74
|
-
return Math.ceil(videoRunMicro(input) / MICRO_PER_CREDIT);
|
|
76
|
+
export function videoRunCredits(input, card) {
|
|
77
|
+
return Math.ceil(videoRunMicro(input, card) / MICRO_PER_CREDIT);
|
|
75
78
|
}
|
|
76
79
|
/**
|
|
77
80
|
* Settings close to the ones asked for that this balance can afford, dearest first.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"videoPricing.js","sourceRoot":"","sources":["../../src/v1/videoPricing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE/C;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAU,CAAA;AAGtE,gDAAgD;AAChD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAA;AAClC,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAA;AAEnC,kGAAkG;AAClG,sDAAsD;AACtD,MAAM,CAAC,MAAM,sBAAsB,GAAoC;IACrE,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,UAAU;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;CACjB,CAAA;AAED,4FAA4F;AAC5F,oEAAoE;AACpE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAA;AACtC,MAAM,CAAC,MAAM,+BAA+B,GAAG,UAAU,CAAA;AAEzD,qFAAqF;AACrF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,UAAU;IACV,MAAM;IACN,MAAM;IACN,KAAK;IACL,KAAK;IACL,KAAK;IACL,MAAM;CACE,CAAA;AAGV,mGAAmG;AACnG,MAAM,CAAC,MAAM,gBAAgB,GAAoC;IAC/D,MAAM,EAAE,GAAG;IACX,MAA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,CAAC;IACH,CAAC;IAED,OAAO,CAAC,GAAG,WAAW,EAAE,GAAG,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;AAC1D,CAAC;AAED,uEAAuE;AACvE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAA;AAErC;;;;;;;;;GASG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAgD;IACpF,IAAI,IAAI,CAAC,YAAY;QAAE,OAAO,oBAAoB,CAAA;IAClD,OAAO,IAAI,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;AAClE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnichar/contracts",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-eb7cbbe",
|
|
4
4
|
"description": "The wire contract between Cloud-Studio and Cloud-Control-Plane. Zod schemas and the types inferred from them.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|