@lessly/sdk-app 94.0.0 → 94.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/CHANGELOG.md +15 -48
- package/dist/_types/gen/client.gen.d.ts +6 -42
- package/dist/_types/gen/manifest.gen.d.ts +1 -1
- package/dist/_types/gen/organization/index.d.ts +1 -1
- package/dist/_types/gen/organization/queryOptions.gen.d.ts +12 -8
- package/dist/_types/gen/types.gen.d.ts +1379 -9754
- package/dist/_types/index.d.ts +1 -1
- package/dist/_types/runtime/errors.d.ts +13 -0
- package/dist/index.cjs +61 -263
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11506 -29
- package/dist/index.js.map +1 -1
- package/dist/organization/index.cjs +15 -10
- package/dist/organization/index.cjs.map +1 -1
- package/dist/organization/index.js +13 -9
- package/dist/organization/index.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/recipes/entitlements.md +96 -0
- package/docs/recipes/sdk-usage.md +5 -0
- package/package.json +2 -12
- package/src/gen/bindings.gen.ts +32 -246
- package/src/gen/client.gen.ts +11 -79
- package/src/gen/manifest.gen.ts +8 -27
- package/src/gen/organization/index.ts +1 -1
- package/src/gen/organization/queryOptions.gen.ts +17 -11
- package/src/gen/types.gen.ts +1495 -9452
- package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
- package/dist/_types/gen/playground/index.d.ts +0 -3
- package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -70
- package/dist/chunk-HIAGROHK.js +0 -11695
- package/dist/chunk-HIAGROHK.js.map +0 -1
- package/dist/playground/index.cjs +0 -106
- package/dist/playground/index.cjs.map +0 -1
- package/dist/playground/index.d.cts +0 -1
- package/dist/playground/index.d.ts +0 -1
- package/dist/playground/index.js +0 -78
- package/dist/playground/index.js.map +0 -1
- package/src/gen/playground/connect.gen.ts +0 -9
- package/src/gen/playground/index.ts +0 -4
- package/src/gen/playground/queryOptions.gen.ts +0 -119
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, ToolComposition } from '../runtime/types';
|
|
3
3
|
|
|
4
|
-
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', '
|
|
4
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'workflow'] as const;
|
|
5
5
|
|
|
6
6
|
export const operations: Record<string, ToolLevel> = {
|
|
7
7
|
'analytics_catalog_get': 'read',
|
|
@@ -313,9 +313,10 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
313
313
|
'observe_webhooks_rotate_secret': 'admin',
|
|
314
314
|
'observe_webhooks_update': 'write',
|
|
315
315
|
'organization_auth_me': 'read',
|
|
316
|
+
'organization_billing_budget_clear': 'write',
|
|
317
|
+
'organization_billing_budget_resume': 'write',
|
|
318
|
+
'organization_billing_budget_set': 'write',
|
|
316
319
|
'organization_billing_budgets_get': 'read',
|
|
317
|
-
'organization_billing_caps_clear': 'write',
|
|
318
|
-
'organization_billing_caps_set': 'write',
|
|
319
320
|
'organization_bindings_list': 'read',
|
|
320
321
|
'organization_clickup_install': 'read',
|
|
321
322
|
'organization_clickup_list-installations': 'read',
|
|
@@ -402,23 +403,6 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
402
403
|
'organization_support_threads_list': 'read',
|
|
403
404
|
'organization_x_install': 'read',
|
|
404
405
|
'organization_youtube_install': 'read',
|
|
405
|
-
'playground_analytics_overview': 'read',
|
|
406
|
-
'playground_billing_entitlements': 'read',
|
|
407
|
-
'playground_billing_record-usage': 'write',
|
|
408
|
-
'playground_clickup_create-task': 'write',
|
|
409
|
-
'playground_clickup_get-last-webhook': 'read',
|
|
410
|
-
'playground_clickup_get-overview': 'read',
|
|
411
|
-
'playground_echo_ping': 'read',
|
|
412
|
-
'playground_gdrive_get-last-change': 'read',
|
|
413
|
-
'playground_gdrive_read-file': 'read',
|
|
414
|
-
'playground_googleads_read-customer': 'read',
|
|
415
|
-
'playground_lifecycle_get-state': 'read',
|
|
416
|
-
'playground_lifecycle_list-events': 'read',
|
|
417
|
-
'playground_webhook_get-last': 'read',
|
|
418
|
-
'playground_workflow_echo': 'write',
|
|
419
|
-
'playground_workflow_echo-list': 'read',
|
|
420
|
-
'playground_workflow_ping': 'write',
|
|
421
|
-
'playground_workflow_subjects-list': 'read',
|
|
422
406
|
'realtime_archive_export': 'admin',
|
|
423
407
|
'realtime_archive_export_status': 'read',
|
|
424
408
|
'realtime_archive_get': 'read',
|
|
@@ -649,10 +633,10 @@ export const compositions: Record<string, ToolComposition> = {
|
|
|
649
633
|
'brain_memory_update': {"pii":["input.content"],"label":"Update memory","options":{"memory_id":"brain_memory_list"}},
|
|
650
634
|
'brain_usage_report': {"label":"Get usage report"},
|
|
651
635
|
'content_metrics_post_series': {"label":"Read post metrics","options":{"id":"content_publications_list"}},
|
|
652
|
-
'content_posts_create': {"pii":["output.author","output.text","output.media"
|
|
653
|
-
'content_posts_get': {"pii":["output.author","output.text","output.media"
|
|
654
|
-
'content_posts_list': {"pii":["output.posts[].author","output.posts[].text","output.posts[].media"
|
|
655
|
-
'content_posts_submit': {"pii":["output.author","output.text","output.media"
|
|
636
|
+
'content_posts_create': {"pii":["output.author","output.text","output.media"],"label":"Create draft post"},
|
|
637
|
+
'content_posts_get': {"pii":["output.author","output.text","output.media"],"label":"Get post","options":{"id":"content_posts_list"}},
|
|
638
|
+
'content_posts_list': {"pii":["output.posts[].author","output.posts[].text","output.posts[].media"],"label":"List posts"},
|
|
639
|
+
'content_posts_submit': {"pii":["output.author","output.text","output.media"],"label":"Submit post for approval","options":{"id":"content_posts_list"}},
|
|
656
640
|
'content_publications_cancel': {"label":"Cancel publication","options":{"id":"content_publications_list"}},
|
|
657
641
|
'content_publications_publish': {"label":"Publish now","options":{"postId":"content_posts_list","channelId":"content_channels_list"},"completion_event":"content/publication.settled"},
|
|
658
642
|
'content_publications_schedule': {"label":"Schedule publication","options":{"postId":"content_posts_list","channelId":"content_channels_list"},"completion_event":"content/publication.settled"},
|
|
@@ -702,9 +686,6 @@ export const compositions: Record<string, ToolComposition> = {
|
|
|
702
686
|
'mail_template_unarchive': {"label":"Unarchive template","options":{"id":"mail_template_list"}},
|
|
703
687
|
'mail_template_update': {"label":"Update template","options":{"id":"mail_template_list"}},
|
|
704
688
|
'mail_usage_get': {"label":"Get usage"},
|
|
705
|
-
'playground_workflow_echo': {"pii":["input.note","output.note"],"label":"Store workflow echo","completion_event":"playground/workflow.echoed"},
|
|
706
|
-
'playground_workflow_ping': {"label":"Fire workflow ping","completion_event":"playground/workflow.ping"},
|
|
707
|
-
'playground_workflow_subjects-list': {"pii":["output.items[].display_name"],"label":"List workflow subjects"},
|
|
708
689
|
'support_agent_create': {"pii":["input.lesslyUserId","output.lesslyUserId"],"label":"Create agent"},
|
|
709
690
|
'support_agent_get': {"pii":["output.lesslyUserId"],"label":"Get agent","options":{"id":"support_agent_list"}},
|
|
710
691
|
'support_agent_list': {"pii":["output.agents[].lesslyUserId"],"label":"List agents"},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { OrganizationAuthMeInput, OrganizationAuthMeOutput,
|
|
3
|
+
export type { OrganizationAuthMeInput, OrganizationAuthMeOutput, OrganizationBillingBudgetClearInput, OrganizationBillingBudgetClearOutput, OrganizationBillingBudgetResumeInput, OrganizationBillingBudgetResumeOutput, OrganizationBillingBudgetSetInput, OrganizationBillingBudgetSetOutput, OrganizationBillingBudgetsGetInput, OrganizationBillingBudgetsGetOutput, OrganizationBindingsListInput, OrganizationBindingsListOutput, OrganizationClickupInstallInput, OrganizationClickupInstallOutput, OrganizationClickupListInstallationsInput, OrganizationClickupListInstallationsOutput, OrganizationCloudflareInstallInput, OrganizationCloudflareInstallOutput, OrganizationConnectorsApproveRequestInput, OrganizationConnectorsApproveRequestOutput, OrganizationConnectorsAttachInput, OrganizationConnectorsAttachOutput, OrganizationConnectorsDeleteInput, OrganizationConnectorsDeleteOutput, OrganizationConnectorsDenyRequestInput, OrganizationConnectorsDenyRequestOutput, OrganizationConnectorsDetachInput, OrganizationConnectorsDetachOutput, OrganizationConnectorsListAttachmentsInput, OrganizationConnectorsListAttachmentsOutput, OrganizationConnectorsListAvailableInput, OrganizationConnectorsListAvailableOutput, OrganizationConnectorsListInput, OrganizationConnectorsListOrgInput, OrganizationConnectorsListOrgOutput, OrganizationConnectorsListOutput, OrganizationConnectorsListRequestsInput, OrganizationConnectorsListRequestsOutput, OrganizationConnectorsRemoveInput, OrganizationConnectorsRemoveOutput, OrganizationConnectorsRequestInput, OrganizationConnectorsRequestOutput, OrganizationCreateInput, OrganizationCreateOutput, OrganizationDomainsAddInput, OrganizationDomainsAddOutput, OrganizationDomainsGetInput, OrganizationDomainsGetOutput, OrganizationDomainsListInput, OrganizationDomainsListOutput, OrganizationDomainsRemoveInput, OrganizationDomainsRemoveOutput, OrganizationDomainsSetModeInput, OrganizationDomainsSetModeOutput, OrganizationExtensionsListInstalledInput, OrganizationExtensionsListInstalledOutput, OrganizationFeedbackSubmitInput, OrganizationFeedbackSubmitOutput, OrganizationGdriveInstallInput, OrganizationGdriveInstallOutput, OrganizationGithubInstallInput, OrganizationGithubInstallOutput, OrganizationGithubListInstallationsInput, OrganizationGithubListInstallationsOutput, OrganizationGoogleadsInstallInput, OrganizationGoogleadsInstallOutput, OrganizationGroupsCreateInput, OrganizationGroupsCreateOutput, OrganizationGroupsDeleteInput, OrganizationGroupsDeleteOutput, OrganizationGroupsGetInput, OrganizationGroupsGetOutput, OrganizationGroupsGrantRemoveInput, OrganizationGroupsGrantRemoveOutput, OrganizationGroupsGrantSetInput, OrganizationGroupsGrantSetOutput, OrganizationGroupsListInput, OrganizationGroupsListOutput, OrganizationGroupsMemberAddInput, OrganizationGroupsMemberAddOutput, OrganizationGroupsMemberRemoveInput, OrganizationGroupsMemberRemoveOutput, OrganizationGroupsUpdateInput, OrganizationGroupsUpdateOutput, OrganizationLinkedinMemberInstallInput, OrganizationLinkedinMemberInstallOutput, OrganizationListInput, OrganizationListOutput, OrganizationMemberAcceptInviteInput, OrganizationMemberAcceptInviteOutput, OrganizationMemberInviteInput, OrganizationMemberInviteOutput, OrganizationMemberListInput, OrganizationMemberListInvitationsInput, OrganizationMemberListInvitationsOutput, OrganizationMemberListOutput, OrganizationMemberListProductAccessInput, OrganizationMemberListProductAccessOutput, OrganizationMemberRemoveInput, OrganizationMemberRemoveOutput, OrganizationMemberRevokeInvitationInput, OrganizationMemberRevokeInvitationOutput, OrganizationMemberSetRoleInput, OrganizationMemberSetRoleOutput, OrganizationMemberShareProductInput, OrganizationMemberShareProductOutput, OrganizationMemberUnshareProductInput, OrganizationMemberUnshareProductOutput, OrganizationMembersAssignRoleInput, OrganizationMembersAssignRoleOutput, OrganizationPermissionCatalogInput, OrganizationPermissionCatalogOutput, OrganizationPrincipalGrantsApproveInput, OrganizationPrincipalGrantsApproveOutput, OrganizationPrincipalGrantsListInput, OrganizationPrincipalGrantsListOutput, OrganizationPrincipalGrantsRevokeInput, OrganizationPrincipalGrantsRevokeOutput, OrganizationProductCreateInput, OrganizationProductCreateOutput, OrganizationProductErasureGetInput, OrganizationProductErasureGetOutput, OrganizationProductErasureListInput, OrganizationProductErasureListOutput, OrganizationProductErasureRequestInput, OrganizationProductErasureRequestOutput, OrganizationProductListAccessInput, OrganizationProductListAccessOutput, OrganizationProductListInput, OrganizationProductListMembersInput, OrganizationProductListMembersOutput, OrganizationProductListOutput, OrganizationProductListRolesInput, OrganizationProductListRolesOutput, OrganizationProductMeInput, OrganizationProductMeOutput, OrganizationProductRevokeAccessInput, OrganizationProductRevokeAccessOutput, OrganizationProductSelectInput, OrganizationProductSelectOutput, OrganizationProductSetAccessInput, OrganizationProductSetAccessOutput, OrganizationProductUpdateInput, OrganizationProductUpdateOutput, OrganizationPublicKeysCreateInput, OrganizationPublicKeysCreateOutput, OrganizationPublicKeysListInput, OrganizationPublicKeysListOutput, OrganizationPublicKeysRevokeInput, OrganizationPublicKeysRevokeOutput, OrganizationPublicKeysUpdateScopeInput, OrganizationPublicKeysUpdateScopeOutput, OrganizationPublicRoutesListInput, OrganizationPublicRoutesListOutput, OrganizationRedditInstallInput, OrganizationRedditInstallOutput, OrganizationRolesCreateInput, OrganizationRolesCreateOutput, OrganizationRolesDeleteInput, OrganizationRolesDeleteOutput, OrganizationRolesGetInput, OrganizationRolesGetOutput, OrganizationRolesListInput, OrganizationRolesListOutput, OrganizationRolesUpdateInput, OrganizationRolesUpdateOutput, OrganizationSecurityMfaEnableInput, OrganizationSecurityMfaEnableOutput, OrganizationSelectInput, OrganizationSelectOutput, OrganizationSupportThreadCreateInput, OrganizationSupportThreadCreateOutput, OrganizationSupportThreadGetInput, OrganizationSupportThreadGetOutput, OrganizationSupportThreadReplyInput, OrganizationSupportThreadReplyOutput, OrganizationSupportThreadsListInput, OrganizationSupportThreadsListOutput, OrganizationXInstallInput, OrganizationXInstallOutput, OrganizationYoutubeInstallInput, OrganizationYoutubeInstallOutput } from '../types.gen';
|
|
@@ -3,10 +3,11 @@ import type { GeneratedClient } from '../client.gen';
|
|
|
3
3
|
import type {
|
|
4
4
|
OrganizationAuthMeInput,
|
|
5
5
|
OrganizationAuthMeOutput,
|
|
6
|
+
OrganizationBillingBudgetClearInput,
|
|
7
|
+
OrganizationBillingBudgetResumeInput,
|
|
8
|
+
OrganizationBillingBudgetSetInput,
|
|
6
9
|
OrganizationBillingBudgetsGetInput,
|
|
7
10
|
OrganizationBillingBudgetsGetOutput,
|
|
8
|
-
OrganizationBillingCapsClearInput,
|
|
9
|
-
OrganizationBillingCapsSetInput,
|
|
10
11
|
OrganizationBindingsListInput,
|
|
11
12
|
OrganizationBindingsListOutput,
|
|
12
13
|
OrganizationClickupInstallInput,
|
|
@@ -132,19 +133,24 @@ export const organizationAuthMeQueryOptions = (sdk: GeneratedClient, input: Orga
|
|
|
132
133
|
queryFn: () => sdk['organization']['auth']['me'](input),
|
|
133
134
|
});
|
|
134
135
|
|
|
135
|
-
export const
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
export const organizationBillingBudgetClearMutationOptions = (sdk: GeneratedClient) => ({
|
|
137
|
+
mutationKey: ['organization', 'billing-budget', 'clear'],
|
|
138
|
+
mutationFn: (input: OrganizationBillingBudgetClearInput) => sdk['organization']['billing-budget']['clear'](input),
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
export const organizationBillingBudgetResumeMutationOptions = (sdk: GeneratedClient) => ({
|
|
142
|
+
mutationKey: ['organization', 'billing-budget', 'resume'],
|
|
143
|
+
mutationFn: (input: OrganizationBillingBudgetResumeInput) => sdk['organization']['billing-budget']['resume'](input),
|
|
138
144
|
});
|
|
139
145
|
|
|
140
|
-
export const
|
|
141
|
-
mutationKey: ['organization', 'billing-
|
|
142
|
-
mutationFn: (input:
|
|
146
|
+
export const organizationBillingBudgetSetMutationOptions = (sdk: GeneratedClient) => ({
|
|
147
|
+
mutationKey: ['organization', 'billing-budget', 'set'],
|
|
148
|
+
mutationFn: (input: OrganizationBillingBudgetSetInput) => sdk['organization']['billing-budget']['set'](input),
|
|
143
149
|
});
|
|
144
150
|
|
|
145
|
-
export const
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
export const organizationBillingBudgetsGetQueryOptions = (sdk: GeneratedClient, input: OrganizationBillingBudgetsGetInput) => ({
|
|
152
|
+
queryKey: ['organization', 'billing-budgets', 'get', input] as const,
|
|
153
|
+
queryFn: () => sdk['organization']['billing-budgets']['get'](input),
|
|
148
154
|
});
|
|
149
155
|
|
|
150
156
|
export const organizationBindingsListQueryOptions = (sdk: GeneratedClient, input: OrganizationBindingsListInput) => ({
|