@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/types.gen.ts
CHANGED
|
@@ -13408,6 +13408,346 @@ delivery_count: number
|
|
|
13408
13408
|
found: false
|
|
13409
13409
|
})
|
|
13410
13410
|
|
|
13411
|
+
export interface RealtimeGrantCreateInput {
|
|
13412
|
+
/**
|
|
13413
|
+
* Operations granted on matching channels
|
|
13414
|
+
*
|
|
13415
|
+
* @minItems 1
|
|
13416
|
+
*/
|
|
13417
|
+
ops: [("subscribe" | "publish" | "presence" | "history"), ...(("subscribe" | "publish" | "presence" | "history"))[]]
|
|
13418
|
+
/**
|
|
13419
|
+
* Channel pattern, e.g. "chat:*" ("*" matches exactly one segment)
|
|
13420
|
+
*/
|
|
13421
|
+
pattern: string
|
|
13422
|
+
/**
|
|
13423
|
+
* Identity id the grant applies to, or "*" for every identity in the product
|
|
13424
|
+
*/
|
|
13425
|
+
subject: string
|
|
13426
|
+
}
|
|
13427
|
+
|
|
13428
|
+
export interface RealtimeGrantCreateOutput {
|
|
13429
|
+
id: string
|
|
13430
|
+
ops: ("subscribe" | "publish" | "presence" | "history")[]
|
|
13431
|
+
pattern: string
|
|
13432
|
+
subject: string
|
|
13433
|
+
createdAt: string
|
|
13434
|
+
}
|
|
13435
|
+
|
|
13436
|
+
export interface RealtimeGrantListInput {
|
|
13437
|
+
/**
|
|
13438
|
+
* Filter grants by subject
|
|
13439
|
+
*/
|
|
13440
|
+
subject?: string
|
|
13441
|
+
}
|
|
13442
|
+
|
|
13443
|
+
export interface RealtimeGrantListOutput {
|
|
13444
|
+
grants: {
|
|
13445
|
+
id: string
|
|
13446
|
+
ops: ("subscribe" | "publish" | "presence" | "history")[]
|
|
13447
|
+
pattern: string
|
|
13448
|
+
subject: string
|
|
13449
|
+
createdAt: string
|
|
13450
|
+
}[]
|
|
13451
|
+
}
|
|
13452
|
+
|
|
13453
|
+
export interface RealtimeGrantRevokeInput {
|
|
13454
|
+
/**
|
|
13455
|
+
* Grant id to revoke
|
|
13456
|
+
*/
|
|
13457
|
+
id: string
|
|
13458
|
+
}
|
|
13459
|
+
|
|
13460
|
+
export interface RealtimeGrantRevokeOutput {
|
|
13461
|
+
revoked: true
|
|
13462
|
+
}
|
|
13463
|
+
|
|
13464
|
+
export interface RealtimeHistoryGetInput {
|
|
13465
|
+
/**
|
|
13466
|
+
* Cursor: stream epoch the offset belongs to
|
|
13467
|
+
*/
|
|
13468
|
+
epoch?: string
|
|
13469
|
+
/**
|
|
13470
|
+
* Window: return the last N entries
|
|
13471
|
+
*/
|
|
13472
|
+
last_n?: number
|
|
13473
|
+
/**
|
|
13474
|
+
* Cursor: resume strictly after this offset (requires epoch)
|
|
13475
|
+
*/
|
|
13476
|
+
offset?: string
|
|
13477
|
+
/**
|
|
13478
|
+
* Channel to read history from
|
|
13479
|
+
*/
|
|
13480
|
+
channel: string
|
|
13481
|
+
/**
|
|
13482
|
+
* Window: return entries newer than now minus this many milliseconds
|
|
13483
|
+
*/
|
|
13484
|
+
last_ms?: number
|
|
13485
|
+
}
|
|
13486
|
+
|
|
13487
|
+
export interface RealtimeHistoryGetOutput {
|
|
13488
|
+
/**
|
|
13489
|
+
* Current stream epoch, or null when the channel has no history yet
|
|
13490
|
+
*/
|
|
13491
|
+
epoch: (string | null)
|
|
13492
|
+
/**
|
|
13493
|
+
* Channel the history was read from
|
|
13494
|
+
*/
|
|
13495
|
+
channel: string
|
|
13496
|
+
/**
|
|
13497
|
+
* Entries in stream order
|
|
13498
|
+
*/
|
|
13499
|
+
entries: {
|
|
13500
|
+
/**
|
|
13501
|
+
* Message id from the envelope
|
|
13502
|
+
*/
|
|
13503
|
+
id: string
|
|
13504
|
+
/**
|
|
13505
|
+
* Publish timestamp (ms)
|
|
13506
|
+
*/
|
|
13507
|
+
ts: number
|
|
13508
|
+
/**
|
|
13509
|
+
* Message payload
|
|
13510
|
+
*/
|
|
13511
|
+
data?: {
|
|
13512
|
+
[k: string]: unknown
|
|
13513
|
+
}
|
|
13514
|
+
/**
|
|
13515
|
+
* Stream offset of the entry
|
|
13516
|
+
*/
|
|
13517
|
+
offset: string
|
|
13518
|
+
}[]
|
|
13519
|
+
/**
|
|
13520
|
+
* false when the cursor epoch mismatches or entries aged out — client must resync
|
|
13521
|
+
*/
|
|
13522
|
+
recovered: boolean
|
|
13523
|
+
}
|
|
13524
|
+
|
|
13525
|
+
export interface RealtimeMessagesPublishInput {
|
|
13526
|
+
/**
|
|
13527
|
+
* JSON payload delivered to channel subscribers
|
|
13528
|
+
*/
|
|
13529
|
+
data: {
|
|
13530
|
+
[k: string]: unknown
|
|
13531
|
+
}
|
|
13532
|
+
/**
|
|
13533
|
+
* Channel to publish the message to
|
|
13534
|
+
*/
|
|
13535
|
+
channel: string
|
|
13536
|
+
}
|
|
13537
|
+
|
|
13538
|
+
export interface RealtimeMessagesPublishOutput {
|
|
13539
|
+
/**
|
|
13540
|
+
* Stream epoch of the stored message (present when history is on)
|
|
13541
|
+
*/
|
|
13542
|
+
epoch?: string
|
|
13543
|
+
/**
|
|
13544
|
+
* Stream offset of the stored message (present when history is on)
|
|
13545
|
+
*/
|
|
13546
|
+
offset?: string
|
|
13547
|
+
/**
|
|
13548
|
+
* Channel the message was published to
|
|
13549
|
+
*/
|
|
13550
|
+
channel: string
|
|
13551
|
+
/**
|
|
13552
|
+
* Publish acknowledged by the fan-out backend
|
|
13553
|
+
*/
|
|
13554
|
+
published: true
|
|
13555
|
+
}
|
|
13556
|
+
|
|
13557
|
+
export interface RealtimeNamespaceCreateInput {
|
|
13558
|
+
/**
|
|
13559
|
+
* Namespace name (the part of a channel name before the first colon)
|
|
13560
|
+
*/
|
|
13561
|
+
name: string
|
|
13562
|
+
/**
|
|
13563
|
+
* History retention policy for channels in this namespace
|
|
13564
|
+
*/
|
|
13565
|
+
history?: ("none" | "last-message" | "window")
|
|
13566
|
+
/**
|
|
13567
|
+
* Whether presence is enabled on channels in this namespace
|
|
13568
|
+
*/
|
|
13569
|
+
presence?: boolean
|
|
13570
|
+
/**
|
|
13571
|
+
* public: any authenticated identity may subscribe without a grant
|
|
13572
|
+
*/
|
|
13573
|
+
visibility?: ("public" | "authorized")
|
|
13574
|
+
/**
|
|
13575
|
+
* Whether clients may publish events directly
|
|
13576
|
+
*/
|
|
13577
|
+
clientEvents?: boolean
|
|
13578
|
+
/**
|
|
13579
|
+
* Whether only identified (non-anonymous) identities get capabilities
|
|
13580
|
+
*/
|
|
13581
|
+
identifiedOnly?: boolean
|
|
13582
|
+
/**
|
|
13583
|
+
* Whether payloads must be end-to-end encrypted
|
|
13584
|
+
*/
|
|
13585
|
+
encryptionRequired?: boolean
|
|
13586
|
+
/**
|
|
13587
|
+
* Retention window in seconds; required when history is "window"
|
|
13588
|
+
*/
|
|
13589
|
+
historyWindowSeconds?: number
|
|
13590
|
+
}
|
|
13591
|
+
|
|
13592
|
+
export interface RealtimeNamespaceCreateOutput {
|
|
13593
|
+
id: string
|
|
13594
|
+
name: string
|
|
13595
|
+
history: ("none" | "last-message" | "window")
|
|
13596
|
+
presence: boolean
|
|
13597
|
+
createdAt: string
|
|
13598
|
+
updatedAt: string
|
|
13599
|
+
visibility: ("public" | "authorized")
|
|
13600
|
+
clientEvents: boolean
|
|
13601
|
+
identifiedOnly: boolean
|
|
13602
|
+
encryptionRequired: boolean
|
|
13603
|
+
historyWindowSeconds: (number | null)
|
|
13604
|
+
}
|
|
13605
|
+
|
|
13606
|
+
export interface RealtimeNamespaceDeleteInput {
|
|
13607
|
+
/**
|
|
13608
|
+
* Namespace name
|
|
13609
|
+
*/
|
|
13610
|
+
name: string
|
|
13611
|
+
}
|
|
13612
|
+
|
|
13613
|
+
export interface RealtimeNamespaceDeleteOutput {
|
|
13614
|
+
deleted: true
|
|
13615
|
+
}
|
|
13616
|
+
|
|
13617
|
+
export interface RealtimeNamespaceGetInput {
|
|
13618
|
+
/**
|
|
13619
|
+
* Namespace name
|
|
13620
|
+
*/
|
|
13621
|
+
name: string
|
|
13622
|
+
}
|
|
13623
|
+
|
|
13624
|
+
export interface RealtimeNamespaceGetOutput {
|
|
13625
|
+
id: string
|
|
13626
|
+
name: string
|
|
13627
|
+
history: ("none" | "last-message" | "window")
|
|
13628
|
+
presence: boolean
|
|
13629
|
+
createdAt: string
|
|
13630
|
+
updatedAt: string
|
|
13631
|
+
visibility: ("public" | "authorized")
|
|
13632
|
+
clientEvents: boolean
|
|
13633
|
+
identifiedOnly: boolean
|
|
13634
|
+
encryptionRequired: boolean
|
|
13635
|
+
historyWindowSeconds: (number | null)
|
|
13636
|
+
}
|
|
13637
|
+
|
|
13638
|
+
export interface RealtimeNamespaceListInput {
|
|
13639
|
+
|
|
13640
|
+
}
|
|
13641
|
+
|
|
13642
|
+
export interface RealtimeNamespaceListOutput {
|
|
13643
|
+
namespaces: {
|
|
13644
|
+
id: string
|
|
13645
|
+
name: string
|
|
13646
|
+
history: ("none" | "last-message" | "window")
|
|
13647
|
+
presence: boolean
|
|
13648
|
+
createdAt: string
|
|
13649
|
+
updatedAt: string
|
|
13650
|
+
visibility: ("public" | "authorized")
|
|
13651
|
+
clientEvents: boolean
|
|
13652
|
+
identifiedOnly: boolean
|
|
13653
|
+
encryptionRequired: boolean
|
|
13654
|
+
historyWindowSeconds: (number | null)
|
|
13655
|
+
}[]
|
|
13656
|
+
}
|
|
13657
|
+
|
|
13658
|
+
export interface RealtimeNamespaceUpdateInput {
|
|
13659
|
+
/**
|
|
13660
|
+
* Namespace name to update
|
|
13661
|
+
*/
|
|
13662
|
+
name: string
|
|
13663
|
+
/**
|
|
13664
|
+
* History retention policy for channels in this namespace
|
|
13665
|
+
*/
|
|
13666
|
+
history?: ("none" | "last-message" | "window")
|
|
13667
|
+
/**
|
|
13668
|
+
* Whether presence is enabled on channels in this namespace
|
|
13669
|
+
*/
|
|
13670
|
+
presence?: boolean
|
|
13671
|
+
/**
|
|
13672
|
+
* public: any authenticated identity may subscribe without a grant
|
|
13673
|
+
*/
|
|
13674
|
+
visibility?: ("public" | "authorized")
|
|
13675
|
+
/**
|
|
13676
|
+
* Whether clients may publish events directly
|
|
13677
|
+
*/
|
|
13678
|
+
clientEvents?: boolean
|
|
13679
|
+
/**
|
|
13680
|
+
* Whether only identified (non-anonymous) identities get capabilities
|
|
13681
|
+
*/
|
|
13682
|
+
identifiedOnly?: boolean
|
|
13683
|
+
/**
|
|
13684
|
+
* Whether payloads must be end-to-end encrypted
|
|
13685
|
+
*/
|
|
13686
|
+
encryptionRequired?: boolean
|
|
13687
|
+
/**
|
|
13688
|
+
* Retention window in seconds; required when history is "window"
|
|
13689
|
+
*/
|
|
13690
|
+
historyWindowSeconds?: number
|
|
13691
|
+
}
|
|
13692
|
+
|
|
13693
|
+
export interface RealtimeNamespaceUpdateOutput {
|
|
13694
|
+
id: string
|
|
13695
|
+
name: string
|
|
13696
|
+
history: ("none" | "last-message" | "window")
|
|
13697
|
+
presence: boolean
|
|
13698
|
+
createdAt: string
|
|
13699
|
+
updatedAt: string
|
|
13700
|
+
visibility: ("public" | "authorized")
|
|
13701
|
+
clientEvents: boolean
|
|
13702
|
+
identifiedOnly: boolean
|
|
13703
|
+
encryptionRequired: boolean
|
|
13704
|
+
historyWindowSeconds: (number | null)
|
|
13705
|
+
}
|
|
13706
|
+
|
|
13707
|
+
export interface RealtimeStatusGetInput {
|
|
13708
|
+
|
|
13709
|
+
}
|
|
13710
|
+
|
|
13711
|
+
export interface RealtimeStatusGetOutput {
|
|
13712
|
+
/**
|
|
13713
|
+
* Redis fan-out connectivity
|
|
13714
|
+
*/
|
|
13715
|
+
redis: ("connected" | "disconnected" | "unconfigured")
|
|
13716
|
+
/**
|
|
13717
|
+
* API liveness marker
|
|
13718
|
+
*/
|
|
13719
|
+
service: "ok"
|
|
13720
|
+
/**
|
|
13721
|
+
* WebSocket URL of the realtime gateway
|
|
13722
|
+
*/
|
|
13723
|
+
gatewayUrl: string
|
|
13724
|
+
/**
|
|
13725
|
+
* Whether the token signing key is present
|
|
13726
|
+
*/
|
|
13727
|
+
signingKeyConfigured: boolean
|
|
13728
|
+
}
|
|
13729
|
+
|
|
13730
|
+
export interface RealtimeTokensCreateInput {
|
|
13731
|
+
/**
|
|
13732
|
+
* Concrete channels to filter the resolved capabilities to; omit to receive all capabilities the identity has
|
|
13733
|
+
*
|
|
13734
|
+
* @minItems 1
|
|
13735
|
+
* @maxItems 32
|
|
13736
|
+
*/
|
|
13737
|
+
channels?: [string, ...(string)[]]
|
|
13738
|
+
}
|
|
13739
|
+
|
|
13740
|
+
export interface RealtimeTokensCreateOutput {
|
|
13741
|
+
/**
|
|
13742
|
+
* Signed EdDSA capability JWT (60s TTL)
|
|
13743
|
+
*/
|
|
13744
|
+
token: string
|
|
13745
|
+
/**
|
|
13746
|
+
* WebSocket URL of the realtime gateway to connect to
|
|
13747
|
+
*/
|
|
13748
|
+
gatewayUrl: string
|
|
13749
|
+
}
|
|
13750
|
+
|
|
13411
13751
|
export interface TrackingApiKeysCreateInput {
|
|
13412
13752
|
name: string
|
|
13413
13753
|
}
|