@intlayer/backend-contract 9.7.2 → 9.8.0-canary.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.
- package/dist/cjs/analytics.cjs +59 -0
- package/dist/cjs/analytics.cjs.map +1 -1
- package/dist/cjs/analyticsReport.cjs +301 -0
- package/dist/cjs/analyticsReport.cjs.map +1 -0
- package/dist/cjs/project.cjs.map +1 -1
- package/dist/esm/analytics.mjs +35 -1
- package/dist/esm/analytics.mjs.map +1 -1
- package/dist/esm/analyticsReport.mjs +276 -0
- package/dist/esm/analyticsReport.mjs.map +1 -0
- package/dist/esm/project.mjs.map +1 -1
- package/dist/types/analytics.d.ts +284 -1
- package/dist/types/analytics.d.ts.map +1 -1
- package/dist/types/analyticsReport.d.ts +294 -0
- package/dist/types/analyticsReport.d.ts.map +1 -0
- package/dist/types/project.d.ts +5 -0
- package/dist/types/project.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
/**
|
|
3
|
+
* Report dimensions. Time dimensions are labelled `YYYY-MM-DD` (`date`),
|
|
4
|
+
* `YYYY-Www` (`week`, ISO week) and `YYYY-MM` (`month`), all in UTC.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ANALYTICS_REPORT_DIMENSIONS: readonly ['date', 'week', 'month', 'locale', 'pagePath', 'country', 'dictionaryKey', 'keyPath', 'contentType', 'variant', 'experimentKey', 'goal'];
|
|
7
|
+
export declare const ANALYTICS_REPORT_METRICS: readonly ['pageViews', 'activeUsers', 'entrances', 'contentExposures', 'conversions', 'conversionValue'];
|
|
8
|
+
export type AnalyticsReportDimension = (typeof ANALYTICS_REPORT_DIMENSIONS)[number];
|
|
9
|
+
export type AnalyticsReportMetric = (typeof ANALYTICS_REPORT_METRICS)[number];
|
|
10
|
+
/** Dimensions that bucket time; they cannot be used in dimension filters. */
|
|
11
|
+
export declare const ANALYTICS_TIME_DIMENSIONS: readonly ["date", "week", "month"];
|
|
12
|
+
/**
|
|
13
|
+
* Dimensions each metric can be broken down by. The data is stored
|
|
14
|
+
* pre-aggregated per event type, so a dimension a metric was not recorded with
|
|
15
|
+
* cannot be applied to it (ex: visitors are not attributed per page).
|
|
16
|
+
*/
|
|
17
|
+
export declare const ANALYTICS_METRIC_DIMENSIONS: {
|
|
18
|
+
readonly pageViews: readonly ["date", "week", "month", "locale", "pagePath"];
|
|
19
|
+
readonly activeUsers: readonly ["date", "week", "month", "locale", "country"];
|
|
20
|
+
readonly entrances: readonly ["date", "week", "month", "pagePath"];
|
|
21
|
+
readonly contentExposures: readonly ["date", "week", "month", "locale", "dictionaryKey", "keyPath", "contentType", "variant", "experimentKey"];
|
|
22
|
+
readonly conversions: readonly ["date", "week", "month", "locale", "variant", "experimentKey", "goal"];
|
|
23
|
+
readonly conversionValue: readonly ["date", "week", "month", "locale", "variant", "experimentKey", "goal"];
|
|
24
|
+
};
|
|
25
|
+
export declare const ANALYTICS_DIMENSION_DESCRIPTIONS: Record<AnalyticsReportDimension, string>;
|
|
26
|
+
export declare const ANALYTICS_METRIC_DESCRIPTIONS: Record<AnalyticsReportMetric, string>;
|
|
27
|
+
export declare const ANALYTICS_REALTIME_DIMENSIONS: readonly ['minute', 'pagePath', 'locale', 'country'];
|
|
28
|
+
export declare const ANALYTICS_REALTIME_METRICS: readonly ['activeUsers', 'pageViews'];
|
|
29
|
+
export type AnalyticsRealtimeDimension = (typeof ANALYTICS_REALTIME_DIMENSIONS)[number];
|
|
30
|
+
export type AnalyticsRealtimeMetric = (typeof ANALYTICS_REALTIME_METRICS)[number];
|
|
31
|
+
/** Retention of the realtime activity, in minutes. */
|
|
32
|
+
export declare const ANALYTICS_REALTIME_MAX_MINUTES = 60;
|
|
33
|
+
/** Retention of the distinct visitor markers behind `activeUsers`, in days. */
|
|
34
|
+
export declare const ANALYTICS_ACTIVE_USERS_RETENTION_DAYS = 400;
|
|
35
|
+
/** Default and maximum number of rows a report returns. */
|
|
36
|
+
export declare const ANALYTICS_REPORT_DEFAULT_LIMIT = 100;
|
|
37
|
+
export declare const ANALYTICS_REPORT_MAX_LIMIT = 10000;
|
|
38
|
+
/** Maximum date ranges compared in one report. */
|
|
39
|
+
export declare const ANALYTICS_REPORT_MAX_DATE_RANGES = 4;
|
|
40
|
+
export declare const analyticsDateRangeSchema: z.ZodMiniObject<{
|
|
41
|
+
startDate: z.ZodMiniString<string>;
|
|
42
|
+
endDate: z.ZodMiniString<string>;
|
|
43
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const analyticsDimensionFilterSchema: z.ZodMiniObject<{
|
|
46
|
+
dimension: z.ZodMiniEnum<{
|
|
47
|
+
contentType: "contentType";
|
|
48
|
+
country: "country";
|
|
49
|
+
date: "date";
|
|
50
|
+
dictionaryKey: "dictionaryKey";
|
|
51
|
+
experimentKey: "experimentKey";
|
|
52
|
+
goal: "goal";
|
|
53
|
+
keyPath: "keyPath";
|
|
54
|
+
locale: "locale";
|
|
55
|
+
month: "month";
|
|
56
|
+
pagePath: "pagePath";
|
|
57
|
+
variant: "variant";
|
|
58
|
+
week: "week";
|
|
59
|
+
}>;
|
|
60
|
+
operator: z.ZodMiniEnum<{
|
|
61
|
+
beginsWith: "beginsWith";
|
|
62
|
+
contains: "contains";
|
|
63
|
+
endsWith: "endsWith";
|
|
64
|
+
exact: "exact";
|
|
65
|
+
inList: "inList";
|
|
66
|
+
}>;
|
|
67
|
+
value: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
68
|
+
values: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
69
|
+
caseSensitive: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
70
|
+
not: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export declare const analyticsMetricFilterSchema: z.ZodMiniObject<{
|
|
73
|
+
metric: z.ZodMiniEnum<{
|
|
74
|
+
activeUsers: "activeUsers";
|
|
75
|
+
contentExposures: "contentExposures";
|
|
76
|
+
conversionValue: "conversionValue";
|
|
77
|
+
conversions: "conversions";
|
|
78
|
+
entrances: "entrances";
|
|
79
|
+
pageViews: "pageViews";
|
|
80
|
+
}>;
|
|
81
|
+
operator: z.ZodMiniEnum<{
|
|
82
|
+
between: "between";
|
|
83
|
+
equal: "equal";
|
|
84
|
+
greaterThan: "greaterThan";
|
|
85
|
+
greaterThanOrEqual: "greaterThanOrEqual";
|
|
86
|
+
lessThan: "lessThan";
|
|
87
|
+
lessThanOrEqual: "lessThanOrEqual";
|
|
88
|
+
}>;
|
|
89
|
+
value: z.ZodMiniNumber<number>;
|
|
90
|
+
toValue: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export declare const analyticsOrderBySchema: z.ZodMiniObject<{
|
|
93
|
+
field: z.ZodMiniString<string>;
|
|
94
|
+
desc: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export declare const analyticsReportRequestSchema: z.ZodMiniObject<{
|
|
97
|
+
dateRanges: z.ZodMiniArray<z.ZodMiniObject<{
|
|
98
|
+
startDate: z.ZodMiniString<string>;
|
|
99
|
+
endDate: z.ZodMiniString<string>;
|
|
100
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
dimensions: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
103
|
+
contentType: "contentType";
|
|
104
|
+
country: "country";
|
|
105
|
+
date: "date";
|
|
106
|
+
dictionaryKey: "dictionaryKey";
|
|
107
|
+
experimentKey: "experimentKey";
|
|
108
|
+
goal: "goal";
|
|
109
|
+
keyPath: "keyPath";
|
|
110
|
+
locale: "locale";
|
|
111
|
+
month: "month";
|
|
112
|
+
pagePath: "pagePath";
|
|
113
|
+
variant: "variant";
|
|
114
|
+
week: "week";
|
|
115
|
+
}>>>;
|
|
116
|
+
metrics: z.ZodMiniArray<z.ZodMiniEnum<{
|
|
117
|
+
activeUsers: "activeUsers";
|
|
118
|
+
contentExposures: "contentExposures";
|
|
119
|
+
conversionValue: "conversionValue";
|
|
120
|
+
conversions: "conversions";
|
|
121
|
+
entrances: "entrances";
|
|
122
|
+
pageViews: "pageViews";
|
|
123
|
+
}>>;
|
|
124
|
+
dimensionFilters: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
125
|
+
dimension: z.ZodMiniEnum<{
|
|
126
|
+
contentType: "contentType";
|
|
127
|
+
country: "country";
|
|
128
|
+
date: "date";
|
|
129
|
+
dictionaryKey: "dictionaryKey";
|
|
130
|
+
experimentKey: "experimentKey";
|
|
131
|
+
goal: "goal";
|
|
132
|
+
keyPath: "keyPath";
|
|
133
|
+
locale: "locale";
|
|
134
|
+
month: "month";
|
|
135
|
+
pagePath: "pagePath";
|
|
136
|
+
variant: "variant";
|
|
137
|
+
week: "week";
|
|
138
|
+
}>;
|
|
139
|
+
operator: z.ZodMiniEnum<{
|
|
140
|
+
beginsWith: "beginsWith";
|
|
141
|
+
contains: "contains";
|
|
142
|
+
endsWith: "endsWith";
|
|
143
|
+
exact: "exact";
|
|
144
|
+
inList: "inList";
|
|
145
|
+
}>;
|
|
146
|
+
value: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
147
|
+
values: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
148
|
+
caseSensitive: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
149
|
+
not: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
150
|
+
}, z.core.$strip>>>;
|
|
151
|
+
metricFilters: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
152
|
+
metric: z.ZodMiniEnum<{
|
|
153
|
+
activeUsers: "activeUsers";
|
|
154
|
+
contentExposures: "contentExposures";
|
|
155
|
+
conversionValue: "conversionValue";
|
|
156
|
+
conversions: "conversions";
|
|
157
|
+
entrances: "entrances";
|
|
158
|
+
pageViews: "pageViews";
|
|
159
|
+
}>;
|
|
160
|
+
operator: z.ZodMiniEnum<{
|
|
161
|
+
between: "between";
|
|
162
|
+
equal: "equal";
|
|
163
|
+
greaterThan: "greaterThan";
|
|
164
|
+
greaterThanOrEqual: "greaterThanOrEqual";
|
|
165
|
+
lessThan: "lessThan";
|
|
166
|
+
lessThanOrEqual: "lessThanOrEqual";
|
|
167
|
+
}>;
|
|
168
|
+
value: z.ZodMiniNumber<number>;
|
|
169
|
+
toValue: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
170
|
+
}, z.core.$strip>>>;
|
|
171
|
+
orderBys: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
172
|
+
field: z.ZodMiniString<string>;
|
|
173
|
+
desc: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
174
|
+
}, z.core.$strip>>>;
|
|
175
|
+
limit: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
176
|
+
offset: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export declare const analyticsRealtimeReportRequestSchema: z.ZodMiniObject<{
|
|
179
|
+
dimensions: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
180
|
+
country: "country";
|
|
181
|
+
locale: "locale";
|
|
182
|
+
minute: "minute";
|
|
183
|
+
pagePath: "pagePath";
|
|
184
|
+
}>>>;
|
|
185
|
+
metrics: z.ZodMiniArray<z.ZodMiniEnum<{
|
|
186
|
+
activeUsers: "activeUsers";
|
|
187
|
+
pageViews: "pageViews";
|
|
188
|
+
}>>;
|
|
189
|
+
minutesAgo: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
190
|
+
dimensionFilters: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
191
|
+
dimension: z.ZodMiniEnum<{
|
|
192
|
+
country: "country";
|
|
193
|
+
locale: "locale";
|
|
194
|
+
minute: "minute";
|
|
195
|
+
pagePath: "pagePath";
|
|
196
|
+
}>;
|
|
197
|
+
operator: z.ZodMiniEnum<{
|
|
198
|
+
beginsWith: "beginsWith";
|
|
199
|
+
contains: "contains";
|
|
200
|
+
endsWith: "endsWith";
|
|
201
|
+
exact: "exact";
|
|
202
|
+
inList: "inList";
|
|
203
|
+
}>;
|
|
204
|
+
value: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
205
|
+
values: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
206
|
+
caseSensitive: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
207
|
+
not: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
208
|
+
}, z.core.$strip>>>;
|
|
209
|
+
limit: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
/** A report row: dimension values (strings) and metric values (numbers). */
|
|
212
|
+
export declare const analyticsReportRowSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>;
|
|
213
|
+
export declare const analyticsReportSchema: z.ZodMiniObject<{
|
|
214
|
+
dimensions: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
215
|
+
metrics: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
216
|
+
dateRanges: z.ZodMiniArray<z.ZodMiniObject<{
|
|
217
|
+
name: z.ZodMiniString<string>;
|
|
218
|
+
startDate: z.ZodMiniString<string>;
|
|
219
|
+
endDate: z.ZodMiniString<string>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
rows: z.ZodMiniArray<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
222
|
+
rowCount: z.ZodMiniNumber<number>;
|
|
223
|
+
totals: z.ZodMiniArray<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
224
|
+
metadata: z.ZodMiniObject<{
|
|
225
|
+
timeZone: z.ZodMiniLiteral<"UTC">;
|
|
226
|
+
dataSince: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
227
|
+
truncated: z.ZodMiniBoolean<boolean>;
|
|
228
|
+
warnings: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
export declare const analyticsSchemaInfoSchema: z.ZodMiniObject<{
|
|
232
|
+
timeZone: z.ZodMiniLiteral<"UTC">;
|
|
233
|
+
dataSince: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
234
|
+
locales: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
235
|
+
retention: z.ZodMiniObject<{
|
|
236
|
+
activeUsersDays: z.ZodMiniNumber<number>;
|
|
237
|
+
realtimeMinutes: z.ZodMiniNumber<number>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
dimensions: z.ZodMiniArray<z.ZodMiniObject<{
|
|
240
|
+
name: z.ZodMiniString<string>;
|
|
241
|
+
description: z.ZodMiniString<string>;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
metrics: z.ZodMiniArray<z.ZodMiniObject<{
|
|
244
|
+
name: z.ZodMiniString<string>;
|
|
245
|
+
description: z.ZodMiniString<string>;
|
|
246
|
+
compatibleDimensions: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
realtime: z.ZodMiniObject<{
|
|
249
|
+
dimensions: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
250
|
+
metrics: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
experiments: z.ZodMiniArray<z.ZodMiniObject<{
|
|
253
|
+
experimentKey: z.ZodMiniString<string>;
|
|
254
|
+
variants: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
255
|
+
goals: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
256
|
+
firstSeen: z.ZodMiniString<string>;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
export declare const ANALYTICS_ANNOTATION_TYPES: readonly ['dictionary_created', 'content_version_created', 'dictionary_updated', 'source_synced', 'locale_first_traffic', 'experiment_started'];
|
|
260
|
+
export declare const analyticsAnnotationSchema: z.ZodMiniObject<{
|
|
261
|
+
date: z.ZodMiniString<string>;
|
|
262
|
+
type: z.ZodMiniEnum<{
|
|
263
|
+
content_version_created: "content_version_created";
|
|
264
|
+
dictionary_created: "dictionary_created";
|
|
265
|
+
dictionary_updated: "dictionary_updated";
|
|
266
|
+
experiment_started: "experiment_started";
|
|
267
|
+
locale_first_traffic: "locale_first_traffic";
|
|
268
|
+
source_synced: "source_synced";
|
|
269
|
+
}>;
|
|
270
|
+
title: z.ZodMiniString<string>;
|
|
271
|
+
dictionaryKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
272
|
+
locale: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
273
|
+
experimentKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
274
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
export declare const analyticsAnnotationsQuerySchema: z.ZodMiniObject<{
|
|
277
|
+
startDate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
278
|
+
endDate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
279
|
+
types: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
280
|
+
limit: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
281
|
+
}, z.core.$strip>;
|
|
282
|
+
export type AnalyticsDateRange = z.output<typeof analyticsDateRangeSchema>;
|
|
283
|
+
export type AnalyticsDimensionFilter = z.output<typeof analyticsDimensionFilterSchema>;
|
|
284
|
+
export type AnalyticsMetricFilter = z.output<typeof analyticsMetricFilterSchema>;
|
|
285
|
+
export type AnalyticsOrderBy = z.output<typeof analyticsOrderBySchema>;
|
|
286
|
+
export type AnalyticsReportRequest = z.input<typeof analyticsReportRequestSchema>;
|
|
287
|
+
export type AnalyticsRealtimeReportRequest = z.input<typeof analyticsRealtimeReportRequestSchema>;
|
|
288
|
+
export type AnalyticsReportRow = z.output<typeof analyticsReportRowSchema>;
|
|
289
|
+
export type AnalyticsReport = z.output<typeof analyticsReportSchema>;
|
|
290
|
+
export type AnalyticsSchemaInfo = z.output<typeof analyticsSchemaInfoSchema>;
|
|
291
|
+
export type AnalyticsAnnotationType = (typeof ANALYTICS_ANNOTATION_TYPES)[number];
|
|
292
|
+
export type AnalyticsAnnotation = z.output<typeof analyticsAnnotationSchema>;
|
|
293
|
+
export type AnalyticsAnnotationsQuery = z.output<typeof analyticsAnnotationsQuerySchema>;
|
|
294
|
+
//# sourceMappingURL=analyticsReport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyticsReport.d.ts","names":[],"sources":["../../src/analyticsReport.ts"],"mappings":";;;;;qBAMa;qBAeA;YASD,mCACF;YACE,gCAAgC;;qBAG/B;;;;;;qBAaA;;;;;;;;qBAgCA,kCAAkC,OAC7C;qBAmBW,+BAA+B,OAC1C;qBAYW;qBAOA;YAED,qCACF;YACE,kCACF;;qBAGG;;qBAEA;;qBAEA;qBACA;;qBAEA;qBAeA,0BAAwB,EAAA;;;;GAKnC,EAAA,KAAA;qBAUW,gCAA8B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GAazC,EAAA,KAAA;qBAWW,6BAA2B,EAAA;;;;;;;;;;;;;;;;;;;GAMtC,EAAA,KAAA;qBAEW,wBAAsB,EAAA;;;GAKjC,EAAA,KAAA;qBAEW,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwBvC,EAAA,KAAA;qBAEW,sCAAoC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmC/C,EAAA,KAAA;;qBAGW,0BAAwB,EAAA,cAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA;qBAKxB,uBAAqB,EAAA;;;;;;;;;;;;;;;;;GAqBhC,EAAA,KAAA;qBAEW,2BAAyB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BpC,EAAA,KAAA;qBAEW;qBASA,2BAAyB,EAAA;;;;;;;;;;;;;;;GAUpC,EAAA,KAAA;qBAEW,iCAA+B,EAAA;;;;;GAM1C,EAAA,KAAA;YAEU,qBAAqB,EAAE,cAAc;YACrC,2BAA2B,EAAE,cAChC;YAEG,wBAAwB,EAAE,cAC7B;YAEG,mBAAmB,EAAE,cAAc;YACnC,yBAAyB,EAAE,aAC9B;YAEG,iCAAiC,EAAE,aACtC;YAEG,qBAAqB,EAAE,cAAc;YACrC,kBAAkB,EAAE,cAAc;YAClC,sBAAsB,EAAE,cAAc;YACtC,kCACF;YACE,sBAAsB,EAAE,cAAc;YACtC,4BAA4B,EAAE,cACjC"}
|
package/dist/types/project.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export type ProjectConfigAI = Partial<AiConfig> & {
|
|
|
10
10
|
/** Masked API key (`sk-proj-****abcd`), never the real one. */
|
|
11
11
|
apiKey?: string;
|
|
12
12
|
apiKeyConfigured?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* `false` runs AI calls on the plan credits instead of the own key.
|
|
15
|
+
* Missing means enabled.
|
|
16
|
+
*/
|
|
17
|
+
isOwnAPIKeyEnabled?: boolean;
|
|
13
18
|
};
|
|
14
19
|
/**
|
|
15
20
|
* Project-level overrides of the Intlayer configuration. Loose objects: the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","names":["_$__defineRoute0.RouteDefinition"],"sources":["../../src/project.ts"],"mappings":";;;;;;qBA2Ba,cAAY,EAAA,cAAA,QAAA;;YAGb,kBAAkB,QAAQ;;EAEpC;EACA;;;;;;qBAOW,4BAA0B,EAAA;;;;;;;;;;GAcrC,EAAA,KAAA;;qBAGW,eAAa,EAAA;;;;;;GAOxB,EAAA,KAAA;;qBAGW,iBAAe,EAAA;;;;;;;;;;GAK1B,EAAA,KAAA;;qBAGW,0BAAwB,EAAA;;;;;;;;;;;qBAoBxB,4BAA0B,EAAA,2BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBrC,EAAA,KAAA;;qBAQW,mBAAiB,EAAA;;;;;;;;;;;;;;;;;GAO5B,EAAA,KAAA;;qBAGW,mCAAiC,EAAA;;;;GAI5C,EAAA,KAAA;;qBAGW,iBAAe,EAAA;;;;;;;;;;;;GAa1B,EAAA,KAAA;;qBAGW,eAAa,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmBxB,EAAA,KAAA;;qBAGW,qBAAmB,EAAA;;;;;;;GAQ9B,EAAA,KAAA;;qBAGW,uBAAqB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BhC,EAAA,KAAA;;qBAGW,gBAAc,EAAA;;;;;;GAMzB,EAAA,KAAA;cAKI,sBAAoB,EAAA;;;;GAIxB,EAAA,KAAA;;qBAGW,iB;W,aAqBUA;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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E,cAAc;YAC1B,kBAAkB,EAAE,cAAc;YAClC,qBAAqB,EAAE,cAAc;YACrC,uBAAuB,EAAE,cAAc;YACvC,iBAAiB,EAAE,cAAc;YACjC,iCAAiC,EAAE,cACtC;YAEG,kBAAkB,EAAE,cAAc;YAClC,aAAa,EAAE,cAAc;YAC7B,kBAAkB,EAAE,cAAc;YAClC,WAAW,EAAE,cAAc;YAG3B,oBAAoB,iBAAiB;YACrC,oBAAoB,kBAAkB;YACtC,2BAA2B,aAAa;YACxC,iBAAiB,eAAe;YAChC,mBAAmB,aAAa;YAChC,oBAAoB,eAAe;YACnC,sBAAsB,aAAa;YACnC,2BAA2B,eACrC;YAEU,6BAA6B,aAAa;YAC1C,+BAA+B,eACzC;YAEU,iCAAiC,aAAa;YAC9C,sBAAsB,aAAa;YACnC,qBAAqB,YAAY;YACjC,sBAAsB,aAAa;YACnC,wBAAwB;;YAExB,sBAAsB,KAChC,eAAe;EAEX,YAAY;;YACN,0BAA0B,aAAa;YACvC,uBAAuB,UAAU;YACjC,2BAA2B,aAAa;YACxC,sBAAsB,UAAU;YAChC,0BAA0B;YAC1B,qBAAqB;EAC/B,SAAS,EAAE,cAAc;;YAEf,qBAAqB,UAAU;YAC/B,uBAAuB,aACjC,EAAE,cAAc;YAEN,2BAA2B,aAAa;YACxC,4BAA4B;EAAe;;YAC3C,+BAA+B,aAAa;YAC5C,2BAA2B,YACrC;YAEU,yBAAyB,eACnC;YAEU,2BACV,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/backend-contract",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.8.0-canary.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared REST contract (routes + zod schemas) between the Intlayer backend, its typed client and the OpenAPI documentation.",
|
|
6
6
|
"keywords": [
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
281
281
|
},
|
|
282
282
|
"dependencies": {
|
|
283
|
-
"@intlayer/types": "9.
|
|
283
|
+
"@intlayer/types": "9.8.0-canary.0",
|
|
284
284
|
"zod": "4.6.7"
|
|
285
285
|
},
|
|
286
286
|
"devDependencies": {
|