@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,169 @@
1
+ // src/gen/workflow/queryOptions.gen.ts
2
+ var workflowCapListQueryOptions = (sdk, input) => ({
3
+ queryKey: ["workflow", "cap", "list", input],
4
+ queryFn: () => sdk["workflow"]["cap"]["list"](input)
5
+ });
6
+ var workflowCapabilityGetQueryOptions = (sdk, input) => ({
7
+ queryKey: ["workflow", "capability", "get", input],
8
+ queryFn: () => sdk["workflow"]["capability"]["get"](input)
9
+ });
10
+ var workflowCapabilityListQueryOptions = (sdk, input) => ({
11
+ queryKey: ["workflow", "capability", "list", input],
12
+ queryFn: () => sdk["workflow"]["capability"]["list"](input)
13
+ });
14
+ var workflowConfigDeleteMutationOptions = (sdk) => ({
15
+ mutationKey: ["workflow", "config", "delete"],
16
+ mutationFn: (input) => sdk["workflow"]["config"]["delete"](input)
17
+ });
18
+ var workflowConfigListQueryOptions = (sdk, input) => ({
19
+ queryKey: ["workflow", "config", "list", input],
20
+ queryFn: () => sdk["workflow"]["config"]["list"](input)
21
+ });
22
+ var workflowConfigSetMutationOptions = (sdk) => ({
23
+ mutationKey: ["workflow", "config", "set"],
24
+ mutationFn: (input) => sdk["workflow"]["config"]["set"](input)
25
+ });
26
+ var workflowDefinitionCreateMutationOptions = (sdk) => ({
27
+ mutationKey: ["workflow", "definition", "create"],
28
+ mutationFn: (input) => sdk["workflow"]["definition"]["create"](input)
29
+ });
30
+ var workflowDefinitionDisableMutationOptions = (sdk) => ({
31
+ mutationKey: ["workflow", "definition", "disable"],
32
+ mutationFn: (input) => sdk["workflow"]["definition"]["disable"](input)
33
+ });
34
+ var workflowDefinitionDryrunQueryOptions = (sdk, input) => ({
35
+ queryKey: ["workflow", "definition", "dryrun", input],
36
+ queryFn: () => sdk["workflow"]["definition"]["dryrun"](input)
37
+ });
38
+ var workflowDefinitionEnableMutationOptions = (sdk) => ({
39
+ mutationKey: ["workflow", "definition", "enable"],
40
+ mutationFn: (input) => sdk["workflow"]["definition"]["enable"](input)
41
+ });
42
+ var workflowDefinitionEstimateQueryOptions = (sdk, input) => ({
43
+ queryKey: ["workflow", "definition", "estimate", input],
44
+ queryFn: () => sdk["workflow"]["definition"]["estimate"](input)
45
+ });
46
+ var workflowDefinitionExportQueryOptions = (sdk, input) => ({
47
+ queryKey: ["workflow", "definition", "export", input],
48
+ queryFn: () => sdk["workflow"]["definition"]["export"](input)
49
+ });
50
+ var workflowDefinitionGetQueryOptions = (sdk, input) => ({
51
+ queryKey: ["workflow", "definition", "get", input],
52
+ queryFn: () => sdk["workflow"]["definition"]["get"](input)
53
+ });
54
+ var workflowDefinitionImportMutationOptions = (sdk) => ({
55
+ mutationKey: ["workflow", "definition", "import"],
56
+ mutationFn: (input) => sdk["workflow"]["definition"]["import"](input)
57
+ });
58
+ var workflowDefinitionListQueryOptions = (sdk, input) => ({
59
+ queryKey: ["workflow", "definition", "list", input],
60
+ queryFn: () => sdk["workflow"]["definition"]["list"](input)
61
+ });
62
+ var workflowDefinitionPublishMutationOptions = (sdk) => ({
63
+ mutationKey: ["workflow", "definition", "publish"],
64
+ mutationFn: (input) => sdk["workflow"]["definition"]["publish"](input)
65
+ });
66
+ var workflowDefinitionUpdateMutationOptions = (sdk) => ({
67
+ mutationKey: ["workflow", "definition", "update"],
68
+ mutationFn: (input) => sdk["workflow"]["definition"]["update"](input)
69
+ });
70
+ var workflowDefinitionValidateQueryOptions = (sdk, input) => ({
71
+ queryKey: ["workflow", "definition", "validate", input],
72
+ queryFn: () => sdk["workflow"]["definition"]["validate"](input)
73
+ });
74
+ var workflowDependencyListQueryOptions = (sdk, input) => ({
75
+ queryKey: ["workflow", "dependency", "list", input],
76
+ queryFn: () => sdk["workflow"]["dependency"]["list"](input)
77
+ });
78
+ var workflowGrantListQueryOptions = (sdk, input) => ({
79
+ queryKey: ["workflow", "grant", "list", input],
80
+ queryFn: () => sdk["workflow"]["grant"]["list"](input)
81
+ });
82
+ var workflowGrantRequestMutationOptions = (sdk) => ({
83
+ mutationKey: ["workflow", "grant", "request"],
84
+ mutationFn: (input) => sdk["workflow"]["grant"]["request"](input)
85
+ });
86
+ var workflowHealthListQueryOptions = (sdk, input) => ({
87
+ queryKey: ["workflow", "health", "list", input],
88
+ queryFn: () => sdk["workflow"]["health"]["list"](input)
89
+ });
90
+ var workflowHealthPingQueryOptions = (sdk, input) => ({
91
+ queryKey: ["workflow", "health", "ping", input],
92
+ queryFn: () => sdk["workflow"]["health"]["ping"](input)
93
+ });
94
+ var workflowKillswitchGetQueryOptions = (sdk, input) => ({
95
+ queryKey: ["workflow", "killswitch", "get", input],
96
+ queryFn: () => sdk["workflow"]["killswitch"]["get"](input)
97
+ });
98
+ var workflowKillswitchSetMutationOptions = (sdk) => ({
99
+ mutationKey: ["workflow", "killswitch", "set"],
100
+ mutationFn: (input) => sdk["workflow"]["killswitch"]["set"](input)
101
+ });
102
+ var workflowRunCancelMutationOptions = (sdk) => ({
103
+ mutationKey: ["workflow", "run", "cancel"],
104
+ mutationFn: (input) => sdk["workflow"]["run"]["cancel"](input)
105
+ });
106
+ var workflowRunGetQueryOptions = (sdk, input) => ({
107
+ queryKey: ["workflow", "run", "get", input],
108
+ queryFn: () => sdk["workflow"]["run"]["get"](input)
109
+ });
110
+ var workflowRunListQueryOptions = (sdk, input) => ({
111
+ queryKey: ["workflow", "run", "list", input],
112
+ queryFn: () => sdk["workflow"]["run"]["list"](input)
113
+ });
114
+ var workflowRunReplayMutationOptions = (sdk) => ({
115
+ mutationKey: ["workflow", "run", "replay"],
116
+ mutationFn: (input) => sdk["workflow"]["run"]["replay"](input)
117
+ });
118
+ var workflowRunReplayAllMutationOptions = (sdk) => ({
119
+ mutationKey: ["workflow", "run-replay", "all"],
120
+ mutationFn: (input) => sdk["workflow"]["run-replay"]["all"](input)
121
+ });
122
+ var workflowRunStartMutationOptions = (sdk) => ({
123
+ mutationKey: ["workflow", "run", "start"],
124
+ mutationFn: (input) => sdk["workflow"]["run"]["start"](input)
125
+ });
126
+ var workflowRunStatsQueryOptions = (sdk, input) => ({
127
+ queryKey: ["workflow", "run", "stats", input],
128
+ queryFn: () => sdk["workflow"]["run"]["stats"](input)
129
+ });
130
+ var workflowRunTestMutationOptions = (sdk) => ({
131
+ mutationKey: ["workflow", "run", "test"],
132
+ mutationFn: (input) => sdk["workflow"]["run"]["test"](input)
133
+ });
134
+ var workflowTemplateApplyMutationOptions = (sdk) => ({
135
+ mutationKey: ["workflow", "template", "apply"],
136
+ mutationFn: (input) => sdk["workflow"]["template"]["apply"](input)
137
+ });
138
+ var workflowTemplateListQueryOptions = (sdk, input) => ({
139
+ queryKey: ["workflow", "template", "list", input],
140
+ queryFn: () => sdk["workflow"]["template"]["list"](input)
141
+ });
142
+ var workflowVersionGetQueryOptions = (sdk, input) => ({
143
+ queryKey: ["workflow", "version", "get", input],
144
+ queryFn: () => sdk["workflow"]["version"]["get"](input)
145
+ });
146
+ var workflowVersionListQueryOptions = (sdk, input) => ({
147
+ queryKey: ["workflow", "version", "list", input],
148
+ queryFn: () => sdk["workflow"]["version"]["list"](input)
149
+ });
150
+ var workflowWaitGetQueryOptions = (sdk, input) => ({
151
+ queryKey: ["workflow", "wait", "get", input],
152
+ queryFn: () => sdk["workflow"]["wait"]["get"](input)
153
+ });
154
+ var workflowWaitListQueryOptions = (sdk, input) => ({
155
+ queryKey: ["workflow", "wait", "list", input],
156
+ queryFn: () => sdk["workflow"]["wait"]["list"](input)
157
+ });
158
+ var workflowWaitListAllQueryOptions = (sdk, input) => ({
159
+ queryKey: ["workflow", "wait-list", "all", input],
160
+ queryFn: () => sdk["workflow"]["wait-list"]["all"](input)
161
+ });
162
+ var workflowWaitResolveMutationOptions = (sdk) => ({
163
+ mutationKey: ["workflow", "wait", "resolve"],
164
+ mutationFn: (input) => sdk["workflow"]["wait"]["resolve"](input)
165
+ });
166
+
167
+ export { workflowCapListQueryOptions, workflowCapabilityGetQueryOptions, workflowCapabilityListQueryOptions, workflowConfigDeleteMutationOptions, workflowConfigListQueryOptions, workflowConfigSetMutationOptions, workflowDefinitionCreateMutationOptions, workflowDefinitionDisableMutationOptions, workflowDefinitionDryrunQueryOptions, workflowDefinitionEnableMutationOptions, workflowDefinitionEstimateQueryOptions, workflowDefinitionExportQueryOptions, workflowDefinitionGetQueryOptions, workflowDefinitionImportMutationOptions, workflowDefinitionListQueryOptions, workflowDefinitionPublishMutationOptions, workflowDefinitionUpdateMutationOptions, workflowDefinitionValidateQueryOptions, workflowDependencyListQueryOptions, workflowGrantListQueryOptions, workflowGrantRequestMutationOptions, workflowHealthListQueryOptions, workflowHealthPingQueryOptions, workflowKillswitchGetQueryOptions, workflowKillswitchSetMutationOptions, workflowRunCancelMutationOptions, workflowRunGetQueryOptions, workflowRunListQueryOptions, workflowRunReplayAllMutationOptions, workflowRunReplayMutationOptions, workflowRunStartMutationOptions, workflowRunStatsQueryOptions, workflowRunTestMutationOptions, workflowTemplateApplyMutationOptions, workflowTemplateListQueryOptions, workflowVersionGetQueryOptions, workflowVersionListQueryOptions, workflowWaitGetQueryOptions, workflowWaitListAllQueryOptions, workflowWaitListQueryOptions, workflowWaitResolveMutationOptions };
168
+ //# sourceMappingURL=index.js.map
169
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/gen/workflow/queryOptions.gen.ts"],"names":[],"mappings":";AAsEO,IAAM,2BAAA,GAA8B,CAAC,GAAA,EAAsB,KAAA,MAAiC;AAAA,EACjG,QAAA,EAAU,CAAC,UAAA,EAAY,KAAA,EAAO,QAAQ,KAAK,CAAA;AAAA,EAC3C,OAAA,EAAS,MAAM,GAAA,CAAI,UAAU,EAAE,KAAK,CAAA,CAAE,MAAM,CAAA,CAAE,KAAK;AACrD,CAAA;AAEO,IAAM,iCAAA,GAAoC,CAAC,GAAA,EAAsB,KAAA,MAAuC;AAAA,EAC7G,QAAA,EAAU,CAAC,UAAA,EAAY,YAAA,EAAc,OAAO,KAAK,CAAA;AAAA,EACjD,OAAA,EAAS,MAAM,GAAA,CAAI,UAAU,EAAE,YAAY,CAAA,CAAE,KAAK,CAAA,CAAE,KAAK;AAC3D,CAAA;AAEO,IAAM,kCAAA,GAAqC,CAAC,GAAA,EAAsB,KAAA,MAAwC;AAAA,EAC/G,QAAA,EAAU,CAAC,UAAA,EAAY,YAAA,EAAc,QAAQ,KAAK,CAAA;AAAA,EAClD,OAAA,EAAS,MAAM,GAAA,CAAI,UAAU,EAAE,YAAY,CAAA,CAAE,MAAM,CAAA,CAAE,KAAK;AAC5D,CAAA;AAEO,IAAM,mCAAA,GAAsC,CAAC,GAAA,MAA0B;AAAA,EAC5E,WAAA,EAAa,CAAC,UAAA,EAAY,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC5C,UAAA,EAAY,CAAC,KAAA,KAAqC,GAAA,CAAI,UAAU,EAAE,QAAQ,CAAA,CAAE,QAAQ,CAAA,CAAE,KAAK;A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EO,IAAM,kCAAA,GAAqC,CAAC,GAAA,MAA0B;AAAA,EAC3E,WAAA,EAAa,CAAC,UAAA,EAAY,MAAA,EAAQ,SAAS,CAAA;AAAA,EAC3C,UAAA,EAAY,CAAC,KAAA,KAAoC,GAAA,CAAI,UAAU,EAAE,MAAM,CAAA,CAAE,SAAS,CAAA,CAAE,KAAK;AAC3F,CAAA","file":"index.js","sourcesContent":["// AUTOGENERATED by scripts/generate.ts — do not edit.\nimport type { GeneratedClient } from '../client.gen';\nimport type {\n WorkflowCapListInput,\n WorkflowCapListOutput,\n WorkflowCapabilityGetInput,\n WorkflowCapabilityGetOutput,\n WorkflowCapabilityListInput,\n WorkflowCapabilityListOutput,\n WorkflowConfigDeleteInput,\n WorkflowConfigListInput,\n WorkflowConfigListOutput,\n WorkflowConfigSetInput,\n WorkflowDefinitionCreateInput,\n WorkflowDefinitionDisableInput,\n WorkflowDefinitionDryrunInput,\n WorkflowDefinitionDryrunOutput,\n WorkflowDefinitionEnableInput,\n WorkflowDefinitionEstimateInput,\n WorkflowDefinitionEstimateOutput,\n WorkflowDefinitionExportInput,\n WorkflowDefinitionExportOutput,\n WorkflowDefinitionGetInput,\n WorkflowDefinitionGetOutput,\n WorkflowDefinitionImportInput,\n WorkflowDefinitionListInput,\n WorkflowDefinitionListOutput,\n WorkflowDefinitionPublishInput,\n WorkflowDefinitionUpdateInput,\n WorkflowDefinitionValidateInput,\n WorkflowDefinitionValidateOutput,\n WorkflowDependencyListInput,\n WorkflowDependencyListOutput,\n WorkflowGrantListInput,\n WorkflowGrantListOutput,\n WorkflowGrantRequestInput,\n WorkflowHealthListInput,\n WorkflowHealthListOutput,\n WorkflowHealthPingInput,\n WorkflowHealthPingOutput,\n WorkflowKillswitchGetInput,\n WorkflowKillswitchGetOutput,\n WorkflowKillswitchSetInput,\n WorkflowRunCancelInput,\n WorkflowRunGetInput,\n WorkflowRunGetOutput,\n WorkflowRunListInput,\n WorkflowRunListOutput,\n WorkflowRunReplayAllInput,\n WorkflowRunReplayInput,\n WorkflowRunStartInput,\n WorkflowRunStatsInput,\n WorkflowRunStatsOutput,\n WorkflowRunTestInput,\n WorkflowTemplateApplyInput,\n WorkflowTemplateListInput,\n WorkflowTemplateListOutput,\n WorkflowVersionGetInput,\n WorkflowVersionGetOutput,\n WorkflowVersionListInput,\n WorkflowVersionListOutput,\n WorkflowWaitGetInput,\n WorkflowWaitGetOutput,\n WorkflowWaitListAllInput,\n WorkflowWaitListAllOutput,\n WorkflowWaitListInput,\n WorkflowWaitListOutput,\n WorkflowWaitResolveInput,\n} from '../types.gen';\n\nexport const workflowCapListQueryOptions = (sdk: GeneratedClient, input: WorkflowCapListInput) => ({\n queryKey: ['workflow', 'cap', 'list', input] as const,\n queryFn: () => sdk['workflow']['cap']['list'](input),\n});\n\nexport const workflowCapabilityGetQueryOptions = (sdk: GeneratedClient, input: WorkflowCapabilityGetInput) => ({\n queryKey: ['workflow', 'capability', 'get', input] as const,\n queryFn: () => sdk['workflow']['capability']['get'](input),\n});\n\nexport const workflowCapabilityListQueryOptions = (sdk: GeneratedClient, input: WorkflowCapabilityListInput) => ({\n queryKey: ['workflow', 'capability', 'list', input] as const,\n queryFn: () => sdk['workflow']['capability']['list'](input),\n});\n\nexport const workflowConfigDeleteMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'config', 'delete'],\n mutationFn: (input: WorkflowConfigDeleteInput) => sdk['workflow']['config']['delete'](input),\n});\n\nexport const workflowConfigListQueryOptions = (sdk: GeneratedClient, input: WorkflowConfigListInput) => ({\n queryKey: ['workflow', 'config', 'list', input] as const,\n queryFn: () => sdk['workflow']['config']['list'](input),\n});\n\nexport const workflowConfigSetMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'config', 'set'],\n mutationFn: (input: WorkflowConfigSetInput) => sdk['workflow']['config']['set'](input),\n});\n\nexport const workflowDefinitionCreateMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'definition', 'create'],\n mutationFn: (input: WorkflowDefinitionCreateInput) => sdk['workflow']['definition']['create'](input),\n});\n\nexport const workflowDefinitionDisableMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'definition', 'disable'],\n mutationFn: (input: WorkflowDefinitionDisableInput) => sdk['workflow']['definition']['disable'](input),\n});\n\nexport const workflowDefinitionDryrunQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionDryrunInput) => ({\n queryKey: ['workflow', 'definition', 'dryrun', input] as const,\n queryFn: () => sdk['workflow']['definition']['dryrun'](input),\n});\n\nexport const workflowDefinitionEnableMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'definition', 'enable'],\n mutationFn: (input: WorkflowDefinitionEnableInput) => sdk['workflow']['definition']['enable'](input),\n});\n\nexport const workflowDefinitionEstimateQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionEstimateInput) => ({\n queryKey: ['workflow', 'definition', 'estimate', input] as const,\n queryFn: () => sdk['workflow']['definition']['estimate'](input),\n});\n\nexport const workflowDefinitionExportQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionExportInput) => ({\n queryKey: ['workflow', 'definition', 'export', input] as const,\n queryFn: () => sdk['workflow']['definition']['export'](input),\n});\n\nexport const workflowDefinitionGetQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionGetInput) => ({\n queryKey: ['workflow', 'definition', 'get', input] as const,\n queryFn: () => sdk['workflow']['definition']['get'](input),\n});\n\nexport const workflowDefinitionImportMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'definition', 'import'],\n mutationFn: (input: WorkflowDefinitionImportInput) => sdk['workflow']['definition']['import'](input),\n});\n\nexport const workflowDefinitionListQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionListInput) => ({\n queryKey: ['workflow', 'definition', 'list', input] as const,\n queryFn: () => sdk['workflow']['definition']['list'](input),\n});\n\nexport const workflowDefinitionPublishMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'definition', 'publish'],\n mutationFn: (input: WorkflowDefinitionPublishInput) => sdk['workflow']['definition']['publish'](input),\n});\n\nexport const workflowDefinitionUpdateMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'definition', 'update'],\n mutationFn: (input: WorkflowDefinitionUpdateInput) => sdk['workflow']['definition']['update'](input),\n});\n\nexport const workflowDefinitionValidateQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionValidateInput) => ({\n queryKey: ['workflow', 'definition', 'validate', input] as const,\n queryFn: () => sdk['workflow']['definition']['validate'](input),\n});\n\nexport const workflowDependencyListQueryOptions = (sdk: GeneratedClient, input: WorkflowDependencyListInput) => ({\n queryKey: ['workflow', 'dependency', 'list', input] as const,\n queryFn: () => sdk['workflow']['dependency']['list'](input),\n});\n\nexport const workflowGrantListQueryOptions = (sdk: GeneratedClient, input: WorkflowGrantListInput) => ({\n queryKey: ['workflow', 'grant', 'list', input] as const,\n queryFn: () => sdk['workflow']['grant']['list'](input),\n});\n\nexport const workflowGrantRequestMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'grant', 'request'],\n mutationFn: (input: WorkflowGrantRequestInput) => sdk['workflow']['grant']['request'](input),\n});\n\nexport const workflowHealthListQueryOptions = (sdk: GeneratedClient, input: WorkflowHealthListInput) => ({\n queryKey: ['workflow', 'health', 'list', input] as const,\n queryFn: () => sdk['workflow']['health']['list'](input),\n});\n\nexport const workflowHealthPingQueryOptions = (sdk: GeneratedClient, input: WorkflowHealthPingInput) => ({\n queryKey: ['workflow', 'health', 'ping', input] as const,\n queryFn: () => sdk['workflow']['health']['ping'](input),\n});\n\nexport const workflowKillswitchGetQueryOptions = (sdk: GeneratedClient, input: WorkflowKillswitchGetInput) => ({\n queryKey: ['workflow', 'killswitch', 'get', input] as const,\n queryFn: () => sdk['workflow']['killswitch']['get'](input),\n});\n\nexport const workflowKillswitchSetMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'killswitch', 'set'],\n mutationFn: (input: WorkflowKillswitchSetInput) => sdk['workflow']['killswitch']['set'](input),\n});\n\nexport const workflowRunCancelMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'run', 'cancel'],\n mutationFn: (input: WorkflowRunCancelInput) => sdk['workflow']['run']['cancel'](input),\n});\n\nexport const workflowRunGetQueryOptions = (sdk: GeneratedClient, input: WorkflowRunGetInput) => ({\n queryKey: ['workflow', 'run', 'get', input] as const,\n queryFn: () => sdk['workflow']['run']['get'](input),\n});\n\nexport const workflowRunListQueryOptions = (sdk: GeneratedClient, input: WorkflowRunListInput) => ({\n queryKey: ['workflow', 'run', 'list', input] as const,\n queryFn: () => sdk['workflow']['run']['list'](input),\n});\n\nexport const workflowRunReplayMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'run', 'replay'],\n mutationFn: (input: WorkflowRunReplayInput) => sdk['workflow']['run']['replay'](input),\n});\n\nexport const workflowRunReplayAllMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'run-replay', 'all'],\n mutationFn: (input: WorkflowRunReplayAllInput) => sdk['workflow']['run-replay']['all'](input),\n});\n\nexport const workflowRunStartMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'run', 'start'],\n mutationFn: (input: WorkflowRunStartInput) => sdk['workflow']['run']['start'](input),\n});\n\nexport const workflowRunStatsQueryOptions = (sdk: GeneratedClient, input: WorkflowRunStatsInput) => ({\n queryKey: ['workflow', 'run', 'stats', input] as const,\n queryFn: () => sdk['workflow']['run']['stats'](input),\n});\n\nexport const workflowRunTestMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'run', 'test'],\n mutationFn: (input: WorkflowRunTestInput) => sdk['workflow']['run']['test'](input),\n});\n\nexport const workflowTemplateApplyMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'template', 'apply'],\n mutationFn: (input: WorkflowTemplateApplyInput) => sdk['workflow']['template']['apply'](input),\n});\n\nexport const workflowTemplateListQueryOptions = (sdk: GeneratedClient, input: WorkflowTemplateListInput) => ({\n queryKey: ['workflow', 'template', 'list', input] as const,\n queryFn: () => sdk['workflow']['template']['list'](input),\n});\n\nexport const workflowVersionGetQueryOptions = (sdk: GeneratedClient, input: WorkflowVersionGetInput) => ({\n queryKey: ['workflow', 'version', 'get', input] as const,\n queryFn: () => sdk['workflow']['version']['get'](input),\n});\n\nexport const workflowVersionListQueryOptions = (sdk: GeneratedClient, input: WorkflowVersionListInput) => ({\n queryKey: ['workflow', 'version', 'list', input] as const,\n queryFn: () => sdk['workflow']['version']['list'](input),\n});\n\nexport const workflowWaitGetQueryOptions = (sdk: GeneratedClient, input: WorkflowWaitGetInput) => ({\n queryKey: ['workflow', 'wait', 'get', input] as const,\n queryFn: () => sdk['workflow']['wait']['get'](input),\n});\n\nexport const workflowWaitListQueryOptions = (sdk: GeneratedClient, input: WorkflowWaitListInput) => ({\n queryKey: ['workflow', 'wait', 'list', input] as const,\n queryFn: () => sdk['workflow']['wait']['list'](input),\n});\n\nexport const workflowWaitListAllQueryOptions = (sdk: GeneratedClient, input: WorkflowWaitListAllInput) => ({\n queryKey: ['workflow', 'wait-list', 'all', input] as const,\n queryFn: () => sdk['workflow']['wait-list']['all'](input),\n});\n\nexport const workflowWaitResolveMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['workflow', 'wait', 'resolve'],\n mutationFn: (input: WorkflowWaitResolveInput) => sdk['workflow']['wait']['resolve'](input),\n});\n"]}
package/docs/README.md ADDED
@@ -0,0 +1,89 @@
1
+ # Building a Lessly App
2
+
3
+ This is the entry point for building a Lessly **App** with `@lessly/sdk-app`.
4
+ Read this file first, then `rules.md`, then whichever recipe under `recipes/`
5
+ matches the task in front of you.
6
+
7
+ This path is stable: every scaffolded app's `AGENTS.md` points agents at
8
+ `node_modules/@lessly/sdk-app/docs/README.md`. It will not move or be renamed.
9
+
10
+ ## What an App is
11
+
12
+ A Lessly **App** is a pure-frontend Module Federation remote built on
13
+ `@lessly/sdk-app`. It ships no backend, no database, and no MCP endpoint — all
14
+ platform data access goes through the SDK, and all identity/session state is
15
+ handed to it by the shell that hosts it.
16
+
17
+ Contrast this with a Lessly **extension**: an extension owns a backend
18
+ service, a database, and typically an MCP endpoint, and is built against the
19
+ toolkit-guide contracts (`MFST-*`, `PRD-*`, `MCP-*`, etc.). An App has none
20
+ of that surface. If your task involves a database migration, a service-to-service
21
+ scope, or an MCP tool, you are building an extension, not an App — this guide
22
+ does not apply.
23
+
24
+ ## Hard boundaries
25
+
26
+ - **Frontend-only.** No server process, no database, no MCP endpoint ships with
27
+ an App.
28
+ - **Data only via `@lessly/sdk-app`.** All platform API calls go through the SDK
29
+ client (`createLesslyApp`) or its generated query/mutation option factories.
30
+ No direct `fetch` to a platform host, no other HTTP client for platform data.
31
+ - **Auth is ambient.** The hosting shell owns tokens, login, refresh, and
32
+ product switching. An App reads the active product from props or the
33
+ `X-Product-Id` header — never from a token — and must not implement its own
34
+ auth.
35
+ - **Manifest is `lessly.app.yaml`, schema v1.** Exactly five top-level fields:
36
+ `app_schema_version: 1`, `id`, `title`, `version`, `nav` (`nav.icon`, plus an
37
+ optional `nav.sections` rail menu). No backend or extension manifest field
38
+ (`s2s`, `webhooks`, `billing`, `analytics`, `routing`, ...) is valid here.
39
+ - **Your rail menu is manifest data.** The menu the shell draws while your App
40
+ is open comes from your own `nav.sections` block, not from your App code and
41
+ not from a toolkit manifest — see APP-011.
42
+
43
+ ## Quickstart
44
+
45
+ ```sh
46
+ npm create lessly-app@latest my-app
47
+ cd my-app
48
+ pnpm dev
49
+ ```
50
+
51
+ The generated manifest (`lessly.app.yaml`) is the full v1 surface:
52
+
53
+ ```yaml
54
+ app_schema_version: 1
55
+ id: my-app
56
+ title: My App
57
+ version: 0.1.0
58
+ nav:
59
+ icon: flask
60
+ ```
61
+
62
+ `nav.sections` — the App's own rail menu — is optional and not scaffolded; add
63
+ it when your App has more than one page (APP-011).
64
+
65
+ Your app's Module Federation remote exposes a single React component at
66
+ `./App`. The scaffold wires this up for you; see `recipes/federation.md` if
67
+ you need to touch it directly.
68
+
69
+ ## Map of `docs/`
70
+
71
+ | File | Read when… |
72
+ | --- | --- |
73
+ | `rules.md` | Always — normative `APP-*` rules. Read this first, before writing any code. |
74
+ | `recipes/sdk-usage.md` | You need to call the platform API: creating the SDK client, handling `LesslyApiError`, using the generated `*QueryOptions`/`*MutationOptions` factories. |
75
+ | `recipes/federation.md` | You're touching the Module Federation setup: shared singletons, the dual-mode build, or the dual-mode CSS graph (the federation vs standalone stylesheets). |
76
+ | `recipes/access.md` | You're gating UI on the caller's permissions: `app.access`, `useCan`, and rendering a 403 as an empty state rather than an error (APP-012). |
77
+ | `recipes/local-dev.md` | You're running the app locally: the dev proxy, device-code login, `.env.local`, or composing your app under a local shell. |
78
+
79
+ ## Keeping this guide current
80
+
81
+ This guide ships inside `@lessly/sdk-app` itself, so updating the SDK updates
82
+ the guide in the same step:
83
+
84
+ ```sh
85
+ npm i @lessly/sdk-app@latest
86
+ ```
87
+
88
+ Always use the `@latest` form (not `npm update`) — see `rules.md` APP-007 for
89
+ why.