@fonoster/apiserver 0.12.16 → 0.13.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/applications/validation/assistantWithoutApiKeySchema.d.ts +3 -188
- package/dist/applications/validation/createValidationSchema.d.ts +3 -188
- package/dist/core/identityConfig.d.ts +0 -1
- package/dist/core/identityConfig.js +0 -1
- package/dist/envs.d.ts +0 -1
- package/dist/envs.js +2 -4
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
declare const assistantWithoutApiKeySchema: z.ZodObject<
|
|
2
|
+
declare const assistantWithoutApiKeySchema: z.ZodObject<{
|
|
3
3
|
conversationSettings: z.ZodObject<{
|
|
4
4
|
firstMessage: z.ZodOptional<z.ZodString>;
|
|
5
5
|
systemPrompt: z.ZodString;
|
|
@@ -102,191 +102,6 @@ declare const assistantWithoutApiKeySchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
102
102
|
debounceFrames?: number;
|
|
103
103
|
};
|
|
104
104
|
}>;
|
|
105
|
-
languageModel: z.ZodObject<{
|
|
106
|
-
provider: z.ZodNativeEnum<typeof import("@fonoster/common").LanguageModelProvider>;
|
|
107
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
108
|
-
model: z.ZodString;
|
|
109
|
-
temperature: z.ZodNumber;
|
|
110
|
-
maxTokens: z.ZodNumber;
|
|
111
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
112
|
-
knowledgeBase: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
113
|
-
type: z.ZodEnum<["s3"]>;
|
|
114
|
-
title: z.ZodString;
|
|
115
|
-
document: z.ZodString;
|
|
116
|
-
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
type?: "s3";
|
|
118
|
-
title?: string;
|
|
119
|
-
document?: string;
|
|
120
|
-
}, {
|
|
121
|
-
type?: "s3";
|
|
122
|
-
title?: string;
|
|
123
|
-
document?: string;
|
|
124
|
-
}>, "many">>;
|
|
125
|
-
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
126
|
-
name: z.ZodString;
|
|
127
|
-
description: z.ZodString;
|
|
128
|
-
parameters: z.ZodObject<{
|
|
129
|
-
type: z.ZodEnum<["object", "array"]>;
|
|
130
|
-
properties: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
131
|
-
type: z.ZodString;
|
|
132
|
-
format: z.ZodOptional<z.ZodEnum<["enum", "date-time"]>>;
|
|
133
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
134
|
-
}, "strip", z.ZodTypeAny, {
|
|
135
|
-
type?: string;
|
|
136
|
-
format?: "enum" | "date-time";
|
|
137
|
-
pattern?: string;
|
|
138
|
-
}, {
|
|
139
|
-
type?: string;
|
|
140
|
-
format?: "enum" | "date-time";
|
|
141
|
-
pattern?: string;
|
|
142
|
-
}>, {
|
|
143
|
-
type?: string;
|
|
144
|
-
format?: "enum" | "date-time";
|
|
145
|
-
pattern?: string;
|
|
146
|
-
}, {
|
|
147
|
-
type?: string;
|
|
148
|
-
format?: "enum" | "date-time";
|
|
149
|
-
pattern?: string;
|
|
150
|
-
}>>;
|
|
151
|
-
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
152
|
-
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
type?: "object" | "array";
|
|
154
|
-
properties?: Record<string, {
|
|
155
|
-
type?: string;
|
|
156
|
-
format?: "enum" | "date-time";
|
|
157
|
-
pattern?: string;
|
|
158
|
-
}>;
|
|
159
|
-
required?: string[];
|
|
160
|
-
}, {
|
|
161
|
-
type?: "object" | "array";
|
|
162
|
-
properties?: Record<string, {
|
|
163
|
-
type?: string;
|
|
164
|
-
format?: "enum" | "date-time";
|
|
165
|
-
pattern?: string;
|
|
166
|
-
}>;
|
|
167
|
-
required?: string[];
|
|
168
|
-
}>;
|
|
169
|
-
requestStartMessage: z.ZodOptional<z.ZodString>;
|
|
170
|
-
operation: z.ZodObject<{
|
|
171
|
-
method: z.ZodDefault<z.ZodNativeEnum<typeof import("@fonoster/common").AllowedHttpMethod>>;
|
|
172
|
-
url: z.ZodString;
|
|
173
|
-
waitForResponse: z.ZodDefault<z.ZodBoolean>;
|
|
174
|
-
headers: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
|
|
175
|
-
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
url?: string;
|
|
177
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
178
|
-
headers?: Record<string, string>;
|
|
179
|
-
waitForResponse?: boolean;
|
|
180
|
-
}, {
|
|
181
|
-
url?: string;
|
|
182
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
183
|
-
headers?: Record<string, string>;
|
|
184
|
-
waitForResponse?: boolean;
|
|
185
|
-
}>;
|
|
186
|
-
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
name?: string;
|
|
188
|
-
description?: string;
|
|
189
|
-
parameters?: {
|
|
190
|
-
type?: "object" | "array";
|
|
191
|
-
properties?: Record<string, {
|
|
192
|
-
type?: string;
|
|
193
|
-
format?: "enum" | "date-time";
|
|
194
|
-
pattern?: string;
|
|
195
|
-
}>;
|
|
196
|
-
required?: string[];
|
|
197
|
-
};
|
|
198
|
-
requestStartMessage?: string;
|
|
199
|
-
operation?: {
|
|
200
|
-
url?: string;
|
|
201
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
202
|
-
headers?: Record<string, string>;
|
|
203
|
-
waitForResponse?: boolean;
|
|
204
|
-
};
|
|
205
|
-
}, {
|
|
206
|
-
name?: string;
|
|
207
|
-
description?: string;
|
|
208
|
-
parameters?: {
|
|
209
|
-
type?: "object" | "array";
|
|
210
|
-
properties?: Record<string, {
|
|
211
|
-
type?: string;
|
|
212
|
-
format?: "enum" | "date-time";
|
|
213
|
-
pattern?: string;
|
|
214
|
-
}>;
|
|
215
|
-
required?: string[];
|
|
216
|
-
};
|
|
217
|
-
requestStartMessage?: string;
|
|
218
|
-
operation?: {
|
|
219
|
-
url?: string;
|
|
220
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
221
|
-
headers?: Record<string, string>;
|
|
222
|
-
waitForResponse?: boolean;
|
|
223
|
-
};
|
|
224
|
-
}>, "many">>;
|
|
225
|
-
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
provider?: import("@fonoster/common").LanguageModelProvider;
|
|
227
|
-
apiKey?: string;
|
|
228
|
-
model?: string;
|
|
229
|
-
temperature?: number;
|
|
230
|
-
maxTokens?: number;
|
|
231
|
-
baseUrl?: string;
|
|
232
|
-
knowledgeBase?: {
|
|
233
|
-
type?: "s3";
|
|
234
|
-
title?: string;
|
|
235
|
-
document?: string;
|
|
236
|
-
}[];
|
|
237
|
-
tools?: {
|
|
238
|
-
name?: string;
|
|
239
|
-
description?: string;
|
|
240
|
-
parameters?: {
|
|
241
|
-
type?: "object" | "array";
|
|
242
|
-
properties?: Record<string, {
|
|
243
|
-
type?: string;
|
|
244
|
-
format?: "enum" | "date-time";
|
|
245
|
-
pattern?: string;
|
|
246
|
-
}>;
|
|
247
|
-
required?: string[];
|
|
248
|
-
};
|
|
249
|
-
requestStartMessage?: string;
|
|
250
|
-
operation?: {
|
|
251
|
-
url?: string;
|
|
252
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
253
|
-
headers?: Record<string, string>;
|
|
254
|
-
waitForResponse?: boolean;
|
|
255
|
-
};
|
|
256
|
-
}[];
|
|
257
|
-
}, {
|
|
258
|
-
provider?: import("@fonoster/common").LanguageModelProvider;
|
|
259
|
-
apiKey?: string;
|
|
260
|
-
model?: string;
|
|
261
|
-
temperature?: number;
|
|
262
|
-
maxTokens?: number;
|
|
263
|
-
baseUrl?: string;
|
|
264
|
-
knowledgeBase?: {
|
|
265
|
-
type?: "s3";
|
|
266
|
-
title?: string;
|
|
267
|
-
document?: string;
|
|
268
|
-
}[];
|
|
269
|
-
tools?: {
|
|
270
|
-
name?: string;
|
|
271
|
-
description?: string;
|
|
272
|
-
parameters?: {
|
|
273
|
-
type?: "object" | "array";
|
|
274
|
-
properties?: Record<string, {
|
|
275
|
-
type?: string;
|
|
276
|
-
format?: "enum" | "date-time";
|
|
277
|
-
pattern?: string;
|
|
278
|
-
}>;
|
|
279
|
-
required?: string[];
|
|
280
|
-
};
|
|
281
|
-
requestStartMessage?: string;
|
|
282
|
-
operation?: {
|
|
283
|
-
url?: string;
|
|
284
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
285
|
-
headers?: Record<string, string>;
|
|
286
|
-
waitForResponse?: boolean;
|
|
287
|
-
};
|
|
288
|
-
}[];
|
|
289
|
-
}>;
|
|
290
105
|
eventsHook: z.ZodOptional<z.ZodObject<{
|
|
291
106
|
url: z.ZodString;
|
|
292
107
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -507,7 +322,7 @@ declare const assistantWithoutApiKeySchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
507
322
|
}[];
|
|
508
323
|
}[];
|
|
509
324
|
}>>;
|
|
510
|
-
}
|
|
325
|
+
} & {
|
|
511
326
|
languageModel: z.ZodEffects<z.ZodObject<{
|
|
512
327
|
provider: z.ZodNativeEnum<typeof import("@fonoster/common").LanguageModelProvider>;
|
|
513
328
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
@@ -757,7 +572,7 @@ declare const assistantWithoutApiKeySchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
757
572
|
};
|
|
758
573
|
}[];
|
|
759
574
|
}>;
|
|
760
|
-
}
|
|
575
|
+
}, "strip", z.ZodTypeAny, {
|
|
761
576
|
languageModel?: {
|
|
762
577
|
provider?: import("@fonoster/common").LanguageModelProvider;
|
|
763
578
|
apiKey?: string;
|
|
@@ -37,7 +37,7 @@ declare function createValidationSchema(request: {
|
|
|
37
37
|
}>;
|
|
38
38
|
intelligence: z.ZodUndefined | z.ZodEffects<z.ZodObject<{
|
|
39
39
|
productRef: z.ZodString;
|
|
40
|
-
config: z.ZodObject<
|
|
40
|
+
config: z.ZodObject<{
|
|
41
41
|
conversationSettings: z.ZodObject<{
|
|
42
42
|
firstMessage: z.ZodOptional<z.ZodString>;
|
|
43
43
|
systemPrompt: z.ZodString;
|
|
@@ -140,191 +140,6 @@ declare function createValidationSchema(request: {
|
|
|
140
140
|
debounceFrames?: number;
|
|
141
141
|
};
|
|
142
142
|
}>;
|
|
143
|
-
languageModel: z.ZodObject<{
|
|
144
|
-
provider: z.ZodNativeEnum<typeof import("@fonoster/common").LanguageModelProvider>;
|
|
145
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
146
|
-
model: z.ZodString;
|
|
147
|
-
temperature: z.ZodNumber;
|
|
148
|
-
maxTokens: z.ZodNumber;
|
|
149
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
150
|
-
knowledgeBase: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
151
|
-
type: z.ZodEnum<["s3"]>;
|
|
152
|
-
title: z.ZodString;
|
|
153
|
-
document: z.ZodString;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
type?: "s3";
|
|
156
|
-
title?: string;
|
|
157
|
-
document?: string;
|
|
158
|
-
}, {
|
|
159
|
-
type?: "s3";
|
|
160
|
-
title?: string;
|
|
161
|
-
document?: string;
|
|
162
|
-
}>, "many">>;
|
|
163
|
-
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
164
|
-
name: z.ZodString;
|
|
165
|
-
description: z.ZodString;
|
|
166
|
-
parameters: z.ZodObject<{
|
|
167
|
-
type: z.ZodEnum<["object", "array"]>;
|
|
168
|
-
properties: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
169
|
-
type: z.ZodString;
|
|
170
|
-
format: z.ZodOptional<z.ZodEnum<["enum", "date-time"]>>;
|
|
171
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
172
|
-
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
type?: string;
|
|
174
|
-
format?: "enum" | "date-time";
|
|
175
|
-
pattern?: string;
|
|
176
|
-
}, {
|
|
177
|
-
type?: string;
|
|
178
|
-
format?: "enum" | "date-time";
|
|
179
|
-
pattern?: string;
|
|
180
|
-
}>, {
|
|
181
|
-
type?: string;
|
|
182
|
-
format?: "enum" | "date-time";
|
|
183
|
-
pattern?: string;
|
|
184
|
-
}, {
|
|
185
|
-
type?: string;
|
|
186
|
-
format?: "enum" | "date-time";
|
|
187
|
-
pattern?: string;
|
|
188
|
-
}>>;
|
|
189
|
-
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
190
|
-
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
type?: "object" | "array";
|
|
192
|
-
properties?: Record<string, {
|
|
193
|
-
type?: string;
|
|
194
|
-
format?: "enum" | "date-time";
|
|
195
|
-
pattern?: string;
|
|
196
|
-
}>;
|
|
197
|
-
required?: string[];
|
|
198
|
-
}, {
|
|
199
|
-
type?: "object" | "array";
|
|
200
|
-
properties?: Record<string, {
|
|
201
|
-
type?: string;
|
|
202
|
-
format?: "enum" | "date-time";
|
|
203
|
-
pattern?: string;
|
|
204
|
-
}>;
|
|
205
|
-
required?: string[];
|
|
206
|
-
}>;
|
|
207
|
-
requestStartMessage: z.ZodOptional<z.ZodString>;
|
|
208
|
-
operation: z.ZodObject<{
|
|
209
|
-
method: z.ZodDefault<z.ZodNativeEnum<typeof import("@fonoster/common").AllowedHttpMethod>>;
|
|
210
|
-
url: z.ZodString;
|
|
211
|
-
waitForResponse: z.ZodDefault<z.ZodBoolean>;
|
|
212
|
-
headers: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
|
|
213
|
-
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
url?: string;
|
|
215
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
216
|
-
headers?: Record<string, string>;
|
|
217
|
-
waitForResponse?: boolean;
|
|
218
|
-
}, {
|
|
219
|
-
url?: string;
|
|
220
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
221
|
-
headers?: Record<string, string>;
|
|
222
|
-
waitForResponse?: boolean;
|
|
223
|
-
}>;
|
|
224
|
-
}, "strip", z.ZodTypeAny, {
|
|
225
|
-
name?: string;
|
|
226
|
-
description?: string;
|
|
227
|
-
parameters?: {
|
|
228
|
-
type?: "object" | "array";
|
|
229
|
-
properties?: Record<string, {
|
|
230
|
-
type?: string;
|
|
231
|
-
format?: "enum" | "date-time";
|
|
232
|
-
pattern?: string;
|
|
233
|
-
}>;
|
|
234
|
-
required?: string[];
|
|
235
|
-
};
|
|
236
|
-
requestStartMessage?: string;
|
|
237
|
-
operation?: {
|
|
238
|
-
url?: string;
|
|
239
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
240
|
-
headers?: Record<string, string>;
|
|
241
|
-
waitForResponse?: boolean;
|
|
242
|
-
};
|
|
243
|
-
}, {
|
|
244
|
-
name?: string;
|
|
245
|
-
description?: string;
|
|
246
|
-
parameters?: {
|
|
247
|
-
type?: "object" | "array";
|
|
248
|
-
properties?: Record<string, {
|
|
249
|
-
type?: string;
|
|
250
|
-
format?: "enum" | "date-time";
|
|
251
|
-
pattern?: string;
|
|
252
|
-
}>;
|
|
253
|
-
required?: string[];
|
|
254
|
-
};
|
|
255
|
-
requestStartMessage?: string;
|
|
256
|
-
operation?: {
|
|
257
|
-
url?: string;
|
|
258
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
259
|
-
headers?: Record<string, string>;
|
|
260
|
-
waitForResponse?: boolean;
|
|
261
|
-
};
|
|
262
|
-
}>, "many">>;
|
|
263
|
-
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
provider?: import("@fonoster/common").LanguageModelProvider;
|
|
265
|
-
apiKey?: string;
|
|
266
|
-
model?: string;
|
|
267
|
-
temperature?: number;
|
|
268
|
-
maxTokens?: number;
|
|
269
|
-
baseUrl?: string;
|
|
270
|
-
knowledgeBase?: {
|
|
271
|
-
type?: "s3";
|
|
272
|
-
title?: string;
|
|
273
|
-
document?: string;
|
|
274
|
-
}[];
|
|
275
|
-
tools?: {
|
|
276
|
-
name?: string;
|
|
277
|
-
description?: string;
|
|
278
|
-
parameters?: {
|
|
279
|
-
type?: "object" | "array";
|
|
280
|
-
properties?: Record<string, {
|
|
281
|
-
type?: string;
|
|
282
|
-
format?: "enum" | "date-time";
|
|
283
|
-
pattern?: string;
|
|
284
|
-
}>;
|
|
285
|
-
required?: string[];
|
|
286
|
-
};
|
|
287
|
-
requestStartMessage?: string;
|
|
288
|
-
operation?: {
|
|
289
|
-
url?: string;
|
|
290
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
291
|
-
headers?: Record<string, string>;
|
|
292
|
-
waitForResponse?: boolean;
|
|
293
|
-
};
|
|
294
|
-
}[];
|
|
295
|
-
}, {
|
|
296
|
-
provider?: import("@fonoster/common").LanguageModelProvider;
|
|
297
|
-
apiKey?: string;
|
|
298
|
-
model?: string;
|
|
299
|
-
temperature?: number;
|
|
300
|
-
maxTokens?: number;
|
|
301
|
-
baseUrl?: string;
|
|
302
|
-
knowledgeBase?: {
|
|
303
|
-
type?: "s3";
|
|
304
|
-
title?: string;
|
|
305
|
-
document?: string;
|
|
306
|
-
}[];
|
|
307
|
-
tools?: {
|
|
308
|
-
name?: string;
|
|
309
|
-
description?: string;
|
|
310
|
-
parameters?: {
|
|
311
|
-
type?: "object" | "array";
|
|
312
|
-
properties?: Record<string, {
|
|
313
|
-
type?: string;
|
|
314
|
-
format?: "enum" | "date-time";
|
|
315
|
-
pattern?: string;
|
|
316
|
-
}>;
|
|
317
|
-
required?: string[];
|
|
318
|
-
};
|
|
319
|
-
requestStartMessage?: string;
|
|
320
|
-
operation?: {
|
|
321
|
-
url?: string;
|
|
322
|
-
method?: import("@fonoster/common").AllowedHttpMethod;
|
|
323
|
-
headers?: Record<string, string>;
|
|
324
|
-
waitForResponse?: boolean;
|
|
325
|
-
};
|
|
326
|
-
}[];
|
|
327
|
-
}>;
|
|
328
143
|
eventsHook: z.ZodOptional<z.ZodObject<{
|
|
329
144
|
url: z.ZodString;
|
|
330
145
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -545,7 +360,7 @@ declare function createValidationSchema(request: {
|
|
|
545
360
|
}[];
|
|
546
361
|
}[];
|
|
547
362
|
}>>;
|
|
548
|
-
}
|
|
363
|
+
} & {
|
|
549
364
|
languageModel: z.ZodEffects<z.ZodObject<{
|
|
550
365
|
provider: z.ZodNativeEnum<typeof import("@fonoster/common").LanguageModelProvider>;
|
|
551
366
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
@@ -795,7 +610,7 @@ declare function createValidationSchema(request: {
|
|
|
795
610
|
};
|
|
796
611
|
}[];
|
|
797
612
|
}>;
|
|
798
|
-
}
|
|
613
|
+
}, "strip", z.ZodTypeAny, {
|
|
799
614
|
languageModel?: {
|
|
800
615
|
provider?: import("@fonoster/common").LanguageModelProvider;
|
|
801
616
|
apiKey?: string;
|
|
@@ -35,7 +35,6 @@ const identityConfig = {
|
|
|
35
35
|
workspaceInviteFailUrl: envs_1.IDENTITY_WORKSPACE_INVITE_FAIL_URL,
|
|
36
36
|
contactVerificationRequired: envs_1.IDENTITY_CONTACT_VERIFICATION_REQUIRED,
|
|
37
37
|
twoFactorAuthenticationRequired: envs_1.IDENTITY_TWO_FACTOR_AUTHENTICATION_REQUIRED,
|
|
38
|
-
resetPasswordUrl: envs_1.IDENTITY_RESET_PASSWORD_URL,
|
|
39
38
|
smtpConfig: {
|
|
40
39
|
host: envs_1.SMTP_HOST,
|
|
41
40
|
port: envs_1.SMTP_PORT,
|
package/dist/envs.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export declare const IDENTITY_PRIVATE_KEY: string;
|
|
|
24
24
|
export declare const IDENTITY_PUBLIC_KEY: string;
|
|
25
25
|
export declare const IDENTITY_REFRESH_TOKEN_EXPIRES_IN: string;
|
|
26
26
|
export declare const IDENTITY_WORKSPACE_INVITE_FAIL_URL: string;
|
|
27
|
-
export declare const IDENTITY_RESET_PASSWORD_URL: string;
|
|
28
27
|
export declare const IDENTITY_WORKSPACE_INVITE_EXPIRATION: string;
|
|
29
28
|
export declare const IDENTITY_WORKSPACE_INVITE_URL: string;
|
|
30
29
|
export declare const IDENTITY_DATABASE_URL: string;
|
package/dist/envs.js
CHANGED
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
var _a;
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.SMTP_AUTH_PASS = exports.ROUTR_DEFAULT_PEER_USERNAME = exports.ROUTR_DEFAULT_PEER_PASSWORD = exports.ROUTR_DEFAULT_PEER_NAME = exports.ROUTR_DEFAULT_PEER_AOR = exports.ROUTR_API_ENDPOINT = exports.OWNER_PASSWORD = exports.OWNER_NAME = exports.OWNER_EMAIL = exports.NATS_URL = exports.INTEGRATIONS_FILE = exports.INFLUXDB_USERNAME = exports.INFLUXDB_URL = exports.INFLUXDB_TOKEN = exports.INFLUXDB_PASSWORD = exports.INFLUXDB_ORG = exports.AUTHZ_SERVICE_METHODS = exports.AUTHZ_SERVICE_PORT = exports.AUTHZ_SERVICE_HOST = exports.AUTHZ_SERVICE_ENABLED = exports.IDENTITY_DATABASE_URL = exports.IDENTITY_WORKSPACE_INVITE_URL = exports.IDENTITY_WORKSPACE_INVITE_EXPIRATION = exports.
|
|
8
|
-
exports.TWILIO_PHONE_NUMBER = exports.TWILIO_AUTH_TOKEN = exports.TWILIO_ACCOUNT_SID = exports.TEMPLATES_DIR = exports.SMTP_SENDER = exports.SMTP_SECURE = exports.SMTP_PORT = exports.SMTP_HOST =
|
|
7
|
+
exports.SMTP_AUTH_USER = exports.SMTP_AUTH_PASS = exports.ROUTR_DEFAULT_PEER_USERNAME = exports.ROUTR_DEFAULT_PEER_PASSWORD = exports.ROUTR_DEFAULT_PEER_NAME = exports.ROUTR_DEFAULT_PEER_AOR = exports.ROUTR_API_ENDPOINT = exports.OWNER_PASSWORD = exports.OWNER_NAME = exports.OWNER_EMAIL = exports.NATS_URL = exports.INTEGRATIONS_FILE = exports.INFLUXDB_USERNAME = exports.INFLUXDB_URL = exports.INFLUXDB_TOKEN = exports.INFLUXDB_PASSWORD = exports.INFLUXDB_ORG = exports.AUTHZ_SERVICE_METHODS = exports.AUTHZ_SERVICE_PORT = exports.AUTHZ_SERVICE_HOST = exports.AUTHZ_SERVICE_ENABLED = exports.IDENTITY_DATABASE_URL = exports.IDENTITY_WORKSPACE_INVITE_URL = exports.IDENTITY_WORKSPACE_INVITE_EXPIRATION = exports.IDENTITY_WORKSPACE_INVITE_FAIL_URL = exports.IDENTITY_REFRESH_TOKEN_EXPIRES_IN = exports.IDENTITY_PUBLIC_KEY = exports.IDENTITY_PRIVATE_KEY = exports.IDENTITY_OAUTH2_GITHUB_CLIENT_SECRET = exports.IDENTITY_OAUTH2_GITHUB_CLIENT_ID = exports.IDENTITY_OAUTH2_GITHUB_ENABLED = exports.IDENTITY_TWO_FACTOR_AUTHENTICATION_REQUIRED = exports.IDENTITY_CONTACT_VERIFICATION_REQUIRED = exports.IDENTITY_ISSUER = exports.IDENTITY_ID_TOKEN_EXPIRES_IN = exports.IDENTITY_AUDIENCE = exports.IDENTITY_ACCESS_TOKEN_EXPIRES_IN = exports.HTTP_BRIDGE_PORT = exports.DEFAULT_NATS_QUEUE_GROUP = exports.CLOAK_ENCRYPTION_KEY = exports.CALLS_TRACK_CALL_SUBJECT = exports.CALLS_CREATE_SUBJECT = exports.ASTERISK_TRUNK = exports.ASTERISK_SYSTEM_DOMAIN = exports.ASTERISK_ARI_USERNAME = exports.ASTERISK_ARI_SECRET = exports.ASTERISK_ARI_PROXY_URL = exports.APP_URL = exports.APISERVER_HOST = exports.APISERVER_BIND_ADDR = void 0;
|
|
8
|
+
exports.TWILIO_PHONE_NUMBER = exports.TWILIO_AUTH_TOKEN = exports.TWILIO_ACCOUNT_SID = exports.TEMPLATES_DIR = exports.SMTP_SENDER = exports.SMTP_SECURE = exports.SMTP_PORT = exports.SMTP_HOST = void 0;
|
|
9
9
|
/**
|
|
10
10
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
11
11
|
* http://github.com/fonoster/fonoster
|
|
@@ -46,7 +46,6 @@ const e = process.env;
|
|
|
46
46
|
"APISERVER_IDENTITY_DATABASE_URL",
|
|
47
47
|
"APISERVER_IDENTITY_WORKSPACE_INVITE_URL",
|
|
48
48
|
"APISERVER_IDENTITY_WORKSPACE_INVITE_FAIL_URL",
|
|
49
|
-
"APISERVER_IDENTITY_RESET_PASSWORD_URL",
|
|
50
49
|
"APISERVER_DATABASE_URL",
|
|
51
50
|
"APISERVER_INFLUXDB_URL",
|
|
52
51
|
"APISERVER_INFLUXDB_INIT_USERNAME",
|
|
@@ -88,7 +87,6 @@ exports.IDENTITY_PRIVATE_KEY = fs_1.default.readFileSync(IDENTITY_PRIVATE_KEY_PA
|
|
|
88
87
|
exports.IDENTITY_PUBLIC_KEY = fs_1.default.readFileSync(IDENTITY_PUBLIC_KEY_PATH, "utf8");
|
|
89
88
|
exports.IDENTITY_REFRESH_TOKEN_EXPIRES_IN = e.APISERVER_IDENTITY_REFRESH_TOKEN_EXPIRES_IN || "24h";
|
|
90
89
|
exports.IDENTITY_WORKSPACE_INVITE_FAIL_URL = e.APISERVER_IDENTITY_WORKSPACE_INVITE_FAIL_URL;
|
|
91
|
-
exports.IDENTITY_RESET_PASSWORD_URL = e.APISERVER_IDENTITY_RESET_PASSWORD_URL;
|
|
92
90
|
exports.IDENTITY_WORKSPACE_INVITE_EXPIRATION = e.APISERVER_IDENTITY_WORKSPACE_INVITE_EXPIRATION || "1d";
|
|
93
91
|
exports.IDENTITY_WORKSPACE_INVITE_URL = e.APISERVER_IDENTITY_WORKSPACE_INVITE_URL;
|
|
94
92
|
exports.IDENTITY_DATABASE_URL = e.APISERVER_IDENTITY_DATABASE_URL;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/apiserver",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "APIServer for Fonoster",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@deepgram/sdk": "^3.5.1",
|
|
24
|
-
"@fonoster/authz": "^0.
|
|
25
|
-
"@fonoster/common": "^0.
|
|
26
|
-
"@fonoster/identity": "^0.
|
|
27
|
-
"@fonoster/logger": "^0.
|
|
28
|
-
"@fonoster/sipnet": "^0.
|
|
29
|
-
"@fonoster/streams": "^0.
|
|
30
|
-
"@fonoster/types": "^0.
|
|
24
|
+
"@fonoster/authz": "^0.13.0",
|
|
25
|
+
"@fonoster/common": "^0.13.0",
|
|
26
|
+
"@fonoster/identity": "^0.13.0",
|
|
27
|
+
"@fonoster/logger": "^0.13.0",
|
|
28
|
+
"@fonoster/sipnet": "^0.13.0",
|
|
29
|
+
"@fonoster/streams": "^0.13.0",
|
|
30
|
+
"@fonoster/types": "^0.13.0",
|
|
31
31
|
"@google-cloud/speech": "^6.6.0",
|
|
32
32
|
"@google-cloud/text-to-speech": "^5.3.0",
|
|
33
33
|
"@grpc/grpc-js": "~1.10.6",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"@types/uuid": "^10.0.0",
|
|
74
74
|
"@types/validator": "^13.12.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "1bbd25f403d05c2340676f8e29b9e00cd4db4bdb"
|
|
77
77
|
}
|