@lessly/sdk-app 76.1.0 → 77.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/_types/gen/client.gen.d.ts +1 -41
- package/dist/_types/gen/manifest.gen.d.ts +1 -1
- package/dist/_types/gen/types.gen.d.ts +68 -2418
- package/dist/_types/gen/users/index.d.ts +1 -1
- package/dist/_types/gen/users/queryOptions.gen.d.ts +1 -13
- package/dist/index.cjs +15 -293
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11200 -45
- package/dist/index.js.map +1 -1
- package/dist/users/index.cjs +0 -15
- package/dist/users/index.cjs.map +1 -1
- package/dist/users/index.js +1 -13
- package/dist/users/index.js.map +1 -1
- package/package.json +2 -12
- package/src/gen/bindings.gen.ts +1 -259
- package/src/gen/client.gen.ts +0 -80
- package/src/gen/manifest.gen.ts +16 -44
- package/src/gen/types.gen.ts +57 -2459
- package/src/gen/users/index.ts +1 -1
- package/src/gen/users/queryOptions.gen.ts +0 -21
- package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
- package/dist/_types/gen/playground/index.d.ts +0 -3
- package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -70
- package/dist/chunk-LUFP6XK2.js +0 -11447
- package/dist/chunk-LUFP6XK2.js.map +0 -1
- package/dist/playground/index.cjs +0 -106
- package/dist/playground/index.cjs.map +0 -1
- package/dist/playground/index.d.cts +0 -1
- package/dist/playground/index.d.ts +0 -1
- package/dist/playground/index.js +0 -78
- package/dist/playground/index.js.map +0 -1
- package/src/gen/playground/connect.gen.ts +0 -9
- package/src/gen/playground/index.ts +0 -4
- package/src/gen/playground/queryOptions.gen.ts +0 -119
package/src/gen/types.gen.ts
CHANGED
|
@@ -65652,13 +65652,7 @@ export interface BrainCognitionDigestInput {
|
|
|
65652
65652
|
}
|
|
65653
65653
|
|
|
65654
65654
|
export interface BrainCognitionDigestOutput {
|
|
65655
|
-
/**
|
|
65656
|
-
* Id of the queued run. The completion event carries the same `run_id`, which is how a waiting step ties the event back to this call; brain_cognition_status reports the same run.
|
|
65657
|
-
*/
|
|
65658
65655
|
run_id: string
|
|
65659
|
-
/**
|
|
65660
|
-
* Always true — the run was queued. The call fails outright rather than reporting a false here.
|
|
65661
|
-
*/
|
|
65662
65656
|
accepted: true
|
|
65663
65657
|
}
|
|
65664
65658
|
|
|
@@ -65697,13 +65691,7 @@ export interface BrainCognitionSweepInput {
|
|
|
65697
65691
|
}
|
|
65698
65692
|
|
|
65699
65693
|
export interface BrainCognitionSweepOutput {
|
|
65700
|
-
/**
|
|
65701
|
-
* Id of the queued run. The completion event carries the same `run_id`, which is how a waiting step ties the event back to this call; brain_cognition_status reports the same run.
|
|
65702
|
-
*/
|
|
65703
65694
|
run_id: string
|
|
65704
|
-
/**
|
|
65705
|
-
* Always true — the run was queued. The call fails outright rather than reporting a false here.
|
|
65706
|
-
*/
|
|
65707
65695
|
accepted: true
|
|
65708
65696
|
}
|
|
65709
65697
|
|
|
@@ -65741,9 +65729,6 @@ defaultBranch: string
|
|
|
65741
65729
|
}[]
|
|
65742
65730
|
|
|
65743
65731
|
export interface BrainDaemonBatchStatusInput {
|
|
65744
|
-
/**
|
|
65745
|
-
* Id of the ingestion daemon to act on, as returned by brain_daemons_list
|
|
65746
|
-
*/
|
|
65747
65732
|
id: string
|
|
65748
65733
|
}
|
|
65749
65734
|
|
|
@@ -65831,9 +65816,6 @@ unmeasuredCount: number
|
|
|
65831
65816
|
}
|
|
65832
65817
|
|
|
65833
65818
|
export interface BrainDaemonGetInput {
|
|
65834
|
-
/**
|
|
65835
|
-
* Id of the ingestion daemon to act on, as returned by brain_daemons_list
|
|
65836
|
-
*/
|
|
65837
65819
|
id: string
|
|
65838
65820
|
}
|
|
65839
65821
|
|
|
@@ -65859,13 +65841,8 @@ unmeasuredCount: number
|
|
|
65859
65841
|
}
|
|
65860
65842
|
|
|
65861
65843
|
export interface BrainDaemonReingestInput {
|
|
65862
|
-
/**
|
|
65863
|
-
* Id of the ingestion daemon that owns these documents, as returned by brain_daemons_list
|
|
65864
|
-
*/
|
|
65865
65844
|
id: string
|
|
65866
65845
|
/**
|
|
65867
|
-
* Source paths to re-ingest, exactly as the daemon recorded them (a repo path such as docs/spec.md, a Drive file id, a ClickUp item id). 1-100 per call.
|
|
65868
|
-
*
|
|
65869
65846
|
* @minItems 1
|
|
65870
65847
|
* @maxItems 100
|
|
65871
65848
|
*/
|
|
@@ -65873,36 +65850,14 @@ paths: [string, ...(string)[]]
|
|
|
65873
65850
|
}
|
|
65874
65851
|
|
|
65875
65852
|
export interface BrainDaemonReingestOutput {
|
|
65876
|
-
/**
|
|
65877
|
-
* The run started to pick the cleared paths up — brain/daemon.run-completed for this id is what finishes the step. Null when no run was started (see triggered/triggerError).
|
|
65878
|
-
*/
|
|
65879
|
-
runId: (string | null)
|
|
65880
|
-
/**
|
|
65881
|
-
* Paths whose ingest state was cleared, so the next run will read them again from scratch
|
|
65882
|
-
*/
|
|
65883
65853
|
cleared: string[]
|
|
65884
|
-
/**
|
|
65885
|
-
* Paths this daemon has no ingest record for — usually a typo, or a document it never ingested
|
|
65886
|
-
*/
|
|
65887
65854
|
notFound: string[]
|
|
65888
|
-
/**
|
|
65889
|
-
* True when a run was started to pick the cleared paths up; false when the daemon is paused, a run is already in flight, or nothing was eligible
|
|
65890
|
-
*/
|
|
65891
65855
|
triggered: boolean
|
|
65892
|
-
/**
|
|
65893
|
-
* Why no run was started; absent when one was
|
|
65894
|
-
*/
|
|
65895
65856
|
triggerError?: string
|
|
65896
|
-
/**
|
|
65897
|
-
* Paths left alone because they are in an unfinished batch; re-ask once that run has finished
|
|
65898
|
-
*/
|
|
65899
65857
|
skippedPending: string[]
|
|
65900
65858
|
}
|
|
65901
65859
|
|
|
65902
65860
|
export interface BrainDaemonRemoveInput {
|
|
65903
|
-
/**
|
|
65904
|
-
* Id of the ingestion daemon to act on, as returned by brain_daemons_list
|
|
65905
|
-
*/
|
|
65906
65861
|
id: string
|
|
65907
65862
|
}
|
|
65908
65863
|
|
|
@@ -65911,107 +65866,32 @@ ok: true
|
|
|
65911
65866
|
}
|
|
65912
65867
|
|
|
65913
65868
|
export interface BrainDaemonRunInput {
|
|
65914
|
-
/**
|
|
65915
|
-
* Id of the ingestion daemon to act on, as returned by brain_daemons_list
|
|
65916
|
-
*/
|
|
65917
65869
|
id: string
|
|
65918
65870
|
}
|
|
65919
65871
|
|
|
65920
65872
|
export interface BrainDaemonRunOutput {
|
|
65921
|
-
/**
|
|
65922
|
-
* True once the run has finished, whether it succeeded or failed
|
|
65923
|
-
*/
|
|
65924
65873
|
done: boolean
|
|
65925
|
-
/**
|
|
65926
|
-
* Id of the run being reported; null when this daemon has never run
|
|
65927
|
-
*/
|
|
65928
65874
|
runId: (string | null)
|
|
65929
|
-
/**
|
|
65930
|
-
* Where the run stands: 'queued' waiting to start, 'running' in progress, 'done' finished, 'failed' gave up, 'none' this daemon has never run
|
|
65931
|
-
*/
|
|
65932
65875
|
status: ("queued" | "running" | "done" | "failed" | "none")
|
|
65933
|
-
/**
|
|
65934
|
-
* Per-source progress as the connector reported it; the shape differs by connector type and is meant for display, not for binding a step to
|
|
65935
|
-
*/
|
|
65936
65876
|
sources: unknown[]
|
|
65937
|
-
/**
|
|
65938
|
-
* Document counts for the run; null when nothing has been counted yet
|
|
65939
|
-
*/
|
|
65940
65877
|
progress: ({
|
|
65941
|
-
|
|
65942
|
-
* Totals for the whole run
|
|
65943
|
-
*/
|
|
65944
|
-
counts: {
|
|
65945
|
-
/**
|
|
65946
|
-
* Documents that failed after retries — transient failures, worth re-running
|
|
65947
|
-
*/
|
|
65948
|
-
error: number
|
|
65949
|
-
/**
|
|
65950
|
-
* Documents the source permanently refused (403/404/401) — a permissions or deletion problem, not a transient one
|
|
65951
|
-
*/
|
|
65952
|
-
denied: number
|
|
65953
|
-
/**
|
|
65954
|
-
* Of those, how many were downloaded
|
|
65955
|
-
*/
|
|
65956
|
-
fetched: number
|
|
65957
|
-
/**
|
|
65958
|
-
* Of those, how many became memories
|
|
65959
|
-
*/
|
|
65960
|
-
ingested: number
|
|
65961
|
-
/**
|
|
65962
|
-
* Documents the run found at the source
|
|
65963
|
-
*/
|
|
65964
|
-
discovered: number
|
|
65965
|
-
/**
|
|
65966
|
-
* Documents skipped because their content had not changed since the last run
|
|
65967
|
-
*/
|
|
65968
|
-
skippedUnchanged: number
|
|
65969
|
-
}
|
|
65970
|
-
/**
|
|
65971
|
-
* The same totals split by source category; the keys are the connector's own (github: markdown/issues/pulls, clickup: tasks/comments/docs/chat, gdrive: files)
|
|
65972
|
-
*/
|
|
65878
|
+
counts: BrainDaemonRunOutputCounts
|
|
65973
65879
|
byCategory: {
|
|
65974
|
-
[k: string]:
|
|
65975
|
-
|
|
65976
|
-
|
|
65977
|
-
|
|
65880
|
+
[k: string]: BrainDaemonRunOutputCounts
|
|
65881
|
+
}
|
|
65882
|
+
} | null)
|
|
65883
|
+
routedTo: ("realtime" | "batch")
|
|
65884
|
+
triggered: boolean
|
|
65885
|
+
triggerError?: string
|
|
65886
|
+
}
|
|
65887
|
+
export interface BrainDaemonRunOutputCounts {
|
|
65978
65888
|
error: number
|
|
65979
|
-
/**
|
|
65980
|
-
* Documents the source permanently refused (403/404/401) — a permissions or deletion problem, not a transient one
|
|
65981
|
-
*/
|
|
65982
65889
|
denied: number
|
|
65983
|
-
/**
|
|
65984
|
-
* Of those, how many were downloaded
|
|
65985
|
-
*/
|
|
65986
65890
|
fetched: number
|
|
65987
|
-
/**
|
|
65988
|
-
* Of those, how many became memories
|
|
65989
|
-
*/
|
|
65990
65891
|
ingested: number
|
|
65991
|
-
/**
|
|
65992
|
-
* Documents the run found at the source
|
|
65993
|
-
*/
|
|
65994
65892
|
discovered: number
|
|
65995
|
-
/**
|
|
65996
|
-
* Documents skipped because their content had not changed since the last run
|
|
65997
|
-
*/
|
|
65998
65893
|
skippedUnchanged: number
|
|
65999
65894
|
}
|
|
66000
|
-
}
|
|
66001
|
-
} | null)
|
|
66002
|
-
/**
|
|
66003
|
-
* Which lane the run went to: 'realtime' finishes in minutes, 'batch' queues the work with the model provider and can take hours
|
|
66004
|
-
*/
|
|
66005
|
-
routedTo: ("realtime" | "batch")
|
|
66006
|
-
/**
|
|
66007
|
-
* True when this call actually started a run; false when one was already in flight and nothing new was started
|
|
66008
|
-
*/
|
|
66009
|
-
triggered: boolean
|
|
66010
|
-
/**
|
|
66011
|
-
* Why the run could not be started; absent when it was started
|
|
66012
|
-
*/
|
|
66013
|
-
triggerError?: string
|
|
66014
|
-
}
|
|
66015
65895
|
|
|
66016
65896
|
export interface BrainDaemonRunItemsInput {
|
|
66017
65897
|
limit?: number
|
|
@@ -66031,212 +65911,68 @@ sourceKind: string
|
|
|
66031
65911
|
}[]
|
|
66032
65912
|
runId: string
|
|
66033
65913
|
counts: {
|
|
66034
|
-
/**
|
|
66035
|
-
* Documents that failed after retries — transient failures, worth re-running
|
|
66036
|
-
*/
|
|
66037
65914
|
error: number
|
|
66038
|
-
/**
|
|
66039
|
-
* Documents the source permanently refused (403/404/401) — a permissions or deletion problem, not a transient one
|
|
66040
|
-
*/
|
|
66041
65915
|
denied: number
|
|
66042
|
-
/**
|
|
66043
|
-
* Of those, how many were downloaded
|
|
66044
|
-
*/
|
|
66045
65916
|
fetched: number
|
|
66046
|
-
/**
|
|
66047
|
-
* Of those, how many became memories
|
|
66048
|
-
*/
|
|
66049
65917
|
ingested: number
|
|
66050
|
-
/**
|
|
66051
|
-
* Documents the run found at the source
|
|
66052
|
-
*/
|
|
66053
65918
|
discovered: number
|
|
66054
|
-
/**
|
|
66055
|
-
* Documents skipped because their content had not changed since the last run
|
|
66056
|
-
*/
|
|
66057
65919
|
skippedUnchanged: number
|
|
66058
65920
|
}
|
|
66059
65921
|
nextCursor: (string | null)
|
|
66060
65922
|
}
|
|
66061
65923
|
|
|
66062
65924
|
export interface BrainDaemonRunsInput {
|
|
66063
|
-
/**
|
|
66064
|
-
* Id of the ingestion daemon whose run history to read, as returned by brain_daemons_list
|
|
66065
|
-
*/
|
|
66066
65925
|
id: string
|
|
66067
|
-
/**
|
|
66068
|
-
* How many of the most recent runs to return (default 20, max 100)
|
|
66069
|
-
*/
|
|
66070
65926
|
limit?: number
|
|
66071
65927
|
}
|
|
66072
65928
|
|
|
66073
65929
|
export interface BrainDaemonRunsOutput {
|
|
66074
|
-
/**
|
|
66075
|
-
* The most recent runs, newest first
|
|
66076
|
-
*/
|
|
66077
65930
|
runs: {
|
|
66078
|
-
/**
|
|
66079
|
-
* How the run was carried out: 'realtime' inline, 'batch' through the model provider's batch queue, 'reclaimed' a stalled run closed out by the janitor
|
|
66080
|
-
*/
|
|
66081
65931
|
lane: ("realtime" | "batch" | "reclaimed")
|
|
66082
|
-
/**
|
|
66083
|
-
* Id of this run
|
|
66084
|
-
*/
|
|
66085
65932
|
runId: string
|
|
66086
|
-
/**
|
|
66087
|
-
* Document counts for this run
|
|
66088
|
-
*/
|
|
66089
65933
|
counts: {
|
|
66090
|
-
/**
|
|
66091
|
-
* Documents that failed after retries — transient failures, worth re-running
|
|
66092
|
-
*/
|
|
66093
65934
|
error: number
|
|
66094
|
-
/**
|
|
66095
|
-
* Documents the source permanently refused (403/404/401) — a permissions or deletion problem, not a transient one
|
|
66096
|
-
*/
|
|
66097
65935
|
denied: number
|
|
66098
|
-
/**
|
|
66099
|
-
* Of those, how many were downloaded
|
|
66100
|
-
*/
|
|
66101
65936
|
fetched: number
|
|
66102
|
-
/**
|
|
66103
|
-
* Of those, how many became memories
|
|
66104
|
-
*/
|
|
66105
65937
|
ingested: number
|
|
66106
|
-
/**
|
|
66107
|
-
* Documents the run found at the source
|
|
66108
|
-
*/
|
|
66109
65938
|
discovered: number
|
|
66110
|
-
/**
|
|
66111
|
-
* Documents skipped because their content had not changed since the last run
|
|
66112
|
-
*/
|
|
66113
65939
|
skippedUnchanged: number
|
|
66114
65940
|
}
|
|
66115
|
-
/**
|
|
66116
|
-
* Where the run ended up — 'queued', 'running', 'done' or 'failed'
|
|
66117
|
-
*/
|
|
66118
65941
|
status: string
|
|
66119
|
-
/**
|
|
66120
|
-
* How a batch run finished, in the batch pipeline's own words (e.g. finalized, timeout, crash); null for a realtime run
|
|
66121
|
-
*/
|
|
66122
65942
|
outcome: (string | null)
|
|
66123
|
-
/**
|
|
66124
|
-
* When the run started, ISO 8601 timestamp
|
|
66125
|
-
*/
|
|
66126
65943
|
startedAt: string
|
|
66127
|
-
/**
|
|
66128
|
-
* Documents that failed after retries during this run
|
|
66129
|
-
*/
|
|
66130
65944
|
errorCount: number
|
|
66131
|
-
/**
|
|
66132
|
-
* When the run finished, ISO 8601 timestamp; null while it is still going
|
|
66133
|
-
*/
|
|
66134
65945
|
finishedAt: (string | null)
|
|
66135
|
-
/**
|
|
66136
|
-
* Documents the source permanently refused during this run
|
|
66137
|
-
*/
|
|
66138
65946
|
deniedCount: number
|
|
66139
|
-
/**
|
|
66140
|
-
* Documents stored as raw text because the extraction step failed — NULL MEANS NOT MEASURED, never "clean": only realtime runs measure this, so every batch and reclaimed run reports null
|
|
66141
|
-
*/
|
|
66142
65947
|
degradedCount: (number | null)
|
|
66143
65948
|
}[]
|
|
66144
|
-
/**
|
|
66145
|
-
* Id of the daemon these runs belong to
|
|
66146
|
-
*/
|
|
66147
65949
|
daemonId: string
|
|
66148
65950
|
}
|
|
66149
65951
|
|
|
66150
65952
|
export interface BrainDaemonStatusInput {
|
|
66151
|
-
/**
|
|
66152
|
-
* Id of the ingestion daemon to act on, as returned by brain_daemons_list
|
|
66153
|
-
*/
|
|
66154
65953
|
id: string
|
|
66155
65954
|
}
|
|
66156
65955
|
|
|
66157
65956
|
export interface BrainDaemonStatusOutput {
|
|
66158
|
-
/**
|
|
66159
|
-
* True once the run has finished, whether it succeeded or failed
|
|
66160
|
-
*/
|
|
66161
65957
|
done: boolean
|
|
66162
|
-
/**
|
|
66163
|
-
* Id of the run being reported; null when this daemon has never run
|
|
66164
|
-
*/
|
|
66165
65958
|
runId: (string | null)
|
|
66166
|
-
/**
|
|
66167
|
-
* Where the run stands: 'queued' waiting to start, 'running' in progress, 'done' finished, 'failed' gave up, 'none' this daemon has never run
|
|
66168
|
-
*/
|
|
66169
65959
|
status: ("queued" | "running" | "done" | "failed" | "none")
|
|
66170
|
-
/**
|
|
66171
|
-
* Per-source progress as the connector reported it; the shape differs by connector type and is meant for display, not for binding a step to
|
|
66172
|
-
*/
|
|
66173
65960
|
sources: unknown[]
|
|
66174
|
-
/**
|
|
66175
|
-
* Document counts for the run; null when nothing has been counted yet
|
|
66176
|
-
*/
|
|
66177
65961
|
progress: ({
|
|
66178
|
-
|
|
66179
|
-
* Totals for the whole run
|
|
66180
|
-
*/
|
|
66181
|
-
counts: {
|
|
66182
|
-
/**
|
|
66183
|
-
* Documents that failed after retries — transient failures, worth re-running
|
|
66184
|
-
*/
|
|
66185
|
-
error: number
|
|
66186
|
-
/**
|
|
66187
|
-
* Documents the source permanently refused (403/404/401) — a permissions or deletion problem, not a transient one
|
|
66188
|
-
*/
|
|
66189
|
-
denied: number
|
|
66190
|
-
/**
|
|
66191
|
-
* Of those, how many were downloaded
|
|
66192
|
-
*/
|
|
66193
|
-
fetched: number
|
|
66194
|
-
/**
|
|
66195
|
-
* Of those, how many became memories
|
|
66196
|
-
*/
|
|
66197
|
-
ingested: number
|
|
66198
|
-
/**
|
|
66199
|
-
* Documents the run found at the source
|
|
66200
|
-
*/
|
|
66201
|
-
discovered: number
|
|
66202
|
-
/**
|
|
66203
|
-
* Documents skipped because their content had not changed since the last run
|
|
66204
|
-
*/
|
|
66205
|
-
skippedUnchanged: number
|
|
66206
|
-
}
|
|
66207
|
-
/**
|
|
66208
|
-
* The same totals split by source category; the keys are the connector's own (github: markdown/issues/pulls, clickup: tasks/comments/docs/chat, gdrive: files)
|
|
66209
|
-
*/
|
|
65962
|
+
counts: BrainDaemonStatusOutputCounts
|
|
66210
65963
|
byCategory: {
|
|
66211
|
-
[k: string]:
|
|
66212
|
-
|
|
66213
|
-
|
|
66214
|
-
|
|
65964
|
+
[k: string]: BrainDaemonStatusOutputCounts
|
|
65965
|
+
}
|
|
65966
|
+
} | null)
|
|
65967
|
+
}
|
|
65968
|
+
export interface BrainDaemonStatusOutputCounts {
|
|
66215
65969
|
error: number
|
|
66216
|
-
/**
|
|
66217
|
-
* Documents the source permanently refused (403/404/401) — a permissions or deletion problem, not a transient one
|
|
66218
|
-
*/
|
|
66219
65970
|
denied: number
|
|
66220
|
-
/**
|
|
66221
|
-
* Of those, how many were downloaded
|
|
66222
|
-
*/
|
|
66223
65971
|
fetched: number
|
|
66224
|
-
/**
|
|
66225
|
-
* Of those, how many became memories
|
|
66226
|
-
*/
|
|
66227
65972
|
ingested: number
|
|
66228
|
-
/**
|
|
66229
|
-
* Documents the run found at the source
|
|
66230
|
-
*/
|
|
66231
65973
|
discovered: number
|
|
66232
|
-
/**
|
|
66233
|
-
* Documents skipped because their content had not changed since the last run
|
|
66234
|
-
*/
|
|
66235
65974
|
skippedUnchanged: number
|
|
66236
65975
|
}
|
|
66237
|
-
}
|
|
66238
|
-
} | null)
|
|
66239
|
-
}
|
|
66240
65976
|
|
|
66241
65977
|
export interface BrainDaemonUpdateInput {
|
|
66242
65978
|
id: string
|
|
@@ -66332,121 +66068,46 @@ entity_ref: string
|
|
|
66332
66068
|
}
|
|
66333
66069
|
|
|
66334
66070
|
export interface BrainKnowledgeEntityMemoriesOutput {
|
|
66335
|
-
/**
|
|
66336
|
-
* How many memories back this entity in total, across all pages
|
|
66337
|
-
*/
|
|
66338
66071
|
total: number
|
|
66339
|
-
/**
|
|
66340
|
-
* The entity the memories belong to; null when `entity_ref` matched nothing
|
|
66341
|
-
*/
|
|
66342
66072
|
entity: ({
|
|
66343
|
-
/**
|
|
66344
|
-
* How closely this entity matches the query, higher is closer; absent on an unscored read such as a plain type filter
|
|
66345
|
-
*/
|
|
66346
66073
|
score?: number
|
|
66347
|
-
/**
|
|
66348
|
-
* Other names the same entity appears under in the ingested text
|
|
66349
|
-
*/
|
|
66350
66074
|
aliases: string[]
|
|
66351
|
-
/**
|
|
66352
|
-
* Id of this entity; pass it as `entity_ref` to brain_knowledge_neighborhood or brain_knowledge_entity_memories
|
|
66353
|
-
*/
|
|
66354
66075
|
entity_id: string
|
|
66355
|
-
/**
|
|
66356
|
-
* What the entity is, as the engine summarised it from the memories mentioning it; null when it has not written one
|
|
66357
|
-
*/
|
|
66358
66076
|
description: (string | null)
|
|
66359
|
-
/**
|
|
66360
|
-
* Ontology type of the entity, e.g. Feature, Decision, Risk, Integration
|
|
66361
|
-
*/
|
|
66362
66077
|
entity_type: string
|
|
66363
|
-
/**
|
|
66364
|
-
* The name to show a person — usually the spelling the source text used
|
|
66365
|
-
*/
|
|
66366
66078
|
display_name: string
|
|
66367
|
-
/**
|
|
66368
|
-
* The one name this entity is stored under; use it when matching entities against each other
|
|
66369
|
-
*/
|
|
66370
66079
|
canonical_name: string
|
|
66371
|
-
/**
|
|
66372
|
-
* How many memories mention this entity — a rough measure of how well attested it is
|
|
66373
|
-
*/
|
|
66374
66080
|
evidence_count: number
|
|
66375
66081
|
} | null)
|
|
66376
|
-
/**
|
|
66377
|
-
* One page of the memories this entity was drawn from — the same shape brain_memory_list returns
|
|
66378
|
-
*/
|
|
66379
66082
|
memories: {
|
|
66380
66083
|
/**
|
|
66381
66084
|
* Consumer-facing label derived from the layer; 'unknown' for an unrecognised layer
|
|
66382
66085
|
*/
|
|
66383
66086
|
kind: ("schema" | "intention" | "identity" | "basic" | "fact" | "summary" | "knowledge" | "raw" | "unknown")
|
|
66384
|
-
/**
|
|
66385
|
-
* Engine tags on this memory; empty when it carries none
|
|
66386
|
-
*/
|
|
66387
66087
|
tags: string[]
|
|
66388
66088
|
/**
|
|
66389
66089
|
* Engine memory layer (l0_basic_info…l7_intention)
|
|
66390
66090
|
*/
|
|
66391
66091
|
layer: ("l6_schema" | "l7_intention" | "l4_identity" | "l0_basic_info" | "l2_fact" | "l3_summary" | "l5_knowledge" | "l1_raw")
|
|
66392
|
-
/**
|
|
66393
|
-
* Free-form metadata, verbatim as the writer passed brain_memory_add's `metadata`; keys are the caller's
|
|
66394
|
-
*/
|
|
66395
66092
|
custom: {
|
|
66396
66093
|
[k: string]: unknown
|
|
66397
66094
|
}
|
|
66398
|
-
/**
|
|
66399
|
-
* Engine lifecycle status of the row — 'active' for a memory in use; superseded rows are not listed
|
|
66400
|
-
*/
|
|
66401
66095
|
status: string
|
|
66402
|
-
/**
|
|
66403
|
-
* The memory text itself
|
|
66404
|
-
*/
|
|
66405
66096
|
content: string
|
|
66406
|
-
/**
|
|
66407
|
-
* Engine user namespace the memory was written under
|
|
66408
|
-
*/
|
|
66409
66097
|
user_id: string
|
|
66410
|
-
/**
|
|
66411
|
-
* Engine agent namespace the memory was written under — the shared pool for a 'shared' write, the caller's own for a private one
|
|
66412
|
-
*/
|
|
66413
66098
|
agent_id: string
|
|
66414
|
-
/**
|
|
66415
|
-
* When the remembered EVENT happened, epoch milliseconds; null when the writer stated no time
|
|
66416
|
-
*/
|
|
66417
66099
|
memory_at: (number | null)
|
|
66418
|
-
/**
|
|
66419
|
-
* Engine id of this memory; pass it to brain_memory_get, _update or _delete
|
|
66420
|
-
*/
|
|
66421
66100
|
memory_id: string
|
|
66422
|
-
/**
|
|
66423
|
-
* The engine's own inference about this memory, or null when it recorded none
|
|
66424
|
-
*/
|
|
66425
66101
|
speculate: (string | null)
|
|
66426
|
-
/**
|
|
66427
|
-
* Engine session the memory was written in; empty when the writer opened none
|
|
66428
|
-
*/
|
|
66429
66102
|
session_id: string
|
|
66430
|
-
/**
|
|
66431
|
-
* When this memory row was written, epoch milliseconds
|
|
66432
|
-
*/
|
|
66433
66103
|
gmt_created: number
|
|
66434
66104
|
/**
|
|
66435
66105
|
* Source authority (highest→lowest): policy > official > team > informal
|
|
66436
66106
|
*/
|
|
66437
66107
|
source_authority: ("policy" | "official" | "team" | "informal")
|
|
66438
|
-
/**
|
|
66439
|
-
* Id of the l1_raw memory this one was derived from; null when it was written directly
|
|
66440
|
-
*/
|
|
66441
66108
|
source_raw_memory_id: (string | null)
|
|
66442
66109
|
}[]
|
|
66443
|
-
/**
|
|
66444
|
-
* How long the engine took to answer, milliseconds
|
|
66445
|
-
*/
|
|
66446
66110
|
elapsed_ms: number
|
|
66447
|
-
/**
|
|
66448
|
-
* Engine request id for this call — quote it when reporting a problem
|
|
66449
|
-
*/
|
|
66450
66111
|
request_id: string
|
|
66451
66112
|
}
|
|
66452
66113
|
|
|
@@ -66462,92 +66123,29 @@ scope?: ("shared" | "private" | "both")
|
|
|
66462
66123
|
}
|
|
66463
66124
|
|
|
66464
66125
|
export interface BrainKnowledgeGraphOutput {
|
|
66465
|
-
/**
|
|
66466
|
-
* The typed relations between those entities
|
|
66467
|
-
*/
|
|
66468
66126
|
edges: {
|
|
66469
|
-
/**
|
|
66470
|
-
* Why the engine drew this edge, in its own words; null when it recorded none
|
|
66471
|
-
*/
|
|
66472
66127
|
reason: (string | null)
|
|
66473
|
-
/**
|
|
66474
|
-
* Id of the node the edge points FROM (a `nodes[].id`)
|
|
66475
|
-
*/
|
|
66476
66128
|
source: string
|
|
66477
|
-
/**
|
|
66478
|
-
* Id of the node the edge points TO (a `nodes[].id`)
|
|
66479
|
-
*/
|
|
66480
66129
|
target: string
|
|
66481
|
-
/**
|
|
66482
|
-
* True when the relation reads the same in both directions
|
|
66483
|
-
*/
|
|
66484
66130
|
symmetric: boolean
|
|
66485
|
-
/**
|
|
66486
|
-
* Ontology type of the relation, e.g. depends_on, competes_with, owns
|
|
66487
|
-
*/
|
|
66488
66131
|
relation_type: string
|
|
66489
66132
|
}[]
|
|
66490
|
-
/**
|
|
66491
|
-
* The entities in the exported graph
|
|
66492
|
-
*/
|
|
66493
66133
|
nodes: {
|
|
66494
|
-
/**
|
|
66495
|
-
* Id of this entity; the `source` and `target` of an edge refer to it
|
|
66496
|
-
*/
|
|
66497
66134
|
id: string
|
|
66498
|
-
/**
|
|
66499
|
-
* How many edges touch this node — the hub concepts are the ones kept when the export is truncated
|
|
66500
|
-
*/
|
|
66501
66135
|
degree: number
|
|
66502
|
-
/**
|
|
66503
|
-
* Other names the same entity appears under in the ingested text
|
|
66504
|
-
*/
|
|
66505
66136
|
aliases: string[]
|
|
66506
|
-
/**
|
|
66507
|
-
* What the entity is, as the engine summarised it; null when it has not written one
|
|
66508
|
-
*/
|
|
66509
66137
|
description: (string | null)
|
|
66510
|
-
/**
|
|
66511
|
-
* Ontology type of the entity, e.g. Feature, Decision, Risk, Integration
|
|
66512
|
-
*/
|
|
66513
66138
|
entity_type: string
|
|
66514
|
-
/**
|
|
66515
|
-
* The name to show a person
|
|
66516
|
-
*/
|
|
66517
66139
|
display_name: string
|
|
66518
|
-
/**
|
|
66519
|
-
* The one name this entity is stored under
|
|
66520
|
-
*/
|
|
66521
66140
|
canonical_name: string
|
|
66522
|
-
/**
|
|
66523
|
-
* How many memories mention this entity
|
|
66524
|
-
*/
|
|
66525
66141
|
evidence_count: number
|
|
66526
66142
|
}[]
|
|
66527
|
-
/**
|
|
66528
|
-
* Sizes of what was actually returned
|
|
66529
|
-
*/
|
|
66530
66143
|
totals: {
|
|
66531
|
-
/**
|
|
66532
|
-
* Edges returned in this export
|
|
66533
|
-
*/
|
|
66534
66144
|
edgeCount: number
|
|
66535
|
-
/**
|
|
66536
|
-
* Nodes returned in this export
|
|
66537
|
-
*/
|
|
66538
66145
|
nodeCount: number
|
|
66539
66146
|
}
|
|
66540
|
-
/**
|
|
66541
|
-
* True when `limit` cut the export short — the highest-degree nodes were kept, so what you get is the hubs
|
|
66542
|
-
*/
|
|
66543
66147
|
truncated: boolean
|
|
66544
|
-
/**
|
|
66545
|
-
* How long the engine took to answer, milliseconds
|
|
66546
|
-
*/
|
|
66547
66148
|
elapsed_ms: number
|
|
66548
|
-
/**
|
|
66549
|
-
* Engine request id for this call — quote it when reporting a problem
|
|
66550
|
-
*/
|
|
66551
66149
|
request_id: string
|
|
66552
66150
|
}
|
|
66553
66151
|
|
|
@@ -66579,128 +66177,38 @@ relation_type?: string
|
|
|
66579
66177
|
}
|
|
66580
66178
|
|
|
66581
66179
|
export interface BrainKnowledgeNeighborhoodOutput {
|
|
66582
|
-
/**
|
|
66583
|
-
* The entity that was expanded around; null when `entity_ref` matched nothing
|
|
66584
|
-
*/
|
|
66585
66180
|
root: ({
|
|
66586
|
-
/**
|
|
66587
|
-
* How closely this entity matches the query, higher is closer; absent on an unscored read such as a plain type filter
|
|
66588
|
-
*/
|
|
66589
66181
|
score?: number
|
|
66590
|
-
/**
|
|
66591
|
-
* Other names the same entity appears under in the ingested text
|
|
66592
|
-
*/
|
|
66593
66182
|
aliases: string[]
|
|
66594
|
-
/**
|
|
66595
|
-
* Id of this entity; pass it as `entity_ref` to brain_knowledge_neighborhood or brain_knowledge_entity_memories
|
|
66596
|
-
*/
|
|
66597
66183
|
entity_id: string
|
|
66598
|
-
/**
|
|
66599
|
-
* What the entity is, as the engine summarised it from the memories mentioning it; null when it has not written one
|
|
66600
|
-
*/
|
|
66601
66184
|
description: (string | null)
|
|
66602
|
-
/**
|
|
66603
|
-
* Ontology type of the entity, e.g. Feature, Decision, Risk, Integration
|
|
66604
|
-
*/
|
|
66605
66185
|
entity_type: string
|
|
66606
|
-
/**
|
|
66607
|
-
* The name to show a person — usually the spelling the source text used
|
|
66608
|
-
*/
|
|
66609
66186
|
display_name: string
|
|
66610
|
-
/**
|
|
66611
|
-
* The one name this entity is stored under; use it when matching entities against each other
|
|
66612
|
-
*/
|
|
66613
66187
|
canonical_name: string
|
|
66614
|
-
/**
|
|
66615
|
-
* How many memories mention this entity — a rough measure of how well attested it is
|
|
66616
|
-
*/
|
|
66617
66188
|
evidence_count: number
|
|
66618
66189
|
} | null)
|
|
66619
|
-
/**
|
|
66620
|
-
* The neighbours reached within `depth` hops of the root, the root excluded
|
|
66621
|
-
*/
|
|
66622
66190
|
entities: {
|
|
66623
|
-
/**
|
|
66624
|
-
* How closely this entity matches the query, higher is closer; absent on an unscored read such as a plain type filter
|
|
66625
|
-
*/
|
|
66626
66191
|
score?: number
|
|
66627
|
-
/**
|
|
66628
|
-
* Other names the same entity appears under in the ingested text
|
|
66629
|
-
*/
|
|
66630
66192
|
aliases: string[]
|
|
66631
|
-
/**
|
|
66632
|
-
* Id of this entity; pass it as `entity_ref` to brain_knowledge_neighborhood or brain_knowledge_entity_memories
|
|
66633
|
-
*/
|
|
66634
66193
|
entity_id: string
|
|
66635
|
-
/**
|
|
66636
|
-
* What the entity is, as the engine summarised it from the memories mentioning it; null when it has not written one
|
|
66637
|
-
*/
|
|
66638
66194
|
description: (string | null)
|
|
66639
|
-
/**
|
|
66640
|
-
* Ontology type of the entity, e.g. Feature, Decision, Risk, Integration
|
|
66641
|
-
*/
|
|
66642
66195
|
entity_type: string
|
|
66643
|
-
/**
|
|
66644
|
-
* The name to show a person — usually the spelling the source text used
|
|
66645
|
-
*/
|
|
66646
66196
|
display_name: string
|
|
66647
|
-
/**
|
|
66648
|
-
* The one name this entity is stored under; use it when matching entities against each other
|
|
66649
|
-
*/
|
|
66650
66197
|
canonical_name: string
|
|
66651
|
-
/**
|
|
66652
|
-
* How many memories mention this entity — a rough measure of how well attested it is
|
|
66653
|
-
*/
|
|
66654
66198
|
evidence_count: number
|
|
66655
66199
|
}[]
|
|
66656
|
-
/**
|
|
66657
|
-
* The relations that connect the root and the neighbours above
|
|
66658
|
-
*/
|
|
66659
66200
|
relations: {
|
|
66660
|
-
/**
|
|
66661
|
-
* Why the engine drew this relation, in its own words; null when it recorded none
|
|
66662
|
-
*/
|
|
66663
66201
|
reason: (string | null)
|
|
66664
|
-
/**
|
|
66665
|
-
* Id of the entity the relation points FROM
|
|
66666
|
-
*/
|
|
66667
66202
|
source_id: string
|
|
66668
|
-
/**
|
|
66669
|
-
* True when the relation reads the same in both directions, so source and target are interchangeable
|
|
66670
|
-
*/
|
|
66671
66203
|
symmetric: boolean
|
|
66672
|
-
/**
|
|
66673
|
-
* Id of the entity the relation points TO
|
|
66674
|
-
*/
|
|
66675
66204
|
target_id: string
|
|
66676
|
-
/**
|
|
66677
|
-
* Ontology type of the relation, e.g. depends_on, competes_with, owns
|
|
66678
|
-
*/
|
|
66679
66205
|
relation_type: string
|
|
66680
|
-
/**
|
|
66681
|
-
* Name to show for the source entity
|
|
66682
|
-
*/
|
|
66683
66206
|
source_display_name: string
|
|
66684
|
-
/**
|
|
66685
|
-
* Name to show for the target entity
|
|
66686
|
-
*/
|
|
66687
66207
|
target_display_name: string
|
|
66688
|
-
/**
|
|
66689
|
-
* Stored name of the source entity
|
|
66690
|
-
*/
|
|
66691
66208
|
source_canonical_name: string
|
|
66692
|
-
/**
|
|
66693
|
-
* Stored name of the target entity
|
|
66694
|
-
*/
|
|
66695
66209
|
target_canonical_name: string
|
|
66696
66210
|
}[]
|
|
66697
|
-
/**
|
|
66698
|
-
* How long the engine took to answer, milliseconds
|
|
66699
|
-
*/
|
|
66700
66211
|
elapsed_ms: number
|
|
66701
|
-
/**
|
|
66702
|
-
* Engine request id for this call — quote it when reporting a problem
|
|
66703
|
-
*/
|
|
66704
66212
|
request_id: string
|
|
66705
66213
|
}
|
|
66706
66214
|
|
|
@@ -66728,54 +66236,18 @@ target_entity?: string
|
|
|
66728
66236
|
}
|
|
66729
66237
|
|
|
66730
66238
|
export interface BrainKnowledgeRelationsOutput {
|
|
66731
|
-
/**
|
|
66732
|
-
* The relations matching the filters
|
|
66733
|
-
*/
|
|
66734
66239
|
relations: {
|
|
66735
|
-
/**
|
|
66736
|
-
* Why the engine drew this relation, in its own words; null when it recorded none
|
|
66737
|
-
*/
|
|
66738
66240
|
reason: (string | null)
|
|
66739
|
-
/**
|
|
66740
|
-
* Id of the entity the relation points FROM
|
|
66741
|
-
*/
|
|
66742
66241
|
source_id: string
|
|
66743
|
-
/**
|
|
66744
|
-
* True when the relation reads the same in both directions, so source and target are interchangeable
|
|
66745
|
-
*/
|
|
66746
66242
|
symmetric: boolean
|
|
66747
|
-
/**
|
|
66748
|
-
* Id of the entity the relation points TO
|
|
66749
|
-
*/
|
|
66750
66243
|
target_id: string
|
|
66751
|
-
/**
|
|
66752
|
-
* Ontology type of the relation, e.g. depends_on, competes_with, owns
|
|
66753
|
-
*/
|
|
66754
66244
|
relation_type: string
|
|
66755
|
-
/**
|
|
66756
|
-
* Name to show for the source entity
|
|
66757
|
-
*/
|
|
66758
66245
|
source_display_name: string
|
|
66759
|
-
/**
|
|
66760
|
-
* Name to show for the target entity
|
|
66761
|
-
*/
|
|
66762
66246
|
target_display_name: string
|
|
66763
|
-
/**
|
|
66764
|
-
* Stored name of the source entity
|
|
66765
|
-
*/
|
|
66766
66247
|
source_canonical_name: string
|
|
66767
|
-
/**
|
|
66768
|
-
* Stored name of the target entity
|
|
66769
|
-
*/
|
|
66770
66248
|
target_canonical_name: string
|
|
66771
66249
|
}[]
|
|
66772
|
-
/**
|
|
66773
|
-
* How long the engine took to answer, milliseconds
|
|
66774
|
-
*/
|
|
66775
66250
|
elapsed_ms: number
|
|
66776
|
-
/**
|
|
66777
|
-
* Engine request id for this call — quote it when reporting a problem
|
|
66778
|
-
*/
|
|
66779
66251
|
request_id: string
|
|
66780
66252
|
}
|
|
66781
66253
|
|
|
@@ -66803,54 +66275,18 @@ entity_type?: string
|
|
|
66803
66275
|
}
|
|
66804
66276
|
|
|
66805
66277
|
export interface BrainKnowledgeSearchOutput {
|
|
66806
|
-
/**
|
|
66807
|
-
* How many entities match in total, across all pages — not the length of this page
|
|
66808
|
-
*/
|
|
66809
66278
|
total: number
|
|
66810
|
-
/**
|
|
66811
|
-
* Matching entities, best match first
|
|
66812
|
-
*/
|
|
66813
66279
|
entities: {
|
|
66814
|
-
/**
|
|
66815
|
-
* How closely this entity matches the query, higher is closer; absent on an unscored read such as a plain type filter
|
|
66816
|
-
*/
|
|
66817
66280
|
score?: number
|
|
66818
|
-
/**
|
|
66819
|
-
* Other names the same entity appears under in the ingested text
|
|
66820
|
-
*/
|
|
66821
66281
|
aliases: string[]
|
|
66822
|
-
/**
|
|
66823
|
-
* Id of this entity; pass it as `entity_ref` to brain_knowledge_neighborhood or brain_knowledge_entity_memories
|
|
66824
|
-
*/
|
|
66825
66282
|
entity_id: string
|
|
66826
|
-
/**
|
|
66827
|
-
* What the entity is, as the engine summarised it from the memories mentioning it; null when it has not written one
|
|
66828
|
-
*/
|
|
66829
66283
|
description: (string | null)
|
|
66830
|
-
/**
|
|
66831
|
-
* Ontology type of the entity, e.g. Feature, Decision, Risk, Integration
|
|
66832
|
-
*/
|
|
66833
66284
|
entity_type: string
|
|
66834
|
-
/**
|
|
66835
|
-
* The name to show a person — usually the spelling the source text used
|
|
66836
|
-
*/
|
|
66837
66285
|
display_name: string
|
|
66838
|
-
/**
|
|
66839
|
-
* The one name this entity is stored under; use it when matching entities against each other
|
|
66840
|
-
*/
|
|
66841
66286
|
canonical_name: string
|
|
66842
|
-
/**
|
|
66843
|
-
* How many memories mention this entity — a rough measure of how well attested it is
|
|
66844
|
-
*/
|
|
66845
66287
|
evidence_count: number
|
|
66846
66288
|
}[]
|
|
66847
|
-
/**
|
|
66848
|
-
* How long the engine took to answer, milliseconds
|
|
66849
|
-
*/
|
|
66850
66289
|
elapsed_ms: number
|
|
66851
|
-
/**
|
|
66852
|
-
* Engine request id for this call — quote it when reporting a problem
|
|
66853
|
-
*/
|
|
66854
66290
|
request_id: string
|
|
66855
66291
|
}
|
|
66856
66292
|
|
|
@@ -66876,17 +66312,8 @@ source_authority?: ("policy" | "official" | "team" | "informal")
|
|
|
66876
66312
|
}
|
|
66877
66313
|
|
|
66878
66314
|
export interface BrainMemoryAddOutput {
|
|
66879
|
-
/**
|
|
66880
|
-
* True when the memory was stored
|
|
66881
|
-
*/
|
|
66882
66315
|
success: boolean
|
|
66883
|
-
/**
|
|
66884
|
-
* Engine id of the memory just stored; keep it to read, replace or delete the memory later
|
|
66885
|
-
*/
|
|
66886
66316
|
memory_id: string
|
|
66887
|
-
/**
|
|
66888
|
-
* Engine request id for this call — quote it when reporting a problem
|
|
66889
|
-
*/
|
|
66890
66317
|
request_id: string
|
|
66891
66318
|
}
|
|
66892
66319
|
|
|
@@ -66898,17 +66325,8 @@ memory_id: string
|
|
|
66898
66325
|
}
|
|
66899
66326
|
|
|
66900
66327
|
export interface BrainMemoryDeleteOutput {
|
|
66901
|
-
/**
|
|
66902
|
-
* Always true — the call fails outright rather than reporting a false here
|
|
66903
|
-
*/
|
|
66904
66328
|
success: true
|
|
66905
|
-
/**
|
|
66906
|
-
* Engine request id for this call — quote it when reporting a problem
|
|
66907
|
-
*/
|
|
66908
66329
|
request_id: string
|
|
66909
|
-
/**
|
|
66910
|
-
* How many memory rows the engine removed for this id; 0 when it was already gone
|
|
66911
|
-
*/
|
|
66912
66330
|
deleted_count: number
|
|
66913
66331
|
}
|
|
66914
66332
|
|
|
@@ -66920,179 +66338,74 @@ memory_id: string
|
|
|
66920
66338
|
}
|
|
66921
66339
|
|
|
66922
66340
|
export interface BrainMemoryGetOutput {
|
|
66923
|
-
/**
|
|
66924
|
-
* Engine tags on this memory; empty when it carries none
|
|
66925
|
-
*/
|
|
66926
66341
|
tags: string[]
|
|
66927
66342
|
/**
|
|
66928
66343
|
* Engine memory layer (l0_basic_info…l7_intention)
|
|
66929
66344
|
*/
|
|
66930
66345
|
layer: ("l6_schema" | "l7_intention" | "l4_identity" | "l0_basic_info" | "l2_fact" | "l3_summary" | "l5_knowledge" | "l1_raw")
|
|
66931
|
-
/**
|
|
66932
|
-
* Free-form metadata, verbatim as the writer passed brain_memory_add's `metadata`; keys are the caller's
|
|
66933
|
-
*/
|
|
66934
66346
|
custom: {
|
|
66935
66347
|
[k: string]: unknown
|
|
66936
66348
|
}
|
|
66937
|
-
/**
|
|
66938
|
-
* Which store answered the read — 'vdb' the vector store, 'graph' the memory graph. Diagnostic; the content is the same either way.
|
|
66939
|
-
*/
|
|
66940
66349
|
source: ("vdb" | "graph")
|
|
66941
|
-
/**
|
|
66942
|
-
* Engine lifecycle status of the row — 'active' for a memory in use
|
|
66943
|
-
*/
|
|
66944
66350
|
status: string
|
|
66945
|
-
/**
|
|
66946
|
-
* The memory text itself
|
|
66947
|
-
*/
|
|
66948
66351
|
content: string
|
|
66949
|
-
/**
|
|
66950
|
-
* Engine user namespace the memory was written under
|
|
66951
|
-
*/
|
|
66952
66352
|
user_id: string
|
|
66953
|
-
/**
|
|
66954
|
-
* Engine agent namespace the memory was written under
|
|
66955
|
-
*/
|
|
66956
66353
|
agent_id: string
|
|
66957
|
-
/**
|
|
66958
|
-
* True when this is the current version of the memory; false when a newer one has replaced it
|
|
66959
|
-
*/
|
|
66960
66354
|
is_latest: boolean
|
|
66961
|
-
/**
|
|
66962
|
-
* When the remembered EVENT happened, epoch milliseconds; null when the writer stated no time
|
|
66963
|
-
*/
|
|
66964
66355
|
memory_at: (number | null)
|
|
66965
|
-
/**
|
|
66966
|
-
* Engine id of this memory — the id that was asked for
|
|
66967
|
-
*/
|
|
66968
66356
|
memory_id: string
|
|
66969
|
-
/**
|
|
66970
|
-
* The engine's own inference about this memory, or null when it recorded none
|
|
66971
|
-
*/
|
|
66972
66357
|
speculate: (string | null)
|
|
66973
|
-
/**
|
|
66974
|
-
* The engine's confidence in this memory, 0..1
|
|
66975
|
-
*/
|
|
66976
66358
|
confidence: number
|
|
66977
|
-
/**
|
|
66978
|
-
* How long the engine took to answer, milliseconds
|
|
66979
|
-
*/
|
|
66980
66359
|
elapsed_ms: number
|
|
66981
|
-
/**
|
|
66982
|
-
* Engine request id for this call — quote it when reporting a problem
|
|
66983
|
-
*/
|
|
66984
66360
|
request_id: string
|
|
66985
|
-
/**
|
|
66986
|
-
* Ids of the memories this one replaced; null when it replaced none
|
|
66987
|
-
*/
|
|
66988
66361
|
supersedes: (string[] | null)
|
|
66989
|
-
/**
|
|
66990
|
-
* When this memory row was written, epoch milliseconds
|
|
66991
|
-
*/
|
|
66992
66362
|
gmt_created: number
|
|
66993
|
-
/**
|
|
66994
|
-
* Ids of the memories that replaced this one; null while it is still current
|
|
66995
|
-
*/
|
|
66996
66363
|
superseded_by: (string[] | null)
|
|
66997
66364
|
/**
|
|
66998
66365
|
* Source authority (highest→lowest): policy > official > team > informal
|
|
66999
66366
|
*/
|
|
67000
66367
|
source_authority: ("policy" | "official" | "team" | "informal")
|
|
67001
|
-
/**
|
|
67002
|
-
* Id of the l1_raw memory this one was derived from; null when it was written directly
|
|
67003
|
-
*/
|
|
67004
66368
|
source_raw_memory_id: (string | null)
|
|
67005
66369
|
}
|
|
67006
66370
|
|
|
67007
66371
|
export interface BrainMemoryListInput {
|
|
67008
|
-
/**
|
|
67009
|
-
* How many memories to return, max 1000. Omit to use the engine's own page size.
|
|
67010
|
-
*/
|
|
67011
66372
|
limit?: number
|
|
67012
|
-
/**
|
|
67013
|
-
* Sort by write time: 'desc' newest first, 'asc' oldest first. Omit to take the engine's own order.
|
|
67014
|
-
*/
|
|
67015
66373
|
order?: ("asc" | "desc")
|
|
67016
66374
|
/**
|
|
67017
66375
|
* Read scope; 'both' (default) unions shared + your private
|
|
67018
66376
|
*/
|
|
67019
66377
|
scope?: ("shared" | "private" | "both")
|
|
67020
|
-
/**
|
|
67021
|
-
* How many memories to skip before this page — offset 100 with limit 100 is the second page. Omit to start at the beginning.
|
|
67022
|
-
*/
|
|
67023
66378
|
offset?: number
|
|
67024
66379
|
}
|
|
67025
66380
|
|
|
67026
66381
|
export interface BrainMemoryListOutput {
|
|
67027
|
-
/**
|
|
67028
|
-
* How many memories match in total, across all pages — not the length of this page
|
|
67029
|
-
*/
|
|
67030
66382
|
total: number
|
|
67031
|
-
/**
|
|
67032
|
-
* One page of memories, newest first unless `order` said otherwise
|
|
67033
|
-
*/
|
|
67034
66383
|
memories: {
|
|
67035
66384
|
/**
|
|
67036
66385
|
* Consumer-facing label derived from the layer; 'unknown' for an unrecognised layer
|
|
67037
66386
|
*/
|
|
67038
66387
|
kind: ("schema" | "intention" | "identity" | "basic" | "fact" | "summary" | "knowledge" | "raw" | "unknown")
|
|
67039
|
-
/**
|
|
67040
|
-
* Engine tags on this memory; empty when it carries none
|
|
67041
|
-
*/
|
|
67042
66388
|
tags: string[]
|
|
67043
66389
|
/**
|
|
67044
66390
|
* Engine memory layer (l0_basic_info…l7_intention)
|
|
67045
66391
|
*/
|
|
67046
66392
|
layer: ("l6_schema" | "l7_intention" | "l4_identity" | "l0_basic_info" | "l2_fact" | "l3_summary" | "l5_knowledge" | "l1_raw")
|
|
67047
|
-
/**
|
|
67048
|
-
* Free-form metadata, verbatim as the writer passed brain_memory_add's `metadata`; keys are the caller's
|
|
67049
|
-
*/
|
|
67050
66393
|
custom: {
|
|
67051
66394
|
[k: string]: unknown
|
|
67052
66395
|
}
|
|
67053
|
-
/**
|
|
67054
|
-
* Engine lifecycle status of the row — 'active' for a memory in use; superseded rows are not listed
|
|
67055
|
-
*/
|
|
67056
66396
|
status: string
|
|
67057
|
-
/**
|
|
67058
|
-
* The memory text itself
|
|
67059
|
-
*/
|
|
67060
66397
|
content: string
|
|
67061
|
-
/**
|
|
67062
|
-
* Engine user namespace the memory was written under
|
|
67063
|
-
*/
|
|
67064
66398
|
user_id: string
|
|
67065
|
-
/**
|
|
67066
|
-
* Engine agent namespace the memory was written under — the shared pool for a 'shared' write, the caller's own for a private one
|
|
67067
|
-
*/
|
|
67068
66399
|
agent_id: string
|
|
67069
|
-
/**
|
|
67070
|
-
* When the remembered EVENT happened, epoch milliseconds; null when the writer stated no time
|
|
67071
|
-
*/
|
|
67072
66400
|
memory_at: (number | null)
|
|
67073
|
-
/**
|
|
67074
|
-
* Engine id of this memory; pass it to brain_memory_get, _update or _delete
|
|
67075
|
-
*/
|
|
67076
66401
|
memory_id: string
|
|
67077
|
-
/**
|
|
67078
|
-
* The engine's own inference about this memory, or null when it recorded none
|
|
67079
|
-
*/
|
|
67080
66402
|
speculate: (string | null)
|
|
67081
|
-
/**
|
|
67082
|
-
* Engine session the memory was written in; empty when the writer opened none
|
|
67083
|
-
*/
|
|
67084
66403
|
session_id: string
|
|
67085
|
-
/**
|
|
67086
|
-
* When this memory row was written, epoch milliseconds
|
|
67087
|
-
*/
|
|
67088
66404
|
gmt_created: number
|
|
67089
66405
|
/**
|
|
67090
66406
|
* Source authority (highest→lowest): policy > official > team > informal
|
|
67091
66407
|
*/
|
|
67092
66408
|
source_authority: ("policy" | "official" | "team" | "informal")
|
|
67093
|
-
/**
|
|
67094
|
-
* Id of the l1_raw memory this one was derived from; null when it was written directly
|
|
67095
|
-
*/
|
|
67096
66409
|
source_raw_memory_id: (string | null)
|
|
67097
66410
|
}[]
|
|
67098
66411
|
}
|
|
@@ -67113,17 +66426,8 @@ scope?: ("shared" | "private" | "both")
|
|
|
67113
66426
|
}
|
|
67114
66427
|
|
|
67115
66428
|
export interface BrainMemorySearchOutput {
|
|
67116
|
-
/**
|
|
67117
|
-
* Ordinary hits: the facts, summaries and raw notes that match the query
|
|
67118
|
-
*/
|
|
67119
66429
|
normal: BrainMemorySearchOutputItems[]
|
|
67120
|
-
/**
|
|
67121
|
-
* Hits describing WHO the subject is — stable identity and preference memories (l0/l4). Usually the ones worth carrying into a prompt.
|
|
67122
|
-
*/
|
|
67123
66430
|
profile: BrainMemorySearchOutputItems[]
|
|
67124
|
-
/**
|
|
67125
|
-
* Hits the engine offers unprompted — intentions and open threads (l7) it judged relevant to the query rather than matched to it
|
|
67126
|
-
*/
|
|
67127
66431
|
proactive: BrainMemorySearchOutputItems[]
|
|
67128
66432
|
}
|
|
67129
66433
|
export interface BrainMemorySearchOutputItems {
|
|
@@ -67131,53 +66435,23 @@ export interface BrainMemorySearchOutputItems {
|
|
|
67131
66435
|
* Consumer-facing label derived from the layer; 'unknown' for an unrecognised layer
|
|
67132
66436
|
*/
|
|
67133
66437
|
kind: ("schema" | "intention" | "identity" | "basic" | "fact" | "summary" | "knowledge" | "raw" | "unknown")
|
|
67134
|
-
/**
|
|
67135
|
-
* Engine tags on this memory; empty when it carries none
|
|
67136
|
-
*/
|
|
67137
66438
|
tags: string[]
|
|
67138
66439
|
/**
|
|
67139
66440
|
* Engine memory layer (l0_basic_info…l7_intention)
|
|
67140
66441
|
*/
|
|
67141
66442
|
layer: ("l6_schema" | "l7_intention" | "l4_identity" | "l0_basic_info" | "l2_fact" | "l3_summary" | "l5_knowledge" | "l1_raw")
|
|
67142
|
-
/**
|
|
67143
|
-
* How closely this hit matches the query — higher is closer. An engine-internal scale, not a percentage; compare hits against each other, never against a fixed threshold.
|
|
67144
|
-
*/
|
|
67145
66443
|
score: number
|
|
67146
|
-
/**
|
|
67147
|
-
* The memory text itself
|
|
67148
|
-
*/
|
|
67149
66444
|
content: string
|
|
67150
|
-
/**
|
|
67151
|
-
* When the remembered EVENT happened, epoch milliseconds; null when the writer stated no time
|
|
67152
|
-
*/
|
|
67153
66445
|
memory_at: (number | null)
|
|
67154
|
-
/**
|
|
67155
|
-
* Engine id of this memory; pass it to brain_memory_get, _update or _delete
|
|
67156
|
-
*/
|
|
67157
66446
|
memory_id: string
|
|
67158
|
-
/**
|
|
67159
|
-
* The engine's own inference about this memory, or null when it recorded none
|
|
67160
|
-
*/
|
|
67161
66447
|
speculate: (string | null)
|
|
67162
|
-
/**
|
|
67163
|
-
* When this memory row was written, epoch milliseconds
|
|
67164
|
-
*/
|
|
67165
66448
|
gmt_created: number
|
|
67166
|
-
/**
|
|
67167
|
-
* Name of the l6_schema type this memory instantiates; absent on every other layer
|
|
67168
|
-
*/
|
|
67169
66449
|
schema_type?: string
|
|
67170
|
-
/**
|
|
67171
|
-
* Ids of the earlier memories this one grew out of, oldest first; absent when it has no history
|
|
67172
|
-
*/
|
|
67173
66450
|
evolution_chain?: string[]
|
|
67174
66451
|
/**
|
|
67175
66452
|
* Source authority (highest→lowest): policy > official > team > informal
|
|
67176
66453
|
*/
|
|
67177
66454
|
source_authority: ("policy" | "official" | "team" | "informal")
|
|
67178
|
-
/**
|
|
67179
|
-
* Id of the l1_raw memory this one was derived from; null when it was written directly
|
|
67180
|
-
*/
|
|
67181
66455
|
source_raw_memory_id: (string | null)
|
|
67182
66456
|
}
|
|
67183
66457
|
|
|
@@ -67189,52 +66463,19 @@ scope?: ("shared" | "private" | "both")
|
|
|
67189
66463
|
}
|
|
67190
66464
|
|
|
67191
66465
|
export interface BrainMemoryStatsOutput {
|
|
67192
|
-
/**
|
|
67193
|
-
* Size of the engine's memory graph
|
|
67194
|
-
*/
|
|
67195
66466
|
graph: {
|
|
67196
|
-
/**
|
|
67197
|
-
* Edges between those nodes
|
|
67198
|
-
*/
|
|
67199
66467
|
edgeCount: number
|
|
67200
|
-
/**
|
|
67201
|
-
* Nodes in the memory graph
|
|
67202
|
-
*/
|
|
67203
66468
|
nodeCount: number
|
|
67204
66469
|
}
|
|
67205
|
-
/**
|
|
67206
|
-
* Memory counts for the requested scope
|
|
67207
|
-
*/
|
|
67208
66470
|
memories: {
|
|
67209
|
-
/**
|
|
67210
|
-
* How many memories the scope holds in total
|
|
67211
|
-
*/
|
|
67212
66471
|
total: number
|
|
67213
|
-
/**
|
|
67214
|
-
* Counts for the three derived layers the engine reports; the other layers are not broken out
|
|
67215
|
-
*/
|
|
67216
66472
|
byLayer: {
|
|
67217
|
-
/**
|
|
67218
|
-
* Count of l2_fact memories — extracted facts
|
|
67219
|
-
*/
|
|
67220
66473
|
l2: number
|
|
67221
|
-
/**
|
|
67222
|
-
* Count of l3_summary memories — summaries over facts
|
|
67223
|
-
*/
|
|
67224
66474
|
l3: number
|
|
67225
|
-
/**
|
|
67226
|
-
* Count of l4_identity memories — who the subject is
|
|
67227
|
-
*/
|
|
67228
66475
|
l4: number
|
|
67229
66476
|
}
|
|
67230
66477
|
}
|
|
67231
|
-
/**
|
|
67232
|
-
* Size of the product knowledge graph
|
|
67233
|
-
*/
|
|
67234
66478
|
knowledge: {
|
|
67235
|
-
/**
|
|
67236
|
-
* Entities in the product knowledge graph (see brain_knowledge_search)
|
|
67237
|
-
*/
|
|
67238
66479
|
entityCount: number
|
|
67239
66480
|
}
|
|
67240
66481
|
}
|
|
@@ -67251,17 +66492,8 @@ memory_id: string
|
|
|
67251
66492
|
}
|
|
67252
66493
|
|
|
67253
66494
|
export interface BrainMemoryUpdateOutput {
|
|
67254
|
-
/**
|
|
67255
|
-
* Always true — the call fails outright rather than reporting a false here
|
|
67256
|
-
*/
|
|
67257
66495
|
success: true
|
|
67258
|
-
/**
|
|
67259
|
-
* Engine id of the memory that was replaced
|
|
67260
|
-
*/
|
|
67261
66496
|
memory_id: string
|
|
67262
|
-
/**
|
|
67263
|
-
* Engine request id for this call — quote it when reporting a problem
|
|
67264
|
-
*/
|
|
67265
66497
|
request_id: string
|
|
67266
66498
|
}
|
|
67267
66499
|
|
|
@@ -67316,9 +66548,6 @@ days?: number
|
|
|
67316
66548
|
}
|
|
67317
66549
|
|
|
67318
66550
|
export interface BrainUsageReportOutput {
|
|
67319
|
-
/**
|
|
67320
|
-
* A standing warning, in words, that product.rows and platform.meters have different subjects and need not match
|
|
67321
|
-
*/
|
|
67322
66551
|
note: string
|
|
67323
66552
|
/**
|
|
67324
66553
|
* Brain's own ledger, for THIS product only
|
|
@@ -67336,9 +66565,6 @@ days: number
|
|
|
67336
66565
|
* Inclusive UTC start of the window, YYYY-MM-DD
|
|
67337
66566
|
*/
|
|
67338
66567
|
from: string
|
|
67339
|
-
/**
|
|
67340
|
-
* One row per UTC day and meter dimension — the grain to join against a billing export
|
|
67341
|
-
*/
|
|
67342
66568
|
rows: {
|
|
67343
66569
|
/**
|
|
67344
66570
|
* 'sync' | 'batch'; '' when the push carried none
|
|
@@ -67377,72 +66603,27 @@ delivery_failed: number
|
|
|
67377
66603
|
* The rows rolled up per meter across the whole window
|
|
67378
66604
|
*/
|
|
67379
66605
|
totals: {
|
|
67380
|
-
/**
|
|
67381
|
-
* Manifest meter slug, e.g. llm-tokens
|
|
67382
|
-
*/
|
|
67383
66606
|
meter: string
|
|
67384
|
-
/**
|
|
67385
|
-
* How many metered calls landed in the window
|
|
67386
|
-
*/
|
|
67387
66607
|
events: number
|
|
67388
|
-
/**
|
|
67389
|
-
* Tokens metered for this meter across the whole window
|
|
67390
|
-
*/
|
|
67391
66608
|
tokens: number
|
|
67392
|
-
/**
|
|
67393
|
-
* Of those calls, how many billing did not accept — a non-zero here means our ledger and the invoice will differ
|
|
67394
|
-
*/
|
|
67395
66609
|
delivery_failed: number
|
|
67396
66610
|
}[]
|
|
67397
|
-
/**
|
|
67398
|
-
* The product this ledger belongs to — the one the call was made for
|
|
67399
|
-
*/
|
|
67400
66611
|
product_id: string
|
|
67401
66612
|
}
|
|
67402
66613
|
/**
|
|
67403
66614
|
* The platform billing aggregate for the whole ORG; null if it could not be read
|
|
67404
66615
|
*/
|
|
67405
66616
|
platform: ({
|
|
67406
|
-
/**
|
|
67407
|
-
* The billing plan in force for that organisation
|
|
67408
|
-
*/
|
|
67409
66617
|
plan: string
|
|
67410
|
-
/**
|
|
67411
|
-
* Always 'org' — a reminder that these numbers are the whole organisation's, not this product's
|
|
67412
|
-
*/
|
|
67413
66618
|
scope: "org"
|
|
67414
|
-
/**
|
|
67415
|
-
* Per-meter allowance and month-to-date usage as billing reports it
|
|
67416
|
-
*/
|
|
67417
66619
|
meters: {
|
|
67418
|
-
/**
|
|
67419
|
-
* What the numbers below are counted in, e.g. tokens
|
|
67420
|
-
*/
|
|
67421
66620
|
unit?: string
|
|
67422
|
-
/**
|
|
67423
|
-
* How much of it has been used MONTH TO DATE, for the whole org — not for the window asked for here
|
|
67424
|
-
*/
|
|
67425
66621
|
used?: number
|
|
67426
|
-
/**
|
|
67427
|
-
* The plan's allowance for this meter; null or absent when there is no cap
|
|
67428
|
-
*/
|
|
67429
66622
|
limit?: (number | null)
|
|
67430
|
-
/**
|
|
67431
|
-
* Allowance left; null or absent when the meter is uncapped
|
|
67432
|
-
*/
|
|
67433
66623
|
remaining?: (number | null)
|
|
67434
|
-
/**
|
|
67435
|
-
* True when this meter has no cap at all
|
|
67436
|
-
*/
|
|
67437
66624
|
unlimited?: boolean
|
|
67438
|
-
/**
|
|
67439
|
-
* Platform meter slug, e.g. llm-tokens
|
|
67440
|
-
*/
|
|
67441
66625
|
meter_slug: string
|
|
67442
66626
|
}[]
|
|
67443
|
-
/**
|
|
67444
|
-
* The organisation the billing aggregate was read for
|
|
67445
|
-
*/
|
|
67446
66627
|
org_id: string
|
|
67447
66628
|
} | null)
|
|
67448
66629
|
/**
|
|
@@ -88590,378 +87771,6 @@ export interface OrganizationYoutubeInstallOutput {
|
|
|
88590
87771
|
url: string
|
|
88591
87772
|
}
|
|
88592
87773
|
|
|
88593
|
-
export interface PlaygroundAnalyticsOverviewInput {
|
|
88594
|
-
/**
|
|
88595
|
-
* Max records per entity in recent[]; omit for the endpoint default
|
|
88596
|
-
*/
|
|
88597
|
-
limit?: number
|
|
88598
|
-
}
|
|
88599
|
-
|
|
88600
|
-
export interface PlaygroundAnalyticsOverviewOutput {
|
|
88601
|
-
ok: boolean
|
|
88602
|
-
minted: boolean
|
|
88603
|
-
overview?: unknown
|
|
88604
|
-
http_status: number
|
|
88605
|
-
}
|
|
88606
|
-
|
|
88607
|
-
export interface PlaygroundBillingEntitlementsInput {
|
|
88608
|
-
|
|
88609
|
-
}
|
|
88610
|
-
|
|
88611
|
-
export interface PlaygroundBillingEntitlementsOutput {
|
|
88612
|
-
ok: boolean
|
|
88613
|
-
minted: boolean
|
|
88614
|
-
http_status: number
|
|
88615
|
-
entitlements?: unknown
|
|
88616
|
-
}
|
|
88617
|
-
|
|
88618
|
-
export interface PlaygroundBillingRecordUsageInput {
|
|
88619
|
-
/**
|
|
88620
|
-
* Quantity of events to record against playground-events (SUM); defaults to 1
|
|
88621
|
-
*/
|
|
88622
|
-
value?: number
|
|
88623
|
-
}
|
|
88624
|
-
|
|
88625
|
-
export interface PlaygroundBillingRecordUsageOutput {
|
|
88626
|
-
minted: boolean
|
|
88627
|
-
accepted: (number | null)
|
|
88628
|
-
recorded: boolean
|
|
88629
|
-
duplicates: (number | null)
|
|
88630
|
-
http_status: number
|
|
88631
|
-
}
|
|
88632
|
-
|
|
88633
|
-
export interface PlaygroundClickupCreateTaskInput {
|
|
88634
|
-
/**
|
|
88635
|
-
* Task title; defaults to a fixture label
|
|
88636
|
-
*/
|
|
88637
|
-
name?: string
|
|
88638
|
-
/**
|
|
88639
|
-
* ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
|
|
88640
|
-
*/
|
|
88641
|
-
listId?: string
|
|
88642
|
-
}
|
|
88643
|
-
|
|
88644
|
-
export interface PlaygroundClickupCreateTaskOutput {
|
|
88645
|
-
minted: boolean
|
|
88646
|
-
task_id: (string | null)
|
|
88647
|
-
list_status: number
|
|
88648
|
-
vend_status: number
|
|
88649
|
-
clickup_status: number
|
|
88650
|
-
installation_count: number
|
|
88651
|
-
}
|
|
88652
|
-
|
|
88653
|
-
export interface PlaygroundClickupGetLastWebhookInput {
|
|
88654
|
-
|
|
88655
|
-
}
|
|
88656
|
-
|
|
88657
|
-
export type PlaygroundClickupGetLastWebhookOutput = ({
|
|
88658
|
-
payload: string
|
|
88659
|
-
event_id: string
|
|
88660
|
-
provider: string
|
|
88661
|
-
verified: boolean
|
|
88662
|
-
product_id: string
|
|
88663
|
-
occurred_at: string
|
|
88664
|
-
connector_id: string
|
|
88665
|
-
clickup_event: (string | null)
|
|
88666
|
-
receipt_count: number
|
|
88667
|
-
} | {
|
|
88668
|
-
found: false
|
|
88669
|
-
})
|
|
88670
|
-
|
|
88671
|
-
export interface PlaygroundClickupGetOverviewInput {
|
|
88672
|
-
|
|
88673
|
-
}
|
|
88674
|
-
|
|
88675
|
-
export interface PlaygroundClickupGetOverviewOutput {
|
|
88676
|
-
team: ({
|
|
88677
|
-
teamId: string
|
|
88678
|
-
teamName: string
|
|
88679
|
-
} | null)
|
|
88680
|
-
lists: PlaygroundClickupGetOverviewOutputItems[]
|
|
88681
|
-
tasks: {
|
|
88682
|
-
id: string
|
|
88683
|
-
name: string
|
|
88684
|
-
status: (string | null)
|
|
88685
|
-
}[]
|
|
88686
|
-
minted: boolean
|
|
88687
|
-
spaces: PlaygroundClickupGetOverviewOutputItems[]
|
|
88688
|
-
list_status: number
|
|
88689
|
-
vend_status: number
|
|
88690
|
-
lists_status: number
|
|
88691
|
-
tasks_status: number
|
|
88692
|
-
spaces_status: number
|
|
88693
|
-
folders_status: number
|
|
88694
|
-
installation_count: number
|
|
88695
|
-
}
|
|
88696
|
-
export interface PlaygroundClickupGetOverviewOutputItems {
|
|
88697
|
-
id: string
|
|
88698
|
-
name: string
|
|
88699
|
-
}
|
|
88700
|
-
|
|
88701
|
-
export interface PlaygroundEchoPingInput {
|
|
88702
|
-
/**
|
|
88703
|
-
* The text to echo back, 1–1024 characters
|
|
88704
|
-
*/
|
|
88705
|
-
message: string
|
|
88706
|
-
}
|
|
88707
|
-
|
|
88708
|
-
export interface PlaygroundEchoPingOutput {
|
|
88709
|
-
/**
|
|
88710
|
-
* The message exactly as it was received
|
|
88711
|
-
*/
|
|
88712
|
-
message: string
|
|
88713
|
-
/**
|
|
88714
|
-
* The product the call was resolved to
|
|
88715
|
-
*/
|
|
88716
|
-
productId: string
|
|
88717
|
-
/**
|
|
88718
|
-
* ISO-8601 instant (UTC) at which the call reached the service
|
|
88719
|
-
*/
|
|
88720
|
-
receivedAt: string
|
|
88721
|
-
}
|
|
88722
|
-
|
|
88723
|
-
export interface PlaygroundGdriveGetLastChangeInput {
|
|
88724
|
-
|
|
88725
|
-
}
|
|
88726
|
-
|
|
88727
|
-
export type PlaygroundGdriveGetLastChangeOutput = ({
|
|
88728
|
-
file_id: string
|
|
88729
|
-
removed: boolean
|
|
88730
|
-
file_name: (string | null)
|
|
88731
|
-
mime_type: (string | null)
|
|
88732
|
-
product_id: string
|
|
88733
|
-
occurred_at: string
|
|
88734
|
-
connector_id: string
|
|
88735
|
-
resource_state: string
|
|
88736
|
-
} | {
|
|
88737
|
-
found: false
|
|
88738
|
-
})
|
|
88739
|
-
|
|
88740
|
-
export interface PlaygroundGdriveReadFileInput {
|
|
88741
|
-
/**
|
|
88742
|
-
* Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
|
|
88743
|
-
*/
|
|
88744
|
-
fileId?: string
|
|
88745
|
-
}
|
|
88746
|
-
|
|
88747
|
-
export interface PlaygroundGdriveReadFileOutput {
|
|
88748
|
-
minted: boolean
|
|
88749
|
-
file_id: (string | null)
|
|
88750
|
-
file_name: (string | null)
|
|
88751
|
-
mime_type: (string | null)
|
|
88752
|
-
file_count: number
|
|
88753
|
-
get_status: number
|
|
88754
|
-
list_status: number
|
|
88755
|
-
vend_status: number
|
|
88756
|
-
content_bytes: (number | null)
|
|
88757
|
-
}
|
|
88758
|
-
|
|
88759
|
-
export interface PlaygroundGoogleadsReadCustomerInput {
|
|
88760
|
-
|
|
88761
|
-
}
|
|
88762
|
-
|
|
88763
|
-
export interface PlaygroundGoogleadsReadCustomerOutput {
|
|
88764
|
-
minted: boolean
|
|
88765
|
-
vended: boolean
|
|
88766
|
-
customer_id: (string | null)
|
|
88767
|
-
vend_status: number
|
|
88768
|
-
result_count: number
|
|
88769
|
-
search_status: number
|
|
88770
|
-
login_customer_id: (string | null)
|
|
88771
|
-
}
|
|
88772
|
-
|
|
88773
|
-
export interface PlaygroundLifecycleGetStateInput {
|
|
88774
|
-
|
|
88775
|
-
}
|
|
88776
|
-
|
|
88777
|
-
export interface PlaygroundLifecycleGetStateOutput {
|
|
88778
|
-
blocked: boolean
|
|
88779
|
-
archived: boolean
|
|
88780
|
-
productId: string
|
|
88781
|
-
lastBlockTransition: ({
|
|
88782
|
-
eventId: string
|
|
88783
|
-
eventName: string
|
|
88784
|
-
productId: string
|
|
88785
|
-
occurredAt: string
|
|
88786
|
-
recordedAt: string
|
|
88787
|
-
receiptCount: number
|
|
88788
|
-
organizationId: string
|
|
88789
|
-
cascadedFromOrg: boolean
|
|
88790
|
-
} | null)
|
|
88791
|
-
lastArchiveTransition: ({
|
|
88792
|
-
eventId: string
|
|
88793
|
-
eventName: string
|
|
88794
|
-
productId: string
|
|
88795
|
-
occurredAt: string
|
|
88796
|
-
recordedAt: string
|
|
88797
|
-
receiptCount: number
|
|
88798
|
-
organizationId: string
|
|
88799
|
-
cascadedFromOrg: boolean
|
|
88800
|
-
} | null)
|
|
88801
|
-
}
|
|
88802
|
-
|
|
88803
|
-
export interface PlaygroundLifecycleListEventsInput {
|
|
88804
|
-
|
|
88805
|
-
}
|
|
88806
|
-
|
|
88807
|
-
export type PlaygroundLifecycleListEventsOutput = {
|
|
88808
|
-
eventId: string
|
|
88809
|
-
eventName: string
|
|
88810
|
-
productId: string
|
|
88811
|
-
occurredAt: string
|
|
88812
|
-
recordedAt: string
|
|
88813
|
-
receiptCount: number
|
|
88814
|
-
organizationId: string
|
|
88815
|
-
cascadedFromOrg: boolean
|
|
88816
|
-
}[]
|
|
88817
|
-
|
|
88818
|
-
export interface PlaygroundWebhookGetLastInput {
|
|
88819
|
-
|
|
88820
|
-
}
|
|
88821
|
-
|
|
88822
|
-
export type PlaygroundWebhookGetLastOutput = ({
|
|
88823
|
-
payload?: unknown
|
|
88824
|
-
event_id: string
|
|
88825
|
-
provider: string
|
|
88826
|
-
verified: boolean
|
|
88827
|
-
product_id: string
|
|
88828
|
-
occurred_at: string
|
|
88829
|
-
connector_id: string
|
|
88830
|
-
delivery_count: number
|
|
88831
|
-
} | {
|
|
88832
|
-
found: false
|
|
88833
|
-
})
|
|
88834
|
-
|
|
88835
|
-
export interface PlaygroundWorkflowEchoInput {
|
|
88836
|
-
/**
|
|
88837
|
-
* The text to store, 1–1024 characters
|
|
88838
|
-
*/
|
|
88839
|
-
note: string
|
|
88840
|
-
/**
|
|
88841
|
-
* Optional labels stored alongside the note, at most 20
|
|
88842
|
-
*
|
|
88843
|
-
* @maxItems 20
|
|
88844
|
-
*/
|
|
88845
|
-
tags?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
|
|
88846
|
-
}
|
|
88847
|
-
|
|
88848
|
-
export interface PlaygroundWorkflowEchoOutput {
|
|
88849
|
-
/**
|
|
88850
|
-
* Identifier of the stored echo
|
|
88851
|
-
*/
|
|
88852
|
-
id: string
|
|
88853
|
-
/**
|
|
88854
|
-
* The note exactly as it was received
|
|
88855
|
-
*/
|
|
88856
|
-
note: string
|
|
88857
|
-
/**
|
|
88858
|
-
* The tags exactly as they were received
|
|
88859
|
-
*/
|
|
88860
|
-
tags: string[]
|
|
88861
|
-
/**
|
|
88862
|
-
* Correlation id for this echo. The playground/workflow.echoed event published about two seconds later repeats it, which is how a composer matches the completion back to this step.
|
|
88863
|
-
*/
|
|
88864
|
-
echo_id: string
|
|
88865
|
-
/**
|
|
88866
|
-
* ISO-8601 instant (UTC) at which the echo was stored
|
|
88867
|
-
*/
|
|
88868
|
-
received_at: string
|
|
88869
|
-
}
|
|
88870
|
-
|
|
88871
|
-
export interface PlaygroundWorkflowEchoListInput {
|
|
88872
|
-
|
|
88873
|
-
}
|
|
88874
|
-
|
|
88875
|
-
export type PlaygroundWorkflowEchoListOutput = {
|
|
88876
|
-
/**
|
|
88877
|
-
* Identifier of the stored echo
|
|
88878
|
-
*/
|
|
88879
|
-
id: string
|
|
88880
|
-
/**
|
|
88881
|
-
* The note exactly as it was received
|
|
88882
|
-
*/
|
|
88883
|
-
note: string
|
|
88884
|
-
/**
|
|
88885
|
-
* The tags exactly as they were received
|
|
88886
|
-
*/
|
|
88887
|
-
tags: string[]
|
|
88888
|
-
/**
|
|
88889
|
-
* ISO-8601 instant (UTC) at which the echo was stored
|
|
88890
|
-
*/
|
|
88891
|
-
received_at: string
|
|
88892
|
-
}[]
|
|
88893
|
-
|
|
88894
|
-
export interface PlaygroundWorkflowPingInput {
|
|
88895
|
-
/**
|
|
88896
|
-
* Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
|
|
88897
|
-
*/
|
|
88898
|
-
kind?: string
|
|
88899
|
-
}
|
|
88900
|
-
|
|
88901
|
-
export interface PlaygroundWorkflowPingOutput {
|
|
88902
|
-
/**
|
|
88903
|
-
* Correlation id for this ping. The emitted playground/workflow.ping event repeats it, which is how a composer matches the event back to this step.
|
|
88904
|
-
*/
|
|
88905
|
-
id: string
|
|
88906
|
-
/**
|
|
88907
|
-
* The name of the event that was published
|
|
88908
|
-
*/
|
|
88909
|
-
event: string
|
|
88910
|
-
}
|
|
88911
|
-
|
|
88912
|
-
export interface PlaygroundWorkflowSubjectsListInput {
|
|
88913
|
-
/**
|
|
88914
|
-
* How many subjects to return, 1–100. Defaults to 25.
|
|
88915
|
-
*/
|
|
88916
|
-
limit?: number
|
|
88917
|
-
/**
|
|
88918
|
-
* The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
|
|
88919
|
-
*/
|
|
88920
|
-
cursor?: string
|
|
88921
|
-
/**
|
|
88922
|
-
* ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR AFTER this — the opposite question, the recently active population. Omit for no lower bound.
|
|
88923
|
-
*/
|
|
88924
|
-
last_activity_after?: string
|
|
88925
|
-
/**
|
|
88926
|
-
* ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR BEFORE this — the "inactive for N days" question: pass now minus N days. Omit for no upper bound.
|
|
88927
|
-
*/
|
|
88928
|
-
last_activity_before?: string
|
|
88929
|
-
}
|
|
88930
|
-
|
|
88931
|
-
export interface PlaygroundWorkflowSubjectsListOutput {
|
|
88932
|
-
/**
|
|
88933
|
-
* This page of subjects, most recently active first
|
|
88934
|
-
*/
|
|
88935
|
-
items: {
|
|
88936
|
-
/**
|
|
88937
|
-
* Stable identifier for the subject. This is the field a batch trigger keys on, so a subject already served in an earlier run is skipped rather than served twice.
|
|
88938
|
-
*/
|
|
88939
|
-
subject_key: string
|
|
88940
|
-
/**
|
|
88941
|
-
* Human-readable name of the subject
|
|
88942
|
-
*/
|
|
88943
|
-
display_name: string
|
|
88944
|
-
/**
|
|
88945
|
-
* ISO-8601 instant (UTC) of the subject last activity
|
|
88946
|
-
*/
|
|
88947
|
-
last_activity_at: string
|
|
88948
|
-
}[]
|
|
88949
|
-
/**
|
|
88950
|
-
* Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
|
|
88951
|
-
*/
|
|
88952
|
-
has_more: boolean
|
|
88953
|
-
/**
|
|
88954
|
-
* Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
|
|
88955
|
-
*/
|
|
88956
|
-
next_cursor: (string | null)
|
|
88957
|
-
}
|
|
88958
|
-
|
|
88959
|
-
export interface PlaygroundWsEchoInput {
|
|
88960
|
-
|
|
88961
|
-
}
|
|
88962
|
-
|
|
88963
|
-
export type PlaygroundWsEchoOutput = unknown;
|
|
88964
|
-
|
|
88965
87774
|
export interface RealtimeArchiveExportInput {
|
|
88966
87775
|
/**
|
|
88967
87776
|
* Only entries with ts <= to_ts (epoch ms)
|
|
@@ -111017,75 +109826,13 @@ type: ("server" | "publishable")
|
|
|
111017
109826
|
}
|
|
111018
109827
|
|
|
111019
109828
|
export interface UsersApikeysCreateOutput {
|
|
111020
|
-
/**
|
|
111021
|
-
* Id of the key. Pass it to users_apikeys_revoke.
|
|
111022
|
-
*/
|
|
111023
109829
|
id: string
|
|
111024
|
-
/**
|
|
111025
|
-
* The full secret key, shown ONCE. Store it now — it is never returned again, and a lost key is replaced by minting a new one.
|
|
111026
|
-
*/
|
|
111027
109830
|
key: string
|
|
111028
|
-
/**
|
|
111029
|
-
* The label a human gave this key — which backend or environment holds it.
|
|
111030
|
-
*/
|
|
111031
|
-
name: string
|
|
111032
|
-
/**
|
|
111033
|
-
* `server` for a secret backend key (usk_…), `publishable` for a browser-safe one (upk_…).
|
|
111034
|
-
*/
|
|
111035
|
-
type: ("server" | "publishable")
|
|
111036
|
-
/**
|
|
111037
|
-
* The full value of a publishable key, which is not a secret. Null for a server key — that value exists in exactly one response, ever.
|
|
111038
|
-
*/
|
|
111039
|
-
value: (string | null)
|
|
111040
|
-
/**
|
|
111041
|
-
* `usk_`/`upk_` plus six characters — enough to recognise a key, never to use one.
|
|
111042
|
-
*/
|
|
111043
|
-
prefix: string
|
|
111044
|
-
/**
|
|
111045
|
-
* When the key was issued (ISO 8601).
|
|
111046
|
-
*/
|
|
111047
|
-
createdAt: string
|
|
111048
|
-
/**
|
|
111049
|
-
* When the key was revoked (ISO 8601). Null while it still works.
|
|
111050
|
-
*/
|
|
111051
|
-
revokedAt: (string | null)
|
|
111052
|
-
}
|
|
111053
|
-
|
|
111054
|
-
export interface UsersApikeysGetInput {
|
|
111055
|
-
/**
|
|
111056
|
-
* Id of the key to read — the `id` from users_apikeys_list.
|
|
111057
|
-
*/
|
|
111058
|
-
id: string
|
|
111059
|
-
}
|
|
111060
|
-
|
|
111061
|
-
export interface UsersApikeysGetOutput {
|
|
111062
|
-
/**
|
|
111063
|
-
* Id of the key. Pass it to users_apikeys_revoke.
|
|
111064
|
-
*/
|
|
111065
|
-
id: string
|
|
111066
|
-
/**
|
|
111067
|
-
* The label a human gave this key — which backend or environment holds it.
|
|
111068
|
-
*/
|
|
111069
109831
|
name: string
|
|
111070
|
-
/**
|
|
111071
|
-
* `server` for a secret backend key (usk_…), `publishable` for a browser-safe one (upk_…).
|
|
111072
|
-
*/
|
|
111073
109832
|
type: ("server" | "publishable")
|
|
111074
|
-
/**
|
|
111075
|
-
* The full value of a publishable key, which is not a secret. Null for a server key — that value exists in exactly one response, ever.
|
|
111076
|
-
*/
|
|
111077
109833
|
value: (string | null)
|
|
111078
|
-
/**
|
|
111079
|
-
* `usk_`/`upk_` plus six characters — enough to recognise a key, never to use one.
|
|
111080
|
-
*/
|
|
111081
109834
|
prefix: string
|
|
111082
|
-
/**
|
|
111083
|
-
* When the key was issued (ISO 8601).
|
|
111084
|
-
*/
|
|
111085
109835
|
createdAt: string
|
|
111086
|
-
/**
|
|
111087
|
-
* When the key was revoked (ISO 8601). Null while it still works.
|
|
111088
|
-
*/
|
|
111089
109836
|
revokedAt: (string | null)
|
|
111090
109837
|
}
|
|
111091
109838
|
|
|
@@ -111095,33 +109842,12 @@ export interface UsersApikeysListInput {
|
|
|
111095
109842
|
|
|
111096
109843
|
export interface UsersApikeysListOutput {
|
|
111097
109844
|
keys: {
|
|
111098
|
-
/**
|
|
111099
|
-
* Id of the key. Pass it to users_apikeys_revoke.
|
|
111100
|
-
*/
|
|
111101
109845
|
id: string
|
|
111102
|
-
/**
|
|
111103
|
-
* The label a human gave this key — which backend or environment holds it.
|
|
111104
|
-
*/
|
|
111105
109846
|
name: string
|
|
111106
|
-
/**
|
|
111107
|
-
* `server` for a secret backend key (usk_…), `publishable` for a browser-safe one (upk_…).
|
|
111108
|
-
*/
|
|
111109
109847
|
type: ("server" | "publishable")
|
|
111110
|
-
/**
|
|
111111
|
-
* The full value of a publishable key, which is not a secret. Null for a server key — that value exists in exactly one response, ever.
|
|
111112
|
-
*/
|
|
111113
109848
|
value: (string | null)
|
|
111114
|
-
/**
|
|
111115
|
-
* `usk_`/`upk_` plus six characters — enough to recognise a key, never to use one.
|
|
111116
|
-
*/
|
|
111117
109849
|
prefix: string
|
|
111118
|
-
/**
|
|
111119
|
-
* When the key was issued (ISO 8601).
|
|
111120
|
-
*/
|
|
111121
109850
|
createdAt: string
|
|
111122
|
-
/**
|
|
111123
|
-
* When the key was revoked (ISO 8601). Null while it still works.
|
|
111124
|
-
*/
|
|
111125
109851
|
revokedAt: (string | null)
|
|
111126
109852
|
}[]
|
|
111127
109853
|
}
|
|
@@ -111134,13 +109860,7 @@ id: string
|
|
|
111134
109860
|
}
|
|
111135
109861
|
|
|
111136
109862
|
export interface UsersApikeysRevokeOutput {
|
|
111137
|
-
/**
|
|
111138
|
-
* Id of the key that was revoked.
|
|
111139
|
-
*/
|
|
111140
109863
|
id: string
|
|
111141
|
-
/**
|
|
111142
|
-
* Always true — revocation is immediate and final.
|
|
111143
|
-
*/
|
|
111144
109864
|
revoked: true
|
|
111145
109865
|
}
|
|
111146
109866
|
|
|
@@ -111176,60 +109896,21 @@ targetType?: string
|
|
|
111176
109896
|
}
|
|
111177
109897
|
|
|
111178
109898
|
export interface UsersAuditListOutput {
|
|
111179
|
-
/**
|
|
111180
|
-
* The page of audit events, newest first.
|
|
111181
|
-
*/
|
|
111182
109899
|
events: {
|
|
111183
|
-
/**
|
|
111184
|
-
* Id of this audit row.
|
|
111185
|
-
*/
|
|
111186
109900
|
id: string
|
|
111187
|
-
/**
|
|
111188
|
-
* IP the action came from. Null when it was not an HTTP action.
|
|
111189
|
-
*/
|
|
111190
109901
|
ip: (string | null)
|
|
111191
|
-
/**
|
|
111192
|
-
* What happened, as a dotted name — `user.created`, `passkey.deleted`, `email_change.override_applied`.
|
|
111193
|
-
*/
|
|
111194
109902
|
action: string
|
|
111195
|
-
/**
|
|
111196
|
-
* Id of the actor. Null for a system action.
|
|
111197
|
-
*/
|
|
111198
109903
|
actorId: (string | null)
|
|
111199
|
-
/**
|
|
111200
|
-
* Action-specific detail — the reason text, counts, whatever the action recorded.
|
|
111201
|
-
*/
|
|
111202
109904
|
metadata: {
|
|
111203
109905
|
[k: string]: unknown
|
|
111204
109906
|
}
|
|
111205
|
-
/**
|
|
111206
|
-
* Id of the row the action was about. Null when there was none.
|
|
111207
|
-
*/
|
|
111208
109907
|
targetId: (string | null)
|
|
111209
|
-
/**
|
|
111210
|
-
* Who acted: `operator` (a human or agent on the management plane), `end_user`, or `system`.
|
|
111211
|
-
*/
|
|
111212
109908
|
actorType: ("operator" | "system" | "end_user")
|
|
111213
|
-
/**
|
|
111214
|
-
* When the action happened (ISO 8601).
|
|
111215
|
-
*/
|
|
111216
109909
|
createdAt: string
|
|
111217
|
-
/**
|
|
111218
|
-
* Product the audited action happened in.
|
|
111219
|
-
*/
|
|
111220
109910
|
productId: string
|
|
111221
|
-
/**
|
|
111222
|
-
* User agent the action came from. Null when none was sent.
|
|
111223
|
-
*/
|
|
111224
109911
|
userAgent: (string | null)
|
|
111225
|
-
/**
|
|
111226
|
-
* What kind of row the action was about — `user` or `product`. Null when it was about nothing in particular.
|
|
111227
|
-
*/
|
|
111228
109912
|
targetType: (string | null)
|
|
111229
109913
|
}[]
|
|
111230
|
-
/**
|
|
111231
|
-
* Pass back as `cursor` to fetch the next page. Null when this page is the last.
|
|
111232
|
-
*/
|
|
111233
109914
|
nextCursor: (string | null)
|
|
111234
109915
|
}
|
|
111235
109916
|
|
|
@@ -112212,33 +110893,12 @@ userId: string
|
|
|
112212
110893
|
}
|
|
112213
110894
|
|
|
112214
110895
|
export interface UsersFactorsListOutput {
|
|
112215
|
-
/**
|
|
112216
|
-
* Every second factor this user has — types and status only, never material.
|
|
112217
|
-
*/
|
|
112218
110896
|
factors: {
|
|
112219
|
-
/**
|
|
112220
|
-
* Kind of second factor: `totp` or `backup_codes`. No key material is ever returned.
|
|
112221
|
-
*/
|
|
112222
110897
|
type: ("totp" | "backup_codes" | "webauthn")
|
|
112223
|
-
/**
|
|
112224
|
-
* Whether this factor is enrolled and usable, or still pending verification.
|
|
112225
|
-
*/
|
|
112226
110898
|
status: ("unverified" | "verified")
|
|
112227
|
-
/**
|
|
112228
|
-
* When the factor was enrolled (ISO 8601).
|
|
112229
|
-
*/
|
|
112230
110899
|
createdAt: string
|
|
112231
|
-
/**
|
|
112232
|
-
* `backup_codes` only: how many of the batch are still unspent. Null for any other factor type.
|
|
112233
|
-
*/
|
|
112234
110900
|
remaining: (number | null)
|
|
112235
|
-
/**
|
|
112236
|
-
* When the factor was last used to sign in (ISO 8601). Null if it never was.
|
|
112237
|
-
*/
|
|
112238
110901
|
lastUsedAt: (string | null)
|
|
112239
|
-
/**
|
|
112240
|
-
* When the user first proved the factor works (ISO 8601). Null while it is unverified.
|
|
112241
|
-
*/
|
|
112242
110902
|
verifiedAt: (string | null)
|
|
112243
110903
|
}[]
|
|
112244
110904
|
}
|
|
@@ -112255,13 +110915,7 @@ userId: string
|
|
|
112255
110915
|
}
|
|
112256
110916
|
|
|
112257
110917
|
export interface UsersFactorsResetOutput {
|
|
112258
|
-
/**
|
|
112259
|
-
* Id of the scheduled reset. The same value arrives on `users/mfa.reset-settled`, which is what finishes this step.
|
|
112260
|
-
*/
|
|
112261
110918
|
requestId: string
|
|
112262
|
-
/**
|
|
112263
|
-
* When the removal happens, if nobody aborts it first (ISO 8601). The delay is this product's, not a fixed one.
|
|
112264
|
-
*/
|
|
112265
110919
|
scheduledFor: string
|
|
112266
110920
|
}
|
|
112267
110921
|
|
|
@@ -112557,52 +111211,6 @@ signInFailureBaseline: (number | null)
|
|
|
112557
111211
|
}
|
|
112558
111212
|
}
|
|
112559
111213
|
|
|
112560
|
-
export interface UsersPasskeysGetInput {
|
|
112561
|
-
/**
|
|
112562
|
-
* The end user the credential belongs to.
|
|
112563
|
-
*/
|
|
112564
|
-
userId: string
|
|
112565
|
-
/**
|
|
112566
|
-
* Which credential to read — the `id` from `users_passkeys_list`.
|
|
112567
|
-
*/
|
|
112568
|
-
passkeyId: string
|
|
112569
|
-
}
|
|
112570
|
-
|
|
112571
|
-
export interface UsersPasskeysGetOutput {
|
|
112572
|
-
/**
|
|
112573
|
-
* Id of the credential. Pass it to users_passkeys_revoke.
|
|
112574
|
-
*/
|
|
112575
|
-
id: string
|
|
112576
|
-
/**
|
|
112577
|
-
* The name the user gave this credential, so a person can tell their devices apart. Null when they never named it.
|
|
112578
|
-
*/
|
|
112579
|
-
name: (string | null)
|
|
112580
|
-
/**
|
|
112581
|
-
* The authenticator MODEL’s identifier, which says what kind of device this is, never which one. Null when the authenticator withheld it.
|
|
112582
|
-
*/
|
|
112583
|
-
aaguid: (string | null)
|
|
112584
|
-
/**
|
|
112585
|
-
* True when the platform syncs this credential, so it survives losing the device. False means it lives on that device alone.
|
|
112586
|
-
*/
|
|
112587
|
-
backedUp: boolean
|
|
112588
|
-
/**
|
|
112589
|
-
* When the credential was registered (ISO 8601).
|
|
112590
|
-
*/
|
|
112591
|
-
createdAt: string
|
|
112592
|
-
/**
|
|
112593
|
-
* The authenticator’s own counter as of the last assertion. 0 when the authenticator does not count.
|
|
112594
|
-
*/
|
|
112595
|
-
signCount: number
|
|
112596
|
-
/**
|
|
112597
|
-
* When it last signed in (ISO 8601). Null when it never has.
|
|
112598
|
-
*/
|
|
112599
|
-
lastUsedAt: (string | null)
|
|
112600
|
-
/**
|
|
112601
|
-
* How this authenticator can be reached. Empty when the browser reported nothing — the vocabulary is the platform’s and grows, so it is not an enum.
|
|
112602
|
-
*/
|
|
112603
|
-
transports: string[]
|
|
112604
|
-
}
|
|
112605
|
-
|
|
112606
111214
|
export interface UsersPasskeysListInput {
|
|
112607
111215
|
/**
|
|
112608
111216
|
* The end user whose passkeys to list.
|
|
@@ -112611,41 +111219,14 @@ userId: string
|
|
|
112611
111219
|
}
|
|
112612
111220
|
|
|
112613
111221
|
export interface UsersPasskeysListOutput {
|
|
112614
|
-
/**
|
|
112615
|
-
* The credentials this user has registered, newest first. Empty when they have none.
|
|
112616
|
-
*/
|
|
112617
111222
|
passkeys: {
|
|
112618
|
-
/**
|
|
112619
|
-
* Id of the credential. Pass it to users_passkeys_revoke.
|
|
112620
|
-
*/
|
|
112621
111223
|
id: string
|
|
112622
|
-
/**
|
|
112623
|
-
* The name the user gave this credential, so a person can tell their devices apart. Null when they never named it.
|
|
112624
|
-
*/
|
|
112625
111224
|
name: (string | null)
|
|
112626
|
-
/**
|
|
112627
|
-
* The authenticator MODEL’s identifier, which says what kind of device this is, never which one. Null when the authenticator withheld it.
|
|
112628
|
-
*/
|
|
112629
111225
|
aaguid: (string | null)
|
|
112630
|
-
/**
|
|
112631
|
-
* True when the platform syncs this credential, so it survives losing the device. False means it lives on that device alone.
|
|
112632
|
-
*/
|
|
112633
111226
|
backedUp: boolean
|
|
112634
|
-
/**
|
|
112635
|
-
* When the credential was registered (ISO 8601).
|
|
112636
|
-
*/
|
|
112637
111227
|
createdAt: string
|
|
112638
|
-
/**
|
|
112639
|
-
* The authenticator’s own counter as of the last assertion. 0 when the authenticator does not count.
|
|
112640
|
-
*/
|
|
112641
111228
|
signCount: number
|
|
112642
|
-
/**
|
|
112643
|
-
* When it last signed in (ISO 8601). Null when it never has.
|
|
112644
|
-
*/
|
|
112645
111229
|
lastUsedAt: (string | null)
|
|
112646
|
-
/**
|
|
112647
|
-
* How this authenticator can be reached. Empty when the browser reported nothing — the vocabulary is the platform’s and grows, so it is not an enum.
|
|
112648
|
-
*/
|
|
112649
111230
|
transports: string[]
|
|
112650
111231
|
}[]
|
|
112651
111232
|
}
|
|
@@ -112670,18 +111251,9 @@ export interface UsersPasskeysRevokeOutput {
|
|
|
112670
111251
|
* Present when the revoke was refused — today, only because it was the last way in.
|
|
112671
111252
|
*/
|
|
112672
111253
|
error: ({
|
|
112673
|
-
/**
|
|
112674
|
-
* Why it was refused. Today only `passkey_last_way_in`.
|
|
112675
|
-
*/
|
|
112676
111254
|
code: string
|
|
112677
|
-
/**
|
|
112678
|
-
* The refusal in a sentence, safe to show a human.
|
|
112679
|
-
*/
|
|
112680
111255
|
message: string
|
|
112681
111256
|
} | null)
|
|
112682
|
-
/**
|
|
112683
|
-
* `deleted` when the credential is gone, `failed` when the revoke was refused.
|
|
112684
|
-
*/
|
|
112685
111257
|
status: ("deleted" | "failed")
|
|
112686
111258
|
}
|
|
112687
111259
|
|
|
@@ -112693,13 +111265,7 @@ sessionId: string
|
|
|
112693
111265
|
}
|
|
112694
111266
|
|
|
112695
111267
|
export interface UsersSessionsGetOutput {
|
|
112696
|
-
/**
|
|
112697
|
-
* Id of this session. Pass it to users_sessions_revoke.
|
|
112698
|
-
*/
|
|
112699
111268
|
id: string
|
|
112700
|
-
/**
|
|
112701
|
-
* IP the session was opened from. Null when it was not recorded.
|
|
112702
|
-
*/
|
|
112703
111269
|
ip: (string | null)
|
|
112704
111270
|
/**
|
|
112705
111271
|
* `aal2` only if a verified second factor completed.
|
|
@@ -112709,45 +111275,18 @@ aal: ("aal1" | "aal2")
|
|
|
112709
111275
|
* The factors this session was established with.
|
|
112710
111276
|
*/
|
|
112711
111277
|
amr: string[]
|
|
112712
|
-
/**
|
|
112713
|
-
* Whether the session is still usable, expired, or revoked.
|
|
112714
|
-
*/
|
|
112715
111278
|
status: ("active" | "revoked")
|
|
112716
|
-
/**
|
|
112717
|
-
* The end user this session belongs to.
|
|
112718
|
-
*/
|
|
112719
111279
|
userId: string
|
|
112720
|
-
/**
|
|
112721
|
-
* When the session was opened (ISO 8601).
|
|
112722
|
-
*/
|
|
112723
111280
|
createdAt: string
|
|
112724
|
-
/**
|
|
112725
|
-
* When the current token stops working unless refreshed (ISO 8601).
|
|
112726
|
-
*/
|
|
112727
111281
|
expiresAt: string
|
|
112728
|
-
/**
|
|
112729
|
-
* When the session was revoked (ISO 8601). Null while it is live.
|
|
112730
|
-
*/
|
|
112731
111282
|
revokedAt: (string | null)
|
|
112732
|
-
/**
|
|
112733
|
-
* User agent the session was opened from. Null when none was sent.
|
|
112734
|
-
*/
|
|
112735
111283
|
userAgent: (string | null)
|
|
112736
|
-
/**
|
|
112737
|
-
* Why the session ended, when it was revoked — e.g. `signout`, `ban`, `mfa_reset`. Null while it is live. The vocabulary is additive, so it is not an enum.
|
|
112738
|
-
*/
|
|
112739
111284
|
revokedReason: (string | null)
|
|
112740
111285
|
/**
|
|
112741
111286
|
* The operator behind an impersonated session, or null for an ordinary one.
|
|
112742
111287
|
*/
|
|
112743
111288
|
impersonatedBy: (string | null)
|
|
112744
|
-
/**
|
|
112745
|
-
* When the session last refreshed its tokens (ISO 8601). Null if it never has.
|
|
112746
|
-
*/
|
|
112747
111289
|
lastRefreshedAt: (string | null)
|
|
112748
|
-
/**
|
|
112749
|
-
* When the session ends no matter how often it refreshes (ISO 8601).
|
|
112750
|
-
*/
|
|
112751
111290
|
absoluteExpiresAt: string
|
|
112752
111291
|
}
|
|
112753
111292
|
|
|
@@ -112787,49 +111326,16 @@ userId: string
|
|
|
112787
111326
|
}
|
|
112788
111327
|
|
|
112789
111328
|
export interface UsersSessionsListOutput {
|
|
112790
|
-
/**
|
|
112791
|
-
* The sessions matching the filter, newest first.
|
|
112792
|
-
*/
|
|
112793
111329
|
sessions: {
|
|
112794
|
-
/**
|
|
112795
|
-
* Id of this session. Pass it to users_sessions_revoke.
|
|
112796
|
-
*/
|
|
112797
111330
|
id: string
|
|
112798
|
-
/**
|
|
112799
|
-
* IP the session was opened from. Null when it was not recorded.
|
|
112800
|
-
*/
|
|
112801
111331
|
ip: (string | null)
|
|
112802
|
-
/**
|
|
112803
|
-
* Whether the session is still usable, expired, or revoked.
|
|
112804
|
-
*/
|
|
112805
111332
|
status: ("active" | "revoked")
|
|
112806
|
-
/**
|
|
112807
|
-
* The end user this session belongs to.
|
|
112808
|
-
*/
|
|
112809
111333
|
userId: string
|
|
112810
|
-
/**
|
|
112811
|
-
* When the session was opened (ISO 8601).
|
|
112812
|
-
*/
|
|
112813
111334
|
createdAt: string
|
|
112814
|
-
/**
|
|
112815
|
-
* When the current token stops working unless refreshed (ISO 8601).
|
|
112816
|
-
*/
|
|
112817
111335
|
expiresAt: string
|
|
112818
|
-
/**
|
|
112819
|
-
* When the session was revoked (ISO 8601). Null while it is live.
|
|
112820
|
-
*/
|
|
112821
111336
|
revokedAt: (string | null)
|
|
112822
|
-
/**
|
|
112823
|
-
* User agent the session was opened from. Null when none was sent.
|
|
112824
|
-
*/
|
|
112825
111337
|
userAgent: (string | null)
|
|
112826
|
-
/**
|
|
112827
|
-
* When the session last refreshed its tokens (ISO 8601). Null if it never has.
|
|
112828
|
-
*/
|
|
112829
111338
|
lastRefreshedAt: (string | null)
|
|
112830
|
-
/**
|
|
112831
|
-
* When the session ends no matter how often it refreshes (ISO 8601).
|
|
112832
|
-
*/
|
|
112833
111339
|
absoluteExpiresAt: string
|
|
112834
111340
|
}[]
|
|
112835
111341
|
}
|
|
@@ -112846,9 +111352,6 @@ sessionId?: string
|
|
|
112846
111352
|
}
|
|
112847
111353
|
|
|
112848
111354
|
export interface UsersSessionsRevokeOutput {
|
|
112849
|
-
/**
|
|
112850
|
-
* How many sessions were revoked. Zero when there was nothing live to revoke.
|
|
112851
|
-
*/
|
|
112852
111355
|
revoked: number
|
|
112853
111356
|
}
|
|
112854
111357
|
|
|
@@ -112975,126 +111478,37 @@ userId: string
|
|
|
112975
111478
|
}
|
|
112976
111479
|
|
|
112977
111480
|
export interface UsersUsersBanOutput {
|
|
112978
|
-
/**
|
|
112979
|
-
* Id of this end user. Pass it to any users_users_* tool.
|
|
112980
|
-
*/
|
|
112981
111481
|
id: string
|
|
112982
|
-
/**
|
|
112983
|
-
* The user's display name. Null when nobody set one.
|
|
112984
|
-
*/
|
|
112985
111482
|
name: (string | null)
|
|
112986
|
-
/**
|
|
112987
|
-
* When the user was banned (ISO 8601). Null while they are not banned.
|
|
112988
|
-
*/
|
|
112989
111483
|
bannedAt: (string | null)
|
|
112990
|
-
/**
|
|
112991
|
-
* When this user's personal data was purged for good (ISO 8601). Null while it is intact.
|
|
112992
|
-
*/
|
|
112993
111484
|
erasedAt: (string | null)
|
|
112994
|
-
/**
|
|
112995
|
-
* URL of the user's avatar. Null when there is none.
|
|
112996
|
-
*/
|
|
112997
111485
|
imageUrl: (string | null)
|
|
112998
|
-
/**
|
|
112999
|
-
* Whether this is a test fixture — excluded from metering and from the default listing.
|
|
113000
|
-
*/
|
|
113001
111486
|
testUser: boolean
|
|
113002
|
-
/**
|
|
113003
|
-
* When the user was created (ISO 8601).
|
|
113004
|
-
*/
|
|
113005
111487
|
createdAt: string
|
|
113006
|
-
/**
|
|
113007
|
-
* When the user was soft-deleted (ISO 8601). Null while the account is live.
|
|
113008
|
-
*/
|
|
113009
111488
|
deletedAt: (string | null)
|
|
113010
|
-
/**
|
|
113011
|
-
* Product this user belongs to. Never an input — it comes from the calling identity.
|
|
113012
|
-
*/
|
|
113013
111489
|
productId: string
|
|
113014
|
-
/**
|
|
113015
|
-
* When the user was last changed (ISO 8601).
|
|
113016
|
-
*/
|
|
113017
111490
|
updatedAt: string
|
|
113018
|
-
/**
|
|
113019
|
-
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
113020
|
-
*/
|
|
113021
111491
|
waitlisted: boolean
|
|
113022
|
-
/**
|
|
113023
|
-
* Every identifier of this user, the primary one flagged. To bind the primary address itself, use `primaryEmail` — `identifiers.0` means "the first", not "the primary".
|
|
113024
|
-
*/
|
|
113025
111492
|
identifiers: {
|
|
113026
|
-
/**
|
|
113027
|
-
* Id of this identifier row.
|
|
113028
|
-
*/
|
|
113029
111493
|
id: string
|
|
113030
|
-
/**
|
|
113031
|
-
* What kind of identifier this is. Today always `email`.
|
|
113032
|
-
*/
|
|
113033
111494
|
type: "email"
|
|
113034
|
-
/**
|
|
113035
|
-
* The address as the user typed it, for display.
|
|
113036
|
-
*/
|
|
113037
111495
|
value: string
|
|
113038
|
-
/**
|
|
113039
|
-
* Whether this is the identifier the user signs in with and is contacted at.
|
|
113040
|
-
*/
|
|
113041
111496
|
isPrimary: boolean
|
|
113042
|
-
/**
|
|
113043
|
-
* When this address was verified (ISO 8601). Null while it never was.
|
|
113044
|
-
*/
|
|
113045
111497
|
verifiedAt: (string | null)
|
|
113046
|
-
/**
|
|
113047
|
-
* The address lowercased and NFC-normalised — what uniqueness is checked against.
|
|
113048
|
-
*/
|
|
113049
111498
|
valueCanonical: string
|
|
113050
|
-
/**
|
|
113051
|
-
* `unverified`, `verified`, or `expired` when a verification link ran out before it was used.
|
|
113052
|
-
*/
|
|
113053
111499
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
113054
111500
|
}[]
|
|
113055
|
-
/**
|
|
113056
|
-
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
113057
|
-
*/
|
|
113058
111501
|
lockedUntil: (string | null)
|
|
113059
|
-
/**
|
|
113060
|
-
* When the user last signed in (ISO 8601). Null if they never have.
|
|
113061
|
-
*/
|
|
113062
111502
|
lastSignInAt: (string | null)
|
|
113063
|
-
/**
|
|
113064
|
-
* The user's primary email address, as typed. Null when they have no primary identifier. Bind this rather than `identifiers.0.value`.
|
|
113065
|
-
*/
|
|
113066
|
-
primaryEmail: (string | null)
|
|
113067
|
-
/**
|
|
113068
|
-
* Whether the user must set a new password at their next sign-in.
|
|
113069
|
-
*/
|
|
113070
111503
|
requiresReset: boolean
|
|
113071
|
-
|
|
113072
|
-
|
|
113073
|
-
|
|
113074
|
-
|
|
113075
|
-
[k: string]: unknown
|
|
111504
|
+
publicMetadata: UsersUsersBanOutputPublicMetadata
|
|
111505
|
+
unsafeMetadata: UsersUsersBanOutputPublicMetadata
|
|
111506
|
+
privateMetadata: UsersUsersBanOutputPublicMetadata
|
|
111507
|
+
emailChangeLockedUntil: (string | null)
|
|
113076
111508
|
}
|
|
113077
|
-
|
|
113078
|
-
* Metadata the end user may write themselves. Treat it as untrusted.
|
|
113079
|
-
*/
|
|
113080
|
-
unsafeMetadata: {
|
|
111509
|
+
export interface UsersUsersBanOutputPublicMetadata {
|
|
113081
111510
|
[k: string]: unknown
|
|
113082
111511
|
}
|
|
113083
|
-
/**
|
|
113084
|
-
* Metadata for the management plane only. Never reaches the end user or a token.
|
|
113085
|
-
*/
|
|
113086
|
-
privateMetadata: {
|
|
113087
|
-
[k: string]: unknown
|
|
113088
|
-
}
|
|
113089
|
-
/**
|
|
113090
|
-
* Id of the primary identifier row. Null when there is no primary identifier.
|
|
113091
|
-
*/
|
|
113092
|
-
primaryIdentifierId: (string | null)
|
|
113093
|
-
/**
|
|
113094
|
-
* Until this instant the user may not start another email change, because somebody reverted one (ISO 8601). Null for a user who never reverted one.
|
|
113095
|
-
*/
|
|
113096
|
-
emailChangeLockedUntil: (string | null)
|
|
113097
|
-
}
|
|
113098
111512
|
|
|
113099
111513
|
export interface UsersUsersCreateInput {
|
|
113100
111514
|
/**
|
|
@@ -113197,126 +111611,37 @@ export interface UsersUsersCreateInputPublicMetadata1 {
|
|
|
113197
111611
|
}
|
|
113198
111612
|
|
|
113199
111613
|
export interface UsersUsersCreateOutput {
|
|
113200
|
-
/**
|
|
113201
|
-
* Id of this end user. Pass it to any users_users_* tool.
|
|
113202
|
-
*/
|
|
113203
111614
|
id: string
|
|
113204
|
-
/**
|
|
113205
|
-
* The user's display name. Null when nobody set one.
|
|
113206
|
-
*/
|
|
113207
111615
|
name: (string | null)
|
|
113208
|
-
/**
|
|
113209
|
-
* When the user was banned (ISO 8601). Null while they are not banned.
|
|
113210
|
-
*/
|
|
113211
111616
|
bannedAt: (string | null)
|
|
113212
|
-
/**
|
|
113213
|
-
* When this user's personal data was purged for good (ISO 8601). Null while it is intact.
|
|
113214
|
-
*/
|
|
113215
111617
|
erasedAt: (string | null)
|
|
113216
|
-
/**
|
|
113217
|
-
* URL of the user's avatar. Null when there is none.
|
|
113218
|
-
*/
|
|
113219
111618
|
imageUrl: (string | null)
|
|
113220
|
-
/**
|
|
113221
|
-
* Whether this is a test fixture — excluded from metering and from the default listing.
|
|
113222
|
-
*/
|
|
113223
111619
|
testUser: boolean
|
|
113224
|
-
/**
|
|
113225
|
-
* When the user was created (ISO 8601).
|
|
113226
|
-
*/
|
|
113227
111620
|
createdAt: string
|
|
113228
|
-
/**
|
|
113229
|
-
* When the user was soft-deleted (ISO 8601). Null while the account is live.
|
|
113230
|
-
*/
|
|
113231
111621
|
deletedAt: (string | null)
|
|
113232
|
-
/**
|
|
113233
|
-
* Product this user belongs to. Never an input — it comes from the calling identity.
|
|
113234
|
-
*/
|
|
113235
111622
|
productId: string
|
|
113236
|
-
/**
|
|
113237
|
-
* When the user was last changed (ISO 8601).
|
|
113238
|
-
*/
|
|
113239
111623
|
updatedAt: string
|
|
113240
|
-
/**
|
|
113241
|
-
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
113242
|
-
*/
|
|
113243
111624
|
waitlisted: boolean
|
|
113244
|
-
/**
|
|
113245
|
-
* Every identifier of this user, the primary one flagged. To bind the primary address itself, use `primaryEmail` — `identifiers.0` means "the first", not "the primary".
|
|
113246
|
-
*/
|
|
113247
111625
|
identifiers: {
|
|
113248
|
-
/**
|
|
113249
|
-
* Id of this identifier row.
|
|
113250
|
-
*/
|
|
113251
111626
|
id: string
|
|
113252
|
-
/**
|
|
113253
|
-
* What kind of identifier this is. Today always `email`.
|
|
113254
|
-
*/
|
|
113255
111627
|
type: "email"
|
|
113256
|
-
/**
|
|
113257
|
-
* The address as the user typed it, for display.
|
|
113258
|
-
*/
|
|
113259
111628
|
value: string
|
|
113260
|
-
/**
|
|
113261
|
-
* Whether this is the identifier the user signs in with and is contacted at.
|
|
113262
|
-
*/
|
|
113263
111629
|
isPrimary: boolean
|
|
113264
|
-
/**
|
|
113265
|
-
* When this address was verified (ISO 8601). Null while it never was.
|
|
113266
|
-
*/
|
|
113267
111630
|
verifiedAt: (string | null)
|
|
113268
|
-
/**
|
|
113269
|
-
* The address lowercased and NFC-normalised — what uniqueness is checked against.
|
|
113270
|
-
*/
|
|
113271
111631
|
valueCanonical: string
|
|
113272
|
-
/**
|
|
113273
|
-
* `unverified`, `verified`, or `expired` when a verification link ran out before it was used.
|
|
113274
|
-
*/
|
|
113275
111632
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
113276
111633
|
}[]
|
|
113277
|
-
/**
|
|
113278
|
-
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
113279
|
-
*/
|
|
113280
111634
|
lockedUntil: (string | null)
|
|
113281
|
-
/**
|
|
113282
|
-
* When the user last signed in (ISO 8601). Null if they never have.
|
|
113283
|
-
*/
|
|
113284
111635
|
lastSignInAt: (string | null)
|
|
113285
|
-
/**
|
|
113286
|
-
* The user's primary email address, as typed. Null when they have no primary identifier. Bind this rather than `identifiers.0.value`.
|
|
113287
|
-
*/
|
|
113288
|
-
primaryEmail: (string | null)
|
|
113289
|
-
/**
|
|
113290
|
-
* Whether the user must set a new password at their next sign-in.
|
|
113291
|
-
*/
|
|
113292
111636
|
requiresReset: boolean
|
|
113293
|
-
|
|
113294
|
-
|
|
113295
|
-
|
|
113296
|
-
|
|
113297
|
-
[k: string]: unknown
|
|
113298
|
-
}
|
|
113299
|
-
/**
|
|
113300
|
-
* Metadata the end user may write themselves. Treat it as untrusted.
|
|
113301
|
-
*/
|
|
113302
|
-
unsafeMetadata: {
|
|
113303
|
-
[k: string]: unknown
|
|
111637
|
+
publicMetadata: UsersUsersCreateOutputPublicMetadata
|
|
111638
|
+
unsafeMetadata: UsersUsersCreateOutputPublicMetadata
|
|
111639
|
+
privateMetadata: UsersUsersCreateOutputPublicMetadata
|
|
111640
|
+
emailChangeLockedUntil: (string | null)
|
|
113304
111641
|
}
|
|
113305
|
-
|
|
113306
|
-
* Metadata for the management plane only. Never reaches the end user or a token.
|
|
113307
|
-
*/
|
|
113308
|
-
privateMetadata: {
|
|
111642
|
+
export interface UsersUsersCreateOutputPublicMetadata {
|
|
113309
111643
|
[k: string]: unknown
|
|
113310
111644
|
}
|
|
113311
|
-
/**
|
|
113312
|
-
* Id of the primary identifier row. Null when there is no primary identifier.
|
|
113313
|
-
*/
|
|
113314
|
-
primaryIdentifierId: (string | null)
|
|
113315
|
-
/**
|
|
113316
|
-
* Until this instant the user may not start another email change, because somebody reverted one (ISO 8601). Null for a user who never reverted one.
|
|
113317
|
-
*/
|
|
113318
|
-
emailChangeLockedUntil: (string | null)
|
|
113319
|
-
}
|
|
113320
111645
|
|
|
113321
111646
|
export interface UsersUsersDeleteInput {
|
|
113322
111647
|
/**
|
|
@@ -113326,126 +111651,37 @@ userId: string
|
|
|
113326
111651
|
}
|
|
113327
111652
|
|
|
113328
111653
|
export interface UsersUsersDeleteOutput {
|
|
113329
|
-
/**
|
|
113330
|
-
* Id of this end user. Pass it to any users_users_* tool.
|
|
113331
|
-
*/
|
|
113332
111654
|
id: string
|
|
113333
|
-
/**
|
|
113334
|
-
* The user's display name. Null when nobody set one.
|
|
113335
|
-
*/
|
|
113336
111655
|
name: (string | null)
|
|
113337
|
-
/**
|
|
113338
|
-
* When the user was banned (ISO 8601). Null while they are not banned.
|
|
113339
|
-
*/
|
|
113340
111656
|
bannedAt: (string | null)
|
|
113341
|
-
/**
|
|
113342
|
-
* When this user's personal data was purged for good (ISO 8601). Null while it is intact.
|
|
113343
|
-
*/
|
|
113344
111657
|
erasedAt: (string | null)
|
|
113345
|
-
/**
|
|
113346
|
-
* URL of the user's avatar. Null when there is none.
|
|
113347
|
-
*/
|
|
113348
111658
|
imageUrl: (string | null)
|
|
113349
|
-
/**
|
|
113350
|
-
* Whether this is a test fixture — excluded from metering and from the default listing.
|
|
113351
|
-
*/
|
|
113352
111659
|
testUser: boolean
|
|
113353
|
-
/**
|
|
113354
|
-
* When the user was created (ISO 8601).
|
|
113355
|
-
*/
|
|
113356
111660
|
createdAt: string
|
|
113357
|
-
/**
|
|
113358
|
-
* When the user was soft-deleted (ISO 8601). Null while the account is live.
|
|
113359
|
-
*/
|
|
113360
111661
|
deletedAt: (string | null)
|
|
113361
|
-
/**
|
|
113362
|
-
* Product this user belongs to. Never an input — it comes from the calling identity.
|
|
113363
|
-
*/
|
|
113364
111662
|
productId: string
|
|
113365
|
-
/**
|
|
113366
|
-
* When the user was last changed (ISO 8601).
|
|
113367
|
-
*/
|
|
113368
111663
|
updatedAt: string
|
|
113369
|
-
/**
|
|
113370
|
-
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
113371
|
-
*/
|
|
113372
111664
|
waitlisted: boolean
|
|
113373
|
-
/**
|
|
113374
|
-
* Every identifier of this user, the primary one flagged. To bind the primary address itself, use `primaryEmail` — `identifiers.0` means "the first", not "the primary".
|
|
113375
|
-
*/
|
|
113376
111665
|
identifiers: {
|
|
113377
|
-
/**
|
|
113378
|
-
* Id of this identifier row.
|
|
113379
|
-
*/
|
|
113380
111666
|
id: string
|
|
113381
|
-
/**
|
|
113382
|
-
* What kind of identifier this is. Today always `email`.
|
|
113383
|
-
*/
|
|
113384
111667
|
type: "email"
|
|
113385
|
-
/**
|
|
113386
|
-
* The address as the user typed it, for display.
|
|
113387
|
-
*/
|
|
113388
111668
|
value: string
|
|
113389
|
-
/**
|
|
113390
|
-
* Whether this is the identifier the user signs in with and is contacted at.
|
|
113391
|
-
*/
|
|
113392
111669
|
isPrimary: boolean
|
|
113393
|
-
/**
|
|
113394
|
-
* When this address was verified (ISO 8601). Null while it never was.
|
|
113395
|
-
*/
|
|
113396
111670
|
verifiedAt: (string | null)
|
|
113397
|
-
/**
|
|
113398
|
-
* The address lowercased and NFC-normalised — what uniqueness is checked against.
|
|
113399
|
-
*/
|
|
113400
111671
|
valueCanonical: string
|
|
113401
|
-
/**
|
|
113402
|
-
* `unverified`, `verified`, or `expired` when a verification link ran out before it was used.
|
|
113403
|
-
*/
|
|
113404
111672
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
113405
111673
|
}[]
|
|
113406
|
-
/**
|
|
113407
|
-
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
113408
|
-
*/
|
|
113409
111674
|
lockedUntil: (string | null)
|
|
113410
|
-
/**
|
|
113411
|
-
* When the user last signed in (ISO 8601). Null if they never have.
|
|
113412
|
-
*/
|
|
113413
111675
|
lastSignInAt: (string | null)
|
|
113414
|
-
/**
|
|
113415
|
-
* The user's primary email address, as typed. Null when they have no primary identifier. Bind this rather than `identifiers.0.value`.
|
|
113416
|
-
*/
|
|
113417
|
-
primaryEmail: (string | null)
|
|
113418
|
-
/**
|
|
113419
|
-
* Whether the user must set a new password at their next sign-in.
|
|
113420
|
-
*/
|
|
113421
111676
|
requiresReset: boolean
|
|
113422
|
-
|
|
113423
|
-
|
|
113424
|
-
|
|
113425
|
-
|
|
113426
|
-
[k: string]: unknown
|
|
113427
|
-
}
|
|
113428
|
-
/**
|
|
113429
|
-
* Metadata the end user may write themselves. Treat it as untrusted.
|
|
113430
|
-
*/
|
|
113431
|
-
unsafeMetadata: {
|
|
113432
|
-
[k: string]: unknown
|
|
111677
|
+
publicMetadata: UsersUsersDeleteOutputPublicMetadata
|
|
111678
|
+
unsafeMetadata: UsersUsersDeleteOutputPublicMetadata
|
|
111679
|
+
privateMetadata: UsersUsersDeleteOutputPublicMetadata
|
|
111680
|
+
emailChangeLockedUntil: (string | null)
|
|
113433
111681
|
}
|
|
113434
|
-
|
|
113435
|
-
* Metadata for the management plane only. Never reaches the end user or a token.
|
|
113436
|
-
*/
|
|
113437
|
-
privateMetadata: {
|
|
111682
|
+
export interface UsersUsersDeleteOutputPublicMetadata {
|
|
113438
111683
|
[k: string]: unknown
|
|
113439
111684
|
}
|
|
113440
|
-
/**
|
|
113441
|
-
* Id of the primary identifier row. Null when there is no primary identifier.
|
|
113442
|
-
*/
|
|
113443
|
-
primaryIdentifierId: (string | null)
|
|
113444
|
-
/**
|
|
113445
|
-
* Until this instant the user may not start another email change, because somebody reverted one (ISO 8601). Null for a user who never reverted one.
|
|
113446
|
-
*/
|
|
113447
|
-
emailChangeLockedUntil: (string | null)
|
|
113448
|
-
}
|
|
113449
111685
|
|
|
113450
111686
|
export interface UsersUsersExportInput {
|
|
113451
111687
|
/**
|
|
@@ -113473,129 +111709,40 @@ includeDeleted?: boolean
|
|
|
113473
111709
|
export interface UsersUsersExportOutput {
|
|
113474
111710
|
count: number
|
|
113475
111711
|
users: {
|
|
113476
|
-
/**
|
|
113477
|
-
* Id of this end user. Pass it to any users_users_* tool.
|
|
113478
|
-
*/
|
|
113479
111712
|
id: string
|
|
113480
|
-
/**
|
|
113481
|
-
* The user's display name. Null when nobody set one.
|
|
113482
|
-
*/
|
|
113483
111713
|
name: (string | null)
|
|
113484
|
-
/**
|
|
113485
|
-
* When the user was banned (ISO 8601). Null while they are not banned.
|
|
113486
|
-
*/
|
|
113487
111714
|
bannedAt: (string | null)
|
|
113488
|
-
/**
|
|
113489
|
-
* When this user's personal data was purged for good (ISO 8601). Null while it is intact.
|
|
113490
|
-
*/
|
|
113491
111715
|
erasedAt: (string | null)
|
|
113492
|
-
/**
|
|
113493
|
-
* URL of the user's avatar. Null when there is none.
|
|
113494
|
-
*/
|
|
113495
111716
|
imageUrl: (string | null)
|
|
113496
|
-
/**
|
|
113497
|
-
* Whether this is a test fixture — excluded from metering and from the default listing.
|
|
113498
|
-
*/
|
|
113499
111717
|
testUser: boolean
|
|
113500
|
-
/**
|
|
113501
|
-
* When the user was created (ISO 8601).
|
|
113502
|
-
*/
|
|
113503
111718
|
createdAt: string
|
|
113504
|
-
/**
|
|
113505
|
-
* When the user was soft-deleted (ISO 8601). Null while the account is live.
|
|
113506
|
-
*/
|
|
113507
111719
|
deletedAt: (string | null)
|
|
113508
|
-
/**
|
|
113509
|
-
* Product this user belongs to. Never an input — it comes from the calling identity.
|
|
113510
|
-
*/
|
|
113511
111720
|
productId: string
|
|
113512
|
-
/**
|
|
113513
|
-
* When the user was last changed (ISO 8601).
|
|
113514
|
-
*/
|
|
113515
111721
|
updatedAt: string
|
|
113516
|
-
/**
|
|
113517
|
-
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
113518
|
-
*/
|
|
113519
111722
|
waitlisted: boolean
|
|
113520
|
-
/**
|
|
113521
|
-
* Every identifier of this user, the primary one flagged. To bind the primary address itself, use `primaryEmail` — `identifiers.0` means "the first", not "the primary".
|
|
113522
|
-
*/
|
|
113523
111723
|
identifiers: {
|
|
113524
|
-
/**
|
|
113525
|
-
* Id of this identifier row.
|
|
113526
|
-
*/
|
|
113527
111724
|
id: string
|
|
113528
|
-
/**
|
|
113529
|
-
* What kind of identifier this is. Today always `email`.
|
|
113530
|
-
*/
|
|
113531
111725
|
type: "email"
|
|
113532
|
-
/**
|
|
113533
|
-
* The address as the user typed it, for display.
|
|
113534
|
-
*/
|
|
113535
111726
|
value: string
|
|
113536
|
-
/**
|
|
113537
|
-
* Whether this is the identifier the user signs in with and is contacted at.
|
|
113538
|
-
*/
|
|
113539
111727
|
isPrimary: boolean
|
|
113540
|
-
/**
|
|
113541
|
-
* When this address was verified (ISO 8601). Null while it never was.
|
|
113542
|
-
*/
|
|
113543
111728
|
verifiedAt: (string | null)
|
|
113544
|
-
/**
|
|
113545
|
-
* The address lowercased and NFC-normalised — what uniqueness is checked against.
|
|
113546
|
-
*/
|
|
113547
111729
|
valueCanonical: string
|
|
113548
|
-
/**
|
|
113549
|
-
* `unverified`, `verified`, or `expired` when a verification link ran out before it was used.
|
|
113550
|
-
*/
|
|
113551
111730
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
113552
111731
|
}[]
|
|
113553
|
-
/**
|
|
113554
|
-
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
113555
|
-
*/
|
|
113556
111732
|
lockedUntil: (string | null)
|
|
113557
|
-
/**
|
|
113558
|
-
* When the user last signed in (ISO 8601). Null if they never have.
|
|
113559
|
-
*/
|
|
113560
111733
|
lastSignInAt: (string | null)
|
|
113561
|
-
/**
|
|
113562
|
-
* The user's primary email address, as typed. Null when they have no primary identifier. Bind this rather than `identifiers.0.value`.
|
|
113563
|
-
*/
|
|
113564
|
-
primaryEmail: (string | null)
|
|
113565
|
-
/**
|
|
113566
|
-
* Whether the user must set a new password at their next sign-in.
|
|
113567
|
-
*/
|
|
113568
111734
|
requiresReset: boolean
|
|
113569
|
-
|
|
113570
|
-
|
|
113571
|
-
|
|
113572
|
-
publicMetadata: {
|
|
113573
|
-
[k: string]: unknown
|
|
113574
|
-
}
|
|
113575
|
-
/**
|
|
113576
|
-
* Metadata the end user may write themselves. Treat it as untrusted.
|
|
113577
|
-
*/
|
|
113578
|
-
unsafeMetadata: {
|
|
113579
|
-
[k: string]: unknown
|
|
113580
|
-
}
|
|
113581
|
-
/**
|
|
113582
|
-
* Metadata for the management plane only. Never reaches the end user or a token.
|
|
113583
|
-
*/
|
|
113584
|
-
privateMetadata: {
|
|
113585
|
-
[k: string]: unknown
|
|
113586
|
-
}
|
|
113587
|
-
/**
|
|
113588
|
-
* Id of the primary identifier row. Null when there is no primary identifier.
|
|
113589
|
-
*/
|
|
113590
|
-
primaryIdentifierId: (string | null)
|
|
113591
|
-
/**
|
|
113592
|
-
* Until this instant the user may not start another email change, because somebody reverted one (ISO 8601). Null for a user who never reverted one.
|
|
113593
|
-
*/
|
|
111735
|
+
publicMetadata: UsersUsersExportOutputPublicMetadata
|
|
111736
|
+
unsafeMetadata: UsersUsersExportOutputPublicMetadata
|
|
111737
|
+
privateMetadata: UsersUsersExportOutputPublicMetadata
|
|
113594
111738
|
emailChangeLockedUntil: (string | null)
|
|
113595
111739
|
}[]
|
|
113596
111740
|
exportedAt: string
|
|
113597
111741
|
nextCursor: (string | null)
|
|
113598
111742
|
}
|
|
111743
|
+
export interface UsersUsersExportOutputPublicMetadata {
|
|
111744
|
+
[k: string]: unknown
|
|
111745
|
+
}
|
|
113599
111746
|
|
|
113600
111747
|
export interface UsersUsersGetInput {
|
|
113601
111748
|
/**
|
|
@@ -113605,126 +111752,37 @@ userId: string
|
|
|
113605
111752
|
}
|
|
113606
111753
|
|
|
113607
111754
|
export interface UsersUsersGetOutput {
|
|
113608
|
-
/**
|
|
113609
|
-
* Id of this end user. Pass it to any users_users_* tool.
|
|
113610
|
-
*/
|
|
113611
111755
|
id: string
|
|
113612
|
-
/**
|
|
113613
|
-
* The user's display name. Null when nobody set one.
|
|
113614
|
-
*/
|
|
113615
111756
|
name: (string | null)
|
|
113616
|
-
/**
|
|
113617
|
-
* When the user was banned (ISO 8601). Null while they are not banned.
|
|
113618
|
-
*/
|
|
113619
111757
|
bannedAt: (string | null)
|
|
113620
|
-
/**
|
|
113621
|
-
* When this user's personal data was purged for good (ISO 8601). Null while it is intact.
|
|
113622
|
-
*/
|
|
113623
111758
|
erasedAt: (string | null)
|
|
113624
|
-
/**
|
|
113625
|
-
* URL of the user's avatar. Null when there is none.
|
|
113626
|
-
*/
|
|
113627
111759
|
imageUrl: (string | null)
|
|
113628
|
-
/**
|
|
113629
|
-
* Whether this is a test fixture — excluded from metering and from the default listing.
|
|
113630
|
-
*/
|
|
113631
111760
|
testUser: boolean
|
|
113632
|
-
/**
|
|
113633
|
-
* When the user was created (ISO 8601).
|
|
113634
|
-
*/
|
|
113635
111761
|
createdAt: string
|
|
113636
|
-
/**
|
|
113637
|
-
* When the user was soft-deleted (ISO 8601). Null while the account is live.
|
|
113638
|
-
*/
|
|
113639
111762
|
deletedAt: (string | null)
|
|
113640
|
-
/**
|
|
113641
|
-
* Product this user belongs to. Never an input — it comes from the calling identity.
|
|
113642
|
-
*/
|
|
113643
111763
|
productId: string
|
|
113644
|
-
/**
|
|
113645
|
-
* When the user was last changed (ISO 8601).
|
|
113646
|
-
*/
|
|
113647
111764
|
updatedAt: string
|
|
113648
|
-
/**
|
|
113649
|
-
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
113650
|
-
*/
|
|
113651
111765
|
waitlisted: boolean
|
|
113652
|
-
/**
|
|
113653
|
-
* Every identifier of this user, the primary one flagged. To bind the primary address itself, use `primaryEmail` — `identifiers.0` means "the first", not "the primary".
|
|
113654
|
-
*/
|
|
113655
111766
|
identifiers: {
|
|
113656
|
-
/**
|
|
113657
|
-
* Id of this identifier row.
|
|
113658
|
-
*/
|
|
113659
111767
|
id: string
|
|
113660
|
-
/**
|
|
113661
|
-
* What kind of identifier this is. Today always `email`.
|
|
113662
|
-
*/
|
|
113663
111768
|
type: "email"
|
|
113664
|
-
/**
|
|
113665
|
-
* The address as the user typed it, for display.
|
|
113666
|
-
*/
|
|
113667
111769
|
value: string
|
|
113668
|
-
/**
|
|
113669
|
-
* Whether this is the identifier the user signs in with and is contacted at.
|
|
113670
|
-
*/
|
|
113671
111770
|
isPrimary: boolean
|
|
113672
|
-
/**
|
|
113673
|
-
* When this address was verified (ISO 8601). Null while it never was.
|
|
113674
|
-
*/
|
|
113675
111771
|
verifiedAt: (string | null)
|
|
113676
|
-
/**
|
|
113677
|
-
* The address lowercased and NFC-normalised — what uniqueness is checked against.
|
|
113678
|
-
*/
|
|
113679
111772
|
valueCanonical: string
|
|
113680
|
-
/**
|
|
113681
|
-
* `unverified`, `verified`, or `expired` when a verification link ran out before it was used.
|
|
113682
|
-
*/
|
|
113683
111773
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
113684
111774
|
}[]
|
|
113685
|
-
/**
|
|
113686
|
-
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
113687
|
-
*/
|
|
113688
111775
|
lockedUntil: (string | null)
|
|
113689
|
-
/**
|
|
113690
|
-
* When the user last signed in (ISO 8601). Null if they never have.
|
|
113691
|
-
*/
|
|
113692
111776
|
lastSignInAt: (string | null)
|
|
113693
|
-
/**
|
|
113694
|
-
* The user's primary email address, as typed. Null when they have no primary identifier. Bind this rather than `identifiers.0.value`.
|
|
113695
|
-
*/
|
|
113696
|
-
primaryEmail: (string | null)
|
|
113697
|
-
/**
|
|
113698
|
-
* Whether the user must set a new password at their next sign-in.
|
|
113699
|
-
*/
|
|
113700
111777
|
requiresReset: boolean
|
|
113701
|
-
|
|
113702
|
-
|
|
113703
|
-
|
|
113704
|
-
|
|
113705
|
-
[k: string]: unknown
|
|
113706
|
-
}
|
|
113707
|
-
/**
|
|
113708
|
-
* Metadata the end user may write themselves. Treat it as untrusted.
|
|
113709
|
-
*/
|
|
113710
|
-
unsafeMetadata: {
|
|
113711
|
-
[k: string]: unknown
|
|
111778
|
+
publicMetadata: UsersUsersGetOutputPublicMetadata
|
|
111779
|
+
unsafeMetadata: UsersUsersGetOutputPublicMetadata
|
|
111780
|
+
privateMetadata: UsersUsersGetOutputPublicMetadata
|
|
111781
|
+
emailChangeLockedUntil: (string | null)
|
|
113712
111782
|
}
|
|
113713
|
-
|
|
113714
|
-
* Metadata for the management plane only. Never reaches the end user or a token.
|
|
113715
|
-
*/
|
|
113716
|
-
privateMetadata: {
|
|
111783
|
+
export interface UsersUsersGetOutputPublicMetadata {
|
|
113717
111784
|
[k: string]: unknown
|
|
113718
111785
|
}
|
|
113719
|
-
/**
|
|
113720
|
-
* Id of the primary identifier row. Null when there is no primary identifier.
|
|
113721
|
-
*/
|
|
113722
|
-
primaryIdentifierId: (string | null)
|
|
113723
|
-
/**
|
|
113724
|
-
* Until this instant the user may not start another email change, because somebody reverted one (ISO 8601). Null for a user who never reverted one.
|
|
113725
|
-
*/
|
|
113726
|
-
emailChangeLockedUntil: (string | null)
|
|
113727
|
-
}
|
|
113728
111786
|
|
|
113729
111787
|
export interface UsersUsersImportInput {
|
|
113730
111788
|
/**
|
|
@@ -113737,42 +111795,15 @@ users: [unknown, ...(unknown)[]]
|
|
|
113737
111795
|
}
|
|
113738
111796
|
|
|
113739
111797
|
export interface UsersUsersImportOutput {
|
|
113740
|
-
/**
|
|
113741
|
-
* How many rows could not be imported at all.
|
|
113742
|
-
*/
|
|
113743
111798
|
failed: number
|
|
113744
|
-
/**
|
|
113745
|
-
* How many users were created.
|
|
113746
|
-
*/
|
|
113747
111799
|
created: number
|
|
113748
|
-
/**
|
|
113749
|
-
* One row per submitted row, in the order you sent them.
|
|
113750
|
-
*/
|
|
113751
111800
|
results: {
|
|
113752
|
-
/**
|
|
113753
|
-
* Zero-based index of the row in the `users` array you sent.
|
|
113754
|
-
*/
|
|
113755
111801
|
row: number
|
|
113756
|
-
/**
|
|
113757
|
-
* Why it was skipped, or what went wrong. Null for a created row.
|
|
113758
|
-
*/
|
|
113759
111802
|
reason: (string | null)
|
|
113760
|
-
/**
|
|
113761
|
-
* What happened to this row.
|
|
113762
|
-
*/
|
|
113763
111803
|
status: ("created" | "skipped" | "failed")
|
|
113764
|
-
/**
|
|
113765
|
-
* The created user's id. Null for skipped and failed rows.
|
|
113766
|
-
*/
|
|
113767
111804
|
userId: (string | null)
|
|
113768
111805
|
}[]
|
|
113769
|
-
/**
|
|
113770
|
-
* How many rows were passed over — an address already in the directory, typically.
|
|
113771
|
-
*/
|
|
113772
111806
|
skipped: number
|
|
113773
|
-
/**
|
|
113774
|
-
* How many rows you submitted.
|
|
113775
|
-
*/
|
|
113776
111807
|
requested: number
|
|
113777
111808
|
}
|
|
113778
111809
|
|
|
@@ -113800,21 +111831,9 @@ privateMetadata?: {
|
|
|
113800
111831
|
}
|
|
113801
111832
|
|
|
113802
111833
|
export interface UsersUsersInviteOutput {
|
|
113803
|
-
/**
|
|
113804
|
-
* False when the re-invite cooldown or the mail toolkit refused the send. The invite is still live.
|
|
113805
|
-
*/
|
|
113806
111834
|
mailed: boolean
|
|
113807
|
-
/**
|
|
113808
|
-
* The invited user, created immediately and listed straight away — they simply cannot sign in until they accept.
|
|
113809
|
-
*/
|
|
113810
111835
|
userId: string
|
|
113811
|
-
/**
|
|
113812
|
-
* False when this address had already been invited; the same user is returned.
|
|
113813
|
-
*/
|
|
113814
111836
|
created: boolean
|
|
113815
|
-
/**
|
|
113816
|
-
* When the invite link stops working (ISO 8601).
|
|
113817
|
-
*/
|
|
113818
111837
|
expiresAt: string
|
|
113819
111838
|
}
|
|
113820
111839
|
|
|
@@ -113850,135 +111869,40 @@ includeWaitlisted?: boolean
|
|
|
113850
111869
|
}
|
|
113851
111870
|
|
|
113852
111871
|
export interface UsersUsersListOutput {
|
|
113853
|
-
/**
|
|
113854
|
-
* The page of users, newest first.
|
|
113855
|
-
*/
|
|
113856
111872
|
users: {
|
|
113857
|
-
/**
|
|
113858
|
-
* Id of this end user. Pass it to any users_users_* tool.
|
|
113859
|
-
*/
|
|
113860
111873
|
id: string
|
|
113861
|
-
/**
|
|
113862
|
-
* The user's display name. Null when nobody set one.
|
|
113863
|
-
*/
|
|
113864
111874
|
name: (string | null)
|
|
113865
|
-
/**
|
|
113866
|
-
* When the user was banned (ISO 8601). Null while they are not banned.
|
|
113867
|
-
*/
|
|
113868
111875
|
bannedAt: (string | null)
|
|
113869
|
-
/**
|
|
113870
|
-
* When this user's personal data was purged for good (ISO 8601). Null while it is intact.
|
|
113871
|
-
*/
|
|
113872
111876
|
erasedAt: (string | null)
|
|
113873
|
-
/**
|
|
113874
|
-
* URL of the user's avatar. Null when there is none.
|
|
113875
|
-
*/
|
|
113876
111877
|
imageUrl: (string | null)
|
|
113877
|
-
/**
|
|
113878
|
-
* Whether this is a test fixture — excluded from metering and from the default listing.
|
|
113879
|
-
*/
|
|
113880
111878
|
testUser: boolean
|
|
113881
|
-
/**
|
|
113882
|
-
* When the user was created (ISO 8601).
|
|
113883
|
-
*/
|
|
113884
111879
|
createdAt: string
|
|
113885
|
-
/**
|
|
113886
|
-
* When the user was soft-deleted (ISO 8601). Null while the account is live.
|
|
113887
|
-
*/
|
|
113888
111880
|
deletedAt: (string | null)
|
|
113889
|
-
/**
|
|
113890
|
-
* Product this user belongs to. Never an input — it comes from the calling identity.
|
|
113891
|
-
*/
|
|
113892
111881
|
productId: string
|
|
113893
|
-
/**
|
|
113894
|
-
* When the user was last changed (ISO 8601).
|
|
113895
|
-
*/
|
|
113896
111882
|
updatedAt: string
|
|
113897
|
-
/**
|
|
113898
|
-
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
113899
|
-
*/
|
|
113900
111883
|
waitlisted: boolean
|
|
113901
|
-
/**
|
|
113902
|
-
* Every identifier of this user, the primary one flagged. To bind the primary address itself, use `primaryEmail` — `identifiers.0` means "the first", not "the primary".
|
|
113903
|
-
*/
|
|
113904
111884
|
identifiers: {
|
|
113905
|
-
/**
|
|
113906
|
-
* Id of this identifier row.
|
|
113907
|
-
*/
|
|
113908
111885
|
id: string
|
|
113909
|
-
/**
|
|
113910
|
-
* What kind of identifier this is. Today always `email`.
|
|
113911
|
-
*/
|
|
113912
111886
|
type: "email"
|
|
113913
|
-
/**
|
|
113914
|
-
* The address as the user typed it, for display.
|
|
113915
|
-
*/
|
|
113916
111887
|
value: string
|
|
113917
|
-
/**
|
|
113918
|
-
* Whether this is the identifier the user signs in with and is contacted at.
|
|
113919
|
-
*/
|
|
113920
111888
|
isPrimary: boolean
|
|
113921
|
-
/**
|
|
113922
|
-
* When this address was verified (ISO 8601). Null while it never was.
|
|
113923
|
-
*/
|
|
113924
111889
|
verifiedAt: (string | null)
|
|
113925
|
-
/**
|
|
113926
|
-
* The address lowercased and NFC-normalised — what uniqueness is checked against.
|
|
113927
|
-
*/
|
|
113928
111890
|
valueCanonical: string
|
|
113929
|
-
/**
|
|
113930
|
-
* `unverified`, `verified`, or `expired` when a verification link ran out before it was used.
|
|
113931
|
-
*/
|
|
113932
111891
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
113933
111892
|
}[]
|
|
113934
|
-
/**
|
|
113935
|
-
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
113936
|
-
*/
|
|
113937
111893
|
lockedUntil: (string | null)
|
|
113938
|
-
/**
|
|
113939
|
-
* When the user last signed in (ISO 8601). Null if they never have.
|
|
113940
|
-
*/
|
|
113941
111894
|
lastSignInAt: (string | null)
|
|
113942
|
-
/**
|
|
113943
|
-
* The user's primary email address, as typed. Null when they have no primary identifier. Bind this rather than `identifiers.0.value`.
|
|
113944
|
-
*/
|
|
113945
|
-
primaryEmail: (string | null)
|
|
113946
|
-
/**
|
|
113947
|
-
* Whether the user must set a new password at their next sign-in.
|
|
113948
|
-
*/
|
|
113949
111895
|
requiresReset: boolean
|
|
113950
|
-
|
|
113951
|
-
|
|
113952
|
-
|
|
113953
|
-
publicMetadata: {
|
|
113954
|
-
[k: string]: unknown
|
|
113955
|
-
}
|
|
113956
|
-
/**
|
|
113957
|
-
* Metadata the end user may write themselves. Treat it as untrusted.
|
|
113958
|
-
*/
|
|
113959
|
-
unsafeMetadata: {
|
|
113960
|
-
[k: string]: unknown
|
|
113961
|
-
}
|
|
113962
|
-
/**
|
|
113963
|
-
* Metadata for the management plane only. Never reaches the end user or a token.
|
|
113964
|
-
*/
|
|
113965
|
-
privateMetadata: {
|
|
113966
|
-
[k: string]: unknown
|
|
113967
|
-
}
|
|
113968
|
-
/**
|
|
113969
|
-
* Id of the primary identifier row. Null when there is no primary identifier.
|
|
113970
|
-
*/
|
|
113971
|
-
primaryIdentifierId: (string | null)
|
|
113972
|
-
/**
|
|
113973
|
-
* Until this instant the user may not start another email change, because somebody reverted one (ISO 8601). Null for a user who never reverted one.
|
|
113974
|
-
*/
|
|
111896
|
+
publicMetadata: UsersUsersListOutputPublicMetadata
|
|
111897
|
+
unsafeMetadata: UsersUsersListOutputPublicMetadata
|
|
111898
|
+
privateMetadata: UsersUsersListOutputPublicMetadata
|
|
113975
111899
|
emailChangeLockedUntil: (string | null)
|
|
113976
111900
|
}[]
|
|
113977
|
-
/**
|
|
113978
|
-
* Pass back as `cursor` to fetch the next page. Null when this page is the last.
|
|
113979
|
-
*/
|
|
113980
111901
|
nextCursor: (string | null)
|
|
113981
111902
|
}
|
|
111903
|
+
export interface UsersUsersListOutputPublicMetadata {
|
|
111904
|
+
[k: string]: unknown
|
|
111905
|
+
}
|
|
113982
111906
|
|
|
113983
111907
|
export interface UsersUsersSetPrimaryIdentifierInput {
|
|
113984
111908
|
/**
|
|
@@ -113996,13 +111920,7 @@ userId: string
|
|
|
113996
111920
|
}
|
|
113997
111921
|
|
|
113998
111922
|
export interface UsersUsersSetPrimaryIdentifierOutput {
|
|
113999
|
-
/**
|
|
114000
|
-
* Id of the scheduled change. It appears in the audit rows and in the abort link mailed to the old address.
|
|
114001
|
-
*/
|
|
114002
111923
|
requestId: string
|
|
114003
|
-
/**
|
|
114004
|
-
* When the swap becomes applicable, if nobody aborts it first (ISO 8601). The delay is this product's `emailChange.overrideDelayHours`, 72 by default.
|
|
114005
|
-
*/
|
|
114006
111924
|
scheduledFor: string
|
|
114007
111925
|
}
|
|
114008
111926
|
|
|
@@ -114014,126 +111932,37 @@ userId: string
|
|
|
114014
111932
|
}
|
|
114015
111933
|
|
|
114016
111934
|
export interface UsersUsersUnbanOutput {
|
|
114017
|
-
/**
|
|
114018
|
-
* Id of this end user. Pass it to any users_users_* tool.
|
|
114019
|
-
*/
|
|
114020
111935
|
id: string
|
|
114021
|
-
/**
|
|
114022
|
-
* The user's display name. Null when nobody set one.
|
|
114023
|
-
*/
|
|
114024
111936
|
name: (string | null)
|
|
114025
|
-
/**
|
|
114026
|
-
* When the user was banned (ISO 8601). Null while they are not banned.
|
|
114027
|
-
*/
|
|
114028
111937
|
bannedAt: (string | null)
|
|
114029
|
-
/**
|
|
114030
|
-
* When this user's personal data was purged for good (ISO 8601). Null while it is intact.
|
|
114031
|
-
*/
|
|
114032
111938
|
erasedAt: (string | null)
|
|
114033
|
-
/**
|
|
114034
|
-
* URL of the user's avatar. Null when there is none.
|
|
114035
|
-
*/
|
|
114036
111939
|
imageUrl: (string | null)
|
|
114037
|
-
/**
|
|
114038
|
-
* Whether this is a test fixture — excluded from metering and from the default listing.
|
|
114039
|
-
*/
|
|
114040
111940
|
testUser: boolean
|
|
114041
|
-
/**
|
|
114042
|
-
* When the user was created (ISO 8601).
|
|
114043
|
-
*/
|
|
114044
111941
|
createdAt: string
|
|
114045
|
-
/**
|
|
114046
|
-
* When the user was soft-deleted (ISO 8601). Null while the account is live.
|
|
114047
|
-
*/
|
|
114048
111942
|
deletedAt: (string | null)
|
|
114049
|
-
/**
|
|
114050
|
-
* Product this user belongs to. Never an input — it comes from the calling identity.
|
|
114051
|
-
*/
|
|
114052
111943
|
productId: string
|
|
114053
|
-
/**
|
|
114054
|
-
* When the user was last changed (ISO 8601).
|
|
114055
|
-
*/
|
|
114056
111944
|
updatedAt: string
|
|
114057
|
-
/**
|
|
114058
|
-
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
114059
|
-
*/
|
|
114060
111945
|
waitlisted: boolean
|
|
114061
|
-
/**
|
|
114062
|
-
* Every identifier of this user, the primary one flagged. To bind the primary address itself, use `primaryEmail` — `identifiers.0` means "the first", not "the primary".
|
|
114063
|
-
*/
|
|
114064
111946
|
identifiers: {
|
|
114065
|
-
/**
|
|
114066
|
-
* Id of this identifier row.
|
|
114067
|
-
*/
|
|
114068
111947
|
id: string
|
|
114069
|
-
/**
|
|
114070
|
-
* What kind of identifier this is. Today always `email`.
|
|
114071
|
-
*/
|
|
114072
111948
|
type: "email"
|
|
114073
|
-
/**
|
|
114074
|
-
* The address as the user typed it, for display.
|
|
114075
|
-
*/
|
|
114076
111949
|
value: string
|
|
114077
|
-
/**
|
|
114078
|
-
* Whether this is the identifier the user signs in with and is contacted at.
|
|
114079
|
-
*/
|
|
114080
111950
|
isPrimary: boolean
|
|
114081
|
-
/**
|
|
114082
|
-
* When this address was verified (ISO 8601). Null while it never was.
|
|
114083
|
-
*/
|
|
114084
111951
|
verifiedAt: (string | null)
|
|
114085
|
-
/**
|
|
114086
|
-
* The address lowercased and NFC-normalised — what uniqueness is checked against.
|
|
114087
|
-
*/
|
|
114088
111952
|
valueCanonical: string
|
|
114089
|
-
/**
|
|
114090
|
-
* `unverified`, `verified`, or `expired` when a verification link ran out before it was used.
|
|
114091
|
-
*/
|
|
114092
111953
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
114093
111954
|
}[]
|
|
114094
|
-
/**
|
|
114095
|
-
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
114096
|
-
*/
|
|
114097
111955
|
lockedUntil: (string | null)
|
|
114098
|
-
/**
|
|
114099
|
-
* When the user last signed in (ISO 8601). Null if they never have.
|
|
114100
|
-
*/
|
|
114101
111956
|
lastSignInAt: (string | null)
|
|
114102
|
-
/**
|
|
114103
|
-
* The user's primary email address, as typed. Null when they have no primary identifier. Bind this rather than `identifiers.0.value`.
|
|
114104
|
-
*/
|
|
114105
|
-
primaryEmail: (string | null)
|
|
114106
|
-
/**
|
|
114107
|
-
* Whether the user must set a new password at their next sign-in.
|
|
114108
|
-
*/
|
|
114109
111957
|
requiresReset: boolean
|
|
114110
|
-
|
|
114111
|
-
|
|
114112
|
-
|
|
114113
|
-
|
|
114114
|
-
[k: string]: unknown
|
|
114115
|
-
}
|
|
114116
|
-
/**
|
|
114117
|
-
* Metadata the end user may write themselves. Treat it as untrusted.
|
|
114118
|
-
*/
|
|
114119
|
-
unsafeMetadata: {
|
|
114120
|
-
[k: string]: unknown
|
|
111958
|
+
publicMetadata: UsersUsersUnbanOutputPublicMetadata
|
|
111959
|
+
unsafeMetadata: UsersUsersUnbanOutputPublicMetadata
|
|
111960
|
+
privateMetadata: UsersUsersUnbanOutputPublicMetadata
|
|
111961
|
+
emailChangeLockedUntil: (string | null)
|
|
114121
111962
|
}
|
|
114122
|
-
|
|
114123
|
-
* Metadata for the management plane only. Never reaches the end user or a token.
|
|
114124
|
-
*/
|
|
114125
|
-
privateMetadata: {
|
|
111963
|
+
export interface UsersUsersUnbanOutputPublicMetadata {
|
|
114126
111964
|
[k: string]: unknown
|
|
114127
111965
|
}
|
|
114128
|
-
/**
|
|
114129
|
-
* Id of the primary identifier row. Null when there is no primary identifier.
|
|
114130
|
-
*/
|
|
114131
|
-
primaryIdentifierId: (string | null)
|
|
114132
|
-
/**
|
|
114133
|
-
* Until this instant the user may not start another email change, because somebody reverted one (ISO 8601). Null for a user who never reverted one.
|
|
114134
|
-
*/
|
|
114135
|
-
emailChangeLockedUntil: (string | null)
|
|
114136
|
-
}
|
|
114137
111966
|
|
|
114138
111967
|
export interface UsersUsersUpdateInput {
|
|
114139
111968
|
/**
|
|
@@ -114183,126 +112012,37 @@ export interface UsersUsersUpdateInputPublicMetadata1 {
|
|
|
114183
112012
|
}
|
|
114184
112013
|
|
|
114185
112014
|
export interface UsersUsersUpdateOutput {
|
|
114186
|
-
/**
|
|
114187
|
-
* Id of this end user. Pass it to any users_users_* tool.
|
|
114188
|
-
*/
|
|
114189
112015
|
id: string
|
|
114190
|
-
/**
|
|
114191
|
-
* The user's display name. Null when nobody set one.
|
|
114192
|
-
*/
|
|
114193
112016
|
name: (string | null)
|
|
114194
|
-
/**
|
|
114195
|
-
* When the user was banned (ISO 8601). Null while they are not banned.
|
|
114196
|
-
*/
|
|
114197
112017
|
bannedAt: (string | null)
|
|
114198
|
-
/**
|
|
114199
|
-
* When this user's personal data was purged for good (ISO 8601). Null while it is intact.
|
|
114200
|
-
*/
|
|
114201
112018
|
erasedAt: (string | null)
|
|
114202
|
-
/**
|
|
114203
|
-
* URL of the user's avatar. Null when there is none.
|
|
114204
|
-
*/
|
|
114205
112019
|
imageUrl: (string | null)
|
|
114206
|
-
/**
|
|
114207
|
-
* Whether this is a test fixture — excluded from metering and from the default listing.
|
|
114208
|
-
*/
|
|
114209
112020
|
testUser: boolean
|
|
114210
|
-
/**
|
|
114211
|
-
* When the user was created (ISO 8601).
|
|
114212
|
-
*/
|
|
114213
112021
|
createdAt: string
|
|
114214
|
-
/**
|
|
114215
|
-
* When the user was soft-deleted (ISO 8601). Null while the account is live.
|
|
114216
|
-
*/
|
|
114217
112022
|
deletedAt: (string | null)
|
|
114218
|
-
/**
|
|
114219
|
-
* Product this user belongs to. Never an input — it comes from the calling identity.
|
|
114220
|
-
*/
|
|
114221
112023
|
productId: string
|
|
114222
|
-
/**
|
|
114223
|
-
* When the user was last changed (ISO 8601).
|
|
114224
|
-
*/
|
|
114225
112024
|
updatedAt: string
|
|
114226
|
-
/**
|
|
114227
|
-
* Whether this user is still on the waitlist and cannot sign in yet.
|
|
114228
|
-
*/
|
|
114229
112025
|
waitlisted: boolean
|
|
114230
|
-
/**
|
|
114231
|
-
* Every identifier of this user, the primary one flagged. To bind the primary address itself, use `primaryEmail` — `identifiers.0` means "the first", not "the primary".
|
|
114232
|
-
*/
|
|
114233
112026
|
identifiers: {
|
|
114234
|
-
/**
|
|
114235
|
-
* Id of this identifier row.
|
|
114236
|
-
*/
|
|
114237
112027
|
id: string
|
|
114238
|
-
/**
|
|
114239
|
-
* What kind of identifier this is. Today always `email`.
|
|
114240
|
-
*/
|
|
114241
112028
|
type: "email"
|
|
114242
|
-
/**
|
|
114243
|
-
* The address as the user typed it, for display.
|
|
114244
|
-
*/
|
|
114245
112029
|
value: string
|
|
114246
|
-
/**
|
|
114247
|
-
* Whether this is the identifier the user signs in with and is contacted at.
|
|
114248
|
-
*/
|
|
114249
112030
|
isPrimary: boolean
|
|
114250
|
-
/**
|
|
114251
|
-
* When this address was verified (ISO 8601). Null while it never was.
|
|
114252
|
-
*/
|
|
114253
112031
|
verifiedAt: (string | null)
|
|
114254
|
-
/**
|
|
114255
|
-
* The address lowercased and NFC-normalised — what uniqueness is checked against.
|
|
114256
|
-
*/
|
|
114257
112032
|
valueCanonical: string
|
|
114258
|
-
/**
|
|
114259
|
-
* `unverified`, `verified`, or `expired` when a verification link ran out before it was used.
|
|
114260
|
-
*/
|
|
114261
112033
|
verificationStatus: ("unverified" | "verified" | "expired")
|
|
114262
112034
|
}[]
|
|
114263
|
-
/**
|
|
114264
|
-
* When a failed-attempt lockout expires (ISO 8601). Null when the user is not locked out.
|
|
114265
|
-
*/
|
|
114266
112035
|
lockedUntil: (string | null)
|
|
114267
|
-
/**
|
|
114268
|
-
* When the user last signed in (ISO 8601). Null if they never have.
|
|
114269
|
-
*/
|
|
114270
112036
|
lastSignInAt: (string | null)
|
|
114271
|
-
/**
|
|
114272
|
-
* The user's primary email address, as typed. Null when they have no primary identifier. Bind this rather than `identifiers.0.value`.
|
|
114273
|
-
*/
|
|
114274
|
-
primaryEmail: (string | null)
|
|
114275
|
-
/**
|
|
114276
|
-
* Whether the user must set a new password at their next sign-in.
|
|
114277
|
-
*/
|
|
114278
112037
|
requiresReset: boolean
|
|
114279
|
-
|
|
114280
|
-
|
|
114281
|
-
|
|
114282
|
-
|
|
114283
|
-
[k: string]: unknown
|
|
114284
|
-
}
|
|
114285
|
-
/**
|
|
114286
|
-
* Metadata the end user may write themselves. Treat it as untrusted.
|
|
114287
|
-
*/
|
|
114288
|
-
unsafeMetadata: {
|
|
114289
|
-
[k: string]: unknown
|
|
112038
|
+
publicMetadata: UsersUsersUpdateOutputPublicMetadata
|
|
112039
|
+
unsafeMetadata: UsersUsersUpdateOutputPublicMetadata
|
|
112040
|
+
privateMetadata: UsersUsersUpdateOutputPublicMetadata
|
|
112041
|
+
emailChangeLockedUntil: (string | null)
|
|
114290
112042
|
}
|
|
114291
|
-
|
|
114292
|
-
* Metadata for the management plane only. Never reaches the end user or a token.
|
|
114293
|
-
*/
|
|
114294
|
-
privateMetadata: {
|
|
112043
|
+
export interface UsersUsersUpdateOutputPublicMetadata {
|
|
114295
112044
|
[k: string]: unknown
|
|
114296
112045
|
}
|
|
114297
|
-
/**
|
|
114298
|
-
* Id of the primary identifier row. Null when there is no primary identifier.
|
|
114299
|
-
*/
|
|
114300
|
-
primaryIdentifierId: (string | null)
|
|
114301
|
-
/**
|
|
114302
|
-
* Until this instant the user may not start another email change, because somebody reverted one (ISO 8601). Null for a user who never reverted one.
|
|
114303
|
-
*/
|
|
114304
|
-
emailChangeLockedUntil: (string | null)
|
|
114305
|
-
}
|
|
114306
112046
|
|
|
114307
112047
|
export interface UsersWaitlistFunnelInput {
|
|
114308
112048
|
|
|
@@ -114317,64 +112057,6 @@ registered: number
|
|
|
114317
112057
|
unconfirmed: number
|
|
114318
112058
|
}
|
|
114319
112059
|
|
|
114320
|
-
export interface UsersWaitlistGetInput {
|
|
114321
|
-
/**
|
|
114322
|
-
* The waitlisted user to read — the `userId` from `users_waitlist_list`.
|
|
114323
|
-
*/
|
|
114324
|
-
userId: string
|
|
114325
|
-
}
|
|
114326
|
-
|
|
114327
|
-
export interface UsersWaitlistGetOutput {
|
|
114328
|
-
/**
|
|
114329
|
-
* Where in the funnel this entry is: `pending`, `invited`, `registered` or `withdrawn`.
|
|
114330
|
-
*/
|
|
114331
|
-
status: ("pending" | "invited" | "registered" | "withdrawn")
|
|
114332
|
-
/**
|
|
114333
|
-
* The waitlisted user. Every users_users_* tool takes this id.
|
|
114334
|
-
*/
|
|
114335
|
-
userId: string
|
|
114336
|
-
/**
|
|
114337
|
-
* When the entry joined the waitlist (ISO 8601).
|
|
114338
|
-
*/
|
|
114339
|
-
createdAt: string
|
|
114340
|
-
/**
|
|
114341
|
-
* When the invite was sent (ISO 8601). Null while the entry is pending.
|
|
114342
|
-
*/
|
|
114343
|
-
invitedAt: (string | null)
|
|
114344
|
-
/**
|
|
114345
|
-
* The email address that signed up.
|
|
114346
|
-
*/
|
|
114347
|
-
identifier: string
|
|
114348
|
-
/**
|
|
114349
|
-
* Where the signup came from — the campaign, referrer and landing page recorded at the time.
|
|
114350
|
-
*/
|
|
114351
|
-
attribution: {
|
|
114352
|
-
[k: string]: unknown
|
|
114353
|
-
}
|
|
114354
|
-
/**
|
|
114355
|
-
* When the address confirmed a double opt-in (ISO 8601). Null when it never did.
|
|
114356
|
-
*/
|
|
114357
|
-
confirmedAt: (string | null)
|
|
114358
|
-
/**
|
|
114359
|
-
* When the address asked to be taken off the list (ISO 8601). Null when it did not.
|
|
114360
|
-
*/
|
|
114361
|
-
withdrawnAt: (string | null)
|
|
114362
|
-
/**
|
|
114363
|
-
* What was recorded to show this address consented: when, from where, and under which wording.
|
|
114364
|
-
*/
|
|
114365
|
-
consentProof: {
|
|
114366
|
-
[k: string]: unknown
|
|
114367
|
-
}
|
|
114368
|
-
/**
|
|
114369
|
-
* When the invitee finished signing up (ISO 8601). Null until they do.
|
|
114370
|
-
*/
|
|
114371
|
-
registeredAt: (string | null)
|
|
114372
|
-
/**
|
|
114373
|
-
* Id of the live invite token. Null while the entry has not been invited.
|
|
114374
|
-
*/
|
|
114375
|
-
inviteTokenId: (string | null)
|
|
114376
|
-
}
|
|
114377
|
-
|
|
114378
112060
|
export interface UsersWaitlistImportInput {
|
|
114379
112061
|
/**
|
|
114380
112062
|
* The legacy signups to import, at most 500 per call — batch client-side beyond that.
|
|
@@ -114540,42 +112222,15 @@ unsafeMetadata?: {
|
|
|
114540
112222
|
}
|
|
114541
112223
|
|
|
114542
112224
|
export interface UsersWaitlistImportOutput {
|
|
114543
|
-
/**
|
|
114544
|
-
* How many could not be imported at all.
|
|
114545
|
-
*/
|
|
114546
112225
|
failed: number
|
|
114547
|
-
/**
|
|
114548
|
-
* One row per submitted row, in the order you sent them.
|
|
114549
|
-
*/
|
|
114550
112226
|
results: {
|
|
114551
|
-
/**
|
|
114552
|
-
* Zero-based index of the row in the array you sent.
|
|
114553
|
-
*/
|
|
114554
112227
|
row: number
|
|
114555
|
-
/**
|
|
114556
|
-
* Why it was skipped, or what went wrong. Null for an imported row.
|
|
114557
|
-
*/
|
|
114558
112228
|
reason: (string | null)
|
|
114559
|
-
/**
|
|
114560
|
-
* What happened to this row.
|
|
114561
|
-
*/
|
|
114562
112229
|
status: ("imported" | "skipped" | "failed")
|
|
114563
|
-
/**
|
|
114564
|
-
* The waitlisted user this row created. Null for skipped and failed rows.
|
|
114565
|
-
*/
|
|
114566
112230
|
userId: (string | null)
|
|
114567
112231
|
}[]
|
|
114568
|
-
/**
|
|
114569
|
-
* How many were already on the list or otherwise passed over.
|
|
114570
|
-
*/
|
|
114571
112232
|
skipped: number
|
|
114572
|
-
/**
|
|
114573
|
-
* How many became waitlist entries.
|
|
114574
|
-
*/
|
|
114575
112233
|
imported: number
|
|
114576
|
-
/**
|
|
114577
|
-
* How many rows you submitted.
|
|
114578
|
-
*/
|
|
114579
112234
|
requested: number
|
|
114580
112235
|
}
|
|
114581
112236
|
|
|
@@ -114590,30 +112245,12 @@ userIds: [string, ...(string)[]]
|
|
|
114590
112245
|
}
|
|
114591
112246
|
|
|
114592
112247
|
export interface UsersWaitlistInviteOutput {
|
|
114593
|
-
/**
|
|
114594
|
-
* How many of the requested users were invited.
|
|
114595
|
-
*/
|
|
114596
112248
|
invited: number
|
|
114597
|
-
/**
|
|
114598
|
-
* One row per user you asked for, in the order you sent them.
|
|
114599
|
-
*/
|
|
114600
112249
|
results: {
|
|
114601
|
-
/**
|
|
114602
|
-
* Why this user was skipped. Null for an invited row.
|
|
114603
|
-
*/
|
|
114604
112250
|
reason: (("suppressed" | "not_found" | "already_registered") | null)
|
|
114605
|
-
/**
|
|
114606
|
-
* Whether this user was invited or passed over.
|
|
114607
|
-
*/
|
|
114608
112251
|
status: ("invited" | "skipped")
|
|
114609
|
-
/**
|
|
114610
|
-
* The user this row is about.
|
|
114611
|
-
*/
|
|
114612
112252
|
userId: string
|
|
114613
112253
|
}[]
|
|
114614
|
-
/**
|
|
114615
|
-
* How many were passed over — see each row's `reason`.
|
|
114616
|
-
*/
|
|
114617
112254
|
skipped: number
|
|
114618
112255
|
}
|
|
114619
112256
|
|
|
@@ -114637,62 +112274,23 @@ confirmed?: boolean
|
|
|
114637
112274
|
}
|
|
114638
112275
|
|
|
114639
112276
|
export interface UsersWaitlistListOutput {
|
|
114640
|
-
/**
|
|
114641
|
-
* The page of waitlist entries, newest first.
|
|
114642
|
-
*/
|
|
114643
112277
|
entries: {
|
|
114644
|
-
/**
|
|
114645
|
-
* Where in the funnel this entry is: `pending`, `invited`, `registered` or `withdrawn`.
|
|
114646
|
-
*/
|
|
114647
112278
|
status: ("pending" | "invited" | "registered" | "withdrawn")
|
|
114648
|
-
/**
|
|
114649
|
-
* The waitlisted user. Every users_users_* tool takes this id.
|
|
114650
|
-
*/
|
|
114651
112279
|
userId: string
|
|
114652
|
-
/**
|
|
114653
|
-
* When the entry joined the waitlist (ISO 8601).
|
|
114654
|
-
*/
|
|
114655
112280
|
createdAt: string
|
|
114656
|
-
/**
|
|
114657
|
-
* When the invite was sent (ISO 8601). Null while the entry is pending.
|
|
114658
|
-
*/
|
|
114659
112281
|
invitedAt: (string | null)
|
|
114660
|
-
/**
|
|
114661
|
-
* The email address that signed up.
|
|
114662
|
-
*/
|
|
114663
112282
|
identifier: string
|
|
114664
|
-
/**
|
|
114665
|
-
* Where the signup came from — the campaign, referrer and landing page recorded at the time.
|
|
114666
|
-
*/
|
|
114667
112283
|
attribution: {
|
|
114668
112284
|
[k: string]: unknown
|
|
114669
112285
|
}
|
|
114670
|
-
/**
|
|
114671
|
-
* When the address confirmed a double opt-in (ISO 8601). Null when it never did.
|
|
114672
|
-
*/
|
|
114673
112286
|
confirmedAt: (string | null)
|
|
114674
|
-
/**
|
|
114675
|
-
* When the address asked to be taken off the list (ISO 8601). Null when it did not.
|
|
114676
|
-
*/
|
|
114677
112287
|
withdrawnAt: (string | null)
|
|
114678
|
-
/**
|
|
114679
|
-
* What was recorded to show this address consented: when, from where, and under which wording.
|
|
114680
|
-
*/
|
|
114681
112288
|
consentProof: {
|
|
114682
112289
|
[k: string]: unknown
|
|
114683
112290
|
}
|
|
114684
|
-
/**
|
|
114685
|
-
* When the invitee finished signing up (ISO 8601). Null until they do.
|
|
114686
|
-
*/
|
|
114687
112291
|
registeredAt: (string | null)
|
|
114688
|
-
/**
|
|
114689
|
-
* Id of the live invite token. Null while the entry has not been invited.
|
|
114690
|
-
*/
|
|
114691
112292
|
inviteTokenId: (string | null)
|
|
114692
112293
|
}[]
|
|
114693
|
-
/**
|
|
114694
|
-
* Pass back as `cursor` to fetch the next page. Null when this page is the last.
|
|
114695
|
-
*/
|
|
114696
112294
|
nextCursor: (string | null)
|
|
114697
112295
|
}
|
|
114698
112296
|
|