@lessly/sdk-app 9.2.0 → 10.0.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-BLMudoVx.d.cts → client.gen-XqieBmDz.d.cts} +411 -2
- package/dist/{client.gen-BLMudoVx.d.ts → client.gen-XqieBmDz.d.ts} +411 -2
- 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 +190 -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 +190 -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 +60 -0
- package/dist/realtime/index.cjs.map +1 -1
- package/dist/realtime/index.d.cts +50 -2
- package/dist/realtime/index.d.ts +50 -2
- package/dist/realtime/index.js +49 -1
- package/dist/realtime/index.js.map +1 -1
- 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 +2 -2
- package/src/gen/bindings.gen.ts +190 -0
- package/src/gen/client.gen.ts +44 -0
- package/src/gen/realtime/index.ts +1 -1
- package/src/gen/realtime/queryOptions.gen.ts +77 -0
- package/src/gen/types.gen.ts +415 -1
package/src/gen/types.gen.ts
CHANGED
|
@@ -13506,7 +13506,24 @@ id: string
|
|
|
13506
13506
|
*/
|
|
13507
13507
|
ts: number
|
|
13508
13508
|
/**
|
|
13509
|
-
*
|
|
13509
|
+
* Store-and-link reference for payloads over the inline cap
|
|
13510
|
+
*/
|
|
13511
|
+
ref?: {
|
|
13512
|
+
/**
|
|
13513
|
+
* Stored body size in bytes
|
|
13514
|
+
*/
|
|
13515
|
+
size: number
|
|
13516
|
+
/**
|
|
13517
|
+
* Object key in the product-scoped bucket
|
|
13518
|
+
*/
|
|
13519
|
+
bucket_key: string
|
|
13520
|
+
/**
|
|
13521
|
+
* Stored content type
|
|
13522
|
+
*/
|
|
13523
|
+
content_type?: string
|
|
13524
|
+
}
|
|
13525
|
+
/**
|
|
13526
|
+
* Inline payload (absent when ref is present)
|
|
13510
13527
|
*/
|
|
13511
13528
|
data?: {
|
|
13512
13529
|
[k: string]: unknown
|
|
@@ -13704,6 +13721,185 @@ encryptionRequired: boolean
|
|
|
13704
13721
|
historyWindowSeconds: (number | null)
|
|
13705
13722
|
}
|
|
13706
13723
|
|
|
13724
|
+
export interface RealtimePresenceEnterInput {
|
|
13725
|
+
/**
|
|
13726
|
+
* Arbitrary JSON metadata for the member (<=10KB serialized)
|
|
13727
|
+
*/
|
|
13728
|
+
info?: {
|
|
13729
|
+
[k: string]: unknown
|
|
13730
|
+
}
|
|
13731
|
+
/**
|
|
13732
|
+
* Channel name, "namespace:rest"
|
|
13733
|
+
*/
|
|
13734
|
+
channel: string
|
|
13735
|
+
/**
|
|
13736
|
+
* Act for a synthetic member id instead of the caller identity (backend integrations)
|
|
13737
|
+
*/
|
|
13738
|
+
member_id?: string
|
|
13739
|
+
/**
|
|
13740
|
+
* Presence entry TTL in seconds (1-3600)
|
|
13741
|
+
*/
|
|
13742
|
+
ttl_seconds?: number
|
|
13743
|
+
}
|
|
13744
|
+
|
|
13745
|
+
export interface RealtimePresenceEnterOutput {
|
|
13746
|
+
/**
|
|
13747
|
+
* The entered/updated member
|
|
13748
|
+
*/
|
|
13749
|
+
member: {
|
|
13750
|
+
/**
|
|
13751
|
+
* Last update timestamp (ms epoch)
|
|
13752
|
+
*/
|
|
13753
|
+
ts: number
|
|
13754
|
+
/**
|
|
13755
|
+
* Arbitrary JSON metadata for the member
|
|
13756
|
+
*/
|
|
13757
|
+
info?: {
|
|
13758
|
+
[k: string]: unknown
|
|
13759
|
+
}
|
|
13760
|
+
/**
|
|
13761
|
+
* Member identity
|
|
13762
|
+
*/
|
|
13763
|
+
identity: string
|
|
13764
|
+
/**
|
|
13765
|
+
* Number of live sockets for this identity
|
|
13766
|
+
*/
|
|
13767
|
+
connections: number
|
|
13768
|
+
}
|
|
13769
|
+
/**
|
|
13770
|
+
* Channel name
|
|
13771
|
+
*/
|
|
13772
|
+
channel: string
|
|
13773
|
+
}
|
|
13774
|
+
|
|
13775
|
+
export interface RealtimePresenceGetInput {
|
|
13776
|
+
/**
|
|
13777
|
+
* Channel name, "namespace:rest"
|
|
13778
|
+
*/
|
|
13779
|
+
channel: string
|
|
13780
|
+
}
|
|
13781
|
+
|
|
13782
|
+
export interface RealtimePresenceGetOutput {
|
|
13783
|
+
/**
|
|
13784
|
+
* Channel name
|
|
13785
|
+
*/
|
|
13786
|
+
channel: string
|
|
13787
|
+
/**
|
|
13788
|
+
* Current roster, deduplicated by identity
|
|
13789
|
+
*/
|
|
13790
|
+
members: {
|
|
13791
|
+
/**
|
|
13792
|
+
* Last update timestamp (ms epoch)
|
|
13793
|
+
*/
|
|
13794
|
+
ts: number
|
|
13795
|
+
/**
|
|
13796
|
+
* Arbitrary JSON metadata for the member
|
|
13797
|
+
*/
|
|
13798
|
+
info?: {
|
|
13799
|
+
[k: string]: unknown
|
|
13800
|
+
}
|
|
13801
|
+
/**
|
|
13802
|
+
* Member identity
|
|
13803
|
+
*/
|
|
13804
|
+
identity: string
|
|
13805
|
+
/**
|
|
13806
|
+
* Number of live sockets for this identity
|
|
13807
|
+
*/
|
|
13808
|
+
connections: number
|
|
13809
|
+
}[]
|
|
13810
|
+
}
|
|
13811
|
+
|
|
13812
|
+
export interface RealtimePresenceLeaveInput {
|
|
13813
|
+
/**
|
|
13814
|
+
* Channel name, "namespace:rest"
|
|
13815
|
+
*/
|
|
13816
|
+
channel: string
|
|
13817
|
+
/**
|
|
13818
|
+
* Act for a synthetic member id instead of the caller identity (backend integrations)
|
|
13819
|
+
*/
|
|
13820
|
+
member_id?: string
|
|
13821
|
+
}
|
|
13822
|
+
|
|
13823
|
+
export interface RealtimePresenceLeaveOutput {
|
|
13824
|
+
/**
|
|
13825
|
+
* Channel name
|
|
13826
|
+
*/
|
|
13827
|
+
channel: string
|
|
13828
|
+
/**
|
|
13829
|
+
* Whether the member was removed
|
|
13830
|
+
*/
|
|
13831
|
+
removed: boolean
|
|
13832
|
+
}
|
|
13833
|
+
|
|
13834
|
+
export interface RealtimePresenceStatsInput {
|
|
13835
|
+
/**
|
|
13836
|
+
* Channel name, "namespace:rest"
|
|
13837
|
+
*/
|
|
13838
|
+
channel: string
|
|
13839
|
+
}
|
|
13840
|
+
|
|
13841
|
+
export interface RealtimePresenceStatsOutput {
|
|
13842
|
+
/**
|
|
13843
|
+
* Channel name
|
|
13844
|
+
*/
|
|
13845
|
+
channel: string
|
|
13846
|
+
/**
|
|
13847
|
+
* Number of distinct identities present
|
|
13848
|
+
*/
|
|
13849
|
+
members: number
|
|
13850
|
+
}
|
|
13851
|
+
|
|
13852
|
+
export interface RealtimePresenceUpdateInput {
|
|
13853
|
+
/**
|
|
13854
|
+
* Arbitrary JSON metadata for the member (<=10KB serialized)
|
|
13855
|
+
*/
|
|
13856
|
+
info?: {
|
|
13857
|
+
[k: string]: unknown
|
|
13858
|
+
}
|
|
13859
|
+
/**
|
|
13860
|
+
* Channel name, "namespace:rest"
|
|
13861
|
+
*/
|
|
13862
|
+
channel: string
|
|
13863
|
+
/**
|
|
13864
|
+
* Act for a synthetic member id instead of the caller identity (backend integrations)
|
|
13865
|
+
*/
|
|
13866
|
+
member_id?: string
|
|
13867
|
+
/**
|
|
13868
|
+
* Presence entry TTL in seconds (1-3600)
|
|
13869
|
+
*/
|
|
13870
|
+
ttl_seconds?: number
|
|
13871
|
+
}
|
|
13872
|
+
|
|
13873
|
+
export interface RealtimePresenceUpdateOutput {
|
|
13874
|
+
/**
|
|
13875
|
+
* The entered/updated member
|
|
13876
|
+
*/
|
|
13877
|
+
member: {
|
|
13878
|
+
/**
|
|
13879
|
+
* Last update timestamp (ms epoch)
|
|
13880
|
+
*/
|
|
13881
|
+
ts: number
|
|
13882
|
+
/**
|
|
13883
|
+
* Arbitrary JSON metadata for the member
|
|
13884
|
+
*/
|
|
13885
|
+
info?: {
|
|
13886
|
+
[k: string]: unknown
|
|
13887
|
+
}
|
|
13888
|
+
/**
|
|
13889
|
+
* Member identity
|
|
13890
|
+
*/
|
|
13891
|
+
identity: string
|
|
13892
|
+
/**
|
|
13893
|
+
* Number of live sockets for this identity
|
|
13894
|
+
*/
|
|
13895
|
+
connections: number
|
|
13896
|
+
}
|
|
13897
|
+
/**
|
|
13898
|
+
* Channel name
|
|
13899
|
+
*/
|
|
13900
|
+
channel: string
|
|
13901
|
+
}
|
|
13902
|
+
|
|
13707
13903
|
export interface RealtimeStatusGetInput {
|
|
13708
13904
|
|
|
13709
13905
|
}
|
|
@@ -13748,6 +13944,224 @@ token: string
|
|
|
13748
13944
|
gatewayUrl: string
|
|
13749
13945
|
}
|
|
13750
13946
|
|
|
13947
|
+
export interface RealtimeWebhookCreateInput {
|
|
13948
|
+
/**
|
|
13949
|
+
* Endpoint that receives signed lifecycle POSTs (https in production)
|
|
13950
|
+
*/
|
|
13951
|
+
url: string
|
|
13952
|
+
/**
|
|
13953
|
+
* Lifecycle event types this webhook receives
|
|
13954
|
+
*
|
|
13955
|
+
* @minItems 1
|
|
13956
|
+
*/
|
|
13957
|
+
events: [("channel.occupied" | "channel.vacated" | "presence.member-added" | "presence.member-removed"), ...(("channel.occupied" | "channel.vacated" | "presence.member-added" | "presence.member-removed"))[]]
|
|
13958
|
+
/**
|
|
13959
|
+
* Free-form note
|
|
13960
|
+
*/
|
|
13961
|
+
description?: string
|
|
13962
|
+
}
|
|
13963
|
+
|
|
13964
|
+
export interface RealtimeWebhookCreateOutput {
|
|
13965
|
+
/**
|
|
13966
|
+
* Full signing secret — returned only once, at creation. Store it now.
|
|
13967
|
+
*/
|
|
13968
|
+
secret: string
|
|
13969
|
+
webhook: {
|
|
13970
|
+
id: string
|
|
13971
|
+
url: string
|
|
13972
|
+
active: boolean
|
|
13973
|
+
events: string[]
|
|
13974
|
+
/**
|
|
13975
|
+
* Secret metadata only — never the secret itself
|
|
13976
|
+
*/
|
|
13977
|
+
secrets: {
|
|
13978
|
+
/**
|
|
13979
|
+
* Visible secret prefix — matches the X-Realtime-Key header
|
|
13980
|
+
*/
|
|
13981
|
+
prefix: string
|
|
13982
|
+
createdAt: string
|
|
13983
|
+
/**
|
|
13984
|
+
* When this secret stops verifying; null = current signer
|
|
13985
|
+
*/
|
|
13986
|
+
expiresAt: (string | null)
|
|
13987
|
+
}[]
|
|
13988
|
+
createdAt: string
|
|
13989
|
+
updatedAt: string
|
|
13990
|
+
description: (string | null)
|
|
13991
|
+
}
|
|
13992
|
+
}
|
|
13993
|
+
|
|
13994
|
+
export interface RealtimeWebhookDeleteInput {
|
|
13995
|
+
/**
|
|
13996
|
+
* Webhook id
|
|
13997
|
+
*/
|
|
13998
|
+
webhookId: string
|
|
13999
|
+
}
|
|
14000
|
+
|
|
14001
|
+
export interface RealtimeWebhookDeleteOutput {
|
|
14002
|
+
deleted: true
|
|
14003
|
+
}
|
|
14004
|
+
|
|
14005
|
+
export interface RealtimeWebhookDeliveriesListInput {
|
|
14006
|
+
/**
|
|
14007
|
+
* Max deliveries to return (newest first)
|
|
14008
|
+
*/
|
|
14009
|
+
limit?: number
|
|
14010
|
+
/**
|
|
14011
|
+
* Webhook id
|
|
14012
|
+
*/
|
|
14013
|
+
webhookId: string
|
|
14014
|
+
}
|
|
14015
|
+
|
|
14016
|
+
export interface RealtimeWebhookDeliveriesListOutput {
|
|
14017
|
+
deliveries: {
|
|
14018
|
+
id: string
|
|
14019
|
+
status: ("pending" | "succeeded" | "failed")
|
|
14020
|
+
/**
|
|
14021
|
+
* Source lifecycle event idempotencyKey
|
|
14022
|
+
*/
|
|
14023
|
+
eventId: string
|
|
14024
|
+
attempts: number
|
|
14025
|
+
createdAt: string
|
|
14026
|
+
eventType: string
|
|
14027
|
+
lastError: (string | null)
|
|
14028
|
+
lastAttemptAt: (string | null)
|
|
14029
|
+
responseStatus: (number | null)
|
|
14030
|
+
}[]
|
|
14031
|
+
}
|
|
14032
|
+
|
|
14033
|
+
export interface RealtimeWebhookGetInput {
|
|
14034
|
+
/**
|
|
14035
|
+
* Webhook id
|
|
14036
|
+
*/
|
|
14037
|
+
webhookId: string
|
|
14038
|
+
}
|
|
14039
|
+
|
|
14040
|
+
export interface RealtimeWebhookGetOutput {
|
|
14041
|
+
id: string
|
|
14042
|
+
url: string
|
|
14043
|
+
active: boolean
|
|
14044
|
+
events: string[]
|
|
14045
|
+
/**
|
|
14046
|
+
* Secret metadata only — never the secret itself
|
|
14047
|
+
*/
|
|
14048
|
+
secrets: {
|
|
14049
|
+
/**
|
|
14050
|
+
* Visible secret prefix — matches the X-Realtime-Key header
|
|
14051
|
+
*/
|
|
14052
|
+
prefix: string
|
|
14053
|
+
createdAt: string
|
|
14054
|
+
/**
|
|
14055
|
+
* When this secret stops verifying; null = current signer
|
|
14056
|
+
*/
|
|
14057
|
+
expiresAt: (string | null)
|
|
14058
|
+
}[]
|
|
14059
|
+
createdAt: string
|
|
14060
|
+
updatedAt: string
|
|
14061
|
+
description: (string | null)
|
|
14062
|
+
}
|
|
14063
|
+
|
|
14064
|
+
export interface RealtimeWebhookListInput {
|
|
14065
|
+
|
|
14066
|
+
}
|
|
14067
|
+
|
|
14068
|
+
export interface RealtimeWebhookListOutput {
|
|
14069
|
+
webhooks: {
|
|
14070
|
+
id: string
|
|
14071
|
+
url: string
|
|
14072
|
+
active: boolean
|
|
14073
|
+
events: string[]
|
|
14074
|
+
/**
|
|
14075
|
+
* Secret metadata only — never the secret itself
|
|
14076
|
+
*/
|
|
14077
|
+
secrets: {
|
|
14078
|
+
/**
|
|
14079
|
+
* Visible secret prefix — matches the X-Realtime-Key header
|
|
14080
|
+
*/
|
|
14081
|
+
prefix: string
|
|
14082
|
+
createdAt: string
|
|
14083
|
+
/**
|
|
14084
|
+
* When this secret stops verifying; null = current signer
|
|
14085
|
+
*/
|
|
14086
|
+
expiresAt: (string | null)
|
|
14087
|
+
}[]
|
|
14088
|
+
createdAt: string
|
|
14089
|
+
updatedAt: string
|
|
14090
|
+
description: (string | null)
|
|
14091
|
+
}[]
|
|
14092
|
+
}
|
|
14093
|
+
|
|
14094
|
+
export interface RealtimeWebhookSecretRotateInput {
|
|
14095
|
+
/**
|
|
14096
|
+
* Webhook id
|
|
14097
|
+
*/
|
|
14098
|
+
webhookId: string
|
|
14099
|
+
}
|
|
14100
|
+
|
|
14101
|
+
export interface RealtimeWebhookSecretRotateOutput {
|
|
14102
|
+
/**
|
|
14103
|
+
* Visible prefix of the new secret (X-Realtime-Key)
|
|
14104
|
+
*/
|
|
14105
|
+
prefix: string
|
|
14106
|
+
/**
|
|
14107
|
+
* New full signing secret — returned only once. Store it now.
|
|
14108
|
+
*/
|
|
14109
|
+
secret: string
|
|
14110
|
+
/**
|
|
14111
|
+
* When the rotated-out secret stops verifying (grace window)
|
|
14112
|
+
*/
|
|
14113
|
+
previousExpiresAt: (string | null)
|
|
14114
|
+
}
|
|
14115
|
+
|
|
14116
|
+
export interface RealtimeWebhookUpdateInput {
|
|
14117
|
+
/**
|
|
14118
|
+
* Endpoint that receives signed lifecycle POSTs (https in production)
|
|
14119
|
+
*/
|
|
14120
|
+
url?: string
|
|
14121
|
+
/**
|
|
14122
|
+
* Inactive webhooks receive no deliveries
|
|
14123
|
+
*/
|
|
14124
|
+
active?: boolean
|
|
14125
|
+
/**
|
|
14126
|
+
* Lifecycle event types this webhook receives
|
|
14127
|
+
*
|
|
14128
|
+
* @minItems 1
|
|
14129
|
+
*/
|
|
14130
|
+
events?: [("channel.occupied" | "channel.vacated" | "presence.member-added" | "presence.member-removed"), ...(("channel.occupied" | "channel.vacated" | "presence.member-added" | "presence.member-removed"))[]]
|
|
14131
|
+
/**
|
|
14132
|
+
* Webhook id to update
|
|
14133
|
+
*/
|
|
14134
|
+
webhookId: string
|
|
14135
|
+
/**
|
|
14136
|
+
* Free-form note
|
|
14137
|
+
*/
|
|
14138
|
+
description?: (string | null)
|
|
14139
|
+
}
|
|
14140
|
+
|
|
14141
|
+
export interface RealtimeWebhookUpdateOutput {
|
|
14142
|
+
id: string
|
|
14143
|
+
url: string
|
|
14144
|
+
active: boolean
|
|
14145
|
+
events: string[]
|
|
14146
|
+
/**
|
|
14147
|
+
* Secret metadata only — never the secret itself
|
|
14148
|
+
*/
|
|
14149
|
+
secrets: {
|
|
14150
|
+
/**
|
|
14151
|
+
* Visible secret prefix — matches the X-Realtime-Key header
|
|
14152
|
+
*/
|
|
14153
|
+
prefix: string
|
|
14154
|
+
createdAt: string
|
|
14155
|
+
/**
|
|
14156
|
+
* When this secret stops verifying; null = current signer
|
|
14157
|
+
*/
|
|
14158
|
+
expiresAt: (string | null)
|
|
14159
|
+
}[]
|
|
14160
|
+
createdAt: string
|
|
14161
|
+
updatedAt: string
|
|
14162
|
+
description: (string | null)
|
|
14163
|
+
}
|
|
14164
|
+
|
|
13751
14165
|
export interface TrackingApiKeysCreateInput {
|
|
13752
14166
|
name: string
|
|
13753
14167
|
}
|