@lepsto/sdk-app 90.1.0 → 91.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/CHANGELOG.md +11 -15
- package/dist/_types/gen/client.gen.d.ts +7 -1
- package/dist/_types/gen/types.gen.d.ts +317 -8
- package/dist/_types/gen/users/index.d.ts +1 -1
- package/dist/_types/gen/users/queryOptions.gen.d.ts +17 -1
- package/dist/{chunk-T3O56NBF.js → chunk-LMCZVZKI.js} +116 -2
- package/dist/{chunk-T3O56NBF.js.map → chunk-LMCZVZKI.js.map} +1 -1
- package/dist/index.cjs +122 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/playground/index.cjs.map +1 -1
- package/dist/playground/index.js +1 -1
- package/dist/users/index.cjs +20 -0
- package/dist/users/index.cjs.map +1 -1
- package/dist/users/index.js +17 -1
- package/dist/users/index.js.map +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +114 -0
- package/src/gen/client.gen.ts +14 -0
- package/src/gen/manifest.gen.ts +8 -0
- package/src/gen/types.gen.ts +325 -8
- package/src/gen/users/index.ts +1 -1
- package/src/gen/users/queryOptions.gen.ts +25 -0
package/src/gen/types.gen.ts
CHANGED
|
@@ -117759,6 +117759,251 @@ createdInWindow: number
|
|
|
117759
117759
|
}
|
|
117760
117760
|
}
|
|
117761
117761
|
|
|
117762
|
+
export interface UsersTouchesCreateInput {
|
|
117763
|
+
/**
|
|
117764
|
+
* What was said or done, free text, 1-8192 characters. Personal data: it is whatever an operator typed about this person.
|
|
117765
|
+
*/
|
|
117766
|
+
body: string
|
|
117767
|
+
/**
|
|
117768
|
+
* The end user this interaction was with.
|
|
117769
|
+
*/
|
|
117770
|
+
userId: string
|
|
117771
|
+
/**
|
|
117772
|
+
* How the person was touched: 'message', 'call', 'meeting', 'note' (an internal observation nobody sent) or 'email' sent OUTSIDE the platform. Email this toolkit sent is not logged here — read those from the mail toolkit.
|
|
117773
|
+
*/
|
|
117774
|
+
channel: ("message" | "call" | "meeting" | "note" | "email")
|
|
117775
|
+
/**
|
|
117776
|
+
* Which way it went: 'outbound' (you reached them), 'inbound' (they reached you) or 'none'. A 'note' or a 'meeting' must be 'none'.
|
|
117777
|
+
*/
|
|
117778
|
+
direction: ("outbound" | "inbound" | "none")
|
|
117779
|
+
/**
|
|
117780
|
+
* When it happened (ISO 8601). Omit to mean now — pass it when logging after the fact, which may be any time in the past.
|
|
117781
|
+
*/
|
|
117782
|
+
occurredAt?: string
|
|
117783
|
+
}
|
|
117784
|
+
|
|
117785
|
+
export interface UsersTouchesCreateOutput {
|
|
117786
|
+
/**
|
|
117787
|
+
* Id of this touch. Pass it to users_touches_update or _delete.
|
|
117788
|
+
*/
|
|
117789
|
+
id: string
|
|
117790
|
+
/**
|
|
117791
|
+
* What was said or done, free text, 1-8192 characters. Personal data: it is whatever an operator typed about this person.
|
|
117792
|
+
*/
|
|
117793
|
+
body: string
|
|
117794
|
+
/**
|
|
117795
|
+
* The end user this interaction was with.
|
|
117796
|
+
*/
|
|
117797
|
+
userId: string
|
|
117798
|
+
/**
|
|
117799
|
+
* Id of the operator or agent that logged it, verbatim.
|
|
117800
|
+
*/
|
|
117801
|
+
actorId: string
|
|
117802
|
+
/**
|
|
117803
|
+
* How the person was touched: 'message', 'call', 'meeting', 'note' (an internal observation nobody sent) or 'email' sent OUTSIDE the platform. Email this toolkit sent is not logged here — read those from the mail toolkit.
|
|
117804
|
+
*/
|
|
117805
|
+
channel: ("message" | "call" | "meeting" | "note" | "email")
|
|
117806
|
+
/**
|
|
117807
|
+
* Who logged it: 'operator' (a human) or 'agent' (a workflow or agent principal).
|
|
117808
|
+
*/
|
|
117809
|
+
actorType: ("operator" | "agent")
|
|
117810
|
+
/**
|
|
117811
|
+
* When the touch was logged (ISO 8601).
|
|
117812
|
+
*/
|
|
117813
|
+
createdAt: string
|
|
117814
|
+
/**
|
|
117815
|
+
* Which way it went: 'outbound' (you reached them), 'inbound' (they reached you) or 'none'. A 'note' or a 'meeting' must be 'none'.
|
|
117816
|
+
*/
|
|
117817
|
+
direction: ("outbound" | "inbound" | "none")
|
|
117818
|
+
/**
|
|
117819
|
+
* Product this touch belongs to. Never an input — it comes from the calling identity.
|
|
117820
|
+
*/
|
|
117821
|
+
productId: string
|
|
117822
|
+
/**
|
|
117823
|
+
* When the touch was last edited (ISO 8601).
|
|
117824
|
+
*/
|
|
117825
|
+
updatedAt: string
|
|
117826
|
+
/**
|
|
117827
|
+
* When the interaction happened (ISO 8601) — not when it was logged.
|
|
117828
|
+
*/
|
|
117829
|
+
occurredAt: string
|
|
117830
|
+
}
|
|
117831
|
+
|
|
117832
|
+
export interface UsersTouchesDiscardInput {
|
|
117833
|
+
/**
|
|
117834
|
+
* Act on a touch somebody else logged. Without it a touch you did not author answers 404, exactly as a touch that does not exist does — the refusal must not tell you the row is there. Every forced call is recorded in the audit trail.
|
|
117835
|
+
*/
|
|
117836
|
+
force?: boolean
|
|
117837
|
+
/**
|
|
117838
|
+
* The end user the touch belongs to.
|
|
117839
|
+
*/
|
|
117840
|
+
userId: string
|
|
117841
|
+
/**
|
|
117842
|
+
* The touch to delete, from users_touches_list.
|
|
117843
|
+
*/
|
|
117844
|
+
touchId: string
|
|
117845
|
+
}
|
|
117846
|
+
|
|
117847
|
+
export interface UsersTouchesDiscardOutput {
|
|
117848
|
+
/**
|
|
117849
|
+
* Id of the touch that was deleted.
|
|
117850
|
+
*/
|
|
117851
|
+
id: string
|
|
117852
|
+
/**
|
|
117853
|
+
* The end user it belonged to.
|
|
117854
|
+
*/
|
|
117855
|
+
userId: string
|
|
117856
|
+
/**
|
|
117857
|
+
* Always true — a failure answers 404 instead.
|
|
117858
|
+
*/
|
|
117859
|
+
deleted: true
|
|
117860
|
+
}
|
|
117861
|
+
|
|
117862
|
+
export interface UsersTouchesListInput {
|
|
117863
|
+
/**
|
|
117864
|
+
* Page size, 1-100. Default 50.
|
|
117865
|
+
*/
|
|
117866
|
+
limit?: number
|
|
117867
|
+
/**
|
|
117868
|
+
* Opaque cursor from a previous response's `nextCursor`. Omit for the first page.
|
|
117869
|
+
*/
|
|
117870
|
+
cursor?: string
|
|
117871
|
+
/**
|
|
117872
|
+
* The end user whose touches to list.
|
|
117873
|
+
*/
|
|
117874
|
+
userId: string
|
|
117875
|
+
/**
|
|
117876
|
+
* Only touches on this channel. Omit for all of them.
|
|
117877
|
+
*/
|
|
117878
|
+
channel?: ("message" | "call" | "meeting" | "note" | "email")
|
|
117879
|
+
}
|
|
117880
|
+
|
|
117881
|
+
export interface UsersTouchesListOutput {
|
|
117882
|
+
/**
|
|
117883
|
+
* The page of touches, newest first.
|
|
117884
|
+
*/
|
|
117885
|
+
items: {
|
|
117886
|
+
/**
|
|
117887
|
+
* Id of this touch. Pass it to users_touches_update or _delete.
|
|
117888
|
+
*/
|
|
117889
|
+
id: string
|
|
117890
|
+
/**
|
|
117891
|
+
* What was said or done, free text, 1-8192 characters. Personal data: it is whatever an operator typed about this person.
|
|
117892
|
+
*/
|
|
117893
|
+
body: string
|
|
117894
|
+
/**
|
|
117895
|
+
* The end user this interaction was with.
|
|
117896
|
+
*/
|
|
117897
|
+
userId: string
|
|
117898
|
+
/**
|
|
117899
|
+
* Id of the operator or agent that logged it, verbatim.
|
|
117900
|
+
*/
|
|
117901
|
+
actorId: string
|
|
117902
|
+
/**
|
|
117903
|
+
* How the person was touched: 'message', 'call', 'meeting', 'note' (an internal observation nobody sent) or 'email' sent OUTSIDE the platform. Email this toolkit sent is not logged here — read those from the mail toolkit.
|
|
117904
|
+
*/
|
|
117905
|
+
channel: ("message" | "call" | "meeting" | "note" | "email")
|
|
117906
|
+
/**
|
|
117907
|
+
* Who logged it: 'operator' (a human) or 'agent' (a workflow or agent principal).
|
|
117908
|
+
*/
|
|
117909
|
+
actorType: ("operator" | "agent")
|
|
117910
|
+
/**
|
|
117911
|
+
* When the touch was logged (ISO 8601).
|
|
117912
|
+
*/
|
|
117913
|
+
createdAt: string
|
|
117914
|
+
/**
|
|
117915
|
+
* Which way it went: 'outbound' (you reached them), 'inbound' (they reached you) or 'none'. A 'note' or a 'meeting' must be 'none'.
|
|
117916
|
+
*/
|
|
117917
|
+
direction: ("outbound" | "inbound" | "none")
|
|
117918
|
+
/**
|
|
117919
|
+
* Product this touch belongs to. Never an input — it comes from the calling identity.
|
|
117920
|
+
*/
|
|
117921
|
+
productId: string
|
|
117922
|
+
/**
|
|
117923
|
+
* When the touch was last edited (ISO 8601).
|
|
117924
|
+
*/
|
|
117925
|
+
updatedAt: string
|
|
117926
|
+
/**
|
|
117927
|
+
* When the interaction happened (ISO 8601) — not when it was logged.
|
|
117928
|
+
*/
|
|
117929
|
+
occurredAt: string
|
|
117930
|
+
}[]
|
|
117931
|
+
/**
|
|
117932
|
+
* Pass as `cursor` for the next page. Null when this was the last one.
|
|
117933
|
+
*/
|
|
117934
|
+
nextCursor: (string | null)
|
|
117935
|
+
}
|
|
117936
|
+
|
|
117937
|
+
export interface UsersTouchesUpdateInput {
|
|
117938
|
+
/**
|
|
117939
|
+
* Replacement text, 1-8192 characters. Omit to leave it unchanged.
|
|
117940
|
+
*/
|
|
117941
|
+
body?: string
|
|
117942
|
+
/**
|
|
117943
|
+
* Act on a touch somebody else logged. Without it a touch you did not author answers 404, exactly as a touch that does not exist does — the refusal must not tell you the row is there. Every forced call is recorded in the audit trail.
|
|
117944
|
+
*/
|
|
117945
|
+
force?: boolean
|
|
117946
|
+
/**
|
|
117947
|
+
* The end user the touch belongs to.
|
|
117948
|
+
*/
|
|
117949
|
+
userId: string
|
|
117950
|
+
/**
|
|
117951
|
+
* The touch to edit, from users_touches_list.
|
|
117952
|
+
*/
|
|
117953
|
+
touchId: string
|
|
117954
|
+
/**
|
|
117955
|
+
* Correct when it happened (ISO 8601). Omit to leave it unchanged.
|
|
117956
|
+
*/
|
|
117957
|
+
occurredAt?: string
|
|
117958
|
+
}
|
|
117959
|
+
|
|
117960
|
+
export interface UsersTouchesUpdateOutput {
|
|
117961
|
+
/**
|
|
117962
|
+
* Id of this touch. Pass it to users_touches_update or _delete.
|
|
117963
|
+
*/
|
|
117964
|
+
id: string
|
|
117965
|
+
/**
|
|
117966
|
+
* What was said or done, free text, 1-8192 characters. Personal data: it is whatever an operator typed about this person.
|
|
117967
|
+
*/
|
|
117968
|
+
body: string
|
|
117969
|
+
/**
|
|
117970
|
+
* The end user this interaction was with.
|
|
117971
|
+
*/
|
|
117972
|
+
userId: string
|
|
117973
|
+
/**
|
|
117974
|
+
* Id of the operator or agent that logged it, verbatim.
|
|
117975
|
+
*/
|
|
117976
|
+
actorId: string
|
|
117977
|
+
/**
|
|
117978
|
+
* How the person was touched: 'message', 'call', 'meeting', 'note' (an internal observation nobody sent) or 'email' sent OUTSIDE the platform. Email this toolkit sent is not logged here — read those from the mail toolkit.
|
|
117979
|
+
*/
|
|
117980
|
+
channel: ("message" | "call" | "meeting" | "note" | "email")
|
|
117981
|
+
/**
|
|
117982
|
+
* Who logged it: 'operator' (a human) or 'agent' (a workflow or agent principal).
|
|
117983
|
+
*/
|
|
117984
|
+
actorType: ("operator" | "agent")
|
|
117985
|
+
/**
|
|
117986
|
+
* When the touch was logged (ISO 8601).
|
|
117987
|
+
*/
|
|
117988
|
+
createdAt: string
|
|
117989
|
+
/**
|
|
117990
|
+
* Which way it went: 'outbound' (you reached them), 'inbound' (they reached you) or 'none'. A 'note' or a 'meeting' must be 'none'.
|
|
117991
|
+
*/
|
|
117992
|
+
direction: ("outbound" | "inbound" | "none")
|
|
117993
|
+
/**
|
|
117994
|
+
* Product this touch belongs to. Never an input — it comes from the calling identity.
|
|
117995
|
+
*/
|
|
117996
|
+
productId: string
|
|
117997
|
+
/**
|
|
117998
|
+
* When the touch was last edited (ISO 8601).
|
|
117999
|
+
*/
|
|
118000
|
+
updatedAt: string
|
|
118001
|
+
/**
|
|
118002
|
+
* When the interaction happened (ISO 8601) — not when it was logged.
|
|
118003
|
+
*/
|
|
118004
|
+
occurredAt: string
|
|
118005
|
+
}
|
|
118006
|
+
|
|
117762
118007
|
export interface UsersUsersBanInput {
|
|
117763
118008
|
/**
|
|
117764
118009
|
* The opaque user id returned by users_users_create or _list.
|
|
@@ -117819,6 +118064,10 @@ productId: string
|
|
|
117819
118064
|
* When the user was last changed (ISO 8601).
|
|
117820
118065
|
*/
|
|
117821
118066
|
updatedAt: string
|
|
118067
|
+
/**
|
|
118068
|
+
* Set when you asked for an id that was merged into this account — it is the id you asked for, and this is the row it now lives in. Null on every ordinary read.
|
|
118069
|
+
*/
|
|
118070
|
+
mergedFrom: (string | null)
|
|
117822
118071
|
/**
|
|
117823
118072
|
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
117824
118073
|
*/
|
|
@@ -117832,7 +118081,7 @@ identifiers: {
|
|
|
117832
118081
|
*/
|
|
117833
118082
|
id: string
|
|
117834
118083
|
/**
|
|
117835
|
-
* What kind of identifier this is
|
|
118084
|
+
* What kind of identifier this is: `email`, `phone`, `telegram`, `linkedin` or `x`. Only `email` can be signed in with — the other four are contact channels, reachable but never part of the auth plane.
|
|
117836
118085
|
*/
|
|
117837
118086
|
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
117838
118087
|
/**
|
|
@@ -117856,6 +118105,10 @@ valueCanonical: string
|
|
|
117856
118105
|
*/
|
|
117857
118106
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
117858
118107
|
}[]
|
|
118108
|
+
/**
|
|
118109
|
+
* When this person was last touched — the most recent logged interaction (ISO 8601). Null when nobody has logged one. This is when the interaction HAPPENED, not when it was logged.
|
|
118110
|
+
*/
|
|
118111
|
+
lastTouchAt: (string | null)
|
|
117859
118112
|
/**
|
|
117860
118113
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
117861
118114
|
*/
|
|
@@ -118069,6 +118322,10 @@ productId: string
|
|
|
118069
118322
|
* When the user was last changed (ISO 8601).
|
|
118070
118323
|
*/
|
|
118071
118324
|
updatedAt: string
|
|
118325
|
+
/**
|
|
118326
|
+
* Set when you asked for an id that was merged into this account — it is the id you asked for, and this is the row it now lives in. Null on every ordinary read.
|
|
118327
|
+
*/
|
|
118328
|
+
mergedFrom: (string | null)
|
|
118072
118329
|
/**
|
|
118073
118330
|
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
118074
118331
|
*/
|
|
@@ -118082,7 +118339,7 @@ identifiers: {
|
|
|
118082
118339
|
*/
|
|
118083
118340
|
id: string
|
|
118084
118341
|
/**
|
|
118085
|
-
* What kind of identifier this is
|
|
118342
|
+
* What kind of identifier this is: `email`, `phone`, `telegram`, `linkedin` or `x`. Only `email` can be signed in with — the other four are contact channels, reachable but never part of the auth plane.
|
|
118086
118343
|
*/
|
|
118087
118344
|
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118088
118345
|
/**
|
|
@@ -118106,6 +118363,10 @@ valueCanonical: string
|
|
|
118106
118363
|
*/
|
|
118107
118364
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118108
118365
|
}[]
|
|
118366
|
+
/**
|
|
118367
|
+
* When this person was last touched — the most recent logged interaction (ISO 8601). Null when nobody has logged one. This is when the interaction HAPPENED, not when it was logged.
|
|
118368
|
+
*/
|
|
118369
|
+
lastTouchAt: (string | null)
|
|
118109
118370
|
/**
|
|
118110
118371
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118111
118372
|
*/
|
|
@@ -118214,6 +118475,10 @@ productId: string
|
|
|
118214
118475
|
* When the user was last changed (ISO 8601).
|
|
118215
118476
|
*/
|
|
118216
118477
|
updatedAt: string
|
|
118478
|
+
/**
|
|
118479
|
+
* Set when you asked for an id that was merged into this account — it is the id you asked for, and this is the row it now lives in. Null on every ordinary read.
|
|
118480
|
+
*/
|
|
118481
|
+
mergedFrom: (string | null)
|
|
118217
118482
|
/**
|
|
118218
118483
|
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
118219
118484
|
*/
|
|
@@ -118227,7 +118492,7 @@ identifiers: {
|
|
|
118227
118492
|
*/
|
|
118228
118493
|
id: string
|
|
118229
118494
|
/**
|
|
118230
|
-
* What kind of identifier this is
|
|
118495
|
+
* What kind of identifier this is: `email`, `phone`, `telegram`, `linkedin` or `x`. Only `email` can be signed in with — the other four are contact channels, reachable but never part of the auth plane.
|
|
118231
118496
|
*/
|
|
118232
118497
|
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118233
118498
|
/**
|
|
@@ -118251,6 +118516,10 @@ valueCanonical: string
|
|
|
118251
118516
|
*/
|
|
118252
118517
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118253
118518
|
}[]
|
|
118519
|
+
/**
|
|
118520
|
+
* When this person was last touched — the most recent logged interaction (ISO 8601). Null when nobody has logged one. This is when the interaction HAPPENED, not when it was logged.
|
|
118521
|
+
*/
|
|
118522
|
+
lastTouchAt: (string | null)
|
|
118254
118523
|
/**
|
|
118255
118524
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118256
118525
|
*/
|
|
@@ -118385,6 +118654,10 @@ productId: string
|
|
|
118385
118654
|
* When the user was last changed (ISO 8601).
|
|
118386
118655
|
*/
|
|
118387
118656
|
updatedAt: string
|
|
118657
|
+
/**
|
|
118658
|
+
* Set when you asked for an id that was merged into this account — it is the id you asked for, and this is the row it now lives in. Null on every ordinary read.
|
|
118659
|
+
*/
|
|
118660
|
+
mergedFrom: (string | null)
|
|
118388
118661
|
/**
|
|
118389
118662
|
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
118390
118663
|
*/
|
|
@@ -118398,7 +118671,7 @@ identifiers: {
|
|
|
118398
118671
|
*/
|
|
118399
118672
|
id: string
|
|
118400
118673
|
/**
|
|
118401
|
-
* What kind of identifier this is
|
|
118674
|
+
* What kind of identifier this is: `email`, `phone`, `telegram`, `linkedin` or `x`. Only `email` can be signed in with — the other four are contact channels, reachable but never part of the auth plane.
|
|
118402
118675
|
*/
|
|
118403
118676
|
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118404
118677
|
/**
|
|
@@ -118422,6 +118695,10 @@ valueCanonical: string
|
|
|
118422
118695
|
*/
|
|
118423
118696
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118424
118697
|
}[]
|
|
118698
|
+
/**
|
|
118699
|
+
* When this person was last touched — the most recent logged interaction (ISO 8601). Null when nobody has logged one. This is when the interaction HAPPENED, not when it was logged.
|
|
118700
|
+
*/
|
|
118701
|
+
lastTouchAt: (string | null)
|
|
118425
118702
|
/**
|
|
118426
118703
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118427
118704
|
*/
|
|
@@ -118533,6 +118810,10 @@ productId: string
|
|
|
118533
118810
|
* When the user was last changed (ISO 8601).
|
|
118534
118811
|
*/
|
|
118535
118812
|
updatedAt: string
|
|
118813
|
+
/**
|
|
118814
|
+
* Set when you asked for an id that was merged into this account — it is the id you asked for, and this is the row it now lives in. Null on every ordinary read.
|
|
118815
|
+
*/
|
|
118816
|
+
mergedFrom: (string | null)
|
|
118536
118817
|
/**
|
|
118537
118818
|
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
118538
118819
|
*/
|
|
@@ -118546,7 +118827,7 @@ identifiers: {
|
|
|
118546
118827
|
*/
|
|
118547
118828
|
id: string
|
|
118548
118829
|
/**
|
|
118549
|
-
* What kind of identifier this is
|
|
118830
|
+
* What kind of identifier this is: `email`, `phone`, `telegram`, `linkedin` or `x`. Only `email` can be signed in with — the other four are contact channels, reachable but never part of the auth plane.
|
|
118550
118831
|
*/
|
|
118551
118832
|
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118552
118833
|
/**
|
|
@@ -118570,6 +118851,10 @@ valueCanonical: string
|
|
|
118570
118851
|
*/
|
|
118571
118852
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118572
118853
|
}[]
|
|
118854
|
+
/**
|
|
118855
|
+
* When this person was last touched — the most recent logged interaction (ISO 8601). Null when nobody has logged one. This is when the interaction HAPPENED, not when it was logged.
|
|
118856
|
+
*/
|
|
118857
|
+
lastTouchAt: (string | null)
|
|
118573
118858
|
/**
|
|
118574
118859
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118575
118860
|
*/
|
|
@@ -118747,10 +119032,18 @@ status?: ("active" | "banned" | "waitlisted")
|
|
|
118747
119032
|
* Include soft-deleted users. Default false — deleted users are hidden.
|
|
118748
119033
|
*/
|
|
118749
119034
|
includeDeleted?: boolean
|
|
119035
|
+
/**
|
|
119036
|
+
* Only people whose most recent logged interaction happened at or after this instant (ISO 8601). People never touched are EXCLUDED by this filter — list without it to see everyone.
|
|
119037
|
+
*/
|
|
119038
|
+
lastTouchAfter?: string
|
|
118750
119039
|
/**
|
|
118751
119040
|
* Include CONTACTS. Default false: a contact has no credential and has never signed in, so it is not part of the directory an operator browses — the same rule waitlist signups and test users follow. Use `kind: "contact"` to see only them.
|
|
118752
119041
|
*/
|
|
118753
119042
|
includeContacts?: boolean
|
|
119043
|
+
/**
|
|
119044
|
+
* Only people whose most recent logged interaction happened before this instant (ISO 8601) — the "gone quiet" list. People never touched are EXCLUDED rather than treated as infinitely stale; list without this filter to see everyone.
|
|
119045
|
+
*/
|
|
119046
|
+
lastTouchBefore?: string
|
|
118754
119047
|
/**
|
|
118755
119048
|
* Include TEST USERS. Default false: a test user is a fixture, not a customer — it is excluded from metering and from this listing for the same reason. Ask for it explicitly when you are debugging the fixtures themselves.
|
|
118756
119049
|
*/
|
|
@@ -118818,6 +119111,10 @@ productId: string
|
|
|
118818
119111
|
* When the user was last changed (ISO 8601).
|
|
118819
119112
|
*/
|
|
118820
119113
|
updatedAt: string
|
|
119114
|
+
/**
|
|
119115
|
+
* Set when you asked for an id that was merged into this account — it is the id you asked for, and this is the row it now lives in. Null on every ordinary read.
|
|
119116
|
+
*/
|
|
119117
|
+
mergedFrom: (string | null)
|
|
118821
119118
|
/**
|
|
118822
119119
|
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
118823
119120
|
*/
|
|
@@ -118831,7 +119128,7 @@ identifiers: {
|
|
|
118831
119128
|
*/
|
|
118832
119129
|
id: string
|
|
118833
119130
|
/**
|
|
118834
|
-
* What kind of identifier this is
|
|
119131
|
+
* What kind of identifier this is: `email`, `phone`, `telegram`, `linkedin` or `x`. Only `email` can be signed in with — the other four are contact channels, reachable but never part of the auth plane.
|
|
118835
119132
|
*/
|
|
118836
119133
|
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118837
119134
|
/**
|
|
@@ -118855,6 +119152,10 @@ valueCanonical: string
|
|
|
118855
119152
|
*/
|
|
118856
119153
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118857
119154
|
}[]
|
|
119155
|
+
/**
|
|
119156
|
+
* When this person was last touched — the most recent logged interaction (ISO 8601). Null when nobody has logged one. This is when the interaction HAPPENED, not when it was logged.
|
|
119157
|
+
*/
|
|
119158
|
+
lastTouchAt: (string | null)
|
|
118858
119159
|
/**
|
|
118859
119160
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118860
119161
|
*/
|
|
@@ -118994,6 +119295,10 @@ productId: string
|
|
|
118994
119295
|
* When the user was last changed (ISO 8601).
|
|
118995
119296
|
*/
|
|
118996
119297
|
updatedAt: string
|
|
119298
|
+
/**
|
|
119299
|
+
* Set when you asked for an id that was merged into this account — it is the id you asked for, and this is the row it now lives in. Null on every ordinary read.
|
|
119300
|
+
*/
|
|
119301
|
+
mergedFrom: (string | null)
|
|
118997
119302
|
/**
|
|
118998
119303
|
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
118999
119304
|
*/
|
|
@@ -119007,7 +119312,7 @@ identifiers: {
|
|
|
119007
119312
|
*/
|
|
119008
119313
|
id: string
|
|
119009
119314
|
/**
|
|
119010
|
-
* What kind of identifier this is
|
|
119315
|
+
* What kind of identifier this is: `email`, `phone`, `telegram`, `linkedin` or `x`. Only `email` can be signed in with — the other four are contact channels, reachable but never part of the auth plane.
|
|
119011
119316
|
*/
|
|
119012
119317
|
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
119013
119318
|
/**
|
|
@@ -119031,6 +119336,10 @@ valueCanonical: string
|
|
|
119031
119336
|
*/
|
|
119032
119337
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
119033
119338
|
}[]
|
|
119339
|
+
/**
|
|
119340
|
+
* When this person was last touched — the most recent logged interaction (ISO 8601). Null when nobody has logged one. This is when the interaction HAPPENED, not when it was logged.
|
|
119341
|
+
*/
|
|
119342
|
+
lastTouchAt: (string | null)
|
|
119034
119343
|
/**
|
|
119035
119344
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
119036
119345
|
*/
|
|
@@ -119187,6 +119496,10 @@ productId: string
|
|
|
119187
119496
|
* When the user was last changed (ISO 8601).
|
|
119188
119497
|
*/
|
|
119189
119498
|
updatedAt: string
|
|
119499
|
+
/**
|
|
119500
|
+
* Set when you asked for an id that was merged into this account — it is the id you asked for, and this is the row it now lives in. Null on every ordinary read.
|
|
119501
|
+
*/
|
|
119502
|
+
mergedFrom: (string | null)
|
|
119190
119503
|
/**
|
|
119191
119504
|
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
119192
119505
|
*/
|
|
@@ -119200,7 +119513,7 @@ identifiers: {
|
|
|
119200
119513
|
*/
|
|
119201
119514
|
id: string
|
|
119202
119515
|
/**
|
|
119203
|
-
* What kind of identifier this is
|
|
119516
|
+
* What kind of identifier this is: `email`, `phone`, `telegram`, `linkedin` or `x`. Only `email` can be signed in with — the other four are contact channels, reachable but never part of the auth plane.
|
|
119204
119517
|
*/
|
|
119205
119518
|
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
119206
119519
|
/**
|
|
@@ -119224,6 +119537,10 @@ valueCanonical: string
|
|
|
119224
119537
|
*/
|
|
119225
119538
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
119226
119539
|
}[]
|
|
119540
|
+
/**
|
|
119541
|
+
* When this person was last touched — the most recent logged interaction (ISO 8601). Null when nobody has logged one. This is when the interaction HAPPENED, not when it was logged.
|
|
119542
|
+
*/
|
|
119543
|
+
lastTouchAt: (string | null)
|
|
119227
119544
|
/**
|
|
119228
119545
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
119229
119546
|
*/
|
package/src/gen/users/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { UsersApikeysCreateInput, UsersApikeysCreateOutput, UsersApikeysGetInput, UsersApikeysGetOutput, UsersApikeysListInput, UsersApikeysListOutput, UsersApikeysRevokeInput, UsersApikeysRevokeOutput, UsersAuditListInput, UsersAuditListOutput, UsersConfigGetInput, UsersConfigGetOutput, UsersConfigUpsertInput, UsersConfigUpsertOutput, UsersFactorsListInput, UsersFactorsListOutput, UsersFactorsResetInput, UsersFactorsResetOutput, UsersKeysListInput, UsersKeysListOutput, UsersKeysRevokeInput, UsersKeysRevokeOutput, UsersKeysRotateInput, UsersKeysRotateOutput, UsersOpsRetentionGetInput, UsersOpsRetentionGetOutput, UsersOpsSloGetInput, UsersOpsSloGetOutput, UsersPasskeysGetInput, UsersPasskeysGetOutput, UsersPasskeysListInput, UsersPasskeysListOutput, UsersPasskeysRevokeInput, UsersPasskeysRevokeOutput, UsersSessionsGetInput, UsersSessionsGetOutput, UsersSessionsImpersonateInput, UsersSessionsImpersonateOutput, UsersSessionsListInput, UsersSessionsListOutput, UsersSessionsRevokeInput, UsersSessionsRevokeOutput, UsersStatsGetInput, UsersStatsGetOutput, UsersUsersBanInput, UsersUsersBanOutput, UsersUsersCreateInput, UsersUsersCreateOutput, UsersUsersDeleteInput, UsersUsersDeleteOutput, UsersUsersExportInput, UsersUsersExportOutput, UsersUsersGetInput, UsersUsersGetOutput, UsersUsersImportInput, UsersUsersImportOutput, UsersUsersInviteInput, UsersUsersInviteOutput, UsersUsersListInput, UsersUsersListOutput, UsersUsersSetPrimaryIdentifierInput, UsersUsersSetPrimaryIdentifierOutput, UsersUsersUnbanInput, UsersUsersUnbanOutput, UsersUsersUpdateInput, UsersUsersUpdateOutput, UsersWaitlistFunnelInput, UsersWaitlistFunnelOutput, UsersWaitlistGetInput, UsersWaitlistGetOutput, UsersWaitlistImportInput, UsersWaitlistImportOutput, UsersWaitlistInviteInput, UsersWaitlistInviteOutput, UsersWaitlistListInput, UsersWaitlistListOutput, UsersWebhooksCreateInput, UsersWebhooksCreateOutput, UsersWebhooksDeleteInput, UsersWebhooksDeleteOutput, UsersWebhooksDeliveriesListInput, UsersWebhooksDeliveriesListOutput, UsersWebhooksGetInput, UsersWebhooksGetOutput, UsersWebhooksListInput, UsersWebhooksListOutput, UsersWebhooksRotateSecretInput, UsersWebhooksRotateSecretOutput, UsersWebhooksUpdateInput, UsersWebhooksUpdateOutput } from '../types.gen';
|
|
3
|
+
export type { UsersApikeysCreateInput, UsersApikeysCreateOutput, UsersApikeysGetInput, UsersApikeysGetOutput, UsersApikeysListInput, UsersApikeysListOutput, UsersApikeysRevokeInput, UsersApikeysRevokeOutput, UsersAuditListInput, UsersAuditListOutput, UsersConfigGetInput, UsersConfigGetOutput, UsersConfigUpsertInput, UsersConfigUpsertOutput, UsersFactorsListInput, UsersFactorsListOutput, UsersFactorsResetInput, UsersFactorsResetOutput, UsersKeysListInput, UsersKeysListOutput, UsersKeysRevokeInput, UsersKeysRevokeOutput, UsersKeysRotateInput, UsersKeysRotateOutput, UsersOpsRetentionGetInput, UsersOpsRetentionGetOutput, UsersOpsSloGetInput, UsersOpsSloGetOutput, UsersPasskeysGetInput, UsersPasskeysGetOutput, UsersPasskeysListInput, UsersPasskeysListOutput, UsersPasskeysRevokeInput, UsersPasskeysRevokeOutput, UsersSessionsGetInput, UsersSessionsGetOutput, UsersSessionsImpersonateInput, UsersSessionsImpersonateOutput, UsersSessionsListInput, UsersSessionsListOutput, UsersSessionsRevokeInput, UsersSessionsRevokeOutput, UsersStatsGetInput, UsersStatsGetOutput, UsersTouchesCreateInput, UsersTouchesCreateOutput, UsersTouchesDiscardInput, UsersTouchesDiscardOutput, UsersTouchesListInput, UsersTouchesListOutput, UsersTouchesUpdateInput, UsersTouchesUpdateOutput, UsersUsersBanInput, UsersUsersBanOutput, UsersUsersCreateInput, UsersUsersCreateOutput, UsersUsersDeleteInput, UsersUsersDeleteOutput, UsersUsersExportInput, UsersUsersExportOutput, UsersUsersGetInput, UsersUsersGetOutput, UsersUsersImportInput, UsersUsersImportOutput, UsersUsersInviteInput, UsersUsersInviteOutput, UsersUsersListInput, UsersUsersListOutput, UsersUsersSetPrimaryIdentifierInput, UsersUsersSetPrimaryIdentifierOutput, UsersUsersUnbanInput, UsersUsersUnbanOutput, UsersUsersUpdateInput, UsersUsersUpdateOutput, UsersWaitlistFunnelInput, UsersWaitlistFunnelOutput, UsersWaitlistGetInput, UsersWaitlistGetOutput, UsersWaitlistImportInput, UsersWaitlistImportOutput, UsersWaitlistInviteInput, UsersWaitlistInviteOutput, UsersWaitlistListInput, UsersWaitlistListOutput, UsersWebhooksCreateInput, UsersWebhooksCreateOutput, UsersWebhooksDeleteInput, UsersWebhooksDeleteOutput, UsersWebhooksDeliveriesListInput, UsersWebhooksDeliveriesListOutput, UsersWebhooksGetInput, UsersWebhooksGetOutput, UsersWebhooksListInput, UsersWebhooksListOutput, UsersWebhooksRotateSecretInput, UsersWebhooksRotateSecretOutput, UsersWebhooksUpdateInput, UsersWebhooksUpdateOutput } from '../types.gen';
|
|
@@ -36,6 +36,11 @@ import type {
|
|
|
36
36
|
UsersSessionsRevokeInput,
|
|
37
37
|
UsersStatsGetInput,
|
|
38
38
|
UsersStatsGetOutput,
|
|
39
|
+
UsersTouchesCreateInput,
|
|
40
|
+
UsersTouchesDiscardInput,
|
|
41
|
+
UsersTouchesListInput,
|
|
42
|
+
UsersTouchesListOutput,
|
|
43
|
+
UsersTouchesUpdateInput,
|
|
39
44
|
UsersUsersBanInput,
|
|
40
45
|
UsersUsersCreateInput,
|
|
41
46
|
UsersUsersDeleteInput,
|
|
@@ -179,6 +184,26 @@ export const usersStatsGetQueryOptions = (sdk: GeneratedClient, input: UsersStat
|
|
|
179
184
|
queryFn: () => sdk['users']['stats']['get'](input),
|
|
180
185
|
});
|
|
181
186
|
|
|
187
|
+
export const usersTouchesCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
188
|
+
mutationKey: ['users', 'touches', 'create'],
|
|
189
|
+
mutationFn: (input: UsersTouchesCreateInput) => sdk['users']['touches']['create'](input),
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
export const usersTouchesDiscardMutationOptions = (sdk: GeneratedClient) => ({
|
|
193
|
+
mutationKey: ['users', 'touches', 'discard'],
|
|
194
|
+
mutationFn: (input: UsersTouchesDiscardInput) => sdk['users']['touches']['discard'](input),
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
export const usersTouchesListQueryOptions = (sdk: GeneratedClient, input: UsersTouchesListInput) => ({
|
|
198
|
+
queryKey: ['users', 'touches', 'list', input] as const,
|
|
199
|
+
queryFn: () => sdk['users']['touches']['list'](input),
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
export const usersTouchesUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
203
|
+
mutationKey: ['users', 'touches', 'update'],
|
|
204
|
+
mutationFn: (input: UsersTouchesUpdateInput) => sdk['users']['touches']['update'](input),
|
|
205
|
+
});
|
|
206
|
+
|
|
182
207
|
export const usersUsersBanMutationOptions = (sdk: GeneratedClient) => ({
|
|
183
208
|
mutationKey: ['users', 'users', 'ban'],
|
|
184
209
|
mutationFn: (input: UsersUsersBanInput) => sdk['users']['users']['ban'](input),
|