@lepsto/sdk-app 89.3.0 → 89.5.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 (35) hide show
  1. package/CHANGELOG.md +33 -1
  2. package/dist/_types/gen/client.gen.d.ts +11 -38
  3. package/dist/_types/gen/mail/index.d.ts +1 -1
  4. package/dist/_types/gen/mail/queryOptions.gen.d.ts +25 -1
  5. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  6. package/dist/_types/gen/types.gen.d.ts +434 -331
  7. package/dist/index.cjs +108 -227
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +11295 -22
  10. package/dist/index.js.map +1 -1
  11. package/dist/mail/index.cjs +30 -0
  12. package/dist/mail/index.cjs.map +1 -1
  13. package/dist/mail/index.js +25 -1
  14. package/dist/mail/index.js.map +1 -1
  15. package/package.json +2 -12
  16. package/src/gen/bindings.gen.ts +97 -216
  17. package/src/gen/client.gen.ts +22 -71
  18. package/src/gen/mail/index.ts +1 -1
  19. package/src/gen/mail/queryOptions.gen.ts +38 -0
  20. package/src/gen/manifest.gen.ts +13 -21
  21. package/src/gen/types.gen.ts +460 -392
  22. package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
  23. package/dist/_types/gen/playground/index.d.ts +0 -3
  24. package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -70
  25. package/dist/chunk-IWBH5QNX.js +0 -11406
  26. package/dist/chunk-IWBH5QNX.js.map +0 -1
  27. package/dist/playground/index.cjs +0 -106
  28. package/dist/playground/index.cjs.map +0 -1
  29. package/dist/playground/index.d.cts +0 -1
  30. package/dist/playground/index.d.ts +0 -1
  31. package/dist/playground/index.js +0 -78
  32. package/dist/playground/index.js.map +0 -1
  33. package/src/gen/playground/connect.gen.ts +0 -9
  34. package/src/gen/playground/index.ts +0 -4
  35. package/src/gen/playground/queryOptions.gen.ts +0 -119
@@ -4813,6 +4813,19 @@ export const bindings: BindingsMap = {
4813
4813
  }
4814
4814
  },
