@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.
- package/README.md +233 -0
- package/dist/_types/gen/analytics/index.d.ts +2 -0
- package/dist/_types/gen/analytics/queryOptions.gen.d.ts +74 -0
- package/dist/_types/gen/bindings.gen.d.ts +3 -0
- package/dist/_types/gen/brain/index.d.ts +2 -0
- package/dist/_types/gen/brain/queryOptions.gen.d.ts +166 -0
- package/dist/_types/gen/client.gen.d.ts +1087 -0
- package/dist/_types/gen/consent/index.d.ts +2 -0
- package/dist/_types/gen/consent/queryOptions.gen.d.ts +62 -0
- package/dist/_types/gen/content/index.d.ts +2 -0
- package/dist/_types/gen/content/queryOptions.gen.d.ts +126 -0
- package/dist/_types/gen/deployment/index.d.ts +2 -0
- package/dist/_types/gen/deployment/queryOptions.gen.d.ts +438 -0
- package/dist/_types/gen/mail/index.d.ts +2 -0
- package/dist/_types/gen/mail/queryOptions.gen.d.ts +206 -0
- package/dist/_types/gen/manifest.gen.d.ts +4 -0
- package/dist/_types/gen/observe/index.d.ts +2 -0
- package/dist/_types/gen/observe/queryOptions.gen.d.ts +142 -0
- package/dist/_types/gen/organization/index.d.ts +2 -0
- package/dist/_types/gen/organization/queryOptions.gen.d.ts +362 -0
- package/dist/_types/gen/realtime/index.d.ts +2 -0
- package/dist/_types/gen/realtime/queryOptions.gen.d.ts +114 -0
- package/dist/_types/gen/support/index.d.ts +2 -0
- package/dist/_types/gen/support/queryOptions.gen.d.ts +206 -0
- package/dist/_types/gen/tracking/index.d.ts +2 -0
- package/dist/_types/gen/tracking/queryOptions.gen.d.ts +150 -0
- package/dist/_types/gen/types.gen.d.ts +126011 -0
- package/dist/_types/gen/users/index.d.ts +2 -0
- package/dist/_types/gen/users/queryOptions.gen.d.ts +182 -0
- package/dist/_types/gen/waitlist/index.d.ts +2 -0
- package/dist/_types/gen/waitlist/queryOptions.gen.d.ts +30 -0
- package/dist/_types/gen/workflow/index.d.ts +2 -0
- package/dist/_types/gen/workflow/queryOptions.gen.d.ts +166 -0
- package/dist/_types/index.d.ts +11 -0
- package/dist/_types/package.json +1 -0
- package/dist/_types/react/index.d.ts +33 -0
- package/dist/_types/runtime/access-reason.d.ts +27 -0
- package/dist/_types/runtime/access.d.ts +40 -0
- package/dist/_types/runtime/compositions.d.ts +16 -0
- package/dist/_types/runtime/connectStream.d.ts +15 -0
- package/dist/_types/runtime/createLesslyApp.d.ts +10 -0
- package/dist/_types/runtime/csrf.d.ts +1 -0
- package/dist/_types/runtime/errors.d.ts +18 -0
- package/dist/_types/runtime/name.d.ts +26 -0
- package/dist/_types/runtime/operations.d.ts +13 -0
- package/dist/_types/runtime/permission-match.d.ts +62 -0
- package/dist/_types/runtime/request.d.ts +9 -0
- package/dist/_types/runtime/types.d.ts +129 -0
- package/dist/analytics/index.cjs +96 -0
- package/dist/analytics/index.cjs.map +1 -0
- package/dist/analytics/index.d.cts +1 -0
- package/dist/analytics/index.d.ts +1 -0
- package/dist/analytics/index.js +77 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/brain/index.cjs +211 -0
- package/dist/brain/index.cjs.map +1 -0
- package/dist/brain/index.d.cts +1 -0
- package/dist/brain/index.d.ts +1 -0
- package/dist/brain/index.js +169 -0
- package/dist/brain/index.js.map +1 -0
- package/dist/consent/index.cjs +81 -0
- package/dist/consent/index.cjs.map +1 -0
- package/dist/consent/index.d.cts +1 -0
- package/dist/consent/index.d.ts +1 -0
- package/dist/consent/index.js +65 -0
- package/dist/consent/index.js.map +1 -0
- package/dist/content/index.cjs +161 -0
- package/dist/content/index.cjs.map +1 -0
- package/dist/content/index.d.cts +1 -0
- package/dist/content/index.d.ts +1 -0
- package/dist/content/index.js +129 -0
- package/dist/content/index.js.map +1 -0
- package/dist/deployment/index.cjs +551 -0
- package/dist/deployment/index.cjs.map +1 -0
- package/dist/deployment/index.d.cts +1 -0
- package/dist/deployment/index.d.ts +1 -0
- package/dist/deployment/index.js +441 -0
- package/dist/deployment/index.js.map +1 -0
- package/dist/index.cjs +12565 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12557 -0
- package/dist/index.js.map +1 -0
- package/dist/mail/index.cjs +261 -0
- package/dist/mail/index.cjs.map +1 -0
- package/dist/mail/index.d.cts +1 -0
- package/dist/mail/index.d.ts +1 -0
- package/dist/mail/index.js +209 -0
- package/dist/mail/index.js.map +1 -0
- package/dist/observe/index.cjs +181 -0
- package/dist/observe/index.cjs.map +1 -0
- package/dist/observe/index.d.cts +1 -0
- package/dist/observe/index.d.ts +1 -0
- package/dist/observe/index.js +145 -0
- package/dist/observe/index.js.map +1 -0
- package/dist/organization/index.cjs +456 -0
- package/dist/organization/index.cjs.map +1 -0
- package/dist/organization/index.d.cts +1 -0
- package/dist/organization/index.d.ts +1 -0
- package/dist/organization/index.js +365 -0
- package/dist/organization/index.js.map +1 -0
- package/dist/react/index.cjs +29 -0
- package/dist/react/index.cjs.map +1 -0
- package/dist/react/index.d.cts +1 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +26 -0
- package/dist/react/index.js.map +1 -0
- package/dist/realtime/index.cjs +146 -0
- package/dist/realtime/index.cjs.map +1 -0
- package/dist/realtime/index.d.cts +1 -0
- package/dist/realtime/index.d.ts +1 -0
- package/dist/realtime/index.js +117 -0
- package/dist/realtime/index.js.map +1 -0
- package/dist/support/index.cjs +261 -0
- package/dist/support/index.cjs.map +1 -0
- package/dist/support/index.d.cts +1 -0
- package/dist/support/index.d.ts +1 -0
- package/dist/support/index.js +209 -0
- package/dist/support/index.js.map +1 -0
- package/dist/tracking/index.cjs +191 -0
- package/dist/tracking/index.cjs.map +1 -0
- package/dist/tracking/index.d.cts +1 -0
- package/dist/tracking/index.d.ts +1 -0
- package/dist/tracking/index.js +153 -0
- package/dist/tracking/index.js.map +1 -0
- package/dist/users/index.cjs +231 -0
- package/dist/users/index.cjs.map +1 -0
- package/dist/users/index.d.cts +1 -0
- package/dist/users/index.d.ts +1 -0
- package/dist/users/index.js +185 -0
- package/dist/users/index.js.map +1 -0
- package/dist/waitlist/index.cjs +41 -0
- package/dist/waitlist/index.cjs.map +1 -0
- package/dist/waitlist/index.d.cts +1 -0
- package/dist/waitlist/index.d.ts +1 -0
- package/dist/waitlist/index.js +33 -0
- package/dist/waitlist/index.js.map +1 -0
- package/dist/workflow/index.cjs +211 -0
- package/dist/workflow/index.cjs.map +1 -0
- package/dist/workflow/index.d.cts +1 -0
- package/dist/workflow/index.d.ts +1 -0
- package/dist/workflow/index.js +169 -0
- package/dist/workflow/index.js.map +1 -0
- package/docs/README.md +89 -0
- package/docs/recipes/access.md +781 -0
- package/docs/recipes/federation.md +285 -0
- package/docs/recipes/local-dev.md +111 -0
- package/docs/recipes/sdk-usage.md +194 -0
- package/docs/rules.md +522 -0
- package/package.json +212 -0
- package/src/gen/analytics/index.ts +3 -0
- package/src/gen/analytics/queryOptions.gen.ts +124 -0
- package/src/gen/bindings.gen.ts +11330 -0
- package/src/gen/brain/index.ts +3 -0
- package/src/gen/brain/queryOptions.gen.ts +278 -0
- package/src/gen/client.gen.ts +2288 -0
- package/src/gen/consent/index.ts +3 -0
- package/src/gen/consent/queryOptions.gen.ts +102 -0
- package/src/gen/content/index.ts +3 -0
- package/src/gen/content/queryOptions.gen.ts +202 -0
- package/src/gen/deployment/index.ts +3 -0
- package/src/gen/deployment/queryOptions.gen.ts +707 -0
- package/src/gen/mail/index.ts +3 -0
- package/src/gen/mail/queryOptions.gen.ts +331 -0
- package/src/gen/manifest.gen.ts +780 -0
- package/src/gen/observe/index.ts +3 -0
- package/src/gen/observe/queryOptions.gen.ts +235 -0
- package/src/gen/organization/index.ts +3 -0
- package/src/gen/organization/queryOptions.gen.ts +578 -0
- package/src/gen/realtime/index.ts +3 -0
- package/src/gen/realtime/queryOptions.gen.ts +185 -0
- package/src/gen/support/index.ts +3 -0
- package/src/gen/support/queryOptions.gen.ts +331 -0
- package/src/gen/tracking/index.ts +3 -0
- package/src/gen/tracking/queryOptions.gen.ts +249 -0
- package/src/gen/types.gen.ts +119506 -0
- package/src/gen/users/index.ts +3 -0
- package/src/gen/users/queryOptions.gen.ts +295 -0
- package/src/gen/waitlist/index.ts +3 -0
- package/src/gen/waitlist/queryOptions.gen.ts +50 -0
- package/src/gen/workflow/index.ts +3 -0
- 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,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AE,SAAS,CAAA,CAAE,MAAM,CAAA,CAAE,KAAK;AACzD,CAAA;AAEO,IAAM,2BAAA,GAA8B,CAAC,GAAA,EAAsB,KAAA,MAAiC;AAAA,EACjG,QAAA,EAAU,CAAC,UAAA,EAAY,MAAA,EAAQ,OAAO,KAAK,CAAA;AAAA,EAC3C,OAAA,EAAS,MAAM,GAAA,CAAI,UAAU,EAAE,MAAM,CAAA,CAAE,KAAK,CAAA,CAAE,KAAK;AACrD,CAAA;AAEO,IAAM,4BAAA,GAA+B,CAAC,GAAA,EAAsB,KAAA,MAAkC;AAAA,EACnG,QAAA,EAAU,CAAC,UAAA,EAAY,MAAA,EAAQ,QAAQ,KAAK,CAAA;AAAA,EAC5C,OAAA,EAAS,MAAM,GAAA,CAAI,UAAU,EAAE,MAAM,CAAA,CAAE,MAAM,CAAA,CAAE,KAAK;AACtD,CAAA;AAEO,IAAM,+BAAA,GAAkC,CAAC,GAAA,EAAsB,KAAA,MAAqC;AAAA,EACzG,QAAA,EAAU,CAAC,UAAA,EAAY,WAAA,EAAa,OAAO,KAAK,CAAA;AAAA,EAChD,OAAA,EAAS,MAAM,GAAA,CAAI,UAAU,EAAE,WAAW,CAAA,CAAE,KAAK,CAAA,CAAE,KAAK;AAC1D,CAAA;AAEO,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.
|