@lessly/sdk-app 31.1.0 → 31.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/index.d.cts +1 -1
- package/dist/analytics/index.d.ts +1 -1
- package/dist/brain/index.d.cts +1 -1
- package/dist/brain/index.d.ts +1 -1
- package/dist/{client.gen-3v2tDsvG.d.cts → client.gen-CgxJO9Bv.d.cts} +57 -1
- package/dist/{client.gen-3v2tDsvG.d.ts → client.gen-CgxJO9Bv.d.ts} +57 -1
- package/dist/consent/index.d.cts +1 -1
- package/dist/consent/index.d.ts +1 -1
- package/dist/deployment/index.d.cts +1 -1
- package/dist/deployment/index.d.ts +1 -1
- package/dist/index.cjs +49 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -1
- package/dist/mail/index.d.cts +2 -2
- package/dist/mail/index.d.ts +2 -2
- package/dist/observe/index.d.cts +1 -1
- package/dist/observe/index.d.ts +1 -1
- package/dist/organization/index.cjs +15 -0
- package/dist/organization/index.cjs.map +1 -1
- package/dist/organization/index.d.cts +14 -2
- package/dist/organization/index.d.ts +14 -2
- package/dist/organization/index.js +13 -1
- package/dist/organization/index.js.map +1 -1
- package/dist/playground/index.d.cts +1 -1
- package/dist/playground/index.d.ts +1 -1
- package/dist/realtime/index.d.cts +1 -1
- package/dist/realtime/index.d.ts +1 -1
- package/dist/support/index.d.cts +1 -1
- package/dist/support/index.d.ts +1 -1
- package/dist/tracking/index.d.cts +1 -1
- package/dist/tracking/index.d.ts +1 -1
- package/dist/users/index.d.cts +1 -1
- package/dist/users/index.d.ts +1 -1
- package/dist/waitlist/index.d.cts +1 -1
- package/dist/waitlist/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +49 -0
- package/src/gen/client.gen.ts +9 -0
- package/src/gen/organization/index.ts +1 -1
- package/src/gen/organization/queryOptions.gen.ts +19 -0
- package/src/gen/types.gen.ts +59 -0
|
@@ -68,6 +68,8 @@ import type {
|
|
|
68
68
|
OrganizationProductAcceptInvitationInput,
|
|
69
69
|
OrganizationProductCreateInput,
|
|
70
70
|
OrganizationProductInviteInput,
|
|
71
|
+
OrganizationProductListAccessInput,
|
|
72
|
+
OrganizationProductListAccessOutput,
|
|
71
73
|
OrganizationProductListInput,
|
|
72
74
|
OrganizationProductListInvitationsInput,
|
|
73
75
|
OrganizationProductListInvitationsOutput,
|
|
@@ -77,8 +79,10 @@ import type {
|
|
|
77
79
|
OrganizationProductListRolesInput,
|
|
78
80
|
OrganizationProductListRolesOutput,
|
|
79
81
|
OrganizationProductResendInvitationInput,
|
|
82
|
+
OrganizationProductRevokeAccessInput,
|
|
80
83
|
OrganizationProductRevokeInvitationInput,
|
|
81
84
|
OrganizationProductSelectInput,
|
|
85
|
+
OrganizationProductSetAccessInput,
|
|
82
86
|
OrganizationProductUpdateInput,
|
|
83
87
|
OrganizationPublicKeysCreateInput,
|
|
84
88
|
OrganizationPublicKeysListInput,
|
|
@@ -354,6 +358,11 @@ export const organizationProductListQueryOptions = (sdk: GeneratedClient, input:
|
|
|
354
358
|
queryFn: () => sdk['organization']['product']['list'](input),
|
|
355
359
|
});
|
|
356
360
|
|
|
361
|
+
export const organizationProductListAccessQueryOptions = (sdk: GeneratedClient, input: OrganizationProductListAccessInput) => ({
|
|
362
|
+
queryKey: ['organization', 'product', 'list-access', input] as const,
|
|
363
|
+
queryFn: () => sdk['organization']['product']['list-access'](input),
|
|
364
|
+
});
|
|
365
|
+
|
|
357
366
|
export const organizationProductListInvitationsQueryOptions = (sdk: GeneratedClient, input: OrganizationProductListInvitationsInput) => ({
|
|
358
367
|
queryKey: ['organization', 'product', 'list-invitations', input] as const,
|
|
359
368
|
queryFn: () => sdk['organization']['product']['list-invitations'](input),
|
|
@@ -374,6 +383,11 @@ export const organizationProductResendInvitationMutationOptions = (sdk: Generate
|
|
|
374
383
|
mutationFn: (input: OrganizationProductResendInvitationInput) => sdk['organization']['product']['resend-invitation'](input),
|
|
375
384
|
});
|
|
376
385
|
|
|
386
|
+
export const organizationProductRevokeAccessMutationOptions = (sdk: GeneratedClient) => ({
|
|
387
|
+
mutationKey: ['organization', 'product', 'revoke-access'],
|
|
388
|
+
mutationFn: (input: OrganizationProductRevokeAccessInput) => sdk['organization']['product']['revoke-access'](input),
|
|
389
|
+
});
|
|
390
|
+
|
|
377
391
|
export const organizationProductRevokeInvitationMutationOptions = (sdk: GeneratedClient) => ({
|
|
378
392
|
mutationKey: ['organization', 'product', 'revoke-invitation'],
|
|
379
393
|
mutationFn: (input: OrganizationProductRevokeInvitationInput) => sdk['organization']['product']['revoke-invitation'](input),
|
|
@@ -384,6 +398,11 @@ export const organizationProductSelectMutationOptions = (sdk: GeneratedClient) =
|
|
|
384
398
|
mutationFn: (input: OrganizationProductSelectInput) => sdk['organization']['product']['select'](input),
|
|
385
399
|
});
|
|
386
400
|
|
|
401
|
+
export const organizationProductSetAccessMutationOptions = (sdk: GeneratedClient) => ({
|
|
402
|
+
mutationKey: ['organization', 'product', 'set-access'],
|
|
403
|
+
mutationFn: (input: OrganizationProductSetAccessInput) => sdk['organization']['product']['set-access'](input),
|
|
404
|
+
});
|
|
405
|
+
|
|
387
406
|
export const organizationProductUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
388
407
|
mutationKey: ['organization', 'product', 'update'],
|
|
389
408
|
mutationFn: (input: OrganizationProductUpdateInput) => sdk['organization']['product']['update'](input),
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -14022,6 +14022,43 @@ organizationId: string
|
|
|
14022
14022
|
}[]
|
|
14023
14023
|
}
|
|
14024
14024
|
|
|
14025
|
+
export interface OrganizationProductListAccessInput {
|
|
14026
|
+
productId: string
|
|
14027
|
+
}
|
|
14028
|
+
|
|
14029
|
+
export interface OrganizationProductListAccessOutput {
|
|
14030
|
+
members: {
|
|
14031
|
+
role: string
|
|
14032
|
+
email: (string | null)
|
|
14033
|
+
roleId: (string | null)
|
|
14034
|
+
userId: string
|
|
14035
|
+
isCustom: boolean
|
|
14036
|
+
roleName: (string | null)
|
|
14037
|
+
sourceRole: ({
|
|
14038
|
+
id: string
|
|
14039
|
+
name: string
|
|
14040
|
+
} | null)
|
|
14041
|
+
displayName: (string | null)
|
|
14042
|
+
}[]
|
|
14043
|
+
orgRoles: {
|
|
14044
|
+
id: string
|
|
14045
|
+
name: string
|
|
14046
|
+
description: (string | null)
|
|
14047
|
+
}[]
|
|
14048
|
+
canManage: boolean
|
|
14049
|
+
inherited: {
|
|
14050
|
+
email: (string | null)
|
|
14051
|
+
userId: string
|
|
14052
|
+
orgRole: ("owner" | "admin")
|
|
14053
|
+
displayName: (string | null)
|
|
14054
|
+
}[]
|
|
14055
|
+
candidates: {
|
|
14056
|
+
email: (string | null)
|
|
14057
|
+
userId: string
|
|
14058
|
+
displayName: (string | null)
|
|
14059
|
+
}[]
|
|
14060
|
+
}
|
|
14061
|
+
|
|
14025
14062
|
export interface OrganizationProductListInvitationsInput {
|
|
14026
14063
|
productId: string
|
|
14027
14064
|
}
|
|
@@ -14087,6 +14124,15 @@ createdAt: string
|
|
|
14087
14124
|
expiresAt: string
|
|
14088
14125
|
}
|
|
14089
14126
|
|
|
14127
|
+
export interface OrganizationProductRevokeAccessInput {
|
|
14128
|
+
userId: string
|
|
14129
|
+
productId: string
|
|
14130
|
+
}
|
|
14131
|
+
|
|
14132
|
+
export interface OrganizationProductRevokeAccessOutput {
|
|
14133
|
+
[k: string]: unknown
|
|
14134
|
+
}
|
|
14135
|
+
|
|
14090
14136
|
export interface OrganizationProductRevokeInvitationInput {
|
|
14091
14137
|
productId: string
|
|
14092
14138
|
invitationId: string
|
|
@@ -14106,6 +14152,19 @@ name: string
|
|
|
14106
14152
|
slug: string
|
|
14107
14153
|
}
|
|
14108
14154
|
|
|
14155
|
+
export interface OrganizationProductSetAccessInput {
|
|
14156
|
+
role?: ("admin" | "member" | "viewer")
|
|
14157
|
+
roleId?: string
|
|
14158
|
+
userId: string
|
|
14159
|
+
productId: string
|
|
14160
|
+
}
|
|
14161
|
+
|
|
14162
|
+
export interface OrganizationProductSetAccessOutput {
|
|
14163
|
+
role: string
|
|
14164
|
+
userId: string
|
|
14165
|
+
productId: string
|
|
14166
|
+
}
|
|
14167
|
+
|
|
14109
14168
|
export interface OrganizationProductUpdateInput {
|
|
14110
14169
|
name: string
|
|
14111
14170
|
productId: string
|