4815
4815
  "template": {
4816
+ "archive": {
4817
+ "level": "write",
4818
+ "method": "POST",
4819
+ "operationKey": "mail_template_archive",
4820
+ "params": [
4821
+ {
4822
+ "in": "path",
4823
+ "name": "id"
4824
+ }
4825
+ ],
4826
+ "path": "/mail/templates/:id/archive",
4827
+ "readOnly": false
4828
+ },
4816
4829
  "create": {
4817
4830
  "level": "write",
4818
4831
  "method": "POST",
@@ -4872,6 +4885,12 @@ export const bindings: BindingsMap = {
4872
4885
  "level": "read",
4873
4886
  "method": "GET",
4874
4887
  "operationKey": "mail_template_list",
4888
+ "params": [
4889
+ {
4890
+ "in": "query",
4891
+ "name": "include_archived"
4892
+ }
4893
+ ],
4875
4894
  "path": "/mail/templates",
4876
4895
  "readOnly": true
4877
4896
  },
@@ -4888,6 +4907,36 @@ export const bindings: BindingsMap = {
4888
4907
  "path": "/mail/templates/:id/publish",
4889
4908
  "readOnly": false
4890
4909
  },
4910
+ "restore": {
4911
+ "level": "write",
4912
+ "method": "POST",
4913
+ "operationKey": "mail_template_restore",
4914
+ "params": [
4915
+ {
4916
+ "in": "path",
4917
+ "name": "id"
4918
+ },
4919
+ {
4920
+ "in": "path",
4921
+ "name": "revision"
4922
+ }
4923
+ ],
4924
+ "path": "/mail/templates/:id/revisions/:revision/restore",
4925
+ "readOnly": false
4926
+ },
4927
+ "unarchive": {
4928
+ "level": "write",
4929
+ "method": "POST",
4930
+ "operationKey": "mail_template_unarchive",
4931
+ "params": [
4932
+ {
4933
+ "in": "path",
4934
+ "name": "id"
4935
+ }
4936
+ ],
4937
+ "path": "/mail/templates/:id/unarchive",
4938
+ "readOnly": false
4939
+ },
4891
4940
  "update": {
4892
4941
  "level": "write",
4893
4942
  "method": "PATCH",
@@ -4922,6 +4971,53 @@ export const bindings: BindingsMap = {
4922
4971
  "readOnly": false
4923
4972
  }
4924
4973
  },
4974
+ "template-draft": {
4975
+ "discard": {
4976
+ "level": "write",
4977
+ "method": "DELETE",
4978
+ "operationKey": "mail_template_draft_discard",
4979
+ "params": [
4980
+ {
4981
+ "in": "path",
4982
+ "name": "id"
4983
+ }
4984
+ ],
4985
+ "path": "/mail/templates/:id/draft",
4986
+ "readOnly": false
4987
+ }
4988
+ },
4989
+ "template-revision": {
4990
+ "get": {
4991
+ "level": "read",
4992
+ "method": "GET",
4993
+ "operationKey": "mail_template_revision_get",
4994
+ "params": [
4995
+ {
4996
+ "in": "path",
4997
+ "name": "id"
4998
+ },
4999
+ {
5000
+ "in": "path",
5001
+ "name": "revision"
5002
+ }
5003
+ ],
5004
+ "path": "/mail/templates/:id/revisions/:revision",
5005
+ "readOnly": true
5006
+ },
5007
+ "list": {
5008
+ "level": "read",
5009
+ "method": "GET",
5010
+ "operationKey": "mail_template_revision_list",
5011
+ "params": [
5012
+ {
5013
+ "in": "path",
5014
+ "name": "id"
5015
+ }
5016
+ ],
5017
+ "path": "/mail/templates/:id/revisions",
5018
+ "readOnly": true
5019
+ }
5020
+ },
4925
5021
  "usage": {
4926
5022
  "get": {
4927
5023
  "level": "read",
@@ -7279,213 +7375,6 @@ export const bindings: BindingsMap = {
7279
7375
  }
7280
7376
  }
7281
7377
  },
7282
- "playground": {
7283
- "analytics": {
7284
- "overview": {
7285
- "level": "read",
7286
- "method": "POST",
7287
- "operationKey": "playground_analytics_overview",
7288
- "params": [
7289
- {
7290
- "in": "body",
7291
- "name": "limit"
7292
- }
7293
- ],
7294
- "path": "/playground/analytics/overview",
7295
- "readOnly": true
7296
- }
7297
- },
7298
- "billing": {
7299
- "entitlements": {
7300
- "level": "read",
7301
- "method": "POST",
7302
- "operationKey": "playground_billing_entitlements",
7303
- "path": "/playground/billing/entitlements",
7304
- "readOnly": true
7305
- },
7306
- "record-usage": {
7307
- "level": "write",
7308
- "method": "POST",
7309
- "operationKey": "playground_billing_record-usage",
7310
- "params": [
7311
- {
7312
- "in": "body",
7313
- "name": "value"
7314
- }
7315
- ],
7316
- "path": "/playground/billing/usage",
7317
- "readOnly": false
7318
- }
7319
- },
7320
- "clickup": {
7321
- "create-task": {
7322
- "level": "write",
7323
- "method": "POST",
7324
- "operationKey": "playground_clickup_create-task",
7325
- "params": [
7326
- {
7327
- "in": "body",
7328
- "name": "listId"
7329
- },
7330
- {
7331
- "in": "body",
7332
- "name": "name"
7333
- }
7334
- ],
7335
- "path": "/playground/clickup/tasks",
7336
- "readOnly": false
7337
- },
7338
- "get-last-webhook": {
7339
- "level": "read",
7340
- "method": "GET",
7341
- "operationKey": "playground_clickup_get-last-webhook",
7342
- "path": "/playground/clickup/webhooks/last",
7343
- "readOnly": true
7344
- },
7345
- "get-overview": {
7346
- "level": "read",
7347
- "method": "GET",
7348
- "operationKey": "playground_clickup_get-overview",
7349
- "path": "/playground/clickup/overview",
7350
- "readOnly": true
7351
- }
7352
- },
7353
- "echo": {
7354
- "ping": {
7355
- "level": "read",
7356
- "method": "POST",
7357
- "operationKey": "playground_echo_ping",
7358
- "params": [
7359
- {
7360
- "in": "body",
7361
- "name": "message"
7362
- }
7363
- ],
7364
- "path": "/playground/echo/ping",
7365
- "readOnly": true
7366
- }
7367
- },
7368
- "gdrive": {
7369
- "get-last-change": {
7370
- "level": "read",
7371
- "method": "GET",
7372
- "operationKey": "playground_gdrive_get-last-change",
7373
- "path": "/playground/gdrive/changes/last",
7374
- "readOnly": true
7375
- },
7376
- "read-file": {
7377
- "level": "read",
7378
- "method": "POST",
7379
- "operationKey": "playground_gdrive_read-file",
7380
- "params": [
7381
- {
7382
- "in": "body",
7383
- "name": "fileId"
7384
- }
7385
- ],
7386
- "path": "/playground/gdrive/file",
7387
- "readOnly": true
7388
- }
7389
- },
7390
- "googleads": {
7391
- "read-customer": {
7392
- "level": "read",
7393
- "method": "POST",
7394
- "operationKey": "playground_googleads_read-customer",
7395
- "path": "/playground/googleads/customer",
7396
- "readOnly": true
7397
- }
7398
- },
7399
- "lifecycle": {
7400
- "get-state": {
7401
- "level": "read",
7402
- "method": "GET",
7403
- "operationKey": "playground_lifecycle_get-state",
7404
- "path": "/playground/lifecycle/state",
7405
- "readOnly": true
7406
- },
7407
- "list-events": {
7408
- "level": "read",
7409
- "method": "GET",
7410
- "operationKey": "playground_lifecycle_list-events",
7411
- "path": "/playground/lifecycle/events",
7412
- "readOnly": true
7413
- }
7414
- },
7415
- "webhook": {
7416
- "get-last": {
7417
- "level": "read",
7418
- "method": "GET",
7419
- "operationKey": "playground_webhook_get-last",
7420
- "path": "/playground/webhooks/last",
7421
- "readOnly": true
7422
- }
7423
- },
7424
- "workflow": {
7425
- "echo": {
7426
- "level": "write",
7427
- "method": "POST",
7428
- "operationKey": "playground_workflow_echo",
7429
- "params": [
7430
- {
7431
- "in": "body",
7432
- "name": "note"
7433
- },
7434
- {
7435
- "in": "body",
7436
- "name": "tags"
7437
- }
7438
- ],
7439
- "path": "/playground/workflow/echo",
7440
- "readOnly": false
7441
- },
7442
- "echo-list": {
7443
- "level": "read",
7444
- "method": "GET",
7445
- "operationKey": "playground_workflow_echo-list",
7446
- "path": "/playground/workflow/echoes",
7447
- "readOnly": true
7448
- },
7449
- "ping": {
7450
- "level": "write",
7451
- "method": "POST",
7452
- "operationKey": "playground_workflow_ping",
7453
- "params": [
7454
- {
7455
- "in": "body",
7456
- "name": "kind"
7457
- }
7458
- ],
7459
- "path": "/playground/workflow/ping",
7460
- "readOnly": false
7461
- },
7462
- "subjects-list": {
7463
- "level": "read",
7464
- "method": "GET",
7465
- "operationKey": "playground_workflow_subjects-list",
7466
- "params": [
7467
- {
7468
- "in": "query",
7469
- "name": "last_activity_before"
7470
- },
7471
- {
7472
- "in": "query",
7473
- "name": "last_activity_after"
7474
- },
7475
- {
7476
- "in": "query",
7477
- "name": "limit"
7478
- },
7479
- {
7480
- "in": "query",
7481
- "name": "cursor"
7482
- }
7483
- ],
7484
- "path": "/playground/workflow/subjects",
7485
- "readOnly": true
7486
- }
7487
- }
7488
- },
7489
7378
  "realtime": {
7490
7379
  "archive": {
7491
7380
  "export": {
@@ -11394,12 +11283,4 @@ export const bindings: BindingsMap = {
11394
11283
  }
11395
11284
  };
11396
11285
 
11397
- export const wsBindings: WsBindingsMap = {
11398
- "playground": {
11399
- "ws": {
11400
- "echo": {
11401
- "path": "/playground/ws/echo"
11402
- }
11403
- }
11404
- }
11405
- };
11286
+ export const wsBindings: WsBindingsMap = {};
@@ -507,16 +507,28 @@ import type {
507
507
  MailSuppressionListOutput,
508
508
  MailSuppressionRemoveInput,
509
509
  MailSuppressionRemoveOutput,
510
+ MailTemplateArchiveInput,
511
+ MailTemplateArchiveOutput,
510
512
  MailTemplateCreateInput,
511
513
  MailTemplateCreateOutput,
512
514
  MailTemplateDeleteInput,
513
515
  MailTemplateDeleteOutput,
516
+ MailTemplateDraftDiscardInput,
517
+ MailTemplateDraftDiscardOutput,
514
518
  MailTemplateGetInput,
515
519
  MailTemplateGetOutput,
516
520
  MailTemplateListInput,
517
521
  MailTemplateListOutput,
518
522
  MailTemplatePublishInput,
519
523
  MailTemplatePublishOutput,
524
+ MailTemplateRestoreInput,
525
+ MailTemplateRestoreOutput,
526
+ MailTemplateRevisionGetInput,
527
+ MailTemplateRevisionGetOutput,
528
+ MailTemplateRevisionListInput,
529
+ MailTemplateRevisionListOutput,
530
+ MailTemplateUnarchiveInput,
531
+ MailTemplateUnarchiveOutput,
520
532
  MailTemplateUpdateInput,
521
533
  MailTemplateUpdateOutput,
522
534
  MailUsageGetInput,
@@ -783,40 +795,6 @@ import type {
783
795
  OrganizationXInstallOutput,
784
796
  OrganizationYoutubeInstallInput,
785
797
  OrganizationYoutubeInstallOutput,
786
- PlaygroundAnalyticsOverviewInput,
787
- PlaygroundAnalyticsOverviewOutput,
788
- PlaygroundBillingEntitlementsInput,
789
- PlaygroundBillingEntitlementsOutput,
790
- PlaygroundBillingRecordUsageInput,
791
- PlaygroundBillingRecordUsageOutput,
792
- PlaygroundClickupCreateTaskInput,
793
- PlaygroundClickupCreateTaskOutput,
794
- PlaygroundClickupGetLastWebhookInput,
795
- PlaygroundClickupGetLastWebhookOutput,
796
- PlaygroundClickupGetOverviewInput,
797
- PlaygroundClickupGetOverviewOutput,
798
- PlaygroundEchoPingInput,
799
- PlaygroundEchoPingOutput,
800
- PlaygroundGdriveGetLastChangeInput,
801
- PlaygroundGdriveGetLastChangeOutput,
802
- PlaygroundGdriveReadFileInput,
803
- PlaygroundGdriveReadFileOutput,
804
- PlaygroundGoogleadsReadCustomerInput,
805
- PlaygroundGoogleadsReadCustomerOutput,
806
- PlaygroundLifecycleGetStateInput,
807
- PlaygroundLifecycleGetStateOutput,
808
- PlaygroundLifecycleListEventsInput,
809
- PlaygroundLifecycleListEventsOutput,
810
- PlaygroundWebhookGetLastInput,
811
- PlaygroundWebhookGetLastOutput,
812
- PlaygroundWorkflowEchoInput,
813
- PlaygroundWorkflowEchoListInput,
814
- PlaygroundWorkflowEchoListOutput,
815
- PlaygroundWorkflowEchoOutput,
816
- PlaygroundWorkflowPingInput,
817
- PlaygroundWorkflowPingOutput,
818
- PlaygroundWorkflowSubjectsListInput,
819
- PlaygroundWorkflowSubjectsListOutput,
820
798
  RealtimeArchiveExportInput,
821
799
  RealtimeArchiveExportOutput,
822
800
  RealtimeArchiveExportStatusInput,
@@ -1693,13 +1671,23 @@ export interface GeneratedClient {
1693
1671
  remove: ((input: MailSuppressionRemoveInput) => Promise<MailSuppressionRemoveOutput>) & Operation;
1694
1672
  };
1695
1673
  template: {
1674
+ archive: ((input: MailTemplateArchiveInput) => Promise<MailTemplateArchiveOutput>) & Operation;
1696
1675
  create: ((input: MailTemplateCreateInput) => Promise<MailTemplateCreateOutput>) & Operation;
1697
1676
  delete: ((input: MailTemplateDeleteInput) => Promise<MailTemplateDeleteOutput>) & Operation;
1698
1677
  get: ((input: MailTemplateGetInput) => Promise<MailTemplateGetOutput>) & Operation;
1699
1678
  list: ((input: MailTemplateListInput) => Promise<MailTemplateListOutput>) & Operation;
1700
1679
  publish: ((input: MailTemplatePublishInput) => Promise<MailTemplatePublishOutput>) & Operation;
1680
+ restore: ((input: MailTemplateRestoreInput) => Promise<MailTemplateRestoreOutput>) & Operation;
1681
+ unarchive: ((input: MailTemplateUnarchiveInput) => Promise<MailTemplateUnarchiveOutput>) & Operation;
1701
1682
  update: ((input: MailTemplateUpdateInput) => Promise<MailTemplateUpdateOutput>) & Operation;
1702
1683
  };
1684
+ 'template-draft': {
1685
+ discard: ((input: MailTemplateDraftDiscardInput) => Promise<MailTemplateDraftDiscardOutput>) & Operation;
1686
+ };
1687
+ 'template-revision': {
1688
+ get: ((input: MailTemplateRevisionGetInput) => Promise<MailTemplateRevisionGetOutput>) & Operation;
1689
+ list: ((input: MailTemplateRevisionListInput) => Promise<MailTemplateRevisionListOutput>) & Operation;
1690
+ };
1703
1691
  usage: {
1704
1692
  get: ((input: MailUsageGetInput) => Promise<MailUsageGetOutput>) & Operation;
1705
1693
  };
@@ -1925,43 +1913,6 @@ export interface GeneratedClient {
1925
1913
  install: ((input: OrganizationYoutubeInstallInput) => Promise<OrganizationYoutubeInstallOutput>) & Operation;
1926
1914
  };
1927
1915
  };
1928
- playground: {
1929
- analytics: {
1930
- overview: ((input: PlaygroundAnalyticsOverviewInput) => Promise<PlaygroundAnalyticsOverviewOutput>) & Operation;
1931
- };
1932
- billing: {
1933
- entitlements: ((input: PlaygroundBillingEntitlementsInput) => Promise<PlaygroundBillingEntitlementsOutput>) & Operation;
1934
- 'record-usage': ((input: PlaygroundBillingRecordUsageInput) => Promise<PlaygroundBillingRecordUsageOutput>) & Operation;
1935
- };
1936
- clickup: {
1937
- 'create-task': ((input: PlaygroundClickupCreateTaskInput) => Promise<PlaygroundClickupCreateTaskOutput>) & Operation;
1938
- 'get-last-webhook': ((input: PlaygroundClickupGetLastWebhookInput) => Promise<PlaygroundClickupGetLastWebhookOutput>) & Operation;
1939
- 'get-overview': ((input: PlaygroundClickupGetOverviewInput) => Promise<PlaygroundClickupGetOverviewOutput>) & Operation;
1940
- };
1941
- echo: {
1942
- ping: ((input: PlaygroundEchoPingInput) => Promise<PlaygroundEchoPingOutput>) & Operation;
1943
- };
1944
- gdrive: {
1945
- 'get-last-change': ((input: PlaygroundGdriveGetLastChangeInput) => Promise<PlaygroundGdriveGetLastChangeOutput>) & Operation;
1946
- 'read-file': ((input: PlaygroundGdriveReadFileInput) => Promise<PlaygroundGdriveReadFileOutput>) & Operation;
1947
- };
1948
- googleads: {
1949
- 'read-customer': ((input: PlaygroundGoogleadsReadCustomerInput) => Promise<PlaygroundGoogleadsReadCustomerOutput>) & Operation;
1950
- };
1951
- lifecycle: {
1952
- 'get-state': ((input: PlaygroundLifecycleGetStateInput) => Promise<PlaygroundLifecycleGetStateOutput>) & Operation;
1953
- 'list-events': ((input: PlaygroundLifecycleListEventsInput) => Promise<PlaygroundLifecycleListEventsOutput>) & Operation;
1954
- };
1955
- webhook: {
1956
- 'get-last': ((input: PlaygroundWebhookGetLastInput) => Promise<PlaygroundWebhookGetLastOutput>) & Operation;
1957
- };
1958
- workflow: {
1959
- echo: ((input: PlaygroundWorkflowEchoInput) => Promise<PlaygroundWorkflowEchoOutput>) & Operation;
1960
- 'echo-list': ((input: PlaygroundWorkflowEchoListInput) => Promise<PlaygroundWorkflowEchoListOutput>) & Operation;
1961
- ping: ((input: PlaygroundWorkflowPingInput) => Promise<PlaygroundWorkflowPingOutput>) & Operation;
1962
- 'subjects-list': ((input: PlaygroundWorkflowSubjectsListInput) => Promise<PlaygroundWorkflowSubjectsListOutput>) & Operation;
1963
- };
1964
- };
1965
1916
  realtime: {
1966
1917
  archive: {
1967
1918
  export: ((input: RealtimeArchiveExportInput) => Promise<RealtimeArchiveExportOutput>) & Operation;
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.gen';
3
- export type { MailApikeyCreateInput, MailApikeyCreateOutput, MailApikeyDeleteInput, MailApikeyDeleteOutput, MailApikeyListInput, MailApikeyListOutput, MailAudienceCreateInput, MailAudienceCreateOutput, MailAudienceDeleteInput, MailAudienceDeleteOutput, MailAudienceGetInput, MailAudienceGetOutput, MailAudienceListInput, MailAudienceListOutput, MailAudienceUpdateInput, MailAudienceUpdateOutput, MailBroadcastCancelInput, MailBroadcastCancelOutput, MailBroadcastCreateInput, MailBroadcastCreateOutput, MailBroadcastDeleteInput, MailBroadcastDeleteOutput, MailBroadcastGetInput, MailBroadcastGetOutput, MailBroadcastListInput, MailBroadcastListOutput, MailBroadcastQueueInput, MailBroadcastQueueOutput, MailBroadcastStatsInput, MailBroadcastStatsOutput, MailBroadcastUpdateInput, MailBroadcastUpdateOutput, MailContactCreateInput, MailContactCreateOutput, MailContactDeleteInput, MailContactDeleteOutput, MailContactGetInput, MailContactGetOutput, MailContactListInput, MailContactListOutput, MailContactUpdateInput, MailContactUpdateOutput, MailDomainAllowedListInput, MailDomainAllowedListOutput, MailDomainCreateInput, MailDomainCreateOutput, MailDomainDeleteInput, MailDomainDeleteOutput, MailDomainGetInput, MailDomainGetOutput, MailDomainListInput, MailDomainListOutput, MailDomainUpdateInput, MailDomainUpdateOutput, MailDomainVerifyInput, MailDomainVerifyOutput, MailEmailCancelInput, MailEmailCancelOutput, MailEmailGetInput, MailEmailGetOutput, MailEmailSendBatchInput, MailEmailSendBatchOutput, MailEmailSendInput, MailEmailSendOutput, MailEmailUpdateInput, MailEmailUpdateOutput, MailReputationGetInput, MailReputationGetOutput, MailStatsGetInput, MailStatsGetOutput, MailSuppressionAddInput, MailSuppressionAddOutput, MailSuppressionListInput, MailSuppressionListOutput, MailSuppressionRemoveInput, MailSuppressionRemoveOutput, MailTemplateCreateInput, MailTemplateCreateOutput, MailTemplateDeleteInput, MailTemplateDeleteOutput, MailTemplateGetInput, MailTemplateGetOutput, MailTemplateListInput, MailTemplateListOutput, MailTemplatePublishInput, MailTemplatePublishOutput, MailTemplateUpdateInput, MailTemplateUpdateOutput, MailUsageGetInput, MailUsageGetOutput, MailWebhookCreateInput, MailWebhookCreateOutput, MailWebhookDeleteInput, MailWebhookDeleteOutput, MailWebhookDeliveriesListInput, MailWebhookDeliveriesListOutput, MailWebhookGetInput, MailWebhookGetOutput, MailWebhookListInput, MailWebhookListOutput, MailWebhookUpdateInput, MailWebhookUpdateOutput } from '../types.gen';
3
+ export type { MailApikeyCreateInput, MailApikeyCreateOutput, MailApikeyDeleteInput, MailApikeyDeleteOutput, MailApikeyListInput, MailApikeyListOutput, MailAudienceCreateInput, MailAudienceCreateOutput, MailAudienceDeleteInput, MailAudienceDeleteOutput, MailAudienceGetInput, MailAudienceGetOutput, MailAudienceListInput, MailAudienceListOutput, MailAudienceUpdateInput, MailAudienceUpdateOutput, MailBroadcastCancelInput, MailBroadcastCancelOutput, MailBroadcastCreateInput, MailBroadcastCreateOutput, MailBroadcastDeleteInput, MailBroadcastDeleteOutput, MailBroadcastGetInput, MailBroadcastGetOutput, MailBroadcastListInput, MailBroadcastListOutput, MailBroadcastQueueInput, MailBroadcastQueueOutput, MailBroadcastStatsInput, MailBroadcastStatsOutput, MailBroadcastUpdateInput, MailBroadcastUpdateOutput, MailContactCreateInput, MailContactCreateOutput, MailContactDeleteInput, MailContactDeleteOutput, MailContactGetInput, MailContactGetOutput, MailContactListInput, MailContactListOutput, MailContactUpdateInput, MailContactUpdateOutput, MailDomainAllowedListInput, MailDomainAllowedListOutput, MailDomainCreateInput, MailDomainCreateOutput, MailDomainDeleteInput, MailDomainDeleteOutput, MailDomainGetInput, MailDomainGetOutput, MailDomainListInput, MailDomainListOutput, MailDomainUpdateInput, MailDomainUpdateOutput, MailDomainVerifyInput, MailDomainVerifyOutput, MailEmailCancelInput, MailEmailCancelOutput, MailEmailGetInput, MailEmailGetOutput, MailEmailSendBatchInput, MailEmailSendBatchOutput, MailEmailSendInput, MailEmailSendOutput, MailEmailUpdateInput, MailEmailUpdateOutput, MailReputationGetInput, MailReputationGetOutput, MailStatsGetInput, MailStatsGetOutput, MailSuppressionAddInput, MailSuppressionAddOutput, MailSuppressionListInput, MailSuppressionListOutput, MailSuppressionRemoveInput, MailSuppressionRemoveOutput, MailTemplateArchiveInput, MailTemplateArchiveOutput, MailTemplateCreateInput, MailTemplateCreateOutput, MailTemplateDeleteInput, MailTemplateDeleteOutput, MailTemplateDraftDiscardInput, MailTemplateDraftDiscardOutput, MailTemplateGetInput, MailTemplateGetOutput, MailTemplateListInput, MailTemplateListOutput, MailTemplatePublishInput, MailTemplatePublishOutput, MailTemplateRestoreInput, MailTemplateRestoreOutput, MailTemplateRevisionGetInput, MailTemplateRevisionGetOutput, MailTemplateRevisionListInput, MailTemplateRevisionListOutput, MailTemplateUnarchiveInput, MailTemplateUnarchiveOutput, MailTemplateUpdateInput, MailTemplateUpdateOutput, MailUsageGetInput, MailUsageGetOutput, MailWebhookCreateInput, MailWebhookCreateOutput, MailWebhookDeleteInput, MailWebhookDeleteOutput, MailWebhookDeliveriesListInput, MailWebhookDeliveriesListOutput, MailWebhookGetInput, MailWebhookGetOutput, MailWebhookListInput, MailWebhookListOutput, MailWebhookUpdateInput, MailWebhookUpdateOutput } from '../types.gen';
@@ -54,13 +54,21 @@ import type {
54
54
  MailSuppressionListInput,
55
55
  MailSuppressionListOutput,
56
56
  MailSuppressionRemoveInput,
57
+ MailTemplateArchiveInput,
57
58
  MailTemplateCreateInput,
58
59
  MailTemplateDeleteInput,
60
+ MailTemplateDraftDiscardInput,
59
61
  MailTemplateGetInput,
60
62
  MailTemplateGetOutput,
61
63
  MailTemplateListInput,
62
64
  MailTemplateListOutput,
63
65
  MailTemplatePublishInput,
66
+ MailTemplateRestoreInput,
67
+ MailTemplateRevisionGetInput,
68
+ MailTemplateRevisionGetOutput,
69
+ MailTemplateRevisionListInput,
70
+ MailTemplateRevisionListOutput,
71
+ MailTemplateUnarchiveInput,
64
72
  MailTemplateUpdateInput,
65
73
  MailUsageGetInput,
66
74
  MailUsageGetOutput,
@@ -265,6 +273,11 @@ export const mailSuppressionRemoveMutationOptions = (sdk: GeneratedClient) => ({
265
273
  mutationFn: (input: MailSuppressionRemoveInput) => sdk['mail']['suppression']['remove'](input),
266
274
  });
267
275
 
276
+ export const mailTemplateArchiveMutationOptions = (sdk: GeneratedClient) => ({
277
+ mutationKey: ['mail', 'template', 'archive'],
278
+ mutationFn: (input: MailTemplateArchiveInput) => sdk['mail']['template']['archive'](input),
279
+ });
280
+
268
281
  export const mailTemplateCreateMutationOptions = (sdk: GeneratedClient) => ({
269
282
  mutationKey: ['mail', 'template', 'create'],
270
283
  mutationFn: (input: MailTemplateCreateInput) => sdk['mail']['template']['create'](input),
@@ -275,6 +288,11 @@ export const mailTemplateDeleteMutationOptions = (sdk: GeneratedClient) => ({
275
288
  mutationFn: (input: MailTemplateDeleteInput) => sdk['mail']['template']['delete'](input),
276
289
  });
277
290
 
291
+ export const mailTemplateDraftDiscardMutationOptions = (sdk: GeneratedClient) => ({
292
+ mutationKey: ['mail', 'template-draft', 'discard'],
293
+ mutationFn: (input: MailTemplateDraftDiscardInput) => sdk['mail']['template-draft']['discard'](input),
294
+ });
295
+
278
296
  export const mailTemplateGetQueryOptions = (sdk: GeneratedClient, input: MailTemplateGetInput) => ({
279
297
  queryKey: ['mail', 'template', 'get', input] as const,
280
298
  queryFn: () => sdk['mail']['template']['get'](input),
@@ -290,6 +308,26 @@ export const mailTemplatePublishMutationOptions = (sdk: GeneratedClient) => ({
290
308
  mutationFn: (input: MailTemplatePublishInput) => sdk['mail']['template']['publish'](input),
291
309
  });
292
310
 
311
+ export const mailTemplateRestoreMutationOptions = (sdk: GeneratedClient) => ({
312
+ mutationKey: ['mail', 'template', 'restore'],
313
+ mutationFn: (input: MailTemplateRestoreInput) => sdk['mail']['template']['restore'](input),
314
+ });
315
+
316
+ export const mailTemplateRevisionGetQueryOptions = (sdk: GeneratedClient, input: MailTemplateRevisionGetInput) => ({
317
+ queryKey: ['mail', 'template-revision', 'get', input] as const,
318
+ queryFn: () => sdk['mail']['template-revision']['get'](input),
319
+ });
320
+
321
+ export const mailTemplateRevisionListQueryOptions = (sdk: GeneratedClient, input: MailTemplateRevisionListInput) => ({
322
+ queryKey: ['mail', 'template-revision', 'list', input] as const,
323
+ queryFn: () => sdk['mail']['template-revision']['list'](input),
324
+ });
325
+
326
+ export const mailTemplateUnarchiveMutationOptions = (sdk: GeneratedClient) => ({
327
+ mutationKey: ['mail', 'template', 'unarchive'],
328
+ mutationFn: (input: MailTemplateUnarchiveInput) => sdk['mail']['template']['unarchive'](input),
329
+ });
330
+
293
331
  export const mailTemplateUpdateMutationOptions = (sdk: GeneratedClient) => ({
294
332
  mutationKey: ['mail', 'template', 'update'],
295
333
  mutationFn: (input: MailTemplateUpdateInput) => sdk['mail']['template']['update'](input),
@@ -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', 'playground', 'realtime', 'support', 'tracking', 'users', 'workflow'] as const;
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',
@@ -257,11 +257,17 @@ export const operations: Record<string, ToolLevel> = {
257
257
  'mail_suppression_add': 'write',
258
258
  'mail_suppression_list': 'read',
259
259
  'mail_suppression_remove': 'admin',
260
+ 'mail_template_archive': 'write',
260
261
  'mail_template_create': 'write',
261
262
  'mail_template_delete': 'admin',
263
+ 'mail_template_draft_discard': 'write',
262
264
  'mail_template_get': 'read',
263
265
  'mail_template_list': 'read',
264
266
  'mail_template_publish': 'write',
267
+ 'mail_template_restore': 'write',
268
+ 'mail_template_revision_get': 'read',
269
+ 'mail_template_revision_list': 'read',
270
+ 'mail_template_unarchive': 'write',
265
271
  'mail_template_update': 'write',
266
272
  'mail_usage_get': 'read',
267
273
  'mail_webhook_create': 'admin',
@@ -395,23 +401,6 @@ export const operations: Record<string, ToolLevel> = {
395
401
  'organization_support_threads_list': 'read',
396
402
  'organization_x_install': 'read',
397
403
  'organization_youtube_install': 'read',
398
- 'playground_analytics_overview': 'read',
399
- 'playground_billing_entitlements': 'read',
400
- 'playground_billing_record-usage': 'write',
401
- 'playground_clickup_create-task': 'write',
402
- 'playground_clickup_get-last-webhook': 'read',
403
- 'playground_clickup_get-overview': 'read',
404
- 'playground_echo_ping': 'read',
405
- 'playground_gdrive_get-last-change': 'read',
406
- 'playground_gdrive_read-file': 'read',
407
- 'playground_googleads_read-customer': 'read',
408
- 'playground_lifecycle_get-state': 'read',
409
- 'playground_lifecycle_list-events': 'read',
410
- 'playground_webhook_get-last': 'read',
411
- 'playground_workflow_echo': 'write',
412
- 'playground_workflow_echo-list': 'read',
413
- 'playground_workflow_ping': 'write',
414
- 'playground_workflow_subjects-list': 'read',
415
404
  'realtime_archive_export': 'admin',
416
405
  'realtime_archive_export_status': 'read',
417
406
  'realtime_archive_get': 'read',
@@ -678,16 +667,19 @@ export const compositions: Record<string, ToolComposition> = {
678
667
  'mail_suppression_add': {"pii":["input.address","output.address"],"label":"Suppress address"},
679
668
  'mail_suppression_list': {"pii":["input.q","output.items[].address"],"label":"List suppressions"},
680
669
  'mail_suppression_remove': {"pii":["input.address","output.address"],"label":"Unsuppress address"},
670
+ 'mail_template_archive': {"label":"Archive template","options":{"id":"mail_template_list"}},
681
671
  'mail_template_create': {"label":"Create template"},
682
672
  'mail_template_delete': {"label":"Delete template","options":{"id":"mail_template_list"}},
673
+ 'mail_template_draft_discard': {"label":"Discard template draft","options":{"id":"mail_template_list"}},
683
674
  'mail_template_get': {"label":"Get template","options":{"id":"mail_template_list"}},
684
675
  'mail_template_list': {"label":"List templates"},
685
676
  'mail_template_publish': {"label":"Publish template","options":{"id":"mail_template_list"}},
677
+ 'mail_template_restore': {"label":"Restore template revision","options":{"id":"mail_template_list"}},
678
+ 'mail_template_revision_get': {"label":"Get template revision","options":{"id":"mail_template_list"}},
679
+ 'mail_template_revision_list': {"label":"List template revisions","options":{"id":"mail_template_list"}},
680
+ 'mail_template_unarchive': {"label":"Unarchive template","options":{"id":"mail_template_list"}},
686
681
  'mail_template_update': {"label":"Update template","options":{"id":"mail_template_list"}},
687
682
  'mail_usage_get': {"label":"Get usage"},
688
- 'playground_workflow_echo': {"pii":["input.note","output.note"],"label":"Store workflow echo","completion_event":"playground/workflow.echoed"},
689
- 'playground_workflow_ping': {"label":"Fire workflow ping","completion_event":"playground/workflow.ping"},
690
- 'playground_workflow_subjects-list': {"pii":["output.items[].display_name"],"label":"List workflow subjects"},
691
683
  'support_agent_create': {"pii":["input.lesslyUserId","output.lesslyUserId"],"label":"Create agent"},
692
684
  'support_agent_get': {"pii":["output.lesslyUserId"],"label":"Get agent","options":{"id":"support_agent_list"}},
693
685
  'support_agent_list': {"pii":["output.agents[].lesslyUserId"],"label":"List agents"},