@quotalayer/contracts 0.1.0-alpha.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/README.md +11 -0
- package/dist/index.d.ts +751 -0
- package/dist/index.js +793 -0
- package/package.json +48 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,793 @@
|
|
|
1
|
+
// src/auth.ts
|
|
2
|
+
import { Type } from "@sinclair/typebox";
|
|
3
|
+
|
|
4
|
+
// src/value.ts
|
|
5
|
+
import { FormatRegistry } from "@sinclair/typebox";
|
|
6
|
+
import { Value } from "@sinclair/typebox/value";
|
|
7
|
+
var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;
|
|
8
|
+
if (!FormatRegistry.Has("uuid")) {
|
|
9
|
+
FormatRegistry.Set("uuid", (value) => uuidPattern.test(value));
|
|
10
|
+
}
|
|
11
|
+
if (!FormatRegistry.Has("date-time")) {
|
|
12
|
+
FormatRegistry.Set("date-time", (value) => Number.isFinite(Date.parse(value)));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// src/auth.ts
|
|
16
|
+
var RegisterSchema = Type.Object(
|
|
17
|
+
{
|
|
18
|
+
email: Type.String({ format: "email", maxLength: 320 }),
|
|
19
|
+
password: Type.String({ minLength: 12, maxLength: 128 }),
|
|
20
|
+
displayName: Type.String({ minLength: 1, maxLength: 120 }),
|
|
21
|
+
workspaceName: Type.String({ minLength: 1, maxLength: 120 })
|
|
22
|
+
},
|
|
23
|
+
{ additionalProperties: false }
|
|
24
|
+
);
|
|
25
|
+
var LoginSchema = Type.Object(
|
|
26
|
+
{
|
|
27
|
+
email: Type.String({ format: "email", maxLength: 320 }),
|
|
28
|
+
password: Type.String({ minLength: 1, maxLength: 128 })
|
|
29
|
+
},
|
|
30
|
+
{ additionalProperties: false }
|
|
31
|
+
);
|
|
32
|
+
var AuthSessionSchema = Type.Object({
|
|
33
|
+
user: Type.Object({
|
|
34
|
+
id: Type.String({ format: "uuid" }),
|
|
35
|
+
email: Type.String(),
|
|
36
|
+
displayName: Type.String(),
|
|
37
|
+
locale: Type.String()
|
|
38
|
+
}),
|
|
39
|
+
workspace: Type.Object({
|
|
40
|
+
id: Type.String({ format: "uuid" }),
|
|
41
|
+
name: Type.String(),
|
|
42
|
+
role: Type.String()
|
|
43
|
+
}),
|
|
44
|
+
project: Type.Object({
|
|
45
|
+
id: Type.String({ format: "uuid" }),
|
|
46
|
+
name: Type.String()
|
|
47
|
+
}),
|
|
48
|
+
environment: Type.Object({
|
|
49
|
+
id: Type.String({ format: "uuid" }),
|
|
50
|
+
name: Type.String(),
|
|
51
|
+
type: Type.String()
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
function isAuthSessionResponse(value) {
|
|
55
|
+
return Value.Check(AuthSessionSchema, value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// src/common.ts
|
|
59
|
+
import { Type as Type2 } from "@sinclair/typebox";
|
|
60
|
+
var ApiErrorSchema = Type2.Object({
|
|
61
|
+
error: Type2.Object({
|
|
62
|
+
code: Type2.String(),
|
|
63
|
+
message: Type2.String(),
|
|
64
|
+
requestId: Type2.String()
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
function isApiError(value) {
|
|
68
|
+
return Value.Check(ApiErrorSchema, value);
|
|
69
|
+
}
|
|
70
|
+
var HealthResponseSchema = Type2.Object({
|
|
71
|
+
status: Type2.Literal("ok"),
|
|
72
|
+
service: Type2.String(),
|
|
73
|
+
version: Type2.String()
|
|
74
|
+
});
|
|
75
|
+
function isHealthResponse(value) {
|
|
76
|
+
return Value.Check(HealthResponseSchema, value);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// src/credits.ts
|
|
80
|
+
import { Type as Type3 } from "@sinclair/typebox";
|
|
81
|
+
var CreditAmountSchema = Type3.String({ pattern: "^[0-9]+$" });
|
|
82
|
+
var CreditBalanceSchema = Type3.Object({
|
|
83
|
+
accountId: Type3.String({ format: "uuid" }),
|
|
84
|
+
granted: CreditAmountSchema,
|
|
85
|
+
available: CreditAmountSchema,
|
|
86
|
+
reserved: CreditAmountSchema,
|
|
87
|
+
consumed: CreditAmountSchema,
|
|
88
|
+
expired: CreditAmountSchema
|
|
89
|
+
});
|
|
90
|
+
function isCreditBalanceResponse(value) {
|
|
91
|
+
return Value.Check(CreditBalanceSchema, value);
|
|
92
|
+
}
|
|
93
|
+
var GrantCreditsSchema = Type3.Object({
|
|
94
|
+
customerId: Type3.String({ minLength: 1, maxLength: 255 }),
|
|
95
|
+
amount: CreditAmountSchema,
|
|
96
|
+
idempotencyKey: Type3.String({ minLength: 1, maxLength: 255 }),
|
|
97
|
+
expiresAt: Type3.Optional(Type3.String({ format: "date-time" }))
|
|
98
|
+
});
|
|
99
|
+
var ReserveCreditsSchema = Type3.Object({
|
|
100
|
+
customerId: Type3.String({ minLength: 1, maxLength: 255 }),
|
|
101
|
+
amount: CreditAmountSchema,
|
|
102
|
+
idempotencyKey: Type3.String({ minLength: 1, maxLength: 255 }),
|
|
103
|
+
expiresAt: Type3.String({ format: "date-time" })
|
|
104
|
+
});
|
|
105
|
+
var ReservationResponseSchema = Type3.Object({
|
|
106
|
+
id: Type3.String({ format: "uuid" }),
|
|
107
|
+
accountId: Type3.String({ format: "uuid" }),
|
|
108
|
+
customerId: Type3.String({ format: "uuid" }),
|
|
109
|
+
amount: CreditAmountSchema,
|
|
110
|
+
committedAmount: Type3.Union([CreditAmountSchema, Type3.Null()]),
|
|
111
|
+
status: Type3.String(),
|
|
112
|
+
expiresAt: Type3.String({ format: "date-time" })
|
|
113
|
+
});
|
|
114
|
+
function isReservationResponse(value) {
|
|
115
|
+
return Value.Check(ReservationResponseSchema, value);
|
|
116
|
+
}
|
|
117
|
+
var CommitReservationSchema = Type3.Object({
|
|
118
|
+
amount: CreditAmountSchema
|
|
119
|
+
});
|
|
120
|
+
var RefundCreditsSchema = Type3.Object(
|
|
121
|
+
{
|
|
122
|
+
reservationId: Type3.String({ format: "uuid" }),
|
|
123
|
+
amount: CreditAmountSchema,
|
|
124
|
+
idempotencyKey: Type3.String({ minLength: 1, maxLength: 255 })
|
|
125
|
+
},
|
|
126
|
+
{ additionalProperties: false }
|
|
127
|
+
);
|
|
128
|
+
var CreditBalanceQuerySchema = Type3.Object({
|
|
129
|
+
customerId: Type3.String({ minLength: 1, maxLength: 255 })
|
|
130
|
+
});
|
|
131
|
+
var ReservationParamsSchema = Type3.Object({
|
|
132
|
+
reservationId: Type3.String({ format: "uuid" })
|
|
133
|
+
});
|
|
134
|
+
var CreditAccountRecordSchema = Type3.Object({
|
|
135
|
+
accountId: Type3.String({ format: "uuid" }),
|
|
136
|
+
customerId: Type3.String({ format: "uuid" }),
|
|
137
|
+
externalCustomerId: Type3.String(),
|
|
138
|
+
customerName: Type3.Union([Type3.String(), Type3.Null()]),
|
|
139
|
+
granted: CreditAmountSchema,
|
|
140
|
+
available: CreditAmountSchema,
|
|
141
|
+
reserved: CreditAmountSchema,
|
|
142
|
+
consumed: CreditAmountSchema,
|
|
143
|
+
expired: CreditAmountSchema
|
|
144
|
+
});
|
|
145
|
+
var CreditAccountListSchema = Type3.Object({
|
|
146
|
+
items: Type3.Array(CreditAccountRecordSchema)
|
|
147
|
+
});
|
|
148
|
+
var CreditLedgerRecordSchema = Type3.Object({
|
|
149
|
+
id: Type3.String({ format: "uuid" }),
|
|
150
|
+
accountId: Type3.String({ format: "uuid" }),
|
|
151
|
+
externalCustomerId: Type3.String(),
|
|
152
|
+
type: Type3.String(),
|
|
153
|
+
amount: Type3.String(),
|
|
154
|
+
balanceAfter: Type3.String(),
|
|
155
|
+
idempotencyKey: Type3.String(),
|
|
156
|
+
referenceType: Type3.Union([Type3.String(), Type3.Null()]),
|
|
157
|
+
referenceId: Type3.Union([Type3.String(), Type3.Null()]),
|
|
158
|
+
createdAt: Type3.String({ format: "date-time" })
|
|
159
|
+
});
|
|
160
|
+
var CreditLedgerListSchema = Type3.Object({ items: Type3.Array(CreditLedgerRecordSchema) });
|
|
161
|
+
function isCreditAccountList(value) {
|
|
162
|
+
return Value.Check(CreditAccountListSchema, value);
|
|
163
|
+
}
|
|
164
|
+
function isCreditLedgerList(value) {
|
|
165
|
+
return Value.Check(CreditLedgerListSchema, value);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// src/entitlements.ts
|
|
169
|
+
import { Type as Type4 } from "@sinclair/typebox";
|
|
170
|
+
var EntitlementTypeSchema = Type4.Union([
|
|
171
|
+
Type4.Literal("BOOLEAN"),
|
|
172
|
+
Type4.Literal("STATIC"),
|
|
173
|
+
Type4.Literal("METERED")
|
|
174
|
+
]);
|
|
175
|
+
var BillingPeriodSchema = Type4.Union([
|
|
176
|
+
Type4.Literal("ONE_TIME"),
|
|
177
|
+
Type4.Literal("MONTHLY"),
|
|
178
|
+
Type4.Literal("ANNUAL")
|
|
179
|
+
]);
|
|
180
|
+
var StaticValueSchema = Type4.Union([Type4.String(), Type4.Number(), Type4.Boolean()]);
|
|
181
|
+
var FeatureInputSchema = Type4.Object(
|
|
182
|
+
{
|
|
183
|
+
key: Type4.String({ minLength: 1, maxLength: 128, pattern: "^[a-z0-9][a-z0-9._-]*$" }),
|
|
184
|
+
name: Type4.String({ minLength: 1, maxLength: 120 }),
|
|
185
|
+
type: EntitlementTypeSchema,
|
|
186
|
+
meterId: Type4.Optional(Type4.String({ format: "uuid" }))
|
|
187
|
+
},
|
|
188
|
+
{ additionalProperties: false }
|
|
189
|
+
);
|
|
190
|
+
var FeatureRecordSchema = Type4.Object({
|
|
191
|
+
id: Type4.String({ format: "uuid" }),
|
|
192
|
+
key: Type4.String(),
|
|
193
|
+
name: Type4.String(),
|
|
194
|
+
type: EntitlementTypeSchema,
|
|
195
|
+
meterId: Type4.Union([Type4.String({ format: "uuid" }), Type4.Null()])
|
|
196
|
+
});
|
|
197
|
+
var FeatureListSchema = Type4.Object({ items: Type4.Array(FeatureRecordSchema) });
|
|
198
|
+
var PlanEntitlementInputSchema = Type4.Object(
|
|
199
|
+
{
|
|
200
|
+
featureId: Type4.String({ format: "uuid" }),
|
|
201
|
+
booleanValue: Type4.Optional(Type4.Boolean()),
|
|
202
|
+
staticValue: Type4.Optional(StaticValueSchema),
|
|
203
|
+
allowance: Type4.Optional(Type4.String({ pattern: "^[0-9]+(?:\\.[0-9]+)?$" })),
|
|
204
|
+
period: Type4.Optional(BillingPeriodSchema)
|
|
205
|
+
},
|
|
206
|
+
{ additionalProperties: false }
|
|
207
|
+
);
|
|
208
|
+
var PlanInputSchema = Type4.Object(
|
|
209
|
+
{
|
|
210
|
+
key: Type4.String({ minLength: 1, maxLength: 128, pattern: "^[a-z0-9][a-z0-9._-]*$" }),
|
|
211
|
+
name: Type4.String({ minLength: 1, maxLength: 120 }),
|
|
212
|
+
period: BillingPeriodSchema,
|
|
213
|
+
entitlements: Type4.Array(PlanEntitlementInputSchema, { minItems: 1, maxItems: 100 })
|
|
214
|
+
},
|
|
215
|
+
{ additionalProperties: false }
|
|
216
|
+
);
|
|
217
|
+
var PlanRecordSchema = Type4.Object({
|
|
218
|
+
id: Type4.String({ format: "uuid" }),
|
|
219
|
+
key: Type4.String(),
|
|
220
|
+
name: Type4.String(),
|
|
221
|
+
versionId: Type4.String({ format: "uuid" }),
|
|
222
|
+
version: Type4.Integer({ minimum: 1 }),
|
|
223
|
+
status: Type4.Union([Type4.Literal("DRAFT"), Type4.Literal("PUBLISHED"), Type4.Literal("ARCHIVED")]),
|
|
224
|
+
period: BillingPeriodSchema,
|
|
225
|
+
entitlementCount: Type4.Integer({ minimum: 0 })
|
|
226
|
+
});
|
|
227
|
+
var PlanListSchema = Type4.Object({ items: Type4.Array(PlanRecordSchema) });
|
|
228
|
+
var PlanVersionParamsSchema = Type4.Object({
|
|
229
|
+
planVersionId: Type4.String({ format: "uuid" })
|
|
230
|
+
});
|
|
231
|
+
var SubscriptionInputSchema = Type4.Object(
|
|
232
|
+
{
|
|
233
|
+
customerId: Type4.String({ minLength: 1, maxLength: 255 }),
|
|
234
|
+
planVersionId: Type4.String({ format: "uuid" }),
|
|
235
|
+
startsAt: Type4.Optional(Type4.String({ format: "date-time" })),
|
|
236
|
+
endsAt: Type4.Optional(Type4.String({ format: "date-time" }))
|
|
237
|
+
},
|
|
238
|
+
{ additionalProperties: false }
|
|
239
|
+
);
|
|
240
|
+
var SubscriptionRecordSchema = Type4.Object({
|
|
241
|
+
id: Type4.String({ format: "uuid" }),
|
|
242
|
+
customerId: Type4.String({ format: "uuid" }),
|
|
243
|
+
planVersionId: Type4.String({ format: "uuid" }),
|
|
244
|
+
status: Type4.Literal("ACTIVE"),
|
|
245
|
+
startsAt: Type4.String({ format: "date-time" }),
|
|
246
|
+
endsAt: Type4.Union([Type4.String({ format: "date-time" }), Type4.Null()])
|
|
247
|
+
});
|
|
248
|
+
var EntitlementOverrideInputSchema = Type4.Object(
|
|
249
|
+
{
|
|
250
|
+
customerId: Type4.String({ minLength: 1, maxLength: 255 }),
|
|
251
|
+
featureId: Type4.String({ format: "uuid" }),
|
|
252
|
+
booleanValue: Type4.Optional(Type4.Boolean()),
|
|
253
|
+
staticValue: Type4.Optional(StaticValueSchema),
|
|
254
|
+
allowance: Type4.Optional(Type4.String({ pattern: "^[0-9]+(?:\\.[0-9]+)?$" })),
|
|
255
|
+
period: Type4.Optional(BillingPeriodSchema),
|
|
256
|
+
startsAt: Type4.Optional(Type4.String({ format: "date-time" })),
|
|
257
|
+
endsAt: Type4.Optional(Type4.String({ format: "date-time" }))
|
|
258
|
+
},
|
|
259
|
+
{ additionalProperties: false }
|
|
260
|
+
);
|
|
261
|
+
var EntitlementOverrideRecordSchema = Type4.Object({
|
|
262
|
+
id: Type4.String({ format: "uuid" }),
|
|
263
|
+
customerId: Type4.String({ format: "uuid" }),
|
|
264
|
+
featureId: Type4.String({ format: "uuid" }),
|
|
265
|
+
startsAt: Type4.String({ format: "date-time" }),
|
|
266
|
+
endsAt: Type4.Union([Type4.String({ format: "date-time" }), Type4.Null()])
|
|
267
|
+
});
|
|
268
|
+
var EntitlementQuerySchema = Type4.Object({
|
|
269
|
+
customerId: Type4.String({ minLength: 1, maxLength: 255 }),
|
|
270
|
+
featureKey: Type4.String({ minLength: 1, maxLength: 128 })
|
|
271
|
+
});
|
|
272
|
+
var EntitlementResponseSchema = Type4.Object({
|
|
273
|
+
customerId: Type4.String({ format: "uuid" }),
|
|
274
|
+
featureKey: Type4.String(),
|
|
275
|
+
type: EntitlementTypeSchema,
|
|
276
|
+
source: Type4.Union([Type4.Literal("PLAN"), Type4.Literal("OVERRIDE"), Type4.Literal("NONE")]),
|
|
277
|
+
hasAccess: Type4.Boolean(),
|
|
278
|
+
booleanValue: Type4.Optional(Type4.Boolean()),
|
|
279
|
+
staticValue: Type4.Optional(StaticValueSchema),
|
|
280
|
+
allowance: Type4.Optional(Type4.String()),
|
|
281
|
+
usage: Type4.Optional(Type4.String()),
|
|
282
|
+
remaining: Type4.Optional(Type4.String()),
|
|
283
|
+
periodStart: Type4.Optional(Type4.String({ format: "date-time" })),
|
|
284
|
+
periodEnd: Type4.Optional(Type4.String({ format: "date-time" }))
|
|
285
|
+
});
|
|
286
|
+
function isFeatureList(value) {
|
|
287
|
+
return Value.Check(FeatureListSchema, value);
|
|
288
|
+
}
|
|
289
|
+
function isFeatureRecord(value) {
|
|
290
|
+
return Value.Check(FeatureRecordSchema, value);
|
|
291
|
+
}
|
|
292
|
+
function isPlanList(value) {
|
|
293
|
+
return Value.Check(PlanListSchema, value);
|
|
294
|
+
}
|
|
295
|
+
function isPlanRecord(value) {
|
|
296
|
+
return Value.Check(PlanRecordSchema, value);
|
|
297
|
+
}
|
|
298
|
+
function isSubscriptionRecord(value) {
|
|
299
|
+
return Value.Check(SubscriptionRecordSchema, value);
|
|
300
|
+
}
|
|
301
|
+
function isEntitlementResponse(value) {
|
|
302
|
+
return Value.Check(EntitlementResponseSchema, value);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// src/events.ts
|
|
306
|
+
import { Type as Type5 } from "@sinclair/typebox";
|
|
307
|
+
var EventValueSchema = Type5.Union([Type5.String(), Type5.Number(), Type5.Boolean()]);
|
|
308
|
+
var EventPropertiesSchema = Type5.Record(
|
|
309
|
+
Type5.String({ minLength: 1, maxLength: 64 }),
|
|
310
|
+
EventValueSchema
|
|
311
|
+
);
|
|
312
|
+
function isEventProperties(value) {
|
|
313
|
+
return Value.Check(EventPropertiesSchema, value);
|
|
314
|
+
}
|
|
315
|
+
var CloudEventInputSchema = Type5.Object({
|
|
316
|
+
specversion: Type5.Literal("1.0"),
|
|
317
|
+
id: Type5.String({ minLength: 1, maxLength: 255 }),
|
|
318
|
+
source: Type5.String({ minLength: 1, maxLength: 255 }),
|
|
319
|
+
type: Type5.String({ minLength: 1, maxLength: 128 }),
|
|
320
|
+
subject: Type5.String({ minLength: 1, maxLength: 255 }),
|
|
321
|
+
time: Type5.Optional(Type5.String({ format: "date-time" })),
|
|
322
|
+
data: Type5.Optional(EventPropertiesSchema)
|
|
323
|
+
});
|
|
324
|
+
var CloudEventIngestSchema = Type5.Union([
|
|
325
|
+
CloudEventInputSchema,
|
|
326
|
+
Type5.Array(CloudEventInputSchema, { minItems: 1, maxItems: 100 })
|
|
327
|
+
]);
|
|
328
|
+
var UsageEventInputSchema = Type5.Object(
|
|
329
|
+
{
|
|
330
|
+
idempotencyKey: Type5.String({ minLength: 1, maxLength: 255 }),
|
|
331
|
+
customerId: Type5.String({ minLength: 1, maxLength: 255 }),
|
|
332
|
+
event: Type5.String({ minLength: 1, maxLength: 128 }),
|
|
333
|
+
occurredAt: Type5.String({ format: "date-time" }),
|
|
334
|
+
value: Type5.Optional(Type5.Number({ minimum: 0 })),
|
|
335
|
+
properties: Type5.Optional(EventPropertiesSchema)
|
|
336
|
+
},
|
|
337
|
+
{ additionalProperties: false }
|
|
338
|
+
);
|
|
339
|
+
var UsageEventCorrectionInputSchema = Type5.Object(
|
|
340
|
+
{
|
|
341
|
+
idempotencyKey: Type5.String({ minLength: 1, maxLength: 255 }),
|
|
342
|
+
reason: Type5.Optional(Type5.String({ minLength: 1, maxLength: 500 }))
|
|
343
|
+
},
|
|
344
|
+
{ additionalProperties: false }
|
|
345
|
+
);
|
|
346
|
+
var UsageEventParamsSchema = Type5.Object({
|
|
347
|
+
eventId: Type5.String({ format: "uuid" })
|
|
348
|
+
});
|
|
349
|
+
var UsageEventAcceptedSchema = Type5.Object({
|
|
350
|
+
id: Type5.String({ format: "uuid" }),
|
|
351
|
+
duplicate: Type5.Boolean()
|
|
352
|
+
});
|
|
353
|
+
function isUsageEventAccepted(value) {
|
|
354
|
+
return Value.Check(UsageEventAcceptedSchema, value);
|
|
355
|
+
}
|
|
356
|
+
var UsageEventBatchInputSchema = Type5.Object({
|
|
357
|
+
events: Type5.Array(UsageEventInputSchema, { minItems: 1, maxItems: 100 })
|
|
358
|
+
});
|
|
359
|
+
var UsageEventBatchAcceptedSchema = Type5.Object({
|
|
360
|
+
items: Type5.Array(UsageEventAcceptedSchema)
|
|
361
|
+
});
|
|
362
|
+
function isUsageEventBatchAccepted(value) {
|
|
363
|
+
return Value.Check(UsageEventBatchAcceptedSchema, value);
|
|
364
|
+
}
|
|
365
|
+
var UsageEventQuerySchema = Type5.Object({
|
|
366
|
+
customerId: Type5.Optional(Type5.String({ minLength: 1, maxLength: 255 })),
|
|
367
|
+
event: Type5.Optional(Type5.String({ minLength: 1, maxLength: 128 })),
|
|
368
|
+
from: Type5.Optional(Type5.String({ format: "date-time" })),
|
|
369
|
+
to: Type5.Optional(Type5.String({ format: "date-time" })),
|
|
370
|
+
limit: Type5.Optional(Type5.Integer({ minimum: 1, maximum: 100 })),
|
|
371
|
+
cursor: Type5.Optional(Type5.String({ format: "uuid" }))
|
|
372
|
+
});
|
|
373
|
+
var UsageEventRecordSchema = Type5.Object({
|
|
374
|
+
id: Type5.String({ format: "uuid" }),
|
|
375
|
+
idempotencyKey: Type5.String(),
|
|
376
|
+
customerId: Type5.String(),
|
|
377
|
+
event: Type5.String(),
|
|
378
|
+
occurredAt: Type5.String({ format: "date-time" }),
|
|
379
|
+
ingestedAt: Type5.String({ format: "date-time" }),
|
|
380
|
+
value: Type5.String(),
|
|
381
|
+
properties: Type5.Record(Type5.String(), EventValueSchema),
|
|
382
|
+
status: Type5.String(),
|
|
383
|
+
correctionOfId: Type5.Union([Type5.String({ format: "uuid" }), Type5.Null()]),
|
|
384
|
+
estimatedCostMinor: Type5.Union([Type5.String(), Type5.Null()]),
|
|
385
|
+
costCurrency: Type5.Union([Type5.String(), Type5.Null()])
|
|
386
|
+
});
|
|
387
|
+
var UsageEventListSchema = Type5.Object({
|
|
388
|
+
items: Type5.Array(UsageEventRecordSchema),
|
|
389
|
+
nextCursor: Type5.Union([Type5.String({ format: "uuid" }), Type5.Null()])
|
|
390
|
+
});
|
|
391
|
+
function isUsageEventList(value) {
|
|
392
|
+
return Value.Check(UsageEventListSchema, value);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
// src/management.ts
|
|
396
|
+
import { Type as Type6 } from "@sinclair/typebox";
|
|
397
|
+
var CustomerInputSchema = Type6.Object(
|
|
398
|
+
{
|
|
399
|
+
externalId: Type6.String({ minLength: 1, maxLength: 255 }),
|
|
400
|
+
name: Type6.Optional(Type6.String({ minLength: 1, maxLength: 255 })),
|
|
401
|
+
email: Type6.Optional(Type6.String({ format: "email", maxLength: 320 }))
|
|
402
|
+
},
|
|
403
|
+
{ additionalProperties: false }
|
|
404
|
+
);
|
|
405
|
+
var CustomerRecordSchema = Type6.Object({
|
|
406
|
+
id: Type6.String({ format: "uuid" }),
|
|
407
|
+
externalId: Type6.String(),
|
|
408
|
+
name: Type6.Union([Type6.String(), Type6.Null()]),
|
|
409
|
+
email: Type6.Union([Type6.String(), Type6.Null()]),
|
|
410
|
+
createdAt: Type6.String({ format: "date-time" })
|
|
411
|
+
});
|
|
412
|
+
var CustomerListSchema = Type6.Object({ items: Type6.Array(CustomerRecordSchema) });
|
|
413
|
+
function isCustomerList(value) {
|
|
414
|
+
return Value.Check(CustomerListSchema, value);
|
|
415
|
+
}
|
|
416
|
+
var MeterInputSchema = Type6.Object(
|
|
417
|
+
{
|
|
418
|
+
key: Type6.String({ minLength: 1, maxLength: 128, pattern: "^[a-z0-9][a-z0-9._-]*$" }),
|
|
419
|
+
name: Type6.String({ minLength: 1, maxLength: 120 }),
|
|
420
|
+
event: Type6.String({ minLength: 1, maxLength: 128 }),
|
|
421
|
+
aggregation: Type6.Union([Type6.Literal("COUNT"), Type6.Literal("SUM")]),
|
|
422
|
+
valueProperty: Type6.Optional(
|
|
423
|
+
Type6.String({ minLength: 3, maxLength: 128, pattern: "^\\$\\.[A-Za-z0-9_-]+$" })
|
|
424
|
+
),
|
|
425
|
+
dimensionKeys: Type6.Optional(
|
|
426
|
+
Type6.Array(Type6.String({ minLength: 1, maxLength: 64 }), { maxItems: 10, uniqueItems: true })
|
|
427
|
+
)
|
|
428
|
+
},
|
|
429
|
+
{ additionalProperties: false }
|
|
430
|
+
);
|
|
431
|
+
var MeterRecordSchema = Type6.Object({
|
|
432
|
+
id: Type6.String({ format: "uuid" }),
|
|
433
|
+
key: Type6.String(),
|
|
434
|
+
name: Type6.String(),
|
|
435
|
+
event: Type6.String(),
|
|
436
|
+
aggregation: Type6.String(),
|
|
437
|
+
valueProperty: Type6.Union([Type6.String(), Type6.Null()]),
|
|
438
|
+
dimensionKeys: Type6.Array(Type6.String())
|
|
439
|
+
});
|
|
440
|
+
var MeterListSchema = Type6.Object({ items: Type6.Array(MeterRecordSchema) });
|
|
441
|
+
function isMeterList(value) {
|
|
442
|
+
return Value.Check(MeterListSchema, value);
|
|
443
|
+
}
|
|
444
|
+
var ApiKeyInputSchema = Type6.Object({
|
|
445
|
+
name: Type6.String({ minLength: 1, maxLength: 120 }),
|
|
446
|
+
expiresAt: Type6.Optional(Type6.String({ format: "date-time" }))
|
|
447
|
+
});
|
|
448
|
+
var ApiKeyCreatedSchema = Type6.Object({
|
|
449
|
+
id: Type6.String({ format: "uuid" }),
|
|
450
|
+
name: Type6.String(),
|
|
451
|
+
prefix: Type6.String(),
|
|
452
|
+
token: Type6.String()
|
|
453
|
+
});
|
|
454
|
+
function isApiKeyCreatedResponse(value) {
|
|
455
|
+
return Value.Check(ApiKeyCreatedSchema, value);
|
|
456
|
+
}
|
|
457
|
+
var ApiKeyRecordSchema = Type6.Object({
|
|
458
|
+
id: Type6.String({ format: "uuid" }),
|
|
459
|
+
name: Type6.String(),
|
|
460
|
+
prefix: Type6.String(),
|
|
461
|
+
lastUsedAt: Type6.Union([Type6.String({ format: "date-time" }), Type6.Null()]),
|
|
462
|
+
expiresAt: Type6.Union([Type6.String({ format: "date-time" }), Type6.Null()]),
|
|
463
|
+
revokedAt: Type6.Union([Type6.String({ format: "date-time" }), Type6.Null()]),
|
|
464
|
+
createdAt: Type6.String({ format: "date-time" })
|
|
465
|
+
});
|
|
466
|
+
var ApiKeyListSchema = Type6.Object({ items: Type6.Array(ApiKeyRecordSchema) });
|
|
467
|
+
var ApiKeyParamsSchema = Type6.Object({ apiKeyId: Type6.String({ format: "uuid" }) });
|
|
468
|
+
function isApiKeyList(value) {
|
|
469
|
+
return Value.Check(ApiKeyListSchema, value);
|
|
470
|
+
}
|
|
471
|
+
var OverviewSchema = Type6.Object({
|
|
472
|
+
customers: Type6.Integer({ minimum: 0 }),
|
|
473
|
+
eventsToday: Type6.Integer({ minimum: 0 }),
|
|
474
|
+
credits: Type6.Object({
|
|
475
|
+
available: Type6.String({ pattern: "^[0-9]+$" }),
|
|
476
|
+
consumed: Type6.String({ pattern: "^[0-9]+$" }),
|
|
477
|
+
reserved: Type6.String({ pattern: "^[0-9]+$" }),
|
|
478
|
+
total: Type6.String({ pattern: "^[0-9]+$" }),
|
|
479
|
+
utilizationRate: Type6.Union([Type6.Number({ minimum: 0, maximum: 100 }), Type6.Null()])
|
|
480
|
+
}),
|
|
481
|
+
setup: Type6.Object({
|
|
482
|
+
apiKey: Type6.Boolean(),
|
|
483
|
+
credits: Type6.Boolean(),
|
|
484
|
+
customer: Type6.Boolean(),
|
|
485
|
+
feature: Type6.Boolean()
|
|
486
|
+
}),
|
|
487
|
+
webhookSuccessRate: Type6.Union([Type6.Number({ minimum: 0, maximum: 100 }), Type6.Null()])
|
|
488
|
+
});
|
|
489
|
+
var AuditLogRecordSchema = Type6.Object({
|
|
490
|
+
id: Type6.String({ format: "uuid" }),
|
|
491
|
+
action: Type6.String(),
|
|
492
|
+
resourceType: Type6.String(),
|
|
493
|
+
resourceId: Type6.Union([Type6.String(), Type6.Null()]),
|
|
494
|
+
createdAt: Type6.String({ format: "date-time" })
|
|
495
|
+
});
|
|
496
|
+
var AuditLogListSchema = Type6.Object({ items: Type6.Array(AuditLogRecordSchema) });
|
|
497
|
+
function isAuditLogList(value) {
|
|
498
|
+
return Value.Check(AuditLogListSchema, value);
|
|
499
|
+
}
|
|
500
|
+
function isOverviewResponse(value) {
|
|
501
|
+
return Value.Check(OverviewSchema, value);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// src/metering.ts
|
|
505
|
+
import { Type as Type7 } from "@sinclair/typebox";
|
|
506
|
+
var MeterQueryParamsSchema = Type7.Object({
|
|
507
|
+
meterKey: Type7.String({ minLength: 1, maxLength: 128 })
|
|
508
|
+
});
|
|
509
|
+
var MeterQuerySchema = Type7.Object(
|
|
510
|
+
{
|
|
511
|
+
customerId: Type7.String({ minLength: 1, maxLength: 255 }),
|
|
512
|
+
from: Type7.Optional(Type7.String({ format: "date-time" })),
|
|
513
|
+
to: Type7.Optional(Type7.String({ format: "date-time" })),
|
|
514
|
+
limit: Type7.Optional(Type7.Integer({ minimum: 1, maximum: 5e3 }))
|
|
515
|
+
},
|
|
516
|
+
{ additionalProperties: false }
|
|
517
|
+
);
|
|
518
|
+
var MeterQueryDataPointSchema = Type7.Object({
|
|
519
|
+
windowStart: Type7.String({ format: "date-time" }),
|
|
520
|
+
windowEnd: Type7.String({ format: "date-time" }),
|
|
521
|
+
value: Type7.String(),
|
|
522
|
+
eventCount: Type7.String({ pattern: "^[0-9]+$" }),
|
|
523
|
+
dimensions: EventPropertiesSchema
|
|
524
|
+
});
|
|
525
|
+
var MeterQueryResponseSchema = Type7.Object({
|
|
526
|
+
meter: Type7.Object({
|
|
527
|
+
key: Type7.String(),
|
|
528
|
+
name: Type7.String(),
|
|
529
|
+
aggregation: Type7.Union([Type7.Literal("COUNT"), Type7.Literal("SUM")])
|
|
530
|
+
}),
|
|
531
|
+
customerId: Type7.String(),
|
|
532
|
+
from: Type7.Union([Type7.String({ format: "date-time" }), Type7.Null()]),
|
|
533
|
+
to: Type7.Union([Type7.String({ format: "date-time" }), Type7.Null()]),
|
|
534
|
+
value: Type7.String(),
|
|
535
|
+
eventCount: Type7.String({ pattern: "^[0-9]+$" }),
|
|
536
|
+
data: Type7.Array(MeterQueryDataPointSchema)
|
|
537
|
+
});
|
|
538
|
+
function isMeterQueryResponse(value) {
|
|
539
|
+
return Value.Check(MeterQueryResponseSchema, value);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// src/notifications.ts
|
|
543
|
+
import { Type as Type8 } from "@sinclair/typebox";
|
|
544
|
+
var AlertRuleInputSchema = Type8.Object(
|
|
545
|
+
{
|
|
546
|
+
name: Type8.String({ minLength: 1, maxLength: 120 }),
|
|
547
|
+
metric: Type8.Literal("METER_USAGE"),
|
|
548
|
+
operator: Type8.Union([
|
|
549
|
+
Type8.Literal("GREATER_THAN"),
|
|
550
|
+
Type8.Literal("GREATER_THAN_OR_EQUAL"),
|
|
551
|
+
Type8.Literal("LESS_THAN"),
|
|
552
|
+
Type8.Literal("LESS_THAN_OR_EQUAL")
|
|
553
|
+
]),
|
|
554
|
+
threshold: Type8.String({ pattern: "^[0-9]+(?:\\.[0-9]+)?$" }),
|
|
555
|
+
meterId: Type8.Optional(Type8.String({ format: "uuid" }))
|
|
556
|
+
},
|
|
557
|
+
{ additionalProperties: false }
|
|
558
|
+
);
|
|
559
|
+
var AlertRuleRecordSchema = Type8.Object({
|
|
560
|
+
id: Type8.String({ format: "uuid" }),
|
|
561
|
+
name: Type8.String(),
|
|
562
|
+
metric: Type8.String(),
|
|
563
|
+
operator: Type8.String(),
|
|
564
|
+
threshold: Type8.String(),
|
|
565
|
+
meterId: Type8.Union([Type8.String({ format: "uuid" }), Type8.Null()]),
|
|
566
|
+
enabled: Type8.Boolean()
|
|
567
|
+
});
|
|
568
|
+
var AlertRuleListSchema = Type8.Object({ items: Type8.Array(AlertRuleRecordSchema) });
|
|
569
|
+
var WebhookEndpointInputSchema = Type8.Object(
|
|
570
|
+
{
|
|
571
|
+
name: Type8.String({ minLength: 1, maxLength: 120 }),
|
|
572
|
+
url: Type8.String({ format: "uri", maxLength: 2048 }),
|
|
573
|
+
secret: Type8.String({ minLength: 16, maxLength: 255 }),
|
|
574
|
+
eventTypes: Type8.Array(Type8.String({ minLength: 1, maxLength: 128 }), {
|
|
575
|
+
minItems: 1,
|
|
576
|
+
maxItems: 20,
|
|
577
|
+
uniqueItems: true
|
|
578
|
+
})
|
|
579
|
+
},
|
|
580
|
+
{ additionalProperties: false }
|
|
581
|
+
);
|
|
582
|
+
var WebhookEndpointRecordSchema = Type8.Object({
|
|
583
|
+
id: Type8.String({ format: "uuid" }),
|
|
584
|
+
name: Type8.String(),
|
|
585
|
+
url: Type8.String(),
|
|
586
|
+
eventTypes: Type8.Array(Type8.String()),
|
|
587
|
+
enabled: Type8.Boolean(),
|
|
588
|
+
createdAt: Type8.String({ format: "date-time" })
|
|
589
|
+
});
|
|
590
|
+
var WebhookEndpointListSchema = Type8.Object({
|
|
591
|
+
items: Type8.Array(WebhookEndpointRecordSchema)
|
|
592
|
+
});
|
|
593
|
+
var WebhookDeliveryRecordSchema = Type8.Object({
|
|
594
|
+
id: Type8.String({ format: "uuid" }),
|
|
595
|
+
endpointName: Type8.String(),
|
|
596
|
+
eventType: Type8.String(),
|
|
597
|
+
status: Type8.Union([
|
|
598
|
+
Type8.Literal("PENDING"),
|
|
599
|
+
Type8.Literal("SUCCEEDED"),
|
|
600
|
+
Type8.Literal("FAILED"),
|
|
601
|
+
Type8.Literal("DEAD_LETTER")
|
|
602
|
+
]),
|
|
603
|
+
attemptCount: Type8.Integer({ minimum: 0 }),
|
|
604
|
+
lastStatusCode: Type8.Union([Type8.Integer(), Type8.Null()]),
|
|
605
|
+
lastError: Type8.Union([Type8.String(), Type8.Null()]),
|
|
606
|
+
createdAt: Type8.String({ format: "date-time" })
|
|
607
|
+
});
|
|
608
|
+
var WebhookDeliveryListSchema = Type8.Object({
|
|
609
|
+
items: Type8.Array(WebhookDeliveryRecordSchema)
|
|
610
|
+
});
|
|
611
|
+
var DeliveryParamsSchema = Type8.Object({
|
|
612
|
+
deliveryId: Type8.String({ format: "uuid" })
|
|
613
|
+
});
|
|
614
|
+
function isWebhookEndpointList(value) {
|
|
615
|
+
return Value.Check(WebhookEndpointListSchema, value);
|
|
616
|
+
}
|
|
617
|
+
function isWebhookEndpointRecord(value) {
|
|
618
|
+
return Value.Check(WebhookEndpointRecordSchema, value);
|
|
619
|
+
}
|
|
620
|
+
function isWebhookDeliveryList(value) {
|
|
621
|
+
return Value.Check(WebhookDeliveryListSchema, value);
|
|
622
|
+
}
|
|
623
|
+
function isAlertRuleList(value) {
|
|
624
|
+
return Value.Check(AlertRuleListSchema, value);
|
|
625
|
+
}
|
|
626
|
+
function isAlertRuleRecord(value) {
|
|
627
|
+
return Value.Check(AlertRuleRecordSchema, value);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// src/pricing.ts
|
|
631
|
+
import { Type as Type9 } from "@sinclair/typebox";
|
|
632
|
+
var PriceUnitSchema = Type9.Union([
|
|
633
|
+
Type9.Literal("INPUT_TOKEN"),
|
|
634
|
+
Type9.Literal("OUTPUT_TOKEN"),
|
|
635
|
+
Type9.Literal("CACHED_INPUT_TOKEN"),
|
|
636
|
+
Type9.Literal("CACHED_OUTPUT_TOKEN"),
|
|
637
|
+
Type9.Literal("REASONING_TOKEN"),
|
|
638
|
+
Type9.Literal("REQUEST"),
|
|
639
|
+
Type9.Literal("TOOL_CALL"),
|
|
640
|
+
Type9.Literal("RAG_QUERY"),
|
|
641
|
+
Type9.Literal("SECOND"),
|
|
642
|
+
Type9.Literal("AUDIO_SECOND"),
|
|
643
|
+
Type9.Literal("VIDEO_SECOND"),
|
|
644
|
+
Type9.Literal("IMAGE"),
|
|
645
|
+
Type9.Literal("CUSTOM")
|
|
646
|
+
]);
|
|
647
|
+
var ModelPriceItemInputSchema = Type9.Object(
|
|
648
|
+
{
|
|
649
|
+
unit: PriceUnitSchema,
|
|
650
|
+
unitSize: Type9.String({ pattern: "^[1-9][0-9]*$" }),
|
|
651
|
+
priceMinor: Type9.String({ pattern: "^[0-9]+$" })
|
|
652
|
+
},
|
|
653
|
+
{ additionalProperties: false }
|
|
654
|
+
);
|
|
655
|
+
var ModelPriceInputSchema = Type9.Object(
|
|
656
|
+
{
|
|
657
|
+
providerKey: Type9.String({ minLength: 1, maxLength: 64, pattern: "^[a-z0-9][a-z0-9._-]*$" }),
|
|
658
|
+
providerName: Type9.String({ minLength: 1, maxLength: 120 }),
|
|
659
|
+
modelKey: Type9.String({ minLength: 1, maxLength: 128 }),
|
|
660
|
+
modelName: Type9.String({ minLength: 1, maxLength: 160 }),
|
|
661
|
+
currency: Type9.String({ pattern: "^[A-Z]{3}$" }),
|
|
662
|
+
validFrom: Type9.String({ format: "date-time" }),
|
|
663
|
+
items: Type9.Array(ModelPriceItemInputSchema, { minItems: 1, maxItems: 20 })
|
|
664
|
+
},
|
|
665
|
+
{ additionalProperties: false }
|
|
666
|
+
);
|
|
667
|
+
var ModelPriceRecordSchema = Type9.Object({
|
|
668
|
+
id: Type9.String({ format: "uuid" }),
|
|
669
|
+
providerKey: Type9.String(),
|
|
670
|
+
providerName: Type9.String(),
|
|
671
|
+
modelKey: Type9.String(),
|
|
672
|
+
modelName: Type9.String(),
|
|
673
|
+
version: Type9.Integer({ minimum: 1 }),
|
|
674
|
+
currency: Type9.String(),
|
|
675
|
+
validFrom: Type9.String({ format: "date-time" }),
|
|
676
|
+
validTo: Type9.Union([Type9.String({ format: "date-time" }), Type9.Null()]),
|
|
677
|
+
items: Type9.Array(ModelPriceItemInputSchema)
|
|
678
|
+
});
|
|
679
|
+
var ModelPriceListSchema = Type9.Object({ items: Type9.Array(ModelPriceRecordSchema) });
|
|
680
|
+
function isModelPriceList(value) {
|
|
681
|
+
return Value.Check(ModelPriceListSchema, value);
|
|
682
|
+
}
|
|
683
|
+
function isModelPriceRecord(value) {
|
|
684
|
+
return Value.Check(ModelPriceRecordSchema, value);
|
|
685
|
+
}
|
|
686
|
+
export {
|
|
687
|
+
AlertRuleInputSchema,
|
|
688
|
+
AlertRuleListSchema,
|
|
689
|
+
AlertRuleRecordSchema,
|
|
690
|
+
ApiErrorSchema,
|
|
691
|
+
ApiKeyCreatedSchema,
|
|
692
|
+
ApiKeyInputSchema,
|
|
693
|
+
ApiKeyListSchema,
|
|
694
|
+
ApiKeyParamsSchema,
|
|
695
|
+
ApiKeyRecordSchema,
|
|
696
|
+
AuditLogListSchema,
|
|
697
|
+
AuditLogRecordSchema,
|
|
698
|
+
AuthSessionSchema,
|
|
699
|
+
CloudEventIngestSchema,
|
|
700
|
+
CloudEventInputSchema,
|
|
701
|
+
CommitReservationSchema,
|
|
702
|
+
CreditAccountListSchema,
|
|
703
|
+
CreditAccountRecordSchema,
|
|
704
|
+
CreditBalanceQuerySchema,
|
|
705
|
+
CreditBalanceSchema,
|
|
706
|
+
CreditLedgerListSchema,
|
|
707
|
+
CreditLedgerRecordSchema,
|
|
708
|
+
CustomerInputSchema,
|
|
709
|
+
CustomerListSchema,
|
|
710
|
+
CustomerRecordSchema,
|
|
711
|
+
DeliveryParamsSchema,
|
|
712
|
+
EntitlementOverrideInputSchema,
|
|
713
|
+
EntitlementOverrideRecordSchema,
|
|
714
|
+
EntitlementQuerySchema,
|
|
715
|
+
EntitlementResponseSchema,
|
|
716
|
+
EventPropertiesSchema,
|
|
717
|
+
FeatureInputSchema,
|
|
718
|
+
FeatureListSchema,
|
|
719
|
+
FeatureRecordSchema,
|
|
720
|
+
GrantCreditsSchema,
|
|
721
|
+
HealthResponseSchema,
|
|
722
|
+
LoginSchema,
|
|
723
|
+
MeterInputSchema,
|
|
724
|
+
MeterListSchema,
|
|
725
|
+
MeterQueryDataPointSchema,
|
|
726
|
+
MeterQueryParamsSchema,
|
|
727
|
+
MeterQueryResponseSchema,
|
|
728
|
+
MeterQuerySchema,
|
|
729
|
+
MeterRecordSchema,
|
|
730
|
+
ModelPriceInputSchema,
|
|
731
|
+
ModelPriceItemInputSchema,
|
|
732
|
+
ModelPriceListSchema,
|
|
733
|
+
ModelPriceRecordSchema,
|
|
734
|
+
OverviewSchema,
|
|
735
|
+
PlanEntitlementInputSchema,
|
|
736
|
+
PlanInputSchema,
|
|
737
|
+
PlanListSchema,
|
|
738
|
+
PlanRecordSchema,
|
|
739
|
+
PlanVersionParamsSchema,
|
|
740
|
+
PriceUnitSchema,
|
|
741
|
+
RefundCreditsSchema,
|
|
742
|
+
RegisterSchema,
|
|
743
|
+
ReservationParamsSchema,
|
|
744
|
+
ReservationResponseSchema,
|
|
745
|
+
ReserveCreditsSchema,
|
|
746
|
+
SubscriptionInputSchema,
|
|
747
|
+
SubscriptionRecordSchema,
|
|
748
|
+
UsageEventAcceptedSchema,
|
|
749
|
+
UsageEventBatchAcceptedSchema,
|
|
750
|
+
UsageEventBatchInputSchema,
|
|
751
|
+
UsageEventCorrectionInputSchema,
|
|
752
|
+
UsageEventInputSchema,
|
|
753
|
+
UsageEventListSchema,
|
|
754
|
+
UsageEventParamsSchema,
|
|
755
|
+
UsageEventQuerySchema,
|
|
756
|
+
UsageEventRecordSchema,
|
|
757
|
+
WebhookDeliveryListSchema,
|
|
758
|
+
WebhookDeliveryRecordSchema,
|
|
759
|
+
WebhookEndpointInputSchema,
|
|
760
|
+
WebhookEndpointListSchema,
|
|
761
|
+
WebhookEndpointRecordSchema,
|
|
762
|
+
isAlertRuleList,
|
|
763
|
+
isAlertRuleRecord,
|
|
764
|
+
isApiError,
|
|
765
|
+
isApiKeyCreatedResponse,
|
|
766
|
+
isApiKeyList,
|
|
767
|
+
isAuditLogList,
|
|
768
|
+
isAuthSessionResponse,
|
|
769
|
+
isCreditAccountList,
|
|
770
|
+
isCreditBalanceResponse,
|
|
771
|
+
isCreditLedgerList,
|
|
772
|
+
isCustomerList,
|
|
773
|
+
isEntitlementResponse,
|
|
774
|
+
isEventProperties,
|
|
775
|
+
isFeatureList,
|
|
776
|
+
isFeatureRecord,
|
|
777
|
+
isHealthResponse,
|
|
778
|
+
isMeterList,
|
|
779
|
+
isMeterQueryResponse,
|
|
780
|
+
isModelPriceList,
|
|
781
|
+
isModelPriceRecord,
|
|
782
|
+
isOverviewResponse,
|
|
783
|
+
isPlanList,
|
|
784
|
+
isPlanRecord,
|
|
785
|
+
isReservationResponse,
|
|
786
|
+
isSubscriptionRecord,
|
|
787
|
+
isUsageEventAccepted,
|
|
788
|
+
isUsageEventBatchAccepted,
|
|
789
|
+
isUsageEventList,
|
|
790
|
+
isWebhookDeliveryList,
|
|
791
|
+
isWebhookEndpointList,
|
|
792
|
+
isWebhookEndpointRecord
|
|
793
|
+
};
|