palbase 0.34.0 → 0.35.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/ai/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{DP7HCIWR.js → 2OXYYE3V.js} +2 -2
- package/dist/chunks/{I6FOJBJG.js → 2YZ33WMV.js} +2 -2
- package/dist/chunks/{2KUOCM4W.js → 33B3S5RY.js} +1 -1
- package/dist/chunks/{HJTZ5RUV.js → 5AY6UR4J.js} +2 -2
- package/dist/chunks/{7KAQJOKQ.js → 6L2MMJA6.js} +2 -2
- package/dist/chunks/{SVEMN34N.js → AAS47Y5B.js} +1 -1
- package/dist/chunks/{CVZYB52V.js → ACXA3P2N.js} +2 -2
- package/dist/chunks/{U2OSMAAB.js → ASBRNYVS.js} +1 -1
- package/dist/chunks/BGFOKJRG.js +2 -0
- package/dist/chunks/{23NFADPH.js → C2AFHALD.js} +1 -1
- package/dist/chunks/{QLGKS7OC.js → CFJZ3DPG.js} +2 -2
- package/dist/chunks/{3WO4MSQK.js → CODVONHV.js} +2 -2
- package/dist/chunks/{56CR6XQX.js → FKGX3BOZ.js} +1 -1
- package/dist/chunks/{AAJTXVUF.js → FRUUIOFR.js} +2 -2
- package/dist/chunks/{TXPV2FZL.js → HMWR5O3Y.js} +2 -2
- package/dist/chunks/{VYJZI4ZF.js → KBY7IBXO.js} +2 -2
- package/dist/chunks/{BORV4XQE.js → LO57KBUW.js} +2 -2
- package/dist/chunks/{JNARDSKO.js → NOTDQXFX.js} +2 -2
- package/dist/chunks/{TO7DBGJO.js → OXEDY6JB.js} +2 -2
- package/dist/chunks/{TSZBPILF.js → PGH2237Q.js} +1 -1
- package/dist/chunks/{WFXZMNDL.js → S4BXGBZ5.js} +2 -2
- package/dist/chunks/{ZXOT7B45.js → TGIVD25Y.js} +2 -2
- package/dist/chunks/{TGGBNVFF.js → ZBKJUKQA.js} +1 -1
- package/dist/cli.js +114 -114
- package/dist/cloud/index.js +2 -2
- package/dist/refuse/ai.js +1 -1
- package/dist/refuse/backend.js +1 -1
- package/dist/refuse/cloud.js +1 -1
- package/dist/refuse/server.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/testing.js +2 -2
- package/dist/web/calls-ui.js +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/message.js +2 -2
- package/dist/web/palbe.js +2 -2
- package/dist/web/paywall.js +2 -2
- package/dist/web/push-sw.js +1 -1
- package/dist/web/ssr.js +2 -2
- package/dist/web/vite.js +2 -2
- package/package.json +2 -2
- package/types/internal/src/modules/ai.d.ts +4 -4
- package/types/internal/src/modules/calls.d.ts +102 -3
- package/types/internal/src/modules/machines.d.ts +13 -5
- package/dist/chunks/FFLUB3R2.js +0 -2
|
@@ -53,6 +53,10 @@ export type Call = {
|
|
|
53
53
|
* Its people and bots
|
|
54
54
|
*/
|
|
55
55
|
participants: Participant[];
|
|
56
|
+
/**
|
|
57
|
+
* The place it is held at, as the project names it (a channel of its app, a conversation: channel:42, conversation:<id>): the place's people — whom the project's rule lets in — find it going on and join it unasked. Null for a call of no place
|
|
58
|
+
*/
|
|
59
|
+
place: string | null;
|
|
56
60
|
/**
|
|
57
61
|
* Whether it rings the people asked (false: a huddle they join)
|
|
58
62
|
*/
|
|
@@ -102,6 +106,10 @@ export type CallEvent = {
|
|
|
102
106
|
* user or bot
|
|
103
107
|
*/
|
|
104
108
|
participant_kind?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The place it is held at (null for a call of no place)
|
|
111
|
+
*/
|
|
112
|
+
place: string | null;
|
|
105
113
|
/**
|
|
106
114
|
* The call's room on the media server: what an agent's ticket is for
|
|
107
115
|
*/
|
|
@@ -240,6 +248,10 @@ export type HookSettings = {
|
|
|
240
248
|
* A hook that does not answer: refuse the call, or let it
|
|
241
249
|
*/
|
|
242
250
|
on_error?: "deny" | "allow";
|
|
251
|
+
/**
|
|
252
|
+
* The hook answers places too (action place: may this person see and join the calls held at a place). Off, it is never asked of a place, and a place's call is seen only by the people asked into it (a conversation:<id> place's members aside)
|
|
253
|
+
*/
|
|
254
|
+
places?: boolean;
|
|
243
255
|
/**
|
|
244
256
|
* How long it is waited for (100 to 5,000; 2,000)
|
|
245
257
|
*/
|
|
@@ -262,6 +274,23 @@ export type InviteRequest = {
|
|
|
262
274
|
*/
|
|
263
275
|
user_ids: string[];
|
|
264
276
|
};
|
|
277
|
+
/**
|
|
278
|
+
* Comes into a group call on a device
|
|
279
|
+
*/
|
|
280
|
+
export type JoinRequest = {
|
|
281
|
+
/**
|
|
282
|
+
* The device it is joined on
|
|
283
|
+
*/
|
|
284
|
+
device_id: string;
|
|
285
|
+
/**
|
|
286
|
+
* Their picture, an https URL, likewise
|
|
287
|
+
*/
|
|
288
|
+
image_url?: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* What the others see of one who comes in unasked (a place's), where nothing else names them
|
|
291
|
+
*/
|
|
292
|
+
name?: string | null;
|
|
293
|
+
};
|
|
265
294
|
/**
|
|
266
295
|
* A device's way into the call's room on the media server, where every call's media flows — one to one or in a group: its url and the ticket its client connects with
|
|
267
296
|
*/
|
|
@@ -332,6 +361,20 @@ export type Participant = {
|
|
|
332
361
|
*/
|
|
333
362
|
user_id: string;
|
|
334
363
|
};
|
|
364
|
+
/**
|
|
365
|
+
* A place and its call: going on, or — told to a watcher as it ends — its last, ended (with its version: a snapshot that comes late is known for older); no call when none goes on there. Participants carry no device_id
|
|
366
|
+
*/
|
|
367
|
+
export type PlaceView = {
|
|
368
|
+
call?: Call;
|
|
369
|
+
/**
|
|
370
|
+
* The place
|
|
371
|
+
*/
|
|
372
|
+
place: string;
|
|
373
|
+
/**
|
|
374
|
+
* How long the reader is told of the place's call (the place event on their calls channel) before the watch is asked again — a watch's answer alone
|
|
375
|
+
*/
|
|
376
|
+
watch_seconds?: number;
|
|
377
|
+
};
|
|
335
378
|
/**
|
|
336
379
|
* A call to make
|
|
337
380
|
*/
|
|
@@ -362,12 +405,16 @@ export type StartCallRequest = {
|
|
|
362
405
|
metadata?: {
|
|
363
406
|
[key: string]: string;
|
|
364
407
|
};
|
|
408
|
+
/**
|
|
409
|
+
* Holds the call at a place (a group call): letters, digits and . _ : -, 1 to 128 (channel:42; conversation:<id> for a conversation of Palbase's messaging, whose members it lets in). One call goes on at a place at a time. Who it lets in is the project's rule: a conversation's members, else the project's hook (calls.can_call, action place); with no hook, no one but those asked
|
|
410
|
+
*/
|
|
411
|
+
place?: string | null;
|
|
365
412
|
/**
|
|
366
413
|
* Ring them (true, by default); false: a group call they join (a huddle)
|
|
367
414
|
*/
|
|
368
415
|
ring?: boolean;
|
|
369
416
|
/**
|
|
370
|
-
* Who to call: one person (a direct call), or several (a group)
|
|
417
|
+
* Who to call: one person (a direct call), or several (a group); none for a call at a place, which its people join
|
|
371
418
|
*/
|
|
372
419
|
user_ids: string[];
|
|
373
420
|
/**
|
|
@@ -375,6 +422,25 @@ export type StartCallRequest = {
|
|
|
375
422
|
*/
|
|
376
423
|
video?: boolean;
|
|
377
424
|
};
|
|
425
|
+
/**
|
|
426
|
+
* A call not started: why, and — when a call goes on at its place (place_busy) — that call, to join
|
|
427
|
+
*/
|
|
428
|
+
export type StartRefused = {
|
|
429
|
+
call?: Call;
|
|
430
|
+
/**
|
|
431
|
+
* The refusal's name
|
|
432
|
+
*/
|
|
433
|
+
error: string;
|
|
434
|
+
/**
|
|
435
|
+
* What it means
|
|
436
|
+
*/
|
|
437
|
+
error_description: string;
|
|
438
|
+
/**
|
|
439
|
+
* The request's id
|
|
440
|
+
*/
|
|
441
|
+
request_id?: string;
|
|
442
|
+
[key: string]: unknown;
|
|
443
|
+
};
|
|
378
444
|
/**
|
|
379
445
|
* A way in for an agent
|
|
380
446
|
*/
|
|
@@ -517,6 +583,39 @@ export declare function client(t: Transport): {
|
|
|
517
583
|
body: TicketRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
518
584
|
signal?: AbortSignal;
|
|
519
585
|
}): Promise<Reply<201, Ticket>>;
|
|
586
|
+
/**
|
|
587
|
+
* A place's call
|
|
588
|
+
*
|
|
589
|
+
* The call going on at the place, if one is, for a reader the place lets in: one of those in it or asked, or whom the project's rule lets in (a conversation's members for a conversation:<id> place, else the project's hook; with no hook, no one else).
|
|
590
|
+
*/
|
|
591
|
+
getCallPlace(input: {
|
|
592
|
+
path: {
|
|
593
|
+
place: string;
|
|
594
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
595
|
+
signal?: AbortSignal;
|
|
596
|
+
}): Promise<Reply<200, PlaceView>>;
|
|
597
|
+
/**
|
|
598
|
+
* Watch a place
|
|
599
|
+
*
|
|
600
|
+
* The reader is told of the place's call — started, changed, ended (no call) — as the place event on their calls channel, for watch_seconds; an app showing the place asks again before it runs out. Answered with the place's call as it is.
|
|
601
|
+
*/
|
|
602
|
+
watchCallPlace(input: {
|
|
603
|
+
path: {
|
|
604
|
+
place: string;
|
|
605
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
606
|
+
signal?: AbortSignal;
|
|
607
|
+
}): Promise<Reply<200, PlaceView>>;
|
|
608
|
+
/**
|
|
609
|
+
* Stop watching a place
|
|
610
|
+
*
|
|
611
|
+
* The reader is told no more of the place's call.
|
|
612
|
+
*/
|
|
613
|
+
unwatchCallPlace(input: {
|
|
614
|
+
path: {
|
|
615
|
+
place: string;
|
|
616
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
617
|
+
signal?: AbortSignal;
|
|
618
|
+
}): Promise<Reply<204, undefined>>;
|
|
520
619
|
/**
|
|
521
620
|
* Call settings
|
|
522
621
|
*
|
|
@@ -591,13 +690,13 @@ export declare function client(t: Transport): {
|
|
|
591
690
|
/**
|
|
592
691
|
* Join a group call
|
|
593
692
|
*
|
|
594
|
-
* Comes into a group call the reader was asked to — rung, missed, declined, or in before — on the device.
|
|
693
|
+
* Comes into a group call the reader was asked to — rung, missed, declined, or in before — on the device; or, unasked, a call held at a place whose rule lets the reader in.
|
|
595
694
|
*/
|
|
596
695
|
joinCall(input: {
|
|
597
696
|
path: {
|
|
598
697
|
call_id: string;
|
|
599
698
|
};
|
|
600
|
-
body:
|
|
699
|
+
body: JoinRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
601
700
|
signal?: AbortSignal;
|
|
602
701
|
}): Promise<Reply<200, Call>>;
|
|
603
702
|
/**
|
|
@@ -210,7 +210,7 @@ export type Machine = {
|
|
|
210
210
|
*/
|
|
211
211
|
replicas: number;
|
|
212
212
|
/**
|
|
213
|
-
* Kept awake: a machine of a size that sleeps is never put to sleep when idle, and is started again at once when it is asleep — while its environment has paid rights (Pay as you go
|
|
213
|
+
* Kept awake: a machine of a size that sleeps is never put to sleep when idle, and is started again at once when it is asleep — while its environment has paid rights (Pay as you go), which pays its every hour. Without them it sleeps as any; a dedicated size never sleeps.
|
|
214
214
|
*/
|
|
215
215
|
always_on: boolean;
|
|
216
216
|
/**
|
|
@@ -303,7 +303,7 @@ export type MachineCreate = {
|
|
|
303
303
|
*/
|
|
304
304
|
replicas?: number;
|
|
305
305
|
/**
|
|
306
|
-
* Keeps it awake (Machine.always_on): open to an environment on Pay as you go
|
|
306
|
+
* Keeps it awake (Machine.always_on): open to an environment on Pay as you go, refused `always_on_not_available` otherwise.
|
|
307
307
|
*/
|
|
308
308
|
always_on?: boolean;
|
|
309
309
|
/**
|
|
@@ -396,7 +396,7 @@ export type MachineUpdate = {
|
|
|
396
396
|
*/
|
|
397
397
|
replicas?: number;
|
|
398
398
|
/**
|
|
399
|
-
* Whether it is kept awake from now on (Machine.always_on): no version changes. Turning it on is open to an environment on Pay as you go
|
|
399
|
+
* Whether it is kept awake from now on (Machine.always_on): no version changes. Turning it on is open to an environment on Pay as you go, refused `always_on_not_available` otherwise.
|
|
400
400
|
*/
|
|
401
401
|
always_on?: boolean;
|
|
402
402
|
/**
|
|
@@ -538,9 +538,13 @@ export type Database = {
|
|
|
538
538
|
*/
|
|
539
539
|
awake_hours?: number;
|
|
540
540
|
/**
|
|
541
|
-
* How long
|
|
541
|
+
* How long a Free environment's free and preview databases may run in a month between them, in hours (environment_awake_hours): past it, they sleep until the month ends, and a client is told so. Absent for a size with no such limit.
|
|
542
542
|
*/
|
|
543
543
|
awake_hours_limit?: number;
|
|
544
|
+
/**
|
|
545
|
+
* How long the environment's free and preview databases have run this month between them, deleted ones too, in hours: what awake_hours_limit holds — a database deleted and opened again gets no new hours. Present with awake_hours_limit.
|
|
546
|
+
*/
|
|
547
|
+
environment_awake_hours?: number;
|
|
544
548
|
/**
|
|
545
549
|
* How much it held when last measured — every database in it summed, the ones its owner made too — measured while it is awake. Absent before its first measure.
|
|
546
550
|
*/
|
|
@@ -973,9 +977,13 @@ export type DatabaseCreated = {
|
|
|
973
977
|
*/
|
|
974
978
|
awake_hours?: number;
|
|
975
979
|
/**
|
|
976
|
-
* How long
|
|
980
|
+
* How long a Free environment's free and preview databases may run in a month between them, in hours (environment_awake_hours): past it, they sleep until the month ends, and a client is told so. Absent for a size with no such limit.
|
|
977
981
|
*/
|
|
978
982
|
awake_hours_limit?: number;
|
|
983
|
+
/**
|
|
984
|
+
* How long the environment's free and preview databases have run this month between them, deleted ones too, in hours: what awake_hours_limit holds — a database deleted and opened again gets no new hours. Present with awake_hours_limit.
|
|
985
|
+
*/
|
|
986
|
+
environment_awake_hours?: number;
|
|
979
987
|
/**
|
|
980
988
|
* How much it held when last measured — every database in it summed, the ones its owner made too — measured while it is awake. Absent before its first measure.
|
|
981
989
|
*/
|