@lessly/sdk-app 76.0.0 → 76.1.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.
@@ -111051,6 +111051,44 @@ createdAt: string
111051
111051
  revokedAt: (string | null)
111052
111052
  }
111053
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
+ name: string
111070
+ /**
111071
+ * `server` for a secret backend key (usk_…), `publishable` for a browser-safe one (upk_…).
111072
+ */
111073
+ 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
+ value: (string | null)
111078
+ /**
111079
+ * `usk_`/`upk_` plus six characters — enough to recognise a key, never to use one.
111080
+ */
111081
+ prefix: string
111082
+ /**
111083
+ * When the key was issued (ISO 8601).
111084
+ */
111085
+ createdAt: string
111086
+ /**
111087
+ * When the key was revoked (ISO 8601). Null while it still works.
111088
+ */
111089
+ revokedAt: (string | null)
111090
+ }
111091
+
111054
111092
  export interface UsersApikeysListInput {
111055
111093
 
111056
111094
  }
@@ -112519,6 +112557,52 @@ signInFailureBaseline: (number | null)
112519
112557
  }
112520
112558
  }
112521
112559
 
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
+
112522
112606
  export interface UsersPasskeysListInput {
112523
112607
  /**
112524
112608
  * The end user whose passkeys to list.
@@ -112527,14 +112611,41 @@ userId: string
112527
112611
  }
112528
112612
 
112529
112613
  export interface UsersPasskeysListOutput {
112614
+ /**
112615
+ * The credentials this user has registered, newest first. Empty when they have none.
112616
+ */
112530
112617
  passkeys: {
112618
+ /**
112619
+ * Id of the credential. Pass it to users_passkeys_revoke.
112620
+ */
112531
112621
  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
+ */
112532
112625
  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
+ */
112533
112629
  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
+ */
112534
112633
  backedUp: boolean
112634
+ /**
112635
+ * When the credential was registered (ISO 8601).
112636
+ */
112535
112637
  createdAt: string
112638
+ /**
112639
+ * The authenticator’s own counter as of the last assertion. 0 when the authenticator does not count.
112640
+ */
112536
112641
  signCount: number
112642
+ /**
112643
+ * When it last signed in (ISO 8601). Null when it never has.
112644
+ */
112537
112645
  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
+ */
112538
112649
  transports: string[]
112539
112650
  }[]
112540
112651
  }
@@ -112622,6 +112733,9 @@ revokedAt: (string | null)
112622
112733
  * User agent the session was opened from. Null when none was sent.
112623
112734
  */
112624
112735
  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
+ */
112625
112739
  revokedReason: (string | null)
112626
112740
  /**
112627
112741
  * The operator behind an impersonated session, or null for an ordinary one.
@@ -114203,6 +114317,64 @@ registered: number
114203
114317
  unconfirmed: number
114204
114318
  }
114205
114319
 
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
+
114206
114378
  export interface UsersWaitlistImportInput {
114207
114379
  /**
114208
114380
  * The legacy signups to import, at most 500 per call — batch client-side beyond that.
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.gen';
3
- export type { UsersApikeysCreateInput, UsersApikeysCreateOutput, UsersApikeysListInput, UsersApikeysListOutput, UsersApikeysRevokeInput, UsersApikeysRevokeOutput, UsersAuditListInput, UsersAuditListOutput, UsersConfigGetInput, UsersConfigGetOutput, UsersConfigUpsertInput, UsersConfigUpsertOutput, UsersFactorsListInput, UsersFactorsListOutput, UsersFactorsResetInput, UsersFactorsResetOutput, UsersKeysListInput, UsersKeysListOutput, UsersKeysRevokeInput, UsersKeysRevokeOutput, UsersKeysRotateInput, UsersKeysRotateOutput, UsersOpsRetentionGetInput, UsersOpsRetentionGetOutput, UsersOpsSloGetInput, UsersOpsSloGetOutput, UsersPasskeysListInput, UsersPasskeysListOutput, UsersPasskeysRevokeInput, UsersPasskeysRevokeOutput, UsersSessionsGetInput, UsersSessionsGetOutput, UsersSessionsImpersonateInput, UsersSessionsImpersonateOutput, UsersSessionsListInput, UsersSessionsListOutput, UsersSessionsRevokeInput, UsersSessionsRevokeOutput, UsersStatsGetInput, UsersStatsGetOutput, UsersUsersBanInput, UsersUsersBanOutput, UsersUsersCreateInput, UsersUsersCreateOutput, UsersUsersDeleteInput, UsersUsersDeleteOutput, UsersUsersExportInput, UsersUsersExportOutput, UsersUsersGetInput, UsersUsersGetOutput, UsersUsersImportInput, UsersUsersImportOutput, UsersUsersInviteInput, UsersUsersInviteOutput, UsersUsersListInput, UsersUsersListOutput, UsersUsersSetPrimaryIdentifierInput, UsersUsersSetPrimaryIdentifierOutput, UsersUsersUnbanInput, UsersUsersUnbanOutput, UsersUsersUpdateInput, UsersUsersUpdateOutput, UsersWaitlistFunnelInput, UsersWaitlistFunnelOutput, UsersWaitlistImportInput, UsersWaitlistImportOutput, UsersWaitlistInviteInput, UsersWaitlistInviteOutput, UsersWaitlistListInput, UsersWaitlistListOutput, UsersWebhooksCreateInput, UsersWebhooksCreateOutput, UsersWebhooksDeleteInput, UsersWebhooksDeleteOutput, UsersWebhooksDeliveriesListInput, UsersWebhooksDeliveriesListOutput, UsersWebhooksGetInput, UsersWebhooksGetOutput, UsersWebhooksListInput, UsersWebhooksListOutput, UsersWebhooksRotateSecretInput, UsersWebhooksRotateSecretOutput, UsersWebhooksUpdateInput, UsersWebhooksUpdateOutput } from '../types.gen';
3
+ export type { UsersApikeysCreateInput, UsersApikeysCreateOutput, UsersApikeysGetInput, UsersApikeysGetOutput, UsersApikeysListInput, UsersApikeysListOutput, UsersApikeysRevokeInput, UsersApikeysRevokeOutput, UsersAuditListInput, UsersAuditListOutput, UsersConfigGetInput, UsersConfigGetOutput, UsersConfigUpsertInput, UsersConfigUpsertOutput, UsersFactorsListInput, UsersFactorsListOutput, UsersFactorsResetInput, UsersFactorsResetOutput, UsersKeysListInput, UsersKeysListOutput, UsersKeysRevokeInput, UsersKeysRevokeOutput, UsersKeysRotateInput, UsersKeysRotateOutput, UsersOpsRetentionGetInput, UsersOpsRetentionGetOutput, UsersOpsSloGetInput, UsersOpsSloGetOutput, UsersPasskeysGetInput, UsersPasskeysGetOutput, UsersPasskeysListInput, UsersPasskeysListOutput, UsersPasskeysRevokeInput, UsersPasskeysRevokeOutput, UsersSessionsGetInput, UsersSessionsGetOutput, UsersSessionsImpersonateInput, UsersSessionsImpersonateOutput, UsersSessionsListInput, UsersSessionsListOutput, UsersSessionsRevokeInput, UsersSessionsRevokeOutput, UsersStatsGetInput, UsersStatsGetOutput, UsersUsersBanInput, UsersUsersBanOutput, UsersUsersCreateInput, UsersUsersCreateOutput, UsersUsersDeleteInput, UsersUsersDeleteOutput, UsersUsersExportInput, UsersUsersExportOutput, UsersUsersGetInput, UsersUsersGetOutput, UsersUsersImportInput, UsersUsersImportOutput, UsersUsersInviteInput, UsersUsersInviteOutput, UsersUsersListInput, UsersUsersListOutput, UsersUsersSetPrimaryIdentifierInput, UsersUsersSetPrimaryIdentifierOutput, UsersUsersUnbanInput, UsersUsersUnbanOutput, UsersUsersUpdateInput, UsersUsersUpdateOutput, UsersWaitlistFunnelInput, UsersWaitlistFunnelOutput, UsersWaitlistGetInput, UsersWaitlistGetOutput, UsersWaitlistImportInput, UsersWaitlistImportOutput, UsersWaitlistInviteInput, UsersWaitlistInviteOutput, UsersWaitlistListInput, UsersWaitlistListOutput, UsersWebhooksCreateInput, UsersWebhooksCreateOutput, UsersWebhooksDeleteInput, UsersWebhooksDeleteOutput, UsersWebhooksDeliveriesListInput, UsersWebhooksDeliveriesListOutput, UsersWebhooksGetInput, UsersWebhooksGetOutput, UsersWebhooksListInput, UsersWebhooksListOutput, UsersWebhooksRotateSecretInput, UsersWebhooksRotateSecretOutput, UsersWebhooksUpdateInput, UsersWebhooksUpdateOutput } from '../types.gen';
@@ -2,6 +2,8 @@
2
2
  import type { GeneratedClient } from '../client.gen';
3
3
  import type {
4
4
  UsersApikeysCreateInput,
5
+ UsersApikeysGetInput,
6
+ UsersApikeysGetOutput,
5
7
  UsersApikeysListInput,
6
8
  UsersApikeysListOutput,
7
9
  UsersApikeysRevokeInput,
@@ -21,6 +23,8 @@ import type {
21
23
  UsersOpsRetentionGetOutput,
22
24
  UsersOpsSloGetInput,
23
25
  UsersOpsSloGetOutput,
26
+ UsersPasskeysGetInput,
27
+ UsersPasskeysGetOutput,
24
28
  UsersPasskeysListInput,
25
29
  UsersPasskeysListOutput,
26
30
  UsersPasskeysRevokeInput,
@@ -47,6 +51,8 @@ import type {
47
51
  UsersUsersUpdateInput,
48
52
  UsersWaitlistFunnelInput,
49
53
  UsersWaitlistFunnelOutput,
54
+ UsersWaitlistGetInput,
55
+ UsersWaitlistGetOutput,
50
56
  UsersWaitlistImportInput,
51
57
  UsersWaitlistInviteInput,
52
58
  UsersWaitlistListInput,
@@ -68,6 +74,11 @@ export const usersApikeysCreateMutationOptions = (sdk: GeneratedClient) => ({
68
74
  mutationFn: (input: UsersApikeysCreateInput) => sdk['users']['apikeys']['create'](input),
69
75
  });
70
76
 
77
+ export const usersApikeysGetQueryOptions = (sdk: GeneratedClient, input: UsersApikeysGetInput) => ({
78
+ queryKey: ['users', 'apikeys', 'get', input] as const,
79
+ queryFn: () => sdk['users']['apikeys']['get'](input),
80
+ });
81
+
71
82
  export const usersApikeysListQueryOptions = (sdk: GeneratedClient, input: UsersApikeysListInput) => ({
72
83
  queryKey: ['users', 'apikeys', 'list', input] as const,
73
84
  queryFn: () => sdk['users']['apikeys']['list'](input),
@@ -128,6 +139,11 @@ export const usersOpsSloGetQueryOptions = (sdk: GeneratedClient, input: UsersOps
128
139
  queryFn: () => sdk['users']['ops-slo']['get'](input),
129
140
  });
130
141
 
142
+ export const usersPasskeysGetQueryOptions = (sdk: GeneratedClient, input: UsersPasskeysGetInput) => ({
143
+ queryKey: ['users', 'passkeys', 'get', input] as const,
144
+ queryFn: () => sdk['users']['passkeys']['get'](input),
145
+ });
146
+
131
147
  export const usersPasskeysListQueryOptions = (sdk: GeneratedClient, input: UsersPasskeysListInput) => ({
132
148
  queryKey: ['users', 'passkeys', 'list', input] as const,
133
149
  queryFn: () => sdk['users']['passkeys']['list'](input),
@@ -223,6 +239,11 @@ export const usersWaitlistFunnelQueryOptions = (sdk: GeneratedClient, input: Use
223
239
  queryFn: () => sdk['users']['waitlist']['funnel'](input),
224
240
  });
225
241
 
242
+ export const usersWaitlistGetQueryOptions = (sdk: GeneratedClient, input: UsersWaitlistGetInput) => ({
243
+ queryKey: ['users', 'waitlist', 'get', input] as const,
244
+ queryFn: () => sdk['users']['waitlist']['get'](input),
245
+ });
246
+
226
247
  export const usersWaitlistImportMutationOptions = (sdk: GeneratedClient) => ({
227
248
  mutationKey: ['users', 'waitlist', 'import'],
228
249
  mutationFn: (input: UsersWaitlistImportInput) => sdk['users']['waitlist']['import'](input),