@lessly/sdk-app 61.0.1 → 61.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_types/gen/client.gen.d.ts +29 -1
- package/dist/_types/gen/manifest.gen.d.ts +1 -1
- package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
- package/dist/_types/gen/playground/index.d.ts +3 -0
- package/dist/_types/gen/playground/queryOptions.gen.d.ts +50 -0
- package/dist/_types/gen/types.gen.d.ts +192 -0
- package/dist/_types/index.d.ts +2 -1
- package/dist/_types/react/index.d.ts +33 -0
- package/dist/_types/runtime/access.d.ts +40 -0
- package/dist/_types/runtime/createLesslyApp.d.ts +4 -0
- package/dist/_types/runtime/errors.d.ts +11 -0
- package/dist/_types/runtime/permission-match.d.ts +62 -0
- package/dist/chunk-T4K7L6V5.js +10218 -0
- package/dist/chunk-T4K7L6V5.js.map +1 -0
- package/dist/index.cjs +868 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +699 -10073
- package/dist/index.js.map +1 -1
- package/dist/playground/index.cjs +81 -0
- package/dist/playground/index.cjs.map +1 -0
- package/dist/playground/index.d.cts +1 -0
- package/dist/playground/index.d.ts +1 -0
- package/dist/playground/index.js +58 -0
- package/dist/playground/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/docs/README.md +1 -0
- package/docs/recipes/access.md +177 -0
- package/docs/rules.md +33 -0
- package/package.json +35 -2
- package/src/gen/bindings.gen.ts +174 -38
- package/src/gen/client.gen.ts +52 -0
- package/src/gen/manifest.gen.ts +50 -38
- package/src/gen/playground/connect.gen.ts +9 -0
- package/src/gen/playground/index.ts +4 -0
- package/src/gen/playground/queryOptions.gen.ts +86 -0
- package/src/gen/types.gen.ts +227 -0
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
import type { ToolLevel } from '../runtime/types';
|
|
3
3
|
|
|
4
|
-
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
|
|
4
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'playground', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
|
|
5
5
|
|
|
6
6
|
export const operations: Record<string, ToolLevel> = {
|
|
7
7
|
'analytics_catalog_get': 'read',
|
|
@@ -23,7 +23,7 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
23
23
|
'analytics_query_run': 'read',
|
|
24
24
|
'analytics_retention_run': 'read',
|
|
25
25
|
'brain_backup_create': 'write',
|
|
26
|
-
'brain_backup_restore': '
|
|
26
|
+
'brain_backup_restore': 'admin',
|
|
27
27
|
'brain_backup_status': 'read',
|
|
28
28
|
'brain_backups_list': 'read',
|
|
29
29
|
'brain_clickup_channels_list': 'read',
|
|
@@ -54,16 +54,16 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
54
54
|
'brain_knowledge_relations': 'read',
|
|
55
55
|
'brain_knowledge_search': 'read',
|
|
56
56
|
'brain_memory_add': 'write',
|
|
57
|
-
'brain_memory_delete': '
|
|
57
|
+
'brain_memory_delete': 'write',
|
|
58
58
|
'brain_memory_get': 'read',
|
|
59
59
|
'brain_memory_list': 'read',
|
|
60
60
|
'brain_memory_search': 'read',
|
|
61
61
|
'brain_memory_stats': 'read',
|
|
62
62
|
'brain_memory_update': 'write',
|
|
63
|
-
'brain_product_shared_memory_reset': '
|
|
63
|
+
'brain_product_shared_memory_reset': 'admin',
|
|
64
64
|
'brain_restore_status': 'read',
|
|
65
65
|
'brain_usage_report': 'read',
|
|
66
|
-
'consent_config_cookie_domain_upsert': '
|
|
66
|
+
'consent_config_cookie_domain_upsert': 'admin',
|
|
67
67
|
'consent_config_customization_upsert': 'write',
|
|
68
68
|
'consent_config_floating_icon_upsert': 'write',
|
|
69
69
|
'consent_config_theme_upsert': 'write',
|
|
@@ -76,7 +76,7 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
76
76
|
'consent_providers_delete': 'admin',
|
|
77
77
|
'consent_providers_list': 'read',
|
|
78
78
|
'consent_providers_update': 'write',
|
|
79
|
-
'consent_records_export': '
|
|
79
|
+
'consent_records_export': 'admin',
|
|
80
80
|
'consent_stats_get': 'read',
|
|
81
81
|
'content_channels_bind': 'write',
|
|
82
82
|
'content_channels_get': 'read',
|
|
@@ -134,22 +134,22 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
134
134
|
'deployment_cloud_sql_instance_get': 'read',
|
|
135
135
|
'deployment_cloud_sql_instance_list': 'read',
|
|
136
136
|
'deployment_cloud_sql_instance_resize': 'write',
|
|
137
|
-
'deployment_cloud_sql_instance_restore': '
|
|
137
|
+
'deployment_cloud_sql_instance_restore': 'admin',
|
|
138
138
|
'deployment_cloud_sql_logs': 'read',
|
|
139
139
|
'deployment_deployment_cancel': 'write',
|
|
140
140
|
'deployment_deployment_get': 'read',
|
|
141
141
|
'deployment_deployment_list': 'read',
|
|
142
|
-
'deployment_domain_add': '
|
|
142
|
+
'deployment_domain_add': 'admin',
|
|
143
143
|
'deployment_domain_allowed_list': 'read',
|
|
144
144
|
'deployment_domain_get': 'read',
|
|
145
145
|
'deployment_domain_list': 'read',
|
|
146
146
|
'deployment_domain_list_by_service': 'read',
|
|
147
|
-
'deployment_domain_redirect_www': '
|
|
147
|
+
'deployment_domain_redirect_www': 'admin',
|
|
148
148
|
'deployment_domain_remove': 'admin',
|
|
149
|
-
'deployment_domain_routes_add': '
|
|
149
|
+
'deployment_domain_routes_add': 'admin',
|
|
150
150
|
'deployment_domain_routes_list': 'read',
|
|
151
151
|
'deployment_domain_routes_remove': 'admin',
|
|
152
|
-
'deployment_domain_routes_update': '
|
|
152
|
+
'deployment_domain_routes_update': 'admin',
|
|
153
153
|
'deployment_domain_verify': 'write',
|
|
154
154
|
'deployment_environment_create': 'write',
|
|
155
155
|
'deployment_environment_delete': 'admin',
|
|
@@ -173,7 +173,7 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
173
173
|
'deployment_managed_service_provision': 'write',
|
|
174
174
|
'deployment_managed_service_reconcile': 'write',
|
|
175
175
|
'deployment_managed_service_resize': 'write',
|
|
176
|
-
'deployment_managed_service_restore': '
|
|
176
|
+
'deployment_managed_service_restore': 'admin',
|
|
177
177
|
'deployment_managed_service_start': 'write',
|
|
178
178
|
'deployment_managed_service_stop': 'write',
|
|
179
179
|
'deployment_managed_service_types': 'read',
|
|
@@ -182,10 +182,10 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
182
182
|
'deployment_preview_environment_delete': 'admin',
|
|
183
183
|
'deployment_preview_environment_list': 'read',
|
|
184
184
|
'deployment_preview_policy_get': 'read',
|
|
185
|
-
'deployment_preview_policy_set': '
|
|
185
|
+
'deployment_preview_policy_set': 'admin',
|
|
186
186
|
'deployment_service_create': 'write',
|
|
187
187
|
'deployment_service_delete': 'admin',
|
|
188
|
-
'deployment_service_exec': '
|
|
188
|
+
'deployment_service_exec': 'admin',
|
|
189
189
|
'deployment_service_get': 'read',
|
|
190
190
|
'deployment_service_list': 'read',
|
|
191
191
|
'deployment_service_logs': 'read',
|
|
@@ -198,17 +198,17 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
198
198
|
'deployment_ssh_command': 'read',
|
|
199
199
|
'deployment_ssh_key_delete': 'admin',
|
|
200
200
|
'deployment_ssh_key_list': 'read',
|
|
201
|
-
'deployment_ssh_key_register': '
|
|
201
|
+
'deployment_ssh_key_register': 'admin',
|
|
202
202
|
'deployment_suspension_get': 'read',
|
|
203
203
|
'deployment_variable_list': 'read',
|
|
204
204
|
'deployment_variable_list_env': 'read',
|
|
205
205
|
'deployment_variable_list_product': 'read',
|
|
206
206
|
'deployment_variable_set': 'write',
|
|
207
207
|
'deployment_variable_set_env': 'write',
|
|
208
|
-
'deployment_variable_set_product': '
|
|
208
|
+
'deployment_variable_set_product': 'admin',
|
|
209
209
|
'deployment_variable_unset': 'write',
|
|
210
210
|
'deployment_variable_unset_env': 'write',
|
|
211
|
-
'deployment_variable_unset_product': '
|
|
211
|
+
'deployment_variable_unset_product': 'admin',
|
|
212
212
|
'deployment_vcs_branch_list': 'read',
|
|
213
213
|
'deployment_vcs_connection_list': 'read',
|
|
214
214
|
'deployment_vcs_repo_list': 'read',
|
|
@@ -218,7 +218,7 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
218
218
|
'deployment_volume_get': 'read',
|
|
219
219
|
'deployment_volume_list': 'read',
|
|
220
220
|
'deployment_volume_resize': 'write',
|
|
221
|
-
'mail_apikey_create': '
|
|
221
|
+
'mail_apikey_create': 'admin',
|
|
222
222
|
'mail_apikey_delete': 'admin',
|
|
223
223
|
'mail_apikey_list': 'read',
|
|
224
224
|
'mail_audience_create': 'write',
|
|
@@ -240,11 +240,11 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
240
240
|
'mail_contact_list': 'read',
|
|
241
241
|
'mail_contact_update': 'write',
|
|
242
242
|
'mail_domain_allowed_list': 'read',
|
|
243
|
-
'mail_domain_create': '
|
|
243
|
+
'mail_domain_create': 'admin',
|
|
244
244
|
'mail_domain_delete': 'admin',
|
|
245
245
|
'mail_domain_get': 'read',
|
|
246
246
|
'mail_domain_list': 'read',
|
|
247
|
-
'mail_domain_update': '
|
|
247
|
+
'mail_domain_update': 'admin',
|
|
248
248
|
'mail_domain_verify': 'write',
|
|
249
249
|
'mail_email_cancel': 'write',
|
|
250
250
|
'mail_email_get': 'read',
|
|
@@ -263,12 +263,12 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
263
263
|
'mail_template_publish': 'write',
|
|
264
264
|
'mail_template_update': 'write',
|
|
265
265
|
'mail_usage_get': 'read',
|
|
266
|
-
'mail_webhook_create': '
|
|
266
|
+
'mail_webhook_create': 'admin',
|
|
267
267
|
'mail_webhook_delete': 'admin',
|
|
268
268
|
'mail_webhook_deliveries_list': 'read',
|
|
269
269
|
'mail_webhook_get': 'read',
|
|
270
270
|
'mail_webhook_list': 'read',
|
|
271
|
-
'mail_webhook_update': '
|
|
271
|
+
'mail_webhook_update': 'admin',
|
|
272
272
|
'observe_alerts_create': 'write',
|
|
273
273
|
'observe_alerts_delete': 'admin',
|
|
274
274
|
'observe_alerts_events_list': 'read',
|
|
@@ -278,7 +278,7 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
278
278
|
'observe_artifacts_delete': 'admin',
|
|
279
279
|
'observe_artifacts_list': 'read',
|
|
280
280
|
'observe_artifacts_resolve': 'read',
|
|
281
|
-
'observe_issues_archive': '
|
|
281
|
+
'observe_issues_archive': 'write',
|
|
282
282
|
'observe_issues_assign': 'write',
|
|
283
283
|
'observe_issues_event': 'read',
|
|
284
284
|
'observe_issues_events': 'read',
|
|
@@ -302,7 +302,7 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
302
302
|
'observe_webhooks_get': 'read',
|
|
303
303
|
'observe_webhooks_list': 'read',
|
|
304
304
|
'observe_webhooks_redeliver': 'write',
|
|
305
|
-
'observe_webhooks_rotate_secret': '
|
|
305
|
+
'observe_webhooks_rotate_secret': 'admin',
|
|
306
306
|
'observe_webhooks_update': 'write',
|
|
307
307
|
'organization_auth_me': 'read',
|
|
308
308
|
'organization_billing_budgets_get': 'read',
|
|
@@ -375,10 +375,22 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
375
375
|
'organization_support_thread_get': 'read',
|
|
376
376
|
'organization_support_thread_reply': 'write',
|
|
377
377
|
'organization_support_threads_list': 'read',
|
|
378
|
-
'
|
|
378
|
+
'playground_analytics_overview': 'read',
|
|
379
|
+
'playground_billing_entitlements': 'read',
|
|
380
|
+
'playground_billing_record-usage': 'write',
|
|
381
|
+
'playground_clickup_create-task': 'write',
|
|
382
|
+
'playground_clickup_get-last-webhook': 'read',
|
|
383
|
+
'playground_clickup_get-overview': 'read',
|
|
384
|
+
'playground_gdrive_get-last-change': 'read',
|
|
385
|
+
'playground_gdrive_read-file': 'read',
|
|
386
|
+
'playground_googleads_read-customer': 'read',
|
|
387
|
+
'playground_lifecycle_get-state': 'read',
|
|
388
|
+
'playground_lifecycle_list-events': 'read',
|
|
389
|
+
'playground_webhook_get-last': 'read',
|
|
390
|
+
'realtime_archive_export': 'admin',
|
|
379
391
|
'realtime_archive_export_status': 'read',
|
|
380
392
|
'realtime_archive_get': 'read',
|
|
381
|
-
'realtime_grant_create': '
|
|
393
|
+
'realtime_grant_create': 'admin',
|
|
382
394
|
'realtime_grant_list': 'read',
|
|
383
395
|
'realtime_grant_revoke': 'admin',
|
|
384
396
|
'realtime_history_get': 'read',
|
|
@@ -401,7 +413,7 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
401
413
|
'realtime_webhook_deliveries_list': 'read',
|
|
402
414
|
'realtime_webhook_get': 'read',
|
|
403
415
|
'realtime_webhook_list': 'read',
|
|
404
|
-
'realtime_webhook_secret_rotate': '
|
|
416
|
+
'realtime_webhook_secret_rotate': 'admin',
|
|
405
417
|
'realtime_webhook_update': 'write',
|
|
406
418
|
'support_agent_create': 'write',
|
|
407
419
|
'support_agent_get': 'read',
|
|
@@ -429,9 +441,9 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
429
441
|
'support_survey_create': 'write',
|
|
430
442
|
'support_survey_get': 'read',
|
|
431
443
|
'support_survey_list': 'read',
|
|
432
|
-
'support_survey_publish': '
|
|
444
|
+
'support_survey_publish': 'admin',
|
|
433
445
|
'support_survey_stats': 'read',
|
|
434
|
-
'support_survey_unpublish': '
|
|
446
|
+
'support_survey_unpublish': 'admin',
|
|
435
447
|
'support_survey_update': 'write',
|
|
436
448
|
'support_thread_assign': 'write',
|
|
437
449
|
'support_thread_create': 'write',
|
|
@@ -439,22 +451,22 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
439
451
|
'support_thread_list': 'read',
|
|
440
452
|
'support_thread_status_set': 'write',
|
|
441
453
|
'support_thread_update': 'write',
|
|
442
|
-
'support_webhook_create': '
|
|
454
|
+
'support_webhook_create': 'admin',
|
|
443
455
|
'support_webhook_delete': 'admin',
|
|
444
|
-
'support_webhook_deliveries_list': '
|
|
445
|
-
'support_webhook_get': '
|
|
446
|
-
'support_webhook_list': '
|
|
447
|
-
'support_webhook_redeliver': '
|
|
448
|
-
'support_webhook_rotate_secret': '
|
|
449
|
-
'support_webhook_update': '
|
|
456
|
+
'support_webhook_deliveries_list': 'admin',
|
|
457
|
+
'support_webhook_get': 'admin',
|
|
458
|
+
'support_webhook_list': 'admin',
|
|
459
|
+
'support_webhook_redeliver': 'admin',
|
|
460
|
+
'support_webhook_rotate_secret': 'admin',
|
|
461
|
+
'support_webhook_update': 'admin',
|
|
450
462
|
'tracking_domains_create': 'write',
|
|
451
463
|
'tracking_domains_delete': 'admin',
|
|
452
464
|
'tracking_domains_get': 'read',
|
|
453
465
|
'tracking_domains_list': 'read',
|
|
454
466
|
'tracking_domains_verify': 'write',
|
|
455
|
-
'tracking_event-names_archive': '
|
|
467
|
+
'tracking_event-names_archive': 'write',
|
|
456
468
|
'tracking_event-names_list': 'read',
|
|
457
|
-
'tracking_event-names_unarchive': '
|
|
469
|
+
'tracking_event-names_unarchive': 'write',
|
|
458
470
|
'tracking_googleads_connection_status': 'read',
|
|
459
471
|
'tracking_googleads_conversion_actions': 'read',
|
|
460
472
|
'tracking_googleads_feedback_config_get': 'read',
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import { wsBindings } from '../bindings.gen';
|
|
3
|
+
import type { LesslyStream, LesslyStreamOpener } from '../../runtime/types';
|
|
4
|
+
import type {
|
|
5
|
+
PlaygroundWsEchoInput,
|
|
6
|
+
} from '../types.gen';
|
|
7
|
+
|
|
8
|
+
export const playgroundWsEchoConnect = (sdk: LesslyStreamOpener, input: PlaygroundWsEchoInput): LesslyStream =>
|
|
9
|
+
sdk.openStream(wsBindings['playground']!['ws']!['echo']!, input as Record<string, unknown>);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
export * from './queryOptions.gen';
|
|
3
|
+
export * from './connect.gen';
|
|
4
|
+
export type { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundBillingRecordUsageOutput, PlaygroundClickupCreateTaskInput, PlaygroundClickupCreateTaskOutput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput, PlaygroundWsEchoInput } from '../types.gen';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import type { GeneratedClient } from '../client.gen';
|
|
3
|
+
import type {
|
|
4
|
+
PlaygroundAnalyticsOverviewInput,
|
|
5
|
+
PlaygroundAnalyticsOverviewOutput,
|
|
6
|
+
PlaygroundBillingEntitlementsInput,
|
|
7
|
+
PlaygroundBillingEntitlementsOutput,
|
|
8
|
+
PlaygroundBillingRecordUsageInput,
|
|
9
|
+
PlaygroundClickupCreateTaskInput,
|
|
10
|
+
PlaygroundClickupGetLastWebhookInput,
|
|
11
|
+
PlaygroundClickupGetLastWebhookOutput,
|
|
12
|
+
PlaygroundClickupGetOverviewInput,
|
|
13
|
+
PlaygroundClickupGetOverviewOutput,
|
|
14
|
+
PlaygroundGdriveGetLastChangeInput,
|
|
15
|
+
PlaygroundGdriveGetLastChangeOutput,
|
|
16
|
+
PlaygroundGdriveReadFileInput,
|
|
17
|
+
PlaygroundGdriveReadFileOutput,
|
|
18
|
+
PlaygroundGoogleadsReadCustomerInput,
|
|
19
|
+
PlaygroundGoogleadsReadCustomerOutput,
|
|
20
|
+
PlaygroundLifecycleGetStateInput,
|
|
21
|
+
PlaygroundLifecycleGetStateOutput,
|
|
22
|
+
PlaygroundLifecycleListEventsInput,
|
|
23
|
+
PlaygroundLifecycleListEventsOutput,
|
|
24
|
+
PlaygroundWebhookGetLastInput,
|
|
25
|
+
PlaygroundWebhookGetLastOutput,
|
|
26
|
+
} from '../types.gen';
|
|
27
|
+
|
|
28
|
+
export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
|
|
29
|
+
queryKey: ['playground', 'analytics', 'overview', input] as const,
|
|
30
|
+
queryFn: () => sdk['playground']['analytics']['overview'](input),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
|
|
34
|
+
queryKey: ['playground', 'billing', 'entitlements', input] as const,
|
|
35
|
+
queryFn: () => sdk['playground']['billing']['entitlements'](input),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
|
|
39
|
+
mutationKey: ['playground', 'billing', 'record-usage'],
|
|
40
|
+
mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
|
|
44
|
+
mutationKey: ['playground', 'clickup', 'create-task'],
|
|
45
|
+
mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
|
|
49
|
+
queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
|
|
50
|
+
queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
|
|
54
|
+
queryKey: ['playground', 'clickup', 'get-overview', input] as const,
|
|
55
|
+
queryFn: () => sdk['playground']['clickup']['get-overview'](input),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
|
|
59
|
+
queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
|
|
60
|
+
queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
|
|
64
|
+
queryKey: ['playground', 'gdrive', 'read-file', input] as const,
|
|
65
|
+
queryFn: () => sdk['playground']['gdrive']['read-file'](input),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
|
|
69
|
+
queryKey: ['playground', 'googleads', 'read-customer', input] as const,
|
|
70
|
+
queryFn: () => sdk['playground']['googleads']['read-customer'](input),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
|
|
74
|
+
queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
|
|
75
|
+
queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
|
|
79
|
+
queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
|
|
80
|
+
queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
|
|
84
|
+
queryKey: ['playground', 'webhook', 'get-last', input] as const,
|
|
85
|
+
queryFn: () => sdk['playground']['webhook']['get-last'](input),
|
|
86
|
+
});
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -85128,6 +85128,7 @@ displayName: (string | null)
|
|
|
85128
85128
|
orgRoles: {
|
|
85129
85129
|
id: string
|
|
85130
85130
|
name: string
|
|
85131
|
+
description: (string | null)
|
|
85131
85132
|
}[]
|
|
85132
85133
|
canManage: boolean
|
|
85133
85134
|
inherited: {
|
|
@@ -85524,6 +85525,232 @@ lastMessagePreview: (string | null)
|
|
|
85524
85525
|
}[]
|
|
85525
85526
|
}
|
|
85526
85527
|
|
|
85528
|
+
export interface PlaygroundAnalyticsOverviewInput {
|
|
85529
|
+
/**
|
|
85530
|
+
* Max records per entity in recent[]; omit for the endpoint default
|
|
85531
|
+
*/
|
|
85532
|
+
limit?: number
|
|
85533
|
+
}
|
|
85534
|
+
|
|
85535
|
+
export interface PlaygroundAnalyticsOverviewOutput {
|
|
85536
|
+
ok: boolean
|
|
85537
|
+
minted: boolean
|
|
85538
|
+
overview?: unknown
|
|
85539
|
+
http_status: number
|
|
85540
|
+
}
|
|
85541
|
+
|
|
85542
|
+
export interface PlaygroundBillingEntitlementsInput {
|
|
85543
|
+
|
|
85544
|
+
}
|
|
85545
|
+
|
|
85546
|
+
export interface PlaygroundBillingEntitlementsOutput {
|
|
85547
|
+
ok: boolean
|
|
85548
|
+
minted: boolean
|
|
85549
|
+
http_status: number
|
|
85550
|
+
entitlements?: unknown
|
|
85551
|
+
}
|
|
85552
|
+
|
|
85553
|
+
export interface PlaygroundBillingRecordUsageInput {
|
|
85554
|
+
/**
|
|
85555
|
+
* Quantity of events to record against playground-events (SUM); defaults to 1
|
|
85556
|
+
*/
|
|
85557
|
+
value?: number
|
|
85558
|
+
}
|
|
85559
|
+
|
|
85560
|
+
export interface PlaygroundBillingRecordUsageOutput {
|
|
85561
|
+
minted: boolean
|
|
85562
|
+
accepted: (number | null)
|
|
85563
|
+
recorded: boolean
|
|
85564
|
+
duplicates: (number | null)
|
|
85565
|
+
http_status: number
|
|
85566
|
+
}
|
|
85567
|
+
|
|
85568
|
+
export interface PlaygroundClickupCreateTaskInput {
|
|
85569
|
+
/**
|
|
85570
|
+
* Task title; defaults to a fixture label
|
|
85571
|
+
*/
|
|
85572
|
+
name?: string
|
|
85573
|
+
/**
|
|
85574
|
+
* ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
|
|
85575
|
+
*/
|
|
85576
|
+
listId?: string
|
|
85577
|
+
}
|
|
85578
|
+
|
|
85579
|
+
export interface PlaygroundClickupCreateTaskOutput {
|
|
85580
|
+
minted: boolean
|
|
85581
|
+
task_id: (string | null)
|
|
85582
|
+
list_status: number
|
|
85583
|
+
vend_status: number
|
|
85584
|
+
clickup_status: number
|
|
85585
|
+
installation_count: number
|
|
85586
|
+
}
|
|
85587
|
+
|
|
85588
|
+
export interface PlaygroundClickupGetLastWebhookInput {
|
|
85589
|
+
|
|
85590
|
+
}
|
|
85591
|
+
|
|
85592
|
+
export type PlaygroundClickupGetLastWebhookOutput = ({
|
|
85593
|
+
payload: string
|
|
85594
|
+
event_id: string
|
|
85595
|
+
provider: string
|
|
85596
|
+
verified: boolean
|
|
85597
|
+
product_id: string
|
|
85598
|
+
occurred_at: string
|
|
85599
|
+
connector_id: string
|
|
85600
|
+
clickup_event: (string | null)
|
|
85601
|
+
receipt_count: number
|
|
85602
|
+
} | {
|
|
85603
|
+
found: false
|
|
85604
|
+
})
|
|
85605
|
+
|
|
85606
|
+
export interface PlaygroundClickupGetOverviewInput {
|
|
85607
|
+
|
|
85608
|
+
}
|
|
85609
|
+
|
|
85610
|
+
export interface PlaygroundClickupGetOverviewOutput {
|
|
85611
|
+
team: ({
|
|
85612
|
+
teamId: string
|
|
85613
|
+
teamName: string
|
|
85614
|
+
} | null)
|
|
85615
|
+
lists: PlaygroundClickupGetOverviewOutputItems[]
|
|
85616
|
+
tasks: {
|
|
85617
|
+
id: string
|
|
85618
|
+
name: string
|
|
85619
|
+
status: (string | null)
|
|
85620
|
+
}[]
|
|
85621
|
+
minted: boolean
|
|
85622
|
+
spaces: PlaygroundClickupGetOverviewOutputItems[]
|
|
85623
|
+
list_status: number
|
|
85624
|
+
vend_status: number
|
|
85625
|
+
lists_status: number
|
|
85626
|
+
tasks_status: number
|
|
85627
|
+
spaces_status: number
|
|
85628
|
+
folders_status: number
|
|
85629
|
+
installation_count: number
|
|
85630
|
+
}
|
|
85631
|
+
export interface PlaygroundClickupGetOverviewOutputItems {
|
|
85632
|
+
id: string
|
|
85633
|
+
name: string
|
|
85634
|
+
}
|
|
85635
|
+
|
|
85636
|
+
export interface PlaygroundGdriveGetLastChangeInput {
|
|
85637
|
+
|
|
85638
|
+
}
|
|
85639
|
+
|
|
85640
|
+
export type PlaygroundGdriveGetLastChangeOutput = ({
|
|
85641
|
+
file_id: string
|
|
85642
|
+
removed: boolean
|
|
85643
|
+
file_name: (string | null)
|
|
85644
|
+
mime_type: (string | null)
|
|
85645
|
+
product_id: string
|
|
85646
|
+
occurred_at: string
|
|
85647
|
+
connector_id: string
|
|
85648
|
+
resource_state: string
|
|
85649
|
+
} | {
|
|
85650
|
+
found: false
|
|
85651
|
+
})
|
|
85652
|
+
|
|
85653
|
+
export interface PlaygroundGdriveReadFileInput {
|
|
85654
|
+
/**
|
|
85655
|
+
* Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
|
|
85656
|
+
*/
|
|
85657
|
+
fileId?: string
|
|
85658
|
+
}
|
|
85659
|
+
|
|
85660
|
+
export interface PlaygroundGdriveReadFileOutput {
|
|
85661
|
+
minted: boolean
|
|
85662
|
+
file_id: (string | null)
|
|
85663
|
+
file_name: (string | null)
|
|
85664
|
+
mime_type: (string | null)
|
|
85665
|
+
file_count: number
|
|
85666
|
+
get_status: number
|
|
85667
|
+
list_status: number
|
|
85668
|
+
vend_status: number
|
|
85669
|
+
content_bytes: (number | null)
|
|
85670
|
+
}
|
|
85671
|
+
|
|
85672
|
+
export interface PlaygroundGoogleadsReadCustomerInput {
|
|
85673
|
+
|
|
85674
|
+
}
|
|
85675
|
+
|
|
85676
|
+
export interface PlaygroundGoogleadsReadCustomerOutput {
|
|
85677
|
+
minted: boolean
|
|
85678
|
+
vended: boolean
|
|
85679
|
+
customer_id: (string | null)
|
|
85680
|
+
vend_status: number
|
|
85681
|
+
result_count: number
|
|
85682
|
+
search_status: number
|
|
85683
|
+
login_customer_id: (string | null)
|
|
85684
|
+
}
|
|
85685
|
+
|
|
85686
|
+
export interface PlaygroundLifecycleGetStateInput {
|
|
85687
|
+
|
|
85688
|
+
}
|
|
85689
|
+
|
|
85690
|
+
export interface PlaygroundLifecycleGetStateOutput {
|
|
85691
|
+
blocked: boolean
|
|
85692
|
+
archived: boolean
|
|
85693
|
+
productId: string
|
|
85694
|
+
lastBlockTransition: ({
|
|
85695
|
+
eventId: string
|
|
85696
|
+
eventName: string
|
|
85697
|
+
productId: string
|
|
85698
|
+
occurredAt: string
|
|
85699
|
+
recordedAt: string
|
|
85700
|
+
receiptCount: number
|
|
85701
|
+
organizationId: string
|
|
85702
|
+
cascadedFromOrg: boolean
|
|
85703
|
+
} | null)
|
|
85704
|
+
lastArchiveTransition: ({
|
|
85705
|
+
eventId: string
|
|
85706
|
+
eventName: string
|
|
85707
|
+
productId: string
|
|
85708
|
+
occurredAt: string
|
|
85709
|
+
recordedAt: string
|
|
85710
|
+
receiptCount: number
|
|
85711
|
+
organizationId: string
|
|
85712
|
+
cascadedFromOrg: boolean
|
|
85713
|
+
} | null)
|
|
85714
|
+
}
|
|
85715
|
+
|
|
85716
|
+
export interface PlaygroundLifecycleListEventsInput {
|
|
85717
|
+
|
|
85718
|
+
}
|
|
85719
|
+
|
|
85720
|
+
export type PlaygroundLifecycleListEventsOutput = {
|
|
85721
|
+
eventId: string
|
|
85722
|
+
eventName: string
|
|
85723
|
+
productId: string
|
|
85724
|
+
occurredAt: string
|
|
85725
|
+
recordedAt: string
|
|
85726
|
+
receiptCount: number
|
|
85727
|
+
organizationId: string
|
|
85728
|
+
cascadedFromOrg: boolean
|
|
85729
|
+
}[]
|
|
85730
|
+
|
|
85731
|
+
export interface PlaygroundWebhookGetLastInput {
|
|
85732
|
+
|
|
85733
|
+
}
|
|
85734
|
+
|
|
85735
|
+
export type PlaygroundWebhookGetLastOutput = ({
|
|
85736
|
+
payload?: unknown
|
|
85737
|
+
event_id: string
|
|
85738
|
+
provider: string
|
|
85739
|
+
verified: boolean
|
|
85740
|
+
product_id: string
|
|
85741
|
+
occurred_at: string
|
|
85742
|
+
connector_id: string
|
|
85743
|
+
delivery_count: number
|
|
85744
|
+
} | {
|
|
85745
|
+
found: false
|
|
85746
|
+
})
|
|
85747
|
+
|
|
85748
|
+
export interface PlaygroundWsEchoInput {
|
|
85749
|
+
|
|
85750
|
+
}
|
|
85751
|
+
|
|
85752
|
+
export type PlaygroundWsEchoOutput = unknown;
|
|
85753
|
+
|
|
85527
85754
|
export interface RealtimeArchiveExportInput {
|
|
85528
85755
|
/**
|
|
85529
85756
|
* Only entries with ts <= to_ts (epoch ms)
|