@lepsto/sdk-app 90.0.0 → 90.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/CHANGELOG.md +15 -6
- package/dist/_types/gen/client.gen.d.ts +7 -1
- package/dist/_types/gen/types.gen.d.ts +290 -13
- 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-VHBBS4OY.js} +116 -2
- package/dist/{chunk-T3O56NBF.js.map → chunk-VHBBS4OY.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 +298 -13
- 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 UsersTouchesDeleteInput {
|
|
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 UsersTouchesDeleteOutput {
|
|
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.
|
|
@@ -117834,7 +118079,7 @@ id: string
|
|
|
117834
118079
|
/**
|
|
117835
118080
|
* What kind of identifier this is. Today always `email`.
|
|
117836
118081
|
*/
|
|
117837
|
-
type: "email"
|
|
118082
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
117838
118083
|
/**
|
|
117839
118084
|
* The address as the user typed it, for display.
|
|
117840
118085
|
*/
|
|
@@ -117856,6 +118101,10 @@ valueCanonical: string
|
|
|
117856
118101
|
*/
|
|
117857
118102
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
117858
118103
|
}[]
|
|
118104
|
+
/**
|
|
118105
|
+
* 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.
|
|
118106
|
+
*/
|
|
118107
|
+
lastTouchAt: (string | null)
|
|
117859
118108
|
/**
|
|
117860
118109
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
117861
118110
|
*/
|
|
@@ -117951,7 +118200,7 @@ testUser?: boolean
|
|
|
117951
118200
|
*/
|
|
117952
118201
|
waitlisted?: boolean
|
|
117953
118202
|
/**
|
|
117954
|
-
*
|
|
118203
|
+
* How this user is reached: their email addresses, plus any contact channels (`phone`, `telegram`, `linkedin`, `x`). At least one is required.
|
|
117955
118204
|
*
|
|
117956
118205
|
* @minItems 1
|
|
117957
118206
|
*/
|
|
@@ -117959,13 +118208,13 @@ identifiers: [{
|
|
|
117959
118208
|
/**
|
|
117960
118209
|
* Identifier kind. Only 'email' exists in this phase.
|
|
117961
118210
|
*/
|
|
117962
|
-
type: "email"
|
|
118211
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
117963
118212
|
/**
|
|
117964
118213
|
* The email address. Stored canonicalised (lowercase, NFC) plus raw for display.
|
|
117965
118214
|
*/
|
|
117966
118215
|
value: string
|
|
117967
118216
|
/**
|
|
117968
|
-
* Record the identifier as already verified (use for trusted imports). Only ONE verified copy of
|
|
118217
|
+
* Record the identifier as already verified (use for trusted imports). IGNORED for contact channels, which are always stored unverified — nothing here can prove a phone or a handle. Only ONE verified copy of an email may exist per product; unverified duplicates are allowed. Default false.
|
|
117969
118218
|
*/
|
|
117970
118219
|
verified?: boolean
|
|
117971
118220
|
/**
|
|
@@ -117976,13 +118225,13 @@ isPrimary?: boolean
|
|
|
117976
118225
|
/**
|
|
117977
118226
|
* Identifier kind. Only 'email' exists in this phase.
|
|
117978
118227
|
*/
|
|
117979
|
-
type: "email"
|
|
118228
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
117980
118229
|
/**
|
|
117981
118230
|
* The email address. Stored canonicalised (lowercase, NFC) plus raw for display.
|
|
117982
118231
|
*/
|
|
117983
118232
|
value: string
|
|
117984
118233
|
/**
|
|
117985
|
-
* Record the identifier as already verified (use for trusted imports). Only ONE verified copy of
|
|
118234
|
+
* Record the identifier as already verified (use for trusted imports). IGNORED for contact channels, which are always stored unverified — nothing here can prove a phone or a handle. Only ONE verified copy of an email may exist per product; unverified duplicates are allowed. Default false.
|
|
117986
118235
|
*/
|
|
117987
118236
|
verified?: boolean
|
|
117988
118237
|
/**
|
|
@@ -118084,7 +118333,7 @@ id: string
|
|
|
118084
118333
|
/**
|
|
118085
118334
|
* What kind of identifier this is. Today always `email`.
|
|
118086
118335
|
*/
|
|
118087
|
-
type: "email"
|
|
118336
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118088
118337
|
/**
|
|
118089
118338
|
* The address as the user typed it, for display.
|
|
118090
118339
|
*/
|
|
@@ -118106,6 +118355,10 @@ valueCanonical: string
|
|
|
118106
118355
|
*/
|
|
118107
118356
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118108
118357
|
}[]
|
|
118358
|
+
/**
|
|
118359
|
+
* 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.
|
|
118360
|
+
*/
|
|
118361
|
+
lastTouchAt: (string | null)
|
|
118109
118362
|
/**
|
|
118110
118363
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118111
118364
|
*/
|
|
@@ -118229,7 +118482,7 @@ id: string
|
|
|
118229
118482
|
/**
|
|
118230
118483
|
* What kind of identifier this is. Today always `email`.
|
|
118231
118484
|
*/
|
|
118232
|
-
type: "email"
|
|
118485
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118233
118486
|
/**
|
|
118234
118487
|
* The address as the user typed it, for display.
|
|
118235
118488
|
*/
|
|
@@ -118251,6 +118504,10 @@ valueCanonical: string
|
|
|
118251
118504
|
*/
|
|
118252
118505
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118253
118506
|
}[]
|
|
118507
|
+
/**
|
|
118508
|
+
* 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.
|
|
118509
|
+
*/
|
|
118510
|
+
lastTouchAt: (string | null)
|
|
118254
118511
|
/**
|
|
118255
118512
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118256
118513
|
*/
|
|
@@ -118400,7 +118657,7 @@ id: string
|
|
|
118400
118657
|
/**
|
|
118401
118658
|
* What kind of identifier this is. Today always `email`.
|
|
118402
118659
|
*/
|
|
118403
|
-
type: "email"
|
|
118660
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118404
118661
|
/**
|
|
118405
118662
|
* The address as the user typed it, for display.
|
|
118406
118663
|
*/
|
|
@@ -118422,6 +118679,10 @@ valueCanonical: string
|
|
|
118422
118679
|
*/
|
|
118423
118680
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118424
118681
|
}[]
|
|
118682
|
+
/**
|
|
118683
|
+
* 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.
|
|
118684
|
+
*/
|
|
118685
|
+
lastTouchAt: (string | null)
|
|
118425
118686
|
/**
|
|
118426
118687
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118427
118688
|
*/
|
|
@@ -118548,7 +118809,7 @@ id: string
|
|
|
118548
118809
|
/**
|
|
118549
118810
|
* What kind of identifier this is. Today always `email`.
|
|
118550
118811
|
*/
|
|
118551
|
-
type: "email"
|
|
118812
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118552
118813
|
/**
|
|
118553
118814
|
* The address as the user typed it, for display.
|
|
118554
118815
|
*/
|
|
@@ -118570,6 +118831,10 @@ valueCanonical: string
|
|
|
118570
118831
|
*/
|
|
118571
118832
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118572
118833
|
}[]
|
|
118834
|
+
/**
|
|
118835
|
+
* 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.
|
|
118836
|
+
*/
|
|
118837
|
+
lastTouchAt: (string | null)
|
|
118573
118838
|
/**
|
|
118574
118839
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118575
118840
|
*/
|
|
@@ -118747,10 +119012,18 @@ status?: ("active" | "banned" | "waitlisted")
|
|
|
118747
119012
|
* Include soft-deleted users. Default false — deleted users are hidden.
|
|
118748
119013
|
*/
|
|
118749
119014
|
includeDeleted?: boolean
|
|
119015
|
+
/**
|
|
119016
|
+
* 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.
|
|
119017
|
+
*/
|
|
119018
|
+
lastTouchAfter?: string
|
|
118750
119019
|
/**
|
|
118751
119020
|
* 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
119021
|
*/
|
|
118753
119022
|
includeContacts?: boolean
|
|
119023
|
+
/**
|
|
119024
|
+
* 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.
|
|
119025
|
+
*/
|
|
119026
|
+
lastTouchBefore?: string
|
|
118754
119027
|
/**
|
|
118755
119028
|
* 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
119029
|
*/
|
|
@@ -118833,7 +119106,7 @@ id: string
|
|
|
118833
119106
|
/**
|
|
118834
119107
|
* What kind of identifier this is. Today always `email`.
|
|
118835
119108
|
*/
|
|
118836
|
-
type: "email"
|
|
119109
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
118837
119110
|
/**
|
|
118838
119111
|
* The address as the user typed it, for display.
|
|
118839
119112
|
*/
|
|
@@ -118855,6 +119128,10 @@ valueCanonical: string
|
|
|
118855
119128
|
*/
|
|
118856
119129
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
118857
119130
|
}[]
|
|
119131
|
+
/**
|
|
119132
|
+
* 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.
|
|
119133
|
+
*/
|
|
119134
|
+
lastTouchAt: (string | null)
|
|
118858
119135
|
/**
|
|
118859
119136
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
118860
119137
|
*/
|
|
@@ -119009,7 +119286,7 @@ id: string
|
|
|
119009
119286
|
/**
|
|
119010
119287
|
* What kind of identifier this is. Today always `email`.
|
|
119011
119288
|
*/
|
|
119012
|
-
type: "email"
|
|
119289
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
119013
119290
|
/**
|
|
119014
119291
|
* The address as the user typed it, for display.
|
|
119015
119292
|
*/
|
|
@@ -119031,6 +119308,10 @@ valueCanonical: string
|
|
|
119031
119308
|
*/
|
|
119032
119309
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
119033
119310
|
}[]
|
|
119311
|
+
/**
|
|
119312
|
+
* 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.
|
|
119313
|
+
*/
|
|
119314
|
+
lastTouchAt: (string | null)
|
|
119034
119315
|
/**
|
|
119035
119316
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
119036
119317
|
*/
|
|
@@ -119202,7 +119483,7 @@ id: string
|
|
|
119202
119483
|
/**
|
|
119203
119484
|
* What kind of identifier this is. Today always `email`.
|
|
119204
119485
|
*/
|
|
119205
|
-
type: "email"
|
|
119486
|
+
type: ("email" | "phone" | "telegram" | "linkedin" | "x")
|
|
119206
119487
|
/**
|
|
119207
119488
|
* The address as the user typed it, for display.
|
|
119208
119489
|
*/
|
|
@@ -119224,6 +119505,10 @@ valueCanonical: string
|
|
|
119224
119505
|
*/
|
|
119225
119506
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
119226
119507
|
}[]
|
|
119508
|
+
/**
|
|
119509
|
+
* 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.
|
|
119510
|
+
*/
|
|
119511
|
+
lastTouchAt: (string | null)
|
|
119227
119512
|
/**
|
|
119228
119513
|
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
119229
119514
|
*/
|
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, UsersTouchesDeleteInput, UsersTouchesDeleteOutput, 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
|
+
UsersTouchesDeleteInput,
|
|
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 usersTouchesDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
193
|
+
mutationKey: ['users', 'touches', 'delete'],
|
|
194
|
+
mutationFn: (input: UsersTouchesDeleteInput) => sdk['users']['touches']['delete'](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),
|