@lessly/sdk-app 9.0.0 → 9.2.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/analytics/index.d.cts +1 -1
- package/dist/analytics/index.d.ts +1 -1
- package/dist/brain/index.d.cts +1 -1
- package/dist/brain/index.d.ts +1 -1
- package/dist/{client.gen-D7QDqI8G.d.cts → client.gen-BLMudoVx.d.cts} +341 -1
- package/dist/{client.gen-D7QDqI8G.d.ts → client.gen-BLMudoVx.d.ts} +341 -1
- package/dist/consent/index.d.cts +1 -1
- package/dist/consent/index.d.ts +1 -1
- package/dist/deployment/index.d.cts +1 -1
- package/dist/deployment/index.d.ts +1 -1
- package/dist/index.cjs +218 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +218 -0
- package/dist/index.js.map +1 -1
- package/dist/mail/index.d.cts +2 -2
- package/dist/mail/index.d.ts +2 -2
- package/dist/organization/index.d.cts +1 -1
- package/dist/organization/index.d.ts +1 -1
- package/dist/playground/index.d.cts +1 -1
- package/dist/playground/index.d.ts +1 -1
- package/dist/realtime/index.cjs +66 -0
- package/dist/realtime/index.cjs.map +1 -0
- package/dist/realtime/index.d.cts +52 -0
- package/dist/realtime/index.d.ts +52 -0
- package/dist/realtime/index.js +53 -0
- package/dist/realtime/index.js.map +1 -0
- package/dist/tracking/index.d.cts +1 -1
- package/dist/tracking/index.d.ts +1 -1
- package/dist/waitlist/index.d.cts +1 -1
- package/dist/waitlist/index.d.ts +1 -1
- package/package.json +7 -2
- package/src/gen/bindings.gen.ts +218 -0
- package/src/gen/client.gen.ts +50 -0
- package/src/gen/manifest.gen.ts +1 -1
- package/src/gen/realtime/index.ts +3 -0
- package/src/gen/realtime/queryOptions.gen.ts +81 -0
- package/src/gen/types.gen.ts +340 -0
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -4301,6 +4301,224 @@ export const bindings: BindingsMap = {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
}
|
|
4303
4303
|
},
|
|
4304
|
+
"realtime": {
|
|
4305
|
+
"grant": {
|
|
4306
|
+
"create": {
|
|
4307
|
+
"method": "POST",
|
|
4308
|
+
"params": [
|
|
4309
|
+
{
|
|
4310
|
+
"in": "body",
|
|
4311
|
+
"name": "subject"
|
|
4312
|
+
},
|
|
4313
|
+
{
|
|
4314
|
+
"in": "body",
|
|
4315
|
+
"name": "pattern"
|
|
4316
|
+
},
|
|
4317
|
+
{
|
|
4318
|
+
"in": "body",
|
|
4319
|
+
"name": "ops"
|
|
4320
|
+
}
|
|
4321
|
+
],
|
|
4322
|
+
"path": "/realtime/grants",
|
|
4323
|
+
"readOnly": false
|
|
4324
|
+
},
|
|
4325
|
+
"list": {
|
|
4326
|
+
"method": "GET",
|
|
4327
|
+
"params": [
|
|
4328
|
+
{
|
|
4329
|
+
"in": "query",
|
|
4330
|
+
"name": "subject"
|
|
4331
|
+
}
|
|
4332
|
+
],
|
|
4333
|
+
"path": "/realtime/grants",
|
|
4334
|
+
"readOnly": true
|
|
4335
|
+
},
|
|
4336
|
+
"revoke": {
|
|
4337
|
+
"method": "DELETE",
|
|
4338
|
+
"params": [
|
|
4339
|
+
{
|
|
4340
|
+
"in": "path",
|
|
4341
|
+
"name": "id"
|
|
4342
|
+
}
|
|
4343
|
+
],
|
|
4344
|
+
"path": "/realtime/grants/:id",
|
|
4345
|
+
"readOnly": false
|
|
4346
|
+
}
|
|
4347
|
+
},
|
|
4348
|
+
"history": {
|
|
4349
|
+
"get": {
|
|
4350
|
+
"method": "GET",
|
|
4351
|
+
"params": [
|
|
4352
|
+
{
|
|
4353
|
+
"in": "query",
|
|
4354
|
+
"name": "channel"
|
|
4355
|
+
},
|
|
4356
|
+
{
|
|
4357
|
+
"in": "query",
|
|
4358
|
+
"name": "offset"
|
|
4359
|
+
},
|
|
4360
|
+
{
|
|
4361
|
+
"in": "query",
|
|
4362
|
+
"name": "epoch"
|
|
4363
|
+
},
|
|
4364
|
+
{
|
|
4365
|
+
"in": "query",
|
|
4366
|
+
"name": "last_n"
|
|
4367
|
+
},
|
|
4368
|
+
{
|
|
4369
|
+
"in": "query",
|
|
4370
|
+
"name": "last_ms"
|
|
4371
|
+
}
|
|
4372
|
+
],
|
|
4373
|
+
"path": "/realtime/messages/history",
|
|
4374
|
+
"readOnly": true
|
|
4375
|
+
}
|
|
4376
|
+
},
|
|
4377
|
+
"messages": {
|
|
4378
|
+
"publish": {
|
|
4379
|
+
"method": "POST",
|
|
4380
|
+
"params": [
|
|
4381
|
+
{
|
|
4382
|
+
"in": "body",
|
|
4383
|
+
"name": "channel"
|
|
4384
|
+
},
|
|
4385
|
+
{
|
|
4386
|
+
"in": "body",
|
|
4387
|
+
"name": "data"
|
|
4388
|
+
}
|
|
4389
|
+
],
|
|
4390
|
+
"path": "/realtime/messages",
|
|
4391
|
+
"readOnly": false
|
|
4392
|
+
}
|
|
4393
|
+
},
|
|
4394
|
+
"namespace": {
|
|
4395
|
+
"create": {
|
|
4396
|
+
"method": "POST",
|
|
4397
|
+
"params": [
|
|
4398
|
+
{
|
|
4399
|
+
"in": "body",
|
|
4400
|
+
"name": "name"
|
|
4401
|
+
},
|
|
4402
|
+
{
|
|
4403
|
+
"in": "body",
|
|
4404
|
+
"name": "visibility"
|
|
4405
|
+
},
|
|
4406
|
+
{
|
|
4407
|
+
"in": "body",
|
|
4408
|
+
"name": "presence"
|
|
4409
|
+
},
|
|
4410
|
+
{
|
|
4411
|
+
"in": "body",
|
|
4412
|
+
"name": "clientEvents"
|
|
4413
|
+
},
|
|
4414
|
+
{
|
|
4415
|
+
"in": "body",
|
|
4416
|
+
"name": "history"
|
|
4417
|
+
},
|
|
4418
|
+
{
|
|
4419
|
+
"in": "body",
|
|
4420
|
+
"name": "historyWindowSeconds"
|
|
4421
|
+
},
|
|
4422
|
+
{
|
|
4423
|
+
"in": "body",
|
|
4424
|
+
"name": "encryptionRequired"
|
|
4425
|
+
},
|
|
4426
|
+
{
|
|
4427
|
+
"in": "body",
|
|
4428
|
+
"name": "identifiedOnly"
|
|
4429
|
+
}
|
|
4430
|
+
],
|
|
4431
|
+
"path": "/realtime/namespaces",
|
|
4432
|
+
"readOnly": false
|
|
4433
|
+
},
|
|
4434
|
+
"delete": {
|
|
4435
|
+
"method": "DELETE",
|
|
4436
|
+
"params": [
|
|
4437
|
+
{
|
|
4438
|
+
"in": "path",
|
|
4439
|
+
"name": "name"
|
|
4440
|
+
}
|
|
4441
|
+
],
|
|
4442
|
+
"path": "/realtime/namespaces/:name",
|
|
4443
|
+
"readOnly": false
|
|
4444
|
+
},
|
|
4445
|
+
"get": {
|
|
4446
|
+
"method": "GET",
|
|
4447
|
+
"params": [
|
|
4448
|
+
{
|
|
4449
|
+
"in": "path",
|
|
4450
|
+
"name": "name"
|
|
4451
|
+
}
|
|
4452
|
+
],
|
|
4453
|
+
"path": "/realtime/namespaces/:name",
|
|
4454
|
+
"readOnly": true
|
|
4455
|
+
},
|
|
4456
|
+
"list": {
|
|
4457
|
+
"method": "GET",
|
|
4458
|
+
"path": "/realtime/namespaces",
|
|
4459
|
+
"readOnly": true
|
|
4460
|
+
},
|
|
4461
|
+
"update": {
|
|
4462
|
+
"method": "PATCH",
|
|
4463
|
+
"params": [
|
|
4464
|
+
{
|
|
4465
|
+
"in": "path",
|
|
4466
|
+
"name": "name"
|
|
4467
|
+
},
|
|
4468
|
+
{
|
|
4469
|
+
"in": "body",
|
|
4470
|
+
"name": "visibility"
|
|
4471
|
+
},
|
|
4472
|
+
{
|
|
4473
|
+
"in": "body",
|
|
4474
|
+
"name": "presence"
|
|
4475
|
+
},
|
|
4476
|
+
{
|
|
4477
|
+
"in": "body",
|
|
4478
|
+
"name": "clientEvents"
|
|
4479
|
+
},
|
|
4480
|
+
{
|
|
4481
|
+
"in": "body",
|
|
4482
|
+
"name": "history"
|
|
4483
|
+
},
|
|
4484
|
+
{
|
|
4485
|
+
"in": "body",
|
|
4486
|
+
"name": "historyWindowSeconds"
|
|
4487
|
+
},
|
|
4488
|
+
{
|
|
4489
|
+
"in": "body",
|
|
4490
|
+
"name": "encryptionRequired"
|
|
4491
|
+
},
|
|
4492
|
+
{
|
|
4493
|
+
"in": "body",
|
|
4494
|
+
"name": "identifiedOnly"
|
|
4495
|
+
}
|
|
4496
|
+
],
|
|
4497
|
+
"path": "/realtime/namespaces/:name",
|
|
4498
|
+
"readOnly": false
|
|
4499
|
+
}
|
|
4500
|
+
},
|
|
4501
|
+
"status": {
|
|
4502
|
+
"get": {
|
|
4503
|
+
"method": "GET",
|
|
4504
|
+
"path": "/realtime/status",
|
|
4505
|
+
"readOnly": true
|
|
4506
|
+
}
|
|
4507
|
+
},
|
|
4508
|
+
"tokens": {
|
|
4509
|
+
"create": {
|
|
4510
|
+
"method": "POST",
|
|
4511
|
+
"params": [
|
|
4512
|
+
{
|
|
4513
|
+
"in": "body",
|
|
4514
|
+
"name": "channels"
|
|
4515
|
+
}
|
|
4516
|
+
],
|
|
4517
|
+
"path": "/realtime/tokens",
|
|
4518
|
+
"readOnly": false
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4521
|
+
},
|
|
4304
4522
|
"tracking": {
|
|
4305
4523
|
"api-keys": {
|
|
4306
4524
|
"create": {
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -562,6 +562,30 @@ import type {
|
|
|
562
562
|
PlaygroundLifecycleListEventsOutput,
|
|
563
563
|
PlaygroundWebhookGetLastInput,
|
|
564
564
|
PlaygroundWebhookGetLastOutput,
|
|
565
|
+
RealtimeGrantCreateInput,
|
|
566
|
+
RealtimeGrantCreateOutput,
|
|
567
|
+
RealtimeGrantListInput,
|
|
568
|
+
RealtimeGrantListOutput,
|
|
569
|
+
RealtimeGrantRevokeInput,
|
|
570
|
+
RealtimeGrantRevokeOutput,
|
|
571
|
+
RealtimeHistoryGetInput,
|
|
572
|
+
RealtimeHistoryGetOutput,
|
|
573
|
+
RealtimeMessagesPublishInput,
|
|
574
|
+
RealtimeMessagesPublishOutput,
|
|
575
|
+
RealtimeNamespaceCreateInput,
|
|
576
|
+
RealtimeNamespaceCreateOutput,
|
|
577
|
+
RealtimeNamespaceDeleteInput,
|
|
578
|
+
RealtimeNamespaceDeleteOutput,
|
|
579
|
+
RealtimeNamespaceGetInput,
|
|
580
|
+
RealtimeNamespaceGetOutput,
|
|
581
|
+
RealtimeNamespaceListInput,
|
|
582
|
+
RealtimeNamespaceListOutput,
|
|
583
|
+
RealtimeNamespaceUpdateInput,
|
|
584
|
+
RealtimeNamespaceUpdateOutput,
|
|
585
|
+
RealtimeStatusGetInput,
|
|
586
|
+
RealtimeStatusGetOutput,
|
|
587
|
+
RealtimeTokensCreateInput,
|
|
588
|
+
RealtimeTokensCreateOutput,
|
|
565
589
|
TrackingApiKeysCreateInput,
|
|
566
590
|
TrackingApiKeysCreateOutput,
|
|
567
591
|
TrackingApiKeysListInput,
|
|
@@ -1166,6 +1190,32 @@ export interface GeneratedClient {
|
|
|
1166
1190
|
'get-last'(input: PlaygroundWebhookGetLastInput): Promise<PlaygroundWebhookGetLastOutput>;
|
|
1167
1191
|
};
|
|
1168
1192
|
};
|
|
1193
|
+
realtime: {
|
|
1194
|
+
grant: {
|
|
1195
|
+
create(input: RealtimeGrantCreateInput): Promise<RealtimeGrantCreateOutput>;
|
|
1196
|
+
list(input: RealtimeGrantListInput): Promise<RealtimeGrantListOutput>;
|
|
1197
|
+
revoke(input: RealtimeGrantRevokeInput): Promise<RealtimeGrantRevokeOutput>;
|
|
1198
|
+
};
|
|
1199
|
+
history: {
|
|
1200
|
+
get(input: RealtimeHistoryGetInput): Promise<RealtimeHistoryGetOutput>;
|
|
1201
|
+
};
|
|
1202
|
+
messages: {
|
|
1203
|
+
publish(input: RealtimeMessagesPublishInput): Promise<RealtimeMessagesPublishOutput>;
|
|
1204
|
+
};
|
|
1205
|
+
namespace: {
|
|
1206
|
+
create(input: RealtimeNamespaceCreateInput): Promise<RealtimeNamespaceCreateOutput>;
|
|
1207
|
+
delete(input: RealtimeNamespaceDeleteInput): Promise<RealtimeNamespaceDeleteOutput>;
|
|
1208
|
+
get(input: RealtimeNamespaceGetInput): Promise<RealtimeNamespaceGetOutput>;
|
|
1209
|
+
list(input: RealtimeNamespaceListInput): Promise<RealtimeNamespaceListOutput>;
|
|
1210
|
+
update(input: RealtimeNamespaceUpdateInput): Promise<RealtimeNamespaceUpdateOutput>;
|
|
1211
|
+
};
|
|
1212
|
+
status: {
|
|
1213
|
+
get(input: RealtimeStatusGetInput): Promise<RealtimeStatusGetOutput>;
|
|
1214
|
+
};
|
|
1215
|
+
tokens: {
|
|
1216
|
+
create(input: RealtimeTokensCreateInput): Promise<RealtimeTokensCreateOutput>;
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1169
1219
|
tracking: {
|
|
1170
1220
|
'api-keys': {
|
|
1171
1221
|
create(input: TrackingApiKeysCreateInput): Promise<TrackingApiKeysCreateOutput>;
|
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
-
export const namespaces = ['analytics', 'brain', 'consent', 'deployment', 'mail', 'organization', 'playground', 'tracking', 'waitlist'] as const;
|
|
2
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'deployment', 'mail', 'organization', 'playground', 'realtime', 'tracking', 'waitlist'] as const;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
export * from './queryOptions.gen';
|
|
3
|
+
export type { RealtimeGrantCreateInput, RealtimeGrantCreateOutput, RealtimeGrantListInput, RealtimeGrantListOutput, RealtimeGrantRevokeInput, RealtimeGrantRevokeOutput, RealtimeHistoryGetInput, RealtimeHistoryGetOutput, RealtimeMessagesPublishInput, RealtimeMessagesPublishOutput, RealtimeNamespaceCreateInput, RealtimeNamespaceCreateOutput, RealtimeNamespaceDeleteInput, RealtimeNamespaceDeleteOutput, RealtimeNamespaceGetInput, RealtimeNamespaceGetOutput, RealtimeNamespaceListInput, RealtimeNamespaceListOutput, RealtimeNamespaceUpdateInput, RealtimeNamespaceUpdateOutput, RealtimeStatusGetInput, RealtimeStatusGetOutput, RealtimeTokensCreateInput, RealtimeTokensCreateOutput } from '../types.gen';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import type { GeneratedClient } from '../client.gen';
|
|
3
|
+
import type {
|
|
4
|
+
RealtimeGrantCreateInput,
|
|
5
|
+
RealtimeGrantListInput,
|
|
6
|
+
RealtimeGrantListOutput,
|
|
7
|
+
RealtimeGrantRevokeInput,
|
|
8
|
+
RealtimeHistoryGetInput,
|
|
9
|
+
RealtimeHistoryGetOutput,
|
|
10
|
+
RealtimeMessagesPublishInput,
|
|
11
|
+
RealtimeNamespaceCreateInput,
|
|
12
|
+
RealtimeNamespaceDeleteInput,
|
|
13
|
+
RealtimeNamespaceGetInput,
|
|
14
|
+
RealtimeNamespaceGetOutput,
|
|
15
|
+
RealtimeNamespaceListInput,
|
|
16
|
+
RealtimeNamespaceListOutput,
|
|
17
|
+
RealtimeNamespaceUpdateInput,
|
|
18
|
+
RealtimeStatusGetInput,
|
|
19
|
+
RealtimeStatusGetOutput,
|
|
20
|
+
RealtimeTokensCreateInput,
|
|
21
|
+
} from '../types.gen';
|
|
22
|
+
|
|
23
|
+
export const realtimeGrantCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
24
|
+
mutationKey: ['realtime', 'grant', 'create'],
|
|
25
|
+
mutationFn: (input: RealtimeGrantCreateInput) => sdk['realtime']['grant']['create'](input),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export const realtimeGrantListQueryOptions = (sdk: GeneratedClient, input: RealtimeGrantListInput) => ({
|
|
29
|
+
queryKey: ['realtime', 'grant', 'list', input] as const,
|
|
30
|
+
queryFn: () => sdk['realtime']['grant']['list'](input),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const realtimeGrantRevokeMutationOptions = (sdk: GeneratedClient) => ({
|
|
34
|
+
mutationKey: ['realtime', 'grant', 'revoke'],
|
|
35
|
+
mutationFn: (input: RealtimeGrantRevokeInput) => sdk['realtime']['grant']['revoke'](input),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const realtimeHistoryGetQueryOptions = (sdk: GeneratedClient, input: RealtimeHistoryGetInput) => ({
|
|
39
|
+
queryKey: ['realtime', 'history', 'get', input] as const,
|
|
40
|
+
queryFn: () => sdk['realtime']['history']['get'](input),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const realtimeMessagesPublishMutationOptions = (sdk: GeneratedClient) => ({
|
|
44
|
+
mutationKey: ['realtime', 'messages', 'publish'],
|
|
45
|
+
mutationFn: (input: RealtimeMessagesPublishInput) => sdk['realtime']['messages']['publish'](input),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const realtimeNamespaceCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
49
|
+
mutationKey: ['realtime', 'namespace', 'create'],
|
|
50
|
+
mutationFn: (input: RealtimeNamespaceCreateInput) => sdk['realtime']['namespace']['create'](input),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export const realtimeNamespaceDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
54
|
+
mutationKey: ['realtime', 'namespace', 'delete'],
|
|
55
|
+
mutationFn: (input: RealtimeNamespaceDeleteInput) => sdk['realtime']['namespace']['delete'](input),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export const realtimeNamespaceGetQueryOptions = (sdk: GeneratedClient, input: RealtimeNamespaceGetInput) => ({
|
|
59
|
+
queryKey: ['realtime', 'namespace', 'get', input] as const,
|
|
60
|
+
queryFn: () => sdk['realtime']['namespace']['get'](input),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export const realtimeNamespaceListQueryOptions = (sdk: GeneratedClient, input: RealtimeNamespaceListInput) => ({
|
|
64
|
+
queryKey: ['realtime', 'namespace', 'list', input] as const,
|
|
65
|
+
queryFn: () => sdk['realtime']['namespace']['list'](input),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export const realtimeNamespaceUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
69
|
+
mutationKey: ['realtime', 'namespace', 'update'],
|
|
70
|
+
mutationFn: (input: RealtimeNamespaceUpdateInput) => sdk['realtime']['namespace']['update'](input),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export const realtimeStatusGetQueryOptions = (sdk: GeneratedClient, input: RealtimeStatusGetInput) => ({
|
|
74
|
+
queryKey: ['realtime', 'status', 'get', input] as const,
|
|
75
|
+
queryFn: () => sdk['realtime']['status']['get'](input),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export const realtimeTokensCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
79
|
+
mutationKey: ['realtime', 'tokens', 'create'],
|
|
80
|
+
mutationFn: (input: RealtimeTokensCreateInput) => sdk['realtime']['tokens']['create'](input),
|
|
81
|
+
});
|