@lepsto/sdk-app 84.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.
Files changed (183) hide show
  1. package/README.md +233 -0
  2. package/dist/_types/gen/analytics/index.d.ts +2 -0
  3. package/dist/_types/gen/analytics/queryOptions.gen.d.ts +74 -0
  4. package/dist/_types/gen/bindings.gen.d.ts +3 -0
  5. package/dist/_types/gen/brain/index.d.ts +2 -0
  6. package/dist/_types/gen/brain/queryOptions.gen.d.ts +166 -0
  7. package/dist/_types/gen/client.gen.d.ts +1087 -0
  8. package/dist/_types/gen/consent/index.d.ts +2 -0
  9. package/dist/_types/gen/consent/queryOptions.gen.d.ts +62 -0
  10. package/dist/_types/gen/content/index.d.ts +2 -0
  11. package/dist/_types/gen/content/queryOptions.gen.d.ts +126 -0
  12. package/dist/_types/gen/deployment/index.d.ts +2 -0
  13. package/dist/_types/gen/deployment/queryOptions.gen.d.ts +438 -0
  14. package/dist/_types/gen/mail/index.d.ts +2 -0
  15. package/dist/_types/gen/mail/queryOptions.gen.d.ts +206 -0
  16. package/dist/_types/gen/manifest.gen.d.ts +4 -0
  17. package/dist/_types/gen/observe/index.d.ts +2 -0
  18. package/dist/_types/gen/observe/queryOptions.gen.d.ts +142 -0
  19. package/dist/_types/gen/organization/index.d.ts +2 -0
  20. package/dist/_types/gen/organization/queryOptions.gen.d.ts +362 -0
  21. package/dist/_types/gen/realtime/index.d.ts +2 -0
  22. package/dist/_types/gen/realtime/queryOptions.gen.d.ts +114 -0
  23. package/dist/_types/gen/support/index.d.ts +2 -0
  24. package/dist/_types/gen/support/queryOptions.gen.d.ts +206 -0
  25. package/dist/_types/gen/tracking/index.d.ts +2 -0
  26. package/dist/_types/gen/tracking/queryOptions.gen.d.ts +150 -0
  27. package/dist/_types/gen/types.gen.d.ts +126011 -0
  28. package/dist/_types/gen/users/index.d.ts +2 -0
  29. package/dist/_types/gen/users/queryOptions.gen.d.ts +182 -0
  30. package/dist/_types/gen/waitlist/index.d.ts +2 -0
  31. package/dist/_types/gen/waitlist/queryOptions.gen.d.ts +30 -0
  32. package/dist/_types/gen/workflow/index.d.ts +2 -0
  33. package/dist/_types/gen/workflow/queryOptions.gen.d.ts +166 -0
  34. package/dist/_types/index.d.ts +11 -0
  35. package/dist/_types/package.json +1 -0
  36. package/dist/_types/react/index.d.ts +33 -0
  37. package/dist/_types/runtime/access-reason.d.ts +27 -0
  38. package/dist/_types/runtime/access.d.ts +40 -0
  39. package/dist/_types/runtime/compositions.d.ts +16 -0
  40. package/dist/_types/runtime/connectStream.d.ts +15 -0
  41. package/dist/_types/runtime/createLesslyApp.d.ts +10 -0
  42. package/dist/_types/runtime/csrf.d.ts +1 -0
  43. package/dist/_types/runtime/errors.d.ts +18 -0
  44. package/dist/_types/runtime/name.d.ts +26 -0
  45. package/dist/_types/runtime/operations.d.ts +13 -0
  46. package/dist/_types/runtime/permission-match.d.ts +62 -0
  47. package/dist/_types/runtime/request.d.ts +9 -0
  48. package/dist/_types/runtime/types.d.ts +129 -0
  49. package/dist/analytics/index.cjs +96 -0
  50. package/dist/analytics/index.cjs.map +1 -0
  51. package/dist/analytics/index.d.cts +1 -0
  52. package/dist/analytics/index.d.ts +1 -0
  53. package/dist/analytics/index.js +77 -0
  54. package/dist/analytics/index.js.map +1 -0
  55. package/dist/brain/index.cjs +211 -0
  56. package/dist/brain/index.cjs.map +1 -0
  57. package/dist/brain/index.d.cts +1 -0
  58. package/dist/brain/index.d.ts +1 -0
  59. package/dist/brain/index.js +169 -0
  60. package/dist/brain/index.js.map +1 -0
  61. package/dist/consent/index.cjs +81 -0
  62. package/dist/consent/index.cjs.map +1 -0
  63. package/dist/consent/index.d.cts +1 -0
  64. package/dist/consent/index.d.ts +1 -0
  65. package/dist/consent/index.js +65 -0
  66. package/dist/consent/index.js.map +1 -0
  67. package/dist/content/index.cjs +161 -0
  68. package/dist/content/index.cjs.map +1 -0
  69. package/dist/content/index.d.cts +1 -0
  70. package/dist/content/index.d.ts +1 -0
  71. package/dist/content/index.js +129 -0
  72. package/dist/content/index.js.map +1 -0
  73. package/dist/deployment/index.cjs +551 -0
  74. package/dist/deployment/index.cjs.map +1 -0
  75. package/dist/deployment/index.d.cts +1 -0
  76. package/dist/deployment/index.d.ts +1 -0
  77. package/dist/deployment/index.js +441 -0
  78. package/dist/deployment/index.js.map +1 -0
  79. package/dist/index.cjs +12565 -0
  80. package/dist/index.cjs.map +1 -0
  81. package/dist/index.d.cts +1 -0
  82. package/dist/index.d.ts +1 -0
  83. package/dist/index.js +12557 -0
  84. package/dist/index.js.map +1 -0
  85. package/dist/mail/index.cjs +261 -0
  86. package/dist/mail/index.cjs.map +1 -0
  87. package/dist/mail/index.d.cts +1 -0
  88. package/dist/mail/index.d.ts +1 -0
  89. package/dist/mail/index.js +209 -0
  90. package/dist/mail/index.js.map +1 -0
  91. package/dist/observe/index.cjs +181 -0
  92. package/dist/observe/index.cjs.map +1 -0
  93. package/dist/observe/index.d.cts +1 -0
  94. package/dist/observe/index.d.ts +1 -0
  95. package/dist/observe/index.js +145 -0
  96. package/dist/observe/index.js.map +1 -0
  97. package/dist/organization/index.cjs +456 -0
  98. package/dist/organization/index.cjs.map +1 -0
  99. package/dist/organization/index.d.cts +1 -0
  100. package/dist/organization/index.d.ts +1 -0
  101. package/dist/organization/index.js +365 -0
  102. package/dist/organization/index.js.map +1 -0
  103. package/dist/react/index.cjs +29 -0
  104. package/dist/react/index.cjs.map +1 -0
  105. package/dist/react/index.d.cts +1 -0
  106. package/dist/react/index.d.ts +1 -0
  107. package/dist/react/index.js +26 -0
  108. package/dist/react/index.js.map +1 -0
  109. package/dist/realtime/index.cjs +146 -0
  110. package/dist/realtime/index.cjs.map +1 -0
  111. package/dist/realtime/index.d.cts +1 -0
  112. package/dist/realtime/index.d.ts +1 -0
  113. package/dist/realtime/index.js +117 -0
  114. package/dist/realtime/index.js.map +1 -0
  115. package/dist/support/index.cjs +261 -0
  116. package/dist/support/index.cjs.map +1 -0
  117. package/dist/support/index.d.cts +1 -0
  118. package/dist/support/index.d.ts +1 -0
  119. package/dist/support/index.js +209 -0
  120. package/dist/support/index.js.map +1 -0
  121. package/dist/tracking/index.cjs +191 -0
  122. package/dist/tracking/index.cjs.map +1 -0
  123. package/dist/tracking/index.d.cts +1 -0
  124. package/dist/tracking/index.d.ts +1 -0
  125. package/dist/tracking/index.js +153 -0
  126. package/dist/tracking/index.js.map +1 -0
  127. package/dist/users/index.cjs +231 -0
  128. package/dist/users/index.cjs.map +1 -0
  129. package/dist/users/index.d.cts +1 -0
  130. package/dist/users/index.d.ts +1 -0
  131. package/dist/users/index.js +185 -0
  132. package/dist/users/index.js.map +1 -0
  133. package/dist/waitlist/index.cjs +41 -0
  134. package/dist/waitlist/index.cjs.map +1 -0
  135. package/dist/waitlist/index.d.cts +1 -0
  136. package/dist/waitlist/index.d.ts +1 -0
  137. package/dist/waitlist/index.js +33 -0
  138. package/dist/waitlist/index.js.map +1 -0
  139. package/dist/workflow/index.cjs +211 -0
  140. package/dist/workflow/index.cjs.map +1 -0
  141. package/dist/workflow/index.d.cts +1 -0
  142. package/dist/workflow/index.d.ts +1 -0
  143. package/dist/workflow/index.js +169 -0
  144. package/dist/workflow/index.js.map +1 -0
  145. package/docs/README.md +89 -0
  146. package/docs/recipes/access.md +781 -0
  147. package/docs/recipes/federation.md +285 -0
  148. package/docs/recipes/local-dev.md +111 -0
  149. package/docs/recipes/sdk-usage.md +194 -0
  150. package/docs/rules.md +522 -0
  151. package/package.json +212 -0
  152. package/src/gen/analytics/index.ts +3 -0
  153. package/src/gen/analytics/queryOptions.gen.ts +124 -0
  154. package/src/gen/bindings.gen.ts +11330 -0
  155. package/src/gen/brain/index.ts +3 -0
  156. package/src/gen/brain/queryOptions.gen.ts +278 -0
  157. package/src/gen/client.gen.ts +2288 -0
  158. package/src/gen/consent/index.ts +3 -0
  159. package/src/gen/consent/queryOptions.gen.ts +102 -0
  160. package/src/gen/content/index.ts +3 -0
  161. package/src/gen/content/queryOptions.gen.ts +202 -0
  162. package/src/gen/deployment/index.ts +3 -0
  163. package/src/gen/deployment/queryOptions.gen.ts +707 -0
  164. package/src/gen/mail/index.ts +3 -0
  165. package/src/gen/mail/queryOptions.gen.ts +331 -0
  166. package/src/gen/manifest.gen.ts +780 -0
  167. package/src/gen/observe/index.ts +3 -0
  168. package/src/gen/observe/queryOptions.gen.ts +235 -0
  169. package/src/gen/organization/index.ts +3 -0
  170. package/src/gen/organization/queryOptions.gen.ts +578 -0
  171. package/src/gen/realtime/index.ts +3 -0
  172. package/src/gen/realtime/queryOptions.gen.ts +185 -0
  173. package/src/gen/support/index.ts +3 -0
  174. package/src/gen/support/queryOptions.gen.ts +331 -0
  175. package/src/gen/tracking/index.ts +3 -0
  176. package/src/gen/tracking/queryOptions.gen.ts +249 -0
  177. package/src/gen/types.gen.ts +119506 -0
  178. package/src/gen/users/index.ts +3 -0
  179. package/src/gen/users/queryOptions.gen.ts +295 -0
  180. package/src/gen/waitlist/index.ts +3 -0
  181. package/src/gen/waitlist/queryOptions.gen.ts +50 -0
  182. package/src/gen/workflow/index.ts +3 -0
  183. package/src/gen/workflow/queryOptions.gen.ts +274 -0
@@ -0,0 +1,2 @@
1
+ export * from './queryOptions.gen.js';
2
+ 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.js';
@@ -0,0 +1,182 @@
1
+ import type { GeneratedClient } from '../client.gen.js';
2
+ import type { UsersApikeysCreateInput, UsersApikeysGetInput, UsersApikeysGetOutput, UsersApikeysListInput, UsersApikeysListOutput, UsersApikeysRevokeInput, UsersAuditListInput, UsersAuditListOutput, UsersConfigGetInput, UsersConfigGetOutput, UsersConfigUpsertInput, UsersFactorsListInput, UsersFactorsListOutput, UsersFactorsResetInput, UsersKeysListInput, UsersKeysListOutput, UsersKeysRevokeInput, UsersKeysRotateInput, UsersOpsRetentionGetInput, UsersOpsRetentionGetOutput, UsersOpsSloGetInput, UsersOpsSloGetOutput, UsersPasskeysGetInput, UsersPasskeysGetOutput, UsersPasskeysListInput, UsersPasskeysListOutput, UsersPasskeysRevokeInput, UsersSessionsGetInput, UsersSessionsGetOutput, UsersSessionsImpersonateInput, UsersSessionsListInput, UsersSessionsListOutput, UsersSessionsRevokeInput, UsersStatsGetInput, UsersStatsGetOutput, UsersUsersBanInput, UsersUsersCreateInput, UsersUsersDeleteInput, UsersUsersExportInput, UsersUsersGetInput, UsersUsersGetOutput, UsersUsersImportInput, UsersUsersInviteInput, UsersUsersListInput, UsersUsersListOutput, UsersUsersSetPrimaryIdentifierInput, UsersUsersUnbanInput, UsersUsersUpdateInput, UsersWaitlistFunnelInput, UsersWaitlistFunnelOutput, UsersWaitlistGetInput, UsersWaitlistGetOutput, UsersWaitlistImportInput, UsersWaitlistInviteInput, UsersWaitlistListInput, UsersWaitlistListOutput, UsersWebhooksCreateInput, UsersWebhooksDeleteInput, UsersWebhooksDeliveriesListInput, UsersWebhooksDeliveriesListOutput, UsersWebhooksGetInput, UsersWebhooksGetOutput, UsersWebhooksListInput, UsersWebhooksListOutput, UsersWebhooksRotateSecretInput, UsersWebhooksUpdateInput } from '../types.gen.js';
3
+ export declare const usersApikeysCreateMutationOptions: (sdk: GeneratedClient) => {
4
+ mutationKey: string[];
5
+ mutationFn: (input: UsersApikeysCreateInput) => Promise<import(".").UsersApikeysCreateOutput>;
6
+ };
7
+ export declare const usersApikeysGetQueryOptions: (sdk: GeneratedClient, input: UsersApikeysGetInput) => {
8
+ queryKey: readonly ["users", "apikeys", "get", UsersApikeysGetInput];
9
+ queryFn: () => Promise<UsersApikeysGetOutput>;
10
+ };
11
+ export declare const usersApikeysListQueryOptions: (sdk: GeneratedClient, input: UsersApikeysListInput) => {
12
+ queryKey: readonly ["users", "apikeys", "list", UsersApikeysListInput];
13
+ queryFn: () => Promise<UsersApikeysListOutput>;
14
+ };
15
+ export declare const usersApikeysRevokeMutationOptions: (sdk: GeneratedClient) => {
16
+ mutationKey: string[];
17
+ mutationFn: (input: UsersApikeysRevokeInput) => Promise<import(".").UsersApikeysRevokeOutput>;
18
+ };
19
+ export declare const usersAuditListQueryOptions: (sdk: GeneratedClient, input: UsersAuditListInput) => {
20
+ queryKey: readonly ["users", "audit", "list", UsersAuditListInput];
21
+ queryFn: () => Promise<UsersAuditListOutput>;
22
+ };
23
+ export declare const usersConfigGetQueryOptions: (sdk: GeneratedClient, input: UsersConfigGetInput) => {
24
+ queryKey: readonly ["users", "config", "get", UsersConfigGetInput];
25
+ queryFn: () => Promise<UsersConfigGetOutput>;
26
+ };
27
+ export declare const usersConfigUpsertMutationOptions: (sdk: GeneratedClient) => {
28
+ mutationKey: string[];
29
+ mutationFn: (input: UsersConfigUpsertInput) => Promise<import(".").UsersConfigUpsertOutput>;
30
+ };
31
+ export declare const usersFactorsListQueryOptions: (sdk: GeneratedClient, input: UsersFactorsListInput) => {
32
+ queryKey: readonly ["users", "factors", "list", UsersFactorsListInput];
33
+ queryFn: () => Promise<UsersFactorsListOutput>;
34
+ };
35
+ export declare const usersFactorsResetMutationOptions: (sdk: GeneratedClient) => {
36
+ mutationKey: string[];
37
+ mutationFn: (input: UsersFactorsResetInput) => Promise<import(".").UsersFactorsResetOutput>;
38
+ };
39
+ export declare const usersKeysListQueryOptions: (sdk: GeneratedClient, input: UsersKeysListInput) => {
40
+ queryKey: readonly ["users", "keys", "list", UsersKeysListInput];
41
+ queryFn: () => Promise<UsersKeysListOutput>;
42
+ };
43
+ export declare const usersKeysRevokeMutationOptions: (sdk: GeneratedClient) => {
44
+ mutationKey: string[];
45
+ mutationFn: (input: UsersKeysRevokeInput) => Promise<import(".").UsersKeysRevokeOutput>;
46
+ };
47
+ export declare const usersKeysRotateMutationOptions: (sdk: GeneratedClient) => {
48
+ mutationKey: string[];
49
+ mutationFn: (input: UsersKeysRotateInput) => Promise<import(".").UsersKeysRotateOutput>;
50
+ };
51
+ export declare const usersOpsRetentionGetQueryOptions: (sdk: GeneratedClient, input: UsersOpsRetentionGetInput) => {
52
+ queryKey: readonly ["users", "ops-retention", "get", UsersOpsRetentionGetInput];
53
+ queryFn: () => Promise<UsersOpsRetentionGetOutput>;
54
+ };
55
+ export declare const usersOpsSloGetQueryOptions: (sdk: GeneratedClient, input: UsersOpsSloGetInput) => {
56
+ queryKey: readonly ["users", "ops-slo", "get", UsersOpsSloGetInput];
57
+ queryFn: () => Promise<UsersOpsSloGetOutput>;
58
+ };
59
+ export declare const usersPasskeysGetQueryOptions: (sdk: GeneratedClient, input: UsersPasskeysGetInput) => {
60
+ queryKey: readonly ["users", "passkeys", "get", UsersPasskeysGetInput];
61
+ queryFn: () => Promise<UsersPasskeysGetOutput>;
62
+ };
63
+ export declare const usersPasskeysListQueryOptions: (sdk: GeneratedClient, input: UsersPasskeysListInput) => {
64
+ queryKey: readonly ["users", "passkeys", "list", UsersPasskeysListInput];
65
+ queryFn: () => Promise<UsersPasskeysListOutput>;
66
+ };
67
+ export declare const usersPasskeysRevokeMutationOptions: (sdk: GeneratedClient) => {
68
+ mutationKey: string[];
69
+ mutationFn: (input: UsersPasskeysRevokeInput) => Promise<import(".").UsersPasskeysRevokeOutput>;
70
+ };
71
+ export declare const usersSessionsGetQueryOptions: (sdk: GeneratedClient, input: UsersSessionsGetInput) => {
72
+ queryKey: readonly ["users", "sessions", "get", UsersSessionsGetInput];
73
+ queryFn: () => Promise<UsersSessionsGetOutput>;
74
+ };
75
+ export declare const usersSessionsImpersonateMutationOptions: (sdk: GeneratedClient) => {
76
+ mutationKey: string[];
77
+ mutationFn: (input: UsersSessionsImpersonateInput) => Promise<import(".").UsersSessionsImpersonateOutput>;
78
+ };
79
+ export declare const usersSessionsListQueryOptions: (sdk: GeneratedClient, input: UsersSessionsListInput) => {
80
+ queryKey: readonly ["users", "sessions", "list", UsersSessionsListInput];
81
+ queryFn: () => Promise<UsersSessionsListOutput>;
82
+ };
83
+ export declare const usersSessionsRevokeMutationOptions: (sdk: GeneratedClient) => {
84
+ mutationKey: string[];
85
+ mutationFn: (input: UsersSessionsRevokeInput) => Promise<import(".").UsersSessionsRevokeOutput>;
86
+ };
87
+ export declare const usersStatsGetQueryOptions: (sdk: GeneratedClient, input: UsersStatsGetInput) => {
88
+ queryKey: readonly ["users", "stats", "get", UsersStatsGetInput];
89
+ queryFn: () => Promise<UsersStatsGetOutput>;
90
+ };
91
+ export declare const usersUsersBanMutationOptions: (sdk: GeneratedClient) => {
92
+ mutationKey: string[];
93
+ mutationFn: (input: UsersUsersBanInput) => Promise<import(".").UsersUsersBanOutput>;
94
+ };
95
+ export declare const usersUsersCreateMutationOptions: (sdk: GeneratedClient) => {
96
+ mutationKey: string[];
97
+ mutationFn: (input: UsersUsersCreateInput) => Promise<import(".").UsersUsersCreateOutput>;
98
+ };
99
+ export declare const usersUsersDeleteMutationOptions: (sdk: GeneratedClient) => {
100
+ mutationKey: string[];
101
+ mutationFn: (input: UsersUsersDeleteInput) => Promise<import(".").UsersUsersDeleteOutput>;
102
+ };
103
+ export declare const usersUsersExportMutationOptions: (sdk: GeneratedClient) => {
104
+ mutationKey: string[];
105
+ mutationFn: (input: UsersUsersExportInput) => Promise<import(".").UsersUsersExportOutput>;
106
+ };
107
+ export declare const usersUsersGetQueryOptions: (sdk: GeneratedClient, input: UsersUsersGetInput) => {
108
+ queryKey: readonly ["users", "users", "get", UsersUsersGetInput];
109
+ queryFn: () => Promise<UsersUsersGetOutput>;
110
+ };
111
+ export declare const usersUsersImportMutationOptions: (sdk: GeneratedClient) => {
112
+ mutationKey: string[];
113
+ mutationFn: (input: UsersUsersImportInput) => Promise<import(".").UsersUsersImportOutput>;
114
+ };
115
+ export declare const usersUsersInviteMutationOptions: (sdk: GeneratedClient) => {
116
+ mutationKey: string[];
117
+ mutationFn: (input: UsersUsersInviteInput) => Promise<import(".").UsersUsersInviteOutput>;
118
+ };
119
+ export declare const usersUsersListQueryOptions: (sdk: GeneratedClient, input: UsersUsersListInput) => {
120
+ queryKey: readonly ["users", "users", "list", UsersUsersListInput];
121
+ queryFn: () => Promise<UsersUsersListOutput>;
122
+ };
123
+ export declare const usersUsersSetPrimaryIdentifierMutationOptions: (sdk: GeneratedClient) => {
124
+ mutationKey: string[];
125
+ mutationFn: (input: UsersUsersSetPrimaryIdentifierInput) => Promise<import(".").UsersUsersSetPrimaryIdentifierOutput>;
126
+ };
127
+ export declare const usersUsersUnbanMutationOptions: (sdk: GeneratedClient) => {
128
+ mutationKey: string[];
129
+ mutationFn: (input: UsersUsersUnbanInput) => Promise<import(".").UsersUsersUnbanOutput>;
130
+ };
131
+ export declare const usersUsersUpdateMutationOptions: (sdk: GeneratedClient) => {
132
+ mutationKey: string[];
133
+ mutationFn: (input: UsersUsersUpdateInput) => Promise<import(".").UsersUsersUpdateOutput>;
134
+ };
135
+ export declare const usersWaitlistFunnelQueryOptions: (sdk: GeneratedClient, input: UsersWaitlistFunnelInput) => {
136
+ queryKey: readonly ["users", "waitlist", "funnel", UsersWaitlistFunnelInput];
137
+ queryFn: () => Promise<UsersWaitlistFunnelOutput>;
138
+ };
139
+ export declare const usersWaitlistGetQueryOptions: (sdk: GeneratedClient, input: UsersWaitlistGetInput) => {
140
+ queryKey: readonly ["users", "waitlist", "get", UsersWaitlistGetInput];
141
+ queryFn: () => Promise<UsersWaitlistGetOutput>;
142
+ };
143
+ export declare const usersWaitlistImportMutationOptions: (sdk: GeneratedClient) => {
144
+ mutationKey: string[];
145
+ mutationFn: (input: UsersWaitlistImportInput) => Promise<import(".").UsersWaitlistImportOutput>;
146
+ };
147
+ export declare const usersWaitlistInviteMutationOptions: (sdk: GeneratedClient) => {
148
+ mutationKey: string[];
149
+ mutationFn: (input: UsersWaitlistInviteInput) => Promise<import(".").UsersWaitlistInviteOutput>;
150
+ };
151
+ export declare const usersWaitlistListQueryOptions: (sdk: GeneratedClient, input: UsersWaitlistListInput) => {
152
+ queryKey: readonly ["users", "waitlist", "list", UsersWaitlistListInput];
153
+ queryFn: () => Promise<UsersWaitlistListOutput>;
154
+ };
155
+ export declare const usersWebhooksCreateMutationOptions: (sdk: GeneratedClient) => {
156
+ mutationKey: string[];
157
+ mutationFn: (input: UsersWebhooksCreateInput) => Promise<import(".").UsersWebhooksCreateOutput>;
158
+ };
159
+ export declare const usersWebhooksDeleteMutationOptions: (sdk: GeneratedClient) => {
160
+ mutationKey: string[];
161
+ mutationFn: (input: UsersWebhooksDeleteInput) => Promise<import(".").UsersWebhooksDeleteOutput>;
162
+ };
163
+ export declare const usersWebhooksDeliveriesListQueryOptions: (sdk: GeneratedClient, input: UsersWebhooksDeliveriesListInput) => {
164
+ queryKey: readonly ["users", "webhooks-deliveries", "list", UsersWebhooksDeliveriesListInput];
165
+ queryFn: () => Promise<UsersWebhooksDeliveriesListOutput>;
166
+ };
167
+ export declare const usersWebhooksGetQueryOptions: (sdk: GeneratedClient, input: UsersWebhooksGetInput) => {
168
+ queryKey: readonly ["users", "webhooks", "get", UsersWebhooksGetInput];
169
+ queryFn: () => Promise<UsersWebhooksGetOutput>;
170
+ };
171
+ export declare const usersWebhooksListQueryOptions: (sdk: GeneratedClient, input: UsersWebhooksListInput) => {
172
+ queryKey: readonly ["users", "webhooks", "list", UsersWebhooksListInput];
173
+ queryFn: () => Promise<UsersWebhooksListOutput>;
174
+ };
175
+ export declare const usersWebhooksRotateSecretMutationOptions: (sdk: GeneratedClient) => {
176
+ mutationKey: string[];
177
+ mutationFn: (input: UsersWebhooksRotateSecretInput) => Promise<import(".").UsersWebhooksRotateSecretOutput>;
178
+ };
179
+ export declare const usersWebhooksUpdateMutationOptions: (sdk: GeneratedClient) => {
180
+ mutationKey: string[];
181
+ mutationFn: (input: UsersWebhooksUpdateInput) => Promise<import(".").UsersWebhooksUpdateOutput>;
182
+ };
@@ -0,0 +1,2 @@
1
+ export * from './queryOptions.gen.js';
2
+ export type { WaitlistConfigGetInput, WaitlistConfigGetOutput, WaitlistConfigUpsertInput, WaitlistConfigUpsertOutput, WaitlistEmbedGetInput, WaitlistEmbedGetOutput, WaitlistInvitesSendInput, WaitlistInvitesSendOutput, WaitlistSignupsEraseInput, WaitlistSignupsEraseOutput, WaitlistSignupsFunnelInput, WaitlistSignupsFunnelOutput, WaitlistSignupsListInput, WaitlistSignupsListOutput } from '../types.gen.js';
@@ -0,0 +1,30 @@
1
+ import type { GeneratedClient } from '../client.gen.js';
2
+ import type { WaitlistConfigGetInput, WaitlistConfigGetOutput, WaitlistConfigUpsertInput, WaitlistEmbedGetInput, WaitlistEmbedGetOutput, WaitlistInvitesSendInput, WaitlistSignupsEraseInput, WaitlistSignupsFunnelInput, WaitlistSignupsFunnelOutput, WaitlistSignupsListInput, WaitlistSignupsListOutput } from '../types.gen.js';
3
+ export declare const waitlistConfigGetQueryOptions: (sdk: GeneratedClient, input: WaitlistConfigGetInput) => {
4
+ queryKey: readonly ["waitlist", "config", "get", WaitlistConfigGetInput];
5
+ queryFn: () => Promise<WaitlistConfigGetOutput>;
6
+ };
7
+ export declare const waitlistConfigUpsertMutationOptions: (sdk: GeneratedClient) => {
8
+ mutationKey: string[];
9
+ mutationFn: (input: WaitlistConfigUpsertInput) => Promise<import(".").WaitlistConfigUpsertOutput>;
10
+ };
11
+ export declare const waitlistEmbedGetQueryOptions: (sdk: GeneratedClient, input: WaitlistEmbedGetInput) => {
12
+ queryKey: readonly ["waitlist", "embed", "get", WaitlistEmbedGetInput];
13
+ queryFn: () => Promise<WaitlistEmbedGetOutput>;
14
+ };
15
+ export declare const waitlistInvitesSendMutationOptions: (sdk: GeneratedClient) => {
16
+ mutationKey: string[];
17
+ mutationFn: (input: WaitlistInvitesSendInput) => Promise<import(".").WaitlistInvitesSendOutput>;
18
+ };
19
+ export declare const waitlistSignupsEraseMutationOptions: (sdk: GeneratedClient) => {
20
+ mutationKey: string[];
21
+ mutationFn: (input: WaitlistSignupsEraseInput) => Promise<import(".").WaitlistSignupsEraseOutput>;
22
+ };
23
+ export declare const waitlistSignupsFunnelQueryOptions: (sdk: GeneratedClient, input: WaitlistSignupsFunnelInput) => {
24
+ queryKey: readonly ["waitlist", "signups", "funnel", WaitlistSignupsFunnelInput];
25
+ queryFn: () => Promise<WaitlistSignupsFunnelOutput>;
26
+ };
27
+ export declare const waitlistSignupsListQueryOptions: (sdk: GeneratedClient, input: WaitlistSignupsListInput) => {
28
+ queryKey: readonly ["waitlist", "signups", "list", WaitlistSignupsListInput];
29
+ queryFn: () => Promise<WaitlistSignupsListOutput>;
30
+ };
@@ -0,0 +1,2 @@
1
+ export * from './queryOptions.gen.js';
2
+ export type { WorkflowCapListInput, WorkflowCapListOutput, WorkflowCapabilityGetInput, WorkflowCapabilityGetOutput, WorkflowCapabilityListInput, WorkflowCapabilityListOutput, WorkflowConfigDeleteInput, WorkflowConfigDeleteOutput, WorkflowConfigListInput, WorkflowConfigListOutput, WorkflowConfigSetInput, WorkflowConfigSetOutput, WorkflowDefinitionCreateInput, WorkflowDefinitionCreateOutput, WorkflowDefinitionDisableInput, WorkflowDefinitionDisableOutput, WorkflowDefinitionDryrunInput, WorkflowDefinitionDryrunOutput, WorkflowDefinitionEnableInput, WorkflowDefinitionEnableOutput, WorkflowDefinitionEstimateInput, WorkflowDefinitionEstimateOutput, WorkflowDefinitionExportInput, WorkflowDefinitionExportOutput, WorkflowDefinitionGetInput, WorkflowDefinitionGetOutput, WorkflowDefinitionImportInput, WorkflowDefinitionImportOutput, WorkflowDefinitionListInput, WorkflowDefinitionListOutput, WorkflowDefinitionPublishInput, WorkflowDefinitionPublishOutput, WorkflowDefinitionUpdateInput, WorkflowDefinitionUpdateOutput, WorkflowDefinitionValidateInput, WorkflowDefinitionValidateOutput, WorkflowDependencyListInput, WorkflowDependencyListOutput, WorkflowGrantListInput, WorkflowGrantListOutput, WorkflowGrantRequestInput, WorkflowGrantRequestOutput, WorkflowHealthListInput, WorkflowHealthListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowKillswitchGetInput, WorkflowKillswitchGetOutput, WorkflowKillswitchSetInput, WorkflowKillswitchSetOutput, WorkflowRunCancelInput, WorkflowRunCancelOutput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayAllInput, WorkflowRunReplayAllOutput, WorkflowRunReplayInput, WorkflowRunReplayOutput, WorkflowRunStartInput, WorkflowRunStartOutput, WorkflowRunStatsInput, WorkflowRunStatsOutput, WorkflowRunTestInput, WorkflowRunTestOutput, WorkflowTemplateApplyInput, WorkflowTemplateApplyOutput, WorkflowTemplateListInput, WorkflowTemplateListOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput, WorkflowWaitGetInput, WorkflowWaitGetOutput, WorkflowWaitListAllInput, WorkflowWaitListAllOutput, WorkflowWaitListInput, WorkflowWaitListOutput, WorkflowWaitResolveInput, WorkflowWaitResolveOutput } from '../types.gen.js';
@@ -0,0 +1,166 @@
1
+ import type { GeneratedClient } from '../client.gen.js';
2
+ import type { WorkflowCapListInput, WorkflowCapListOutput, WorkflowCapabilityGetInput, WorkflowCapabilityGetOutput, WorkflowCapabilityListInput, WorkflowCapabilityListOutput, WorkflowConfigDeleteInput, WorkflowConfigListInput, WorkflowConfigListOutput, WorkflowConfigSetInput, WorkflowDefinitionCreateInput, WorkflowDefinitionDisableInput, WorkflowDefinitionDryrunInput, WorkflowDefinitionDryrunOutput, WorkflowDefinitionEnableInput, WorkflowDefinitionEstimateInput, WorkflowDefinitionEstimateOutput, WorkflowDefinitionExportInput, WorkflowDefinitionExportOutput, WorkflowDefinitionGetInput, WorkflowDefinitionGetOutput, WorkflowDefinitionImportInput, WorkflowDefinitionListInput, WorkflowDefinitionListOutput, WorkflowDefinitionPublishInput, WorkflowDefinitionUpdateInput, WorkflowDefinitionValidateInput, WorkflowDefinitionValidateOutput, WorkflowDependencyListInput, WorkflowDependencyListOutput, WorkflowGrantListInput, WorkflowGrantListOutput, WorkflowGrantRequestInput, WorkflowHealthListInput, WorkflowHealthListOutput, WorkflowHealthPingInput, WorkflowHealthPingOutput, WorkflowKillswitchGetInput, WorkflowKillswitchGetOutput, WorkflowKillswitchSetInput, WorkflowRunCancelInput, WorkflowRunGetInput, WorkflowRunGetOutput, WorkflowRunListInput, WorkflowRunListOutput, WorkflowRunReplayAllInput, WorkflowRunReplayInput, WorkflowRunStartInput, WorkflowRunStatsInput, WorkflowRunStatsOutput, WorkflowRunTestInput, WorkflowTemplateApplyInput, WorkflowTemplateListInput, WorkflowTemplateListOutput, WorkflowVersionGetInput, WorkflowVersionGetOutput, WorkflowVersionListInput, WorkflowVersionListOutput, WorkflowWaitGetInput, WorkflowWaitGetOutput, WorkflowWaitListAllInput, WorkflowWaitListAllOutput, WorkflowWaitListInput, WorkflowWaitListOutput, WorkflowWaitResolveInput } from '../types.gen.js';
3
+ export declare const workflowCapListQueryOptions: (sdk: GeneratedClient, input: WorkflowCapListInput) => {
4
+ queryKey: readonly ["workflow", "cap", "list", WorkflowCapListInput];
5
+ queryFn: () => Promise<WorkflowCapListOutput>;
6
+ };
7
+ export declare const workflowCapabilityGetQueryOptions: (sdk: GeneratedClient, input: WorkflowCapabilityGetInput) => {
8
+ queryKey: readonly ["workflow", "capability", "get", WorkflowCapabilityGetInput];
9
+ queryFn: () => Promise<WorkflowCapabilityGetOutput>;
10
+ };
11
+ export declare const workflowCapabilityListQueryOptions: (sdk: GeneratedClient, input: WorkflowCapabilityListInput) => {
12
+ queryKey: readonly ["workflow", "capability", "list", WorkflowCapabilityListInput];
13
+ queryFn: () => Promise<WorkflowCapabilityListOutput>;
14
+ };
15
+ export declare const workflowConfigDeleteMutationOptions: (sdk: GeneratedClient) => {
16
+ mutationKey: string[];
17
+ mutationFn: (input: WorkflowConfigDeleteInput) => Promise<import(".").WorkflowConfigDeleteOutput>;
18
+ };
19
+ export declare const workflowConfigListQueryOptions: (sdk: GeneratedClient, input: WorkflowConfigListInput) => {
20
+ queryKey: readonly ["workflow", "config", "list", WorkflowConfigListInput];
21
+ queryFn: () => Promise<WorkflowConfigListOutput>;
22
+ };
23
+ export declare const workflowConfigSetMutationOptions: (sdk: GeneratedClient) => {
24
+ mutationKey: string[];
25
+ mutationFn: (input: WorkflowConfigSetInput) => Promise<import(".").WorkflowConfigSetOutput>;
26
+ };
27
+ export declare const workflowDefinitionCreateMutationOptions: (sdk: GeneratedClient) => {
28
+ mutationKey: string[];
29
+ mutationFn: (input: WorkflowDefinitionCreateInput) => Promise<import(".").WorkflowDefinitionCreateOutput>;
30
+ };
31
+ export declare const workflowDefinitionDisableMutationOptions: (sdk: GeneratedClient) => {
32
+ mutationKey: string[];
33
+ mutationFn: (input: WorkflowDefinitionDisableInput) => Promise<import(".").WorkflowDefinitionDisableOutput>;
34
+ };
35
+ export declare const workflowDefinitionDryrunQueryOptions: (sdk: GeneratedClient, input: WorkflowDefinitionDryrunInput) => {
36
+ queryKey: readonly ["workflow", "definition", "dryrun", WorkflowDefinitionDryrunInput];
37
+ queryFn: () => Promise<WorkflowDefinitionDryrunOutput>;
38
+ };
39
+ export declare const workflowDefinitionEnableMutationOptions: (sdk: GeneratedClient) => {
40
+ mutationKey: string[];
41
+ mutationFn: (input: WorkflowDefinitionEnableInput) => Promise<import(".").WorkflowDefinitionEnableOutput>;
42
+ };
43
+ export declare const workflowDefinitionEstimateQueryOptions: (sdk: GeneratedClient, input: WorkflowDefinitionEstimateInput) => {
44
+ queryKey: readonly ["workflow", "definition", "estimate", WorkflowDefinitionEstimateInput];
45
+ queryFn: () => Promise<WorkflowDefinitionEstimateOutput>;
46
+ };
47
+ export declare const workflowDefinitionExportQueryOptions: (sdk: GeneratedClient, input: WorkflowDefinitionExportInput) => {
48
+ queryKey: readonly ["workflow", "definition", "export", WorkflowDefinitionExportInput];
49
+ queryFn: () => Promise<WorkflowDefinitionExportOutput>;
50
+ };
51
+ export declare const workflowDefinitionGetQueryOptions: (sdk: GeneratedClient, input: WorkflowDefinitionGetInput) => {
52
+ queryKey: readonly ["workflow", "definition", "get", WorkflowDefinitionGetInput];
53
+ queryFn: () => Promise<WorkflowDefinitionGetOutput>;
54
+ };
55
+ export declare const workflowDefinitionImportMutationOptions: (sdk: GeneratedClient) => {
56
+ mutationKey: string[];
57
+ mutationFn: (input: WorkflowDefinitionImportInput) => Promise<import(".").WorkflowDefinitionImportOutput>;
58
+ };
59
+ export declare const workflowDefinitionListQueryOptions: (sdk: GeneratedClient, input: WorkflowDefinitionListInput) => {
60
+ queryKey: readonly ["workflow", "definition", "list", WorkflowDefinitionListInput];
61
+ queryFn: () => Promise<WorkflowDefinitionListOutput>;
62
+ };
63
+ export declare const workflowDefinitionPublishMutationOptions: (sdk: GeneratedClient) => {
64
+ mutationKey: string[];
65
+ mutationFn: (input: WorkflowDefinitionPublishInput) => Promise<import(".").WorkflowDefinitionPublishOutput>;
66
+ };
67
+ export declare const workflowDefinitionUpdateMutationOptions: (sdk: GeneratedClient) => {
68
+ mutationKey: string[];
69
+ mutationFn: (input: WorkflowDefinitionUpdateInput) => Promise<import(".").WorkflowDefinitionUpdateOutput>;
70
+ };
71
+ export declare const workflowDefinitionValidateQueryOptions: (sdk: GeneratedClient, input: WorkflowDefinitionValidateInput) => {
72
+ queryKey: readonly ["workflow", "definition", "validate", WorkflowDefinitionValidateInput];
73
+ queryFn: () => Promise<WorkflowDefinitionValidateOutput>;
74
+ };
75
+ export declare const workflowDependencyListQueryOptions: (sdk: GeneratedClient, input: WorkflowDependencyListInput) => {
76
+ queryKey: readonly ["workflow", "dependency", "list", WorkflowDependencyListInput];
77
+ queryFn: () => Promise<WorkflowDependencyListOutput>;
78
+ };
79
+ export declare const workflowGrantListQueryOptions: (sdk: GeneratedClient, input: WorkflowGrantListInput) => {
80
+ queryKey: readonly ["workflow", "grant", "list", WorkflowGrantListInput];
81
+ queryFn: () => Promise<WorkflowGrantListOutput>;
82
+ };
83
+ export declare const workflowGrantRequestMutationOptions: (sdk: GeneratedClient) => {
84
+ mutationKey: string[];
85
+ mutationFn: (input: WorkflowGrantRequestInput) => Promise<import(".").WorkflowGrantRequestOutput>;
86
+ };
87
+ export declare const workflowHealthListQueryOptions: (sdk: GeneratedClient, input: WorkflowHealthListInput) => {
88
+ queryKey: readonly ["workflow", "health", "list", WorkflowHealthListInput];
89
+ queryFn: () => Promise<WorkflowHealthListOutput>;
90
+ };
91
+ export declare const workflowHealthPingQueryOptions: (sdk: GeneratedClient, input: WorkflowHealthPingInput) => {
92
+ queryKey: readonly ["workflow", "health", "ping", WorkflowHealthPingInput];
93
+ queryFn: () => Promise<WorkflowHealthPingOutput>;
94
+ };
95
+ export declare const workflowKillswitchGetQueryOptions: (sdk: GeneratedClient, input: WorkflowKillswitchGetInput) => {
96
+ queryKey: readonly ["workflow", "killswitch", "get", WorkflowKillswitchGetInput];
97
+ queryFn: () => Promise<WorkflowKillswitchGetOutput>;
98
+ };
99
+ export declare const workflowKillswitchSetMutationOptions: (sdk: GeneratedClient) => {
100
+ mutationKey: string[];
101
+ mutationFn: (input: WorkflowKillswitchSetInput) => Promise<import(".").WorkflowKillswitchSetOutput>;
102
+ };
103
+ export declare const workflowRunCancelMutationOptions: (sdk: GeneratedClient) => {
104
+ mutationKey: string[];
105
+ mutationFn: (input: WorkflowRunCancelInput) => Promise<import(".").WorkflowRunCancelOutput>;
106
+ };
107
+ export declare const workflowRunGetQueryOptions: (sdk: GeneratedClient, input: WorkflowRunGetInput) => {
108
+ queryKey: readonly ["workflow", "run", "get", WorkflowRunGetInput];
109
+ queryFn: () => Promise<WorkflowRunGetOutput>;
110
+ };
111
+ export declare const workflowRunListQueryOptions: (sdk: GeneratedClient, input: WorkflowRunListInput) => {
112
+ queryKey: readonly ["workflow", "run", "list", WorkflowRunListInput];
113
+ queryFn: () => Promise<WorkflowRunListOutput>;
114
+ };
115
+ export declare const workflowRunReplayMutationOptions: (sdk: GeneratedClient) => {
116
+ mutationKey: string[];
117
+ mutationFn: (input: WorkflowRunReplayInput) => Promise<import(".").WorkflowRunReplayOutput>;
118
+ };
119
+ export declare const workflowRunReplayAllMutationOptions: (sdk: GeneratedClient) => {
120
+ mutationKey: string[];
121
+ mutationFn: (input: WorkflowRunReplayAllInput) => Promise<import(".").WorkflowRunReplayAllOutput>;
122
+ };
123
+ export declare const workflowRunStartMutationOptions: (sdk: GeneratedClient) => {
124
+ mutationKey: string[];
125
+ mutationFn: (input: WorkflowRunStartInput) => Promise<import(".").WorkflowRunStartOutput>;
126
+ };
127
+ export declare const workflowRunStatsQueryOptions: (sdk: GeneratedClient, input: WorkflowRunStatsInput) => {
128
+ queryKey: readonly ["workflow", "run", "stats", WorkflowRunStatsInput];
129
+ queryFn: () => Promise<WorkflowRunStatsOutput>;
130
+ };
131
+ export declare const workflowRunTestMutationOptions: (sdk: GeneratedClient) => {
132
+ mutationKey: string[];
133
+ mutationFn: (input: WorkflowRunTestInput) => Promise<import(".").WorkflowRunTestOutput>;
134
+ };
135
+ export declare const workflowTemplateApplyMutationOptions: (sdk: GeneratedClient) => {
136
+ mutationKey: string[];
137
+ mutationFn: (input: WorkflowTemplateApplyInput) => Promise<import(".").WorkflowTemplateApplyOutput>;
138
+ };
139
+ export declare const workflowTemplateListQueryOptions: (sdk: GeneratedClient, input: WorkflowTemplateListInput) => {
140
+ queryKey: readonly ["workflow", "template", "list", WorkflowTemplateListInput];
141
+ queryFn: () => Promise<WorkflowTemplateListOutput>;
142
+ };
143
+ export declare const workflowVersionGetQueryOptions: (sdk: GeneratedClient, input: WorkflowVersionGetInput) => {
144
+ queryKey: readonly ["workflow", "version", "get", WorkflowVersionGetInput];
145
+ queryFn: () => Promise<WorkflowVersionGetOutput>;
146
+ };
147
+ export declare const workflowVersionListQueryOptions: (sdk: GeneratedClient, input: WorkflowVersionListInput) => {
148
+ queryKey: readonly ["workflow", "version", "list", WorkflowVersionListInput];
149
+ queryFn: () => Promise<WorkflowVersionListOutput>;
150
+ };
151
+ export declare const workflowWaitGetQueryOptions: (sdk: GeneratedClient, input: WorkflowWaitGetInput) => {
152
+ queryKey: readonly ["workflow", "wait", "get", WorkflowWaitGetInput];
153
+ queryFn: () => Promise<WorkflowWaitGetOutput>;
154
+ };
155
+ export declare const workflowWaitListQueryOptions: (sdk: GeneratedClient, input: WorkflowWaitListInput) => {
156
+ queryKey: readonly ["workflow", "wait", "list", WorkflowWaitListInput];
157
+ queryFn: () => Promise<WorkflowWaitListOutput>;
158
+ };
159
+ export declare const workflowWaitListAllQueryOptions: (sdk: GeneratedClient, input: WorkflowWaitListAllInput) => {
160
+ queryKey: readonly ["workflow", "wait-list", "all", WorkflowWaitListAllInput];
161
+ queryFn: () => Promise<WorkflowWaitListAllOutput>;
162
+ };
163
+ export declare const workflowWaitResolveMutationOptions: (sdk: GeneratedClient) => {
164
+ mutationKey: string[];
165
+ mutationFn: (input: WorkflowWaitResolveInput) => Promise<import(".").WorkflowWaitResolveOutput>;
166
+ };
@@ -0,0 +1,11 @@
1
+ export { createLesslyApp } from './runtime/createLesslyApp.js';
2
+ export type { LesslyClientBase } from './runtime/createLesslyApp.js';
3
+ export { connectStream } from './runtime/connectStream.js';
4
+ export { LesslyApiError, isAccessDenied } from './runtime/errors.js';
5
+ export { accessReason } from './runtime/access-reason.js';
6
+ export { operations } from './runtime/operations.js';
7
+ export { compositions } from './runtime/compositions.js';
8
+ export type { LesslyAppOptions, HttpMethod, Binding, BindingsMap, ParamSpec, ParamIn, ToolLevel, ToolComposition, Operation, } from './runtime/types.js';
9
+ export type { WsBinding, WsBindingsMap, LesslyStream, LesslyStreamOpener, StreamCloseInfo, StreamData, WebSocketCtor, WebSocketLike, } from './runtime/types.js';
10
+ export type { Access, AccessState, AccessApi } from './runtime/access.js';
11
+ export type { GeneratedClient } from './gen/client.gen.js';
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,33 @@
1
+ import type { Access, AccessApi, AccessState } from '../runtime/access.js';
2
+ import type { Operation } from '../runtime/types.js';
3
+ /**
4
+ * The only thing these hooks need from a client — so a test double is one object literal, and
5
+ * (deliberately) no React type appears in any exported signature: `react` is an OPTIONAL peer,
6
+ * so the published declarations must typecheck for a consumer who has not installed it.
7
+ */
8
+ export interface AppLike {
9
+ readonly access: AccessApi;
10
+ }
11
+ export interface UseAccessResult {
12
+ state: AccessState;
13
+ role: string | undefined;
14
+ access: AccessApi;
15
+ reload: () => Promise<Access>;
16
+ }
17
+ /**
18
+ * Subscribe a component to the client's access snapshot, loading it once on mount.
19
+ *
20
+ * `useSyncExternalStore` rather than `useState` + an effect: the snapshot lives outside React
21
+ * (several components share one `AccessApi`), and this is the hook that is safe against tearing
22
+ * under concurrent rendering. `load()` is de-duplicated inside `createAccess`, so every component
23
+ * may call this without coordinating — two components produce one request.
24
+ */
25
+ export declare function useAccess(app: AppLike): UseAccessResult;
26
+ /**
27
+ * True iff the caller is PREDICTED to be allowed to perform `op`. False until the snapshot is
28
+ * ready — so a control wired to this starts disabled and enables itself, never the reverse.
29
+ *
30
+ * Loads on mount through `useAccess`, so a component may use it without the App having called
31
+ * `load()` anywhere. This is a hint for the UI, never authorisation: see APP-012.
32
+ */
33
+ export declare function useCan(app: AppLike, op: Operation | string): boolean;
@@ -0,0 +1,27 @@
1
+ import type { Operation } from './types.js';
2
+ /**
3
+ * The one reason string every App shows on a gated control (APP-012).
4
+ *
5
+ * Both values come from the generated method, so the sentence cannot drift when the catalog
6
+ * re-levels a tool. It names the operation key as well as the level because a level alone does not
7
+ * identify a grant — a screenful of controls can all require `write` — and an admin grants by
8
+ * level AND by exact key, so the user has to be able to pass on both.
9
+ *
10
+ * It explains ONE operation. Picking which one — the first that `can()` denied, among the several
11
+ * a button performs — is the caller's job: the rule differs between a button that runs every
12
+ * operation and one that dispatches to a single one, so this takes no array.
13
+ *
14
+ * A bare key is the fallback for a control with no generated method to point at (a runtime probe,
15
+ * an operation no method covers). It drops the level rather than inventing one: there is nothing
16
+ * to read it from, and `level:undefined` in front of a user is worse than saying less. It is a
17
+ * DEGRADATION, not an equal input — an App whose every gate holds an `Operation` never reaches for
18
+ * it, and that is the normal shape, not an omission.
19
+ *
20
+ * It never throws and never renders the words `undefined` or `null`. A render helper that crashes
21
+ * takes a whole screen with it, so the input is checked at runtime rather than trusted from the
22
+ * type: an object with a usable key but no usable level degrades to the key-only sentence, and
23
+ * anything with no usable key at all falls back to "Not available for your role." — plus one
24
+ * `console.warn` outside production, because the caller has a bug worth seeing. The public type
25
+ * stays `Operation | string`; the widening is internal, and passing anything else is still wrong.
26
+ */
27
+ export declare function accessReason(op: Operation | string): string;
@@ -0,0 +1,40 @@
1
+ import type { LesslyAppOptions, BindingsMap, Binding, ToolLevel, Operation } from './types.js';
2
+ /** Where the access snapshot is in its lifecycle. `can()` is true-capable only in `ready`. */
3
+ export type AccessState = 'idle' | 'loading' | 'ready' | 'error';
4
+ /** The caller's own membership of the active product, exactly as `/me` returns it (flat). */
5
+ export interface Access {
6
+ role: string;
7
+ roleId: string | null;
8
+ roleName: string | null;
9
+ roleType: 'system' | 'custom' | null;
10
+ allow: string[];
11
+ deny: string[];
12
+ }
13
+ export interface AccessApi {
14
+ /** Fetches once and caches. Concurrent calls share a single request. Rejects on failure. */
15
+ load(): Promise<Access>;
16
+ /** Synchronous PREDICTION of the gateway's answer. False whenever state !== 'ready'. */
17
+ can(op: Operation | string): boolean;
18
+ readonly role: string | undefined;
19
+ readonly state: AccessState;
20
+ /** Drops the cache and returns to `idle`; the next `load()` hits the network. */
21
+ invalidate(): void;
22
+ /** Fires on every state change. Returns an unsubscribe function. */
23
+ subscribe(cb: () => void): () => void;
24
+ }
25
+ /** The catalog tool this whole surface is built on. */
26
+ export declare const ME_OPERATION_KEY = "organization_product_me";
27
+ /**
28
+ * The route to `/me`, as a `Binding`, for the window in which the SDK ships BEFORE the production
29
+ * catalog carries `organization_product_me`. `src/gen` is regenerated from the production catalog
30
+ * and must never be hand-edited, so without this constant `load()` would need a second SDK
31
+ * release to start working after Workspace deploys the endpoint.
32
+ *
33
+ * Rooted exactly as every other `organization_*` tool is in the real `bindings.gen`
34
+ * (`organization_product_list-members` -> `/governance/api/v1/products/:productId/members`). The
35
+ * generated binding WINS whenever it exists — the catalog is the authority, this is the stopgap —
36
+ * and `access.test.ts` pins the constant against `fixtures/catalog.sample.json` so the day the
37
+ * catalog does carry the tool, a divergence fails a test instead of 404-ing in a browser.
38
+ */
39
+ export declare const ME_ROUTE: Binding;
40
+ export declare function createAccess(opts: LesslyAppOptions, bindings: BindingsMap, operations: Record<string, ToolLevel>): AccessApi;
@@ -0,0 +1,16 @@
1
+ import type { ToolComposition } from './types.js';
2
+ /**
3
+ * Every catalog operation usable as a COMPOSER STEP, with the composition contract it declared.
4
+ *
5
+ * Presence is the signal: a key is here exactly when the catalog gave the tool a `composition`,
6
+ * and the value may legitimately be `{}`. So ask `'mail_domain_create' in compositions` — a
7
+ * truthiness test on `label` (or any other member) would drop a perfectly composable step.
8
+ *
9
+ * The generated file is regenerated at publish time from the live catalog, so the map tracks the
10
+ * platform rather than anyone's memory, and the values are carried verbatim — a key the platform
11
+ * adds reaches the App even before this SDK's type names it.
12
+ *
13
+ * Only a re-export: the generated file stays the single source, this narrows it to `Readonly` so
14
+ * a consumer cannot write into the shared object.
15
+ */
16
+ export declare const compositions: Readonly<Record<string, ToolComposition>>;
@@ -0,0 +1,15 @@
1
+ import type { LesslyAppOptions, LesslyStream, WsBinding } from './types.js';
2
+ /**
3
+ * Open the sanctioned streaming connection for a ws-bound tool.
4
+ *
5
+ * Session cookies ride the upgrade automatically, so this sends NOTHING extra: no CSRF token (an
6
+ * upgrade is not an HTTP mutation) and no product header — a browser WebSocket cannot set headers
7
+ * at all, and the gateway's upgrade path authenticates from the session alone.
8
+ *
9
+ * Params are placed exactly as for a GET request: `:token` segments are substituted into the
10
+ * path, everything else becomes a query parameter. A param declared `in: 'body'` has no meaning
11
+ * on an upgrade and is treated as a query parameter rather than silently dropped.
12
+ *
13
+ * There is no reconnection, backoff or heartbeat logic here on purpose (see `LesslyStream`).
14
+ */
15
+ export declare function connectStream(opts: LesslyAppOptions, binding: WsBinding, input?: Record<string, unknown>): LesslyStream;
@@ -0,0 +1,10 @@
1
+ import type { LesslyAppOptions, LesslyStreamOpener } from './types.js';
2
+ import type { AccessApi } from './access.js';
3
+ import type { GeneratedClient } from '../gen/client.gen.js';
4
+ export interface LesslyClientBase extends LesslyStreamOpener {
5
+ call(toolName: string, input?: Record<string, unknown>): Promise<unknown>;
6
+ /** The caller's own access to the active product — a PREDICTION of the gateway's answer,
7
+ * never a substitute for it. See `createAccess`. */
8
+ readonly access: AccessApi;
9
+ }
10
+ export declare function createLesslyApp(opts: LesslyAppOptions): GeneratedClient & LesslyClientBase;
@@ -0,0 +1 @@
1
+ export declare function readCsrfCookie(): string | null;
@@ -0,0 +1,18 @@
1
+ export declare class LesslyApiError extends Error {
2
+ readonly status: number;
3
+ readonly code: string | null;
4
+ readonly body: unknown;
5
+ /** True iff this is the gateway refusing the call over the caller's access. See ACCESS_DENIED_CODES. */
6
+ readonly accessDenied: boolean;
7
+ constructor(status: number, code: string | null, message: string, body: unknown);
8
+ }
9
+ export declare function parseErrorBody(body: unknown, status: number): LesslyApiError;
10
+ /**
11
+ * True iff `err` is the gateway refusing a call over the caller's access.
12
+ *
13
+ * Deliberately structural after the `instanceof` fast path: an App is composed into the shell
14
+ * through Module Federation and `@lessly/sdk-app` is not a shared singleton, so the error a
15
+ * caller catches is routinely an instance of the OTHER copy's class. `instanceof` alone would
16
+ * report false there and an App would render a red crash for an ordinary permission refusal.
17
+ */
18
+ export declare function isAccessDenied(err: unknown): boolean;
@@ -0,0 +1,26 @@
1
+ export interface SplitTool {
2
+ namespace: string;
3
+ resource: string | null;
4
+ action: string;
5
+ }
6
+ /**
7
+ * Reserved resource key under which `bindings.gen.ts` nests entity-less operations, so
8
+ * BindingsMap keeps its three-level shape while the accessor hoists to sdk.<ns>.<action>().
9
+ * The generator only ever emits this key when `splitToolName` reports `resource: null`, because
10
+ * `validateCatalog` (scripts/lib/validate-catalog.ts) rejects any catalog id whose segments fall
11
+ * outside [a-z0-9-] before `generate()` emits anything — but that validation runs generator-side
12
+ * only. `splitToolName` here performs no such check: it runs against whatever string a caller
13
+ * passes to `sdk.call()`, so this module cannot itself guarantee a literal "$root" segment in
14
+ * caller input is unreachable. Mirrored in scripts/lib/naming.ts; a parity test pins the two equal.
15
+ */
16
+ export declare const ROOT_RESOURCE = "$root";
17
+ /**
18
+ * Split a tool id: first segment = namespace, last = action, middle segments joined with '-'
19
+ * = resource. A 2-segment id is an entity-less operation on the namespace and reports
20
+ * `resource: null` — NOT '', which would silently nest the op under an empty-string key and
21
+ * dispatch through a bogus `sdk.organization[''].list()`-shaped path. A 1-segment id carries no
22
+ * action and is rejected.
23
+ *
24
+ * Mirrors the generator's scripts/lib/naming.ts — see the parity test in name.test.ts.
25
+ */
26
+ export declare function splitToolName(name: string): SplitTool;