@executioncontrolprotocol/adobe-firefly-services 0.13.1 → 0.13.2

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 (118) hide show
  1. package/README.md +22 -6
  2. package/dist/generated/audio-video/capabilities.browser.d.ts +37 -0
  3. package/dist/generated/audio-video/capabilities.browser.d.ts.map +1 -0
  4. package/dist/generated/audio-video/capabilities.browser.js +44 -0
  5. package/dist/generated/audio-video/capabilities.browser.js.map +1 -0
  6. package/dist/generated/audio-video/capabilities.d.ts.map +1 -1
  7. package/dist/generated/audio-video/capabilities.js +47 -272
  8. package/dist/generated/audio-video/capabilities.js.map +1 -1
  9. package/dist/generated/audio-video/shells.d.ts +39 -0
  10. package/dist/generated/audio-video/shells.d.ts.map +1 -0
  11. package/dist/generated/audio-video/shells.js +290 -0
  12. package/dist/generated/audio-video/shells.js.map +1 -0
  13. package/dist/generated/creative-production/capabilities.browser.d.ts +11 -0
  14. package/dist/generated/creative-production/capabilities.browser.d.ts.map +1 -0
  15. package/dist/generated/creative-production/capabilities.browser.js +18 -0
  16. package/dist/generated/creative-production/capabilities.browser.js.map +1 -0
  17. package/dist/generated/creative-production/capabilities.d.ts.map +1 -1
  18. package/dist/generated/creative-production/capabilities.js +12 -97
  19. package/dist/generated/creative-production/capabilities.js.map +1 -1
  20. package/dist/generated/creative-production/shells.d.ts +13 -0
  21. package/dist/generated/creative-production/shells.d.ts.map +1 -0
  22. package/dist/generated/creative-production/shells.js +108 -0
  23. package/dist/generated/creative-production/shells.js.map +1 -0
  24. package/dist/generated/express/capabilities.browser.d.ts +11 -0
  25. package/dist/generated/express/capabilities.browser.d.ts.map +1 -0
  26. package/dist/generated/express/capabilities.browser.js +18 -0
  27. package/dist/generated/express/capabilities.browser.js.map +1 -0
  28. package/dist/generated/express/capabilities.d.ts.map +1 -1
  29. package/dist/generated/express/capabilities.js +13 -60
  30. package/dist/generated/express/capabilities.js.map +1 -1
  31. package/dist/generated/express/shells.d.ts +13 -0
  32. package/dist/generated/express/shells.d.ts.map +1 -0
  33. package/dist/generated/express/shells.js +72 -0
  34. package/dist/generated/express/shells.js.map +1 -0
  35. package/dist/generated/firefly/capabilities.browser.d.ts +29 -0
  36. package/dist/generated/firefly/capabilities.browser.d.ts.map +1 -0
  37. package/dist/generated/firefly/capabilities.browser.js +36 -0
  38. package/dist/generated/firefly/capabilities.browser.js.map +1 -0
  39. package/dist/generated/firefly/capabilities.d.ts.map +1 -1
  40. package/dist/generated/firefly/capabilities.js +39 -171
  41. package/dist/generated/firefly/capabilities.js.map +1 -1
  42. package/dist/generated/firefly/shells.d.ts +31 -0
  43. package/dist/generated/firefly/shells.d.ts.map +1 -0
  44. package/dist/generated/firefly/shells.js +199 -0
  45. package/dist/generated/firefly/shells.js.map +1 -0
  46. package/dist/generated/illustrator/capabilities.browser.d.ts +17 -0
  47. package/dist/generated/illustrator/capabilities.browser.d.ts.map +1 -0
  48. package/dist/generated/illustrator/capabilities.browser.js +24 -0
  49. package/dist/generated/illustrator/capabilities.browser.js.map +1 -0
  50. package/dist/generated/illustrator/capabilities.d.ts.map +1 -1
  51. package/dist/generated/illustrator/capabilities.js +21 -87
  52. package/dist/generated/illustrator/capabilities.js.map +1 -1
  53. package/dist/generated/illustrator/shells.d.ts +19 -0
  54. package/dist/generated/illustrator/shells.d.ts.map +1 -0
  55. package/dist/generated/illustrator/shells.js +106 -0
  56. package/dist/generated/illustrator/shells.js.map +1 -0
  57. package/dist/generated/indesign/capabilities.browser.d.ts +33 -0
  58. package/dist/generated/indesign/capabilities.browser.d.ts.map +1 -0
  59. package/dist/generated/indesign/capabilities.browser.js +40 -0
  60. package/dist/generated/indesign/capabilities.browser.js.map +1 -0
  61. package/dist/generated/indesign/capabilities.d.ts.map +1 -1
  62. package/dist/generated/indesign/capabilities.js +41 -230
  63. package/dist/generated/indesign/capabilities.js.map +1 -1
  64. package/dist/generated/indesign/shells.d.ts +35 -0
  65. package/dist/generated/indesign/shells.d.ts.map +1 -0
  66. package/dist/generated/indesign/shells.js +208 -0
  67. package/dist/generated/indesign/shells.js.map +1 -0
  68. package/dist/generated/index.browser.d.ts +4 -0
  69. package/dist/generated/index.browser.d.ts.map +1 -0
  70. package/dist/generated/index.browser.js +98 -0
  71. package/dist/generated/index.browser.js.map +1 -0
  72. package/dist/generated/photoshop/capabilities.browser.d.ts +15 -0
  73. package/dist/generated/photoshop/capabilities.browser.d.ts.map +1 -0
  74. package/dist/generated/photoshop/capabilities.browser.js +22 -0
  75. package/dist/generated/photoshop/capabilities.browser.js.map +1 -0
  76. package/dist/generated/photoshop/capabilities.d.ts.map +1 -1
  77. package/dist/generated/photoshop/capabilities.js +23 -74
  78. package/dist/generated/photoshop/capabilities.js.map +1 -1
  79. package/dist/generated/photoshop/shells.d.ts +17 -0
  80. package/dist/generated/photoshop/shells.d.ts.map +1 -0
  81. package/dist/generated/photoshop/shells.js +92 -0
  82. package/dist/generated/photoshop/shells.js.map +1 -0
  83. package/dist/generated/substance3d/capabilities.browser.d.ts +23 -0
  84. package/dist/generated/substance3d/capabilities.browser.d.ts.map +1 -0
  85. package/dist/generated/substance3d/capabilities.browser.js +30 -0
  86. package/dist/generated/substance3d/capabilities.browser.js.map +1 -0
  87. package/dist/generated/substance3d/capabilities.d.ts.map +1 -1
  88. package/dist/generated/substance3d/capabilities.js +23 -121
  89. package/dist/generated/substance3d/capabilities.js.map +1 -1
  90. package/dist/generated/substance3d/shells.d.ts +25 -0
  91. package/dist/generated/substance3d/shells.d.ts.map +1 -0
  92. package/dist/generated/substance3d/shells.js +146 -0
  93. package/dist/generated/substance3d/shells.js.map +1 -0
  94. package/dist/http/async-job.d.ts +5 -0
  95. package/dist/http/async-job.d.ts.map +1 -1
  96. package/dist/http/async-job.js +62 -1
  97. package/dist/http/async-job.js.map +1 -1
  98. package/dist/index.browser.d.ts +19 -0
  99. package/dist/index.browser.d.ts.map +1 -0
  100. package/dist/index.browser.js +27 -0
  101. package/dist/index.browser.js.map +1 -0
  102. package/dist/index.d.ts +6 -3
  103. package/dist/index.d.ts.map +1 -1
  104. package/dist/index.js +10 -20
  105. package/dist/index.js.map +1 -1
  106. package/dist/runtime/invoke.d.ts +17 -4
  107. package/dist/runtime/invoke.d.ts.map +1 -1
  108. package/dist/runtime/invoke.js +19 -14
  109. package/dist/runtime/invoke.js.map +1 -1
  110. package/dist/runtime/photoshop-manifest.d.ts +40 -0
  111. package/dist/runtime/photoshop-manifest.d.ts.map +1 -0
  112. package/dist/runtime/photoshop-manifest.js +115 -0
  113. package/dist/runtime/photoshop-manifest.js.map +1 -0
  114. package/dist/shared.d.ts +11 -0
  115. package/dist/shared.d.ts.map +1 -0
  116. package/dist/shared.js +39 -0
  117. package/dist/shared.js.map +1 -0
  118. package/package.json +6 -4
@@ -0,0 +1,106 @@
1
+ /* eslint-disable */
2
+ /** Generated Adobe illustrator capability shells — do not edit. */
3
+ import { capabilityFor } from "@executioncontrolprotocol/core";
4
+ import { z } from "zod";
5
+ import * as schemas from "./schemas.js";
6
+ const EXT_ID = "@executioncontrolprotocol/adobe-firefly-services";
7
+ /** Submit a Custom Script */
8
+ export function illustrator_register_custom_script_capability(handler) {
9
+ return capabilityFor(EXT_ID, "illustrator-register-custom-script-capability")
10
+ .withInput(z.object({
11
+ pollIntervalMs: z.number().int().positive().optional(),
12
+ pollTimeoutMs: z.number().int().positive().optional()
13
+ }))
14
+ .withOutput(schemas.Schema_CapabilityRegistrationResponse)
15
+ .withMetadata({ "summary": "Submit a Custom Script", "description": "Submits Custom Script bundles for registration. Returns a URL for posting execution requests for the registered script.", "useCases": ["Illustrator Custom Scripts tasks that need this operation", "When the workflow goal is to submit a Custom Script"], "samplePrompts": ["Submit a Custom Script", "Submit a Custom Script with Adobe Illustrator"] })
16
+ .withHandler(handler);
17
+ }
18
+ /** Submit a custom script execution request */
19
+ export function illustrator_execute_custom_script_capability(handler) {
20
+ return capabilityFor(EXT_ID, "illustrator-execute-custom-script-capability")
21
+ .withInput(z.object({
22
+ path: z.object({
23
+ "orgId": z.string(),
24
+ "capabilityName": z.string()
25
+ }),
26
+ body: schemas.Schema_CustomScriptExecuteRequest,
27
+ pollIntervalMs: z.number().int().positive().optional(),
28
+ pollTimeoutMs: z.number().int().positive().optional()
29
+ }))
30
+ .withOutput(schemas.Schema_CustomScriptJobSucceededResponse)
31
+ .withMetadata({ "summary": "Submit a custom script execution request", "description": "Submits execution requests for custom scripts. Defines input assets and parameters that the custom script will use during execution.", "useCases": ["Illustrator Custom Scripts tasks that need this operation", "When the workflow goal is to submit a custom script execution request"], "samplePrompts": ["Submit a custom script execution request", "Submit a custom script execution request with Adobe Illustrator"] })
32
+ .withHandler(handler);
33
+ }
34
+ /** Retrieve job status */
35
+ export function illustrator_custom_scripts_job_status(handler) {
36
+ return capabilityFor(EXT_ID, "illustrator-custom-scripts-job-status")
37
+ .withInput(z.object({
38
+ path: z.object({
39
+ "jobId": z.string()
40
+ })
41
+ }))
42
+ .withOutput(z.union([schemas.Schema_CustomScriptJobSucceededResponse, schemas.Schema_CustomScriptJobRunningResponse, schemas.Schema_CustomScriptJobFailedResponse]))
43
+ .withMetadata({ "summary": "Retrieve job status", "description": "Poll execution status for a Custom Scripts job. Use this after calling custom script execute. When the job succeeds, each entry in `outputs` includes a presigned URL to download an output file.", "useCases": ["Illustrator Custom Scripts tasks that need this operation", "When the workflow goal is to retrieve job status"], "samplePrompts": ["Retrieve job status", "Retrieve job status with Adobe Illustrator"] })
44
+ .withHandler(handler);
45
+ }
46
+ /** Data merge */
47
+ export function illustrator_data_merge(handler) {
48
+ return capabilityFor(EXT_ID, "illustrator-data-merge")
49
+ .withInput(z.object({
50
+ body: schemas.Schema_DataMergeRequest,
51
+ pollIntervalMs: z.number().int().positive().optional(),
52
+ pollTimeoutMs: z.number().int().positive().optional()
53
+ }))
54
+ .withOutput(schemas.Schema_DataMergeJobApiResponse)
55
+ .withMetadata({ "summary": "Data merge", "description": "This endpoint allows you to merge variable data from a CSV file with an Adobe Illustrator template. The request is processed asynchronously and the status of the job can be checked using the status URL provided in the response. The output is provided as an array of individual files, one for each row in the CSV data. If some rows succeed and others fail or require rerun, the job completes with status `partially_succeeded` when you poll the status endpoint; that status applies only to Data Merge jobs.", "useCases": ["Illustrator Data Merge & Create Rendition tasks that need this operation", "When the workflow goal is to data merge"], "samplePrompts": ["Data merge", "Data merge with Adobe Illustrator"] })
56
+ .withHandler(handler);
57
+ }
58
+ /** Create rendition */
59
+ export function illustrator_create_rendition(handler) {
60
+ return capabilityFor(EXT_ID, "illustrator-create-rendition")
61
+ .withInput(z.object({
62
+ body: schemas.Schema_CreateRenditionRequest,
63
+ pollIntervalMs: z.number().int().positive().optional(),
64
+ pollTimeoutMs: z.number().int().positive().optional()
65
+ }))
66
+ .withOutput(schemas.Schema_CreateRenditionJobApiResponse)
67
+ .withMetadata({ "summary": "Create rendition", "description": "This endpoint allows you to convert Adobe Illustrator files into various output formats. It supports conversion of .ai documents into multiple web- and print-ready formats. The request is processed asynchronously and the status of the job can be checked using the status URL provided in the response. The output is provided as a single converted file.", "useCases": ["Illustrator Data Merge & Create Rendition tasks that need this operation", "When the workflow goal is to create rendition"], "samplePrompts": ["Create rendition", "Create rendition with Adobe Illustrator"] })
68
+ .withHandler(handler);
69
+ }
70
+ /** Submit a job */
71
+ export function illustrator_trace_image(handler) {
72
+ return capabilityFor(EXT_ID, "illustrator-trace-image")
73
+ .withInput(z.object({
74
+ body: schemas.Schema_VectorizeRequest,
75
+ pollIntervalMs: z.number().int().positive().optional(),
76
+ pollTimeoutMs: z.number().int().positive().optional()
77
+ }))
78
+ .withOutput(schemas.Schema_ImageTraceJobApiResponse)
79
+ .withMetadata({ "summary": "Submit a job", "description": "This endpoint allows you to convert a raster image (JPEG/PNG) into vector format (SVG). The request is processed asynchronously and the status of the job can be checked using the status URL provided in the response.", "useCases": ["Illustrator Image Trace tasks that need this operation", "When the workflow goal is to submit a job"], "samplePrompts": ["Submit a job", "Submit a job with Adobe Illustrator"] })
80
+ .withHandler(handler);
81
+ }
82
+ /** Retrieve job status */
83
+ export function illustrator_image_trace_job_status(handler) {
84
+ return capabilityFor(EXT_ID, "illustrator-image-trace-job-status")
85
+ .withInput(z.object({
86
+ path: z.object({
87
+ "jobId": z.string()
88
+ })
89
+ }))
90
+ .withOutput(z.union([schemas.Schema_ImageTraceJobApiResponse, schemas.Schema_JobStatusPollPayload, schemas.Schema_ImageTraceJobFailedResponse]))
91
+ .withMetadata({ "summary": "Retrieve job status", "description": "Poll execution status for an Image Trace job. Use this after calling Image Trace. Poll `GET /v1/status/{jobId}` with the job ID from the trace-image response. When the job succeeds, each output item includes a presigned URL and SVG media type (`image/svg+xml`). Image Trace jobs return only `running`, `succeeded`, or `failed`.", "useCases": ["Illustrator Image Trace tasks that need this operation", "When the workflow goal is to retrieve job status"], "samplePrompts": ["Retrieve job status", "Retrieve job status with Adobe Illustrator"] })
92
+ .withHandler(handler);
93
+ }
94
+ /** Retrieve job status */
95
+ export function illustrator_facade_job_status(handler) {
96
+ return capabilityFor(EXT_ID, "illustrator-facade-job-status")
97
+ .withInput(z.object({
98
+ path: z.object({
99
+ "jobId": z.string()
100
+ })
101
+ }))
102
+ .withOutput(z.union([schemas.Schema_DataMergeJobApiResponse, schemas.Schema_CreateRenditionJobApiResponse, schemas.Schema_JobStatusPollPayload, schemas.Schema_DataMergeJobFailedResponse, schemas.Schema_DataMergeJobPartiallySucceededResponse]))
103
+ .withMetadata({ "summary": "Retrieve job status", "description": "Retrieve the status of a job by providing the job ID. The job ID can be obtained from the response of other APIs. For all asynchronous jobs, polling this endpoint can return `running`, `succeeded`, or `failed`. The `partially_succeeded` status is returned only for Data Merge jobs when some CSV rows produce outputs while other rows fail or must be rerun after errors (for example, missing fonts). No other job types return the `partially_succeeded` status.When `status` is `succeeded`, for Data Merge jobs each item in `outputs` includes a `row` field; for Create Rendition jobs, output items contain `destination` and `mediaType` only.", "useCases": ["Illustrator Data Merge & Create Rendition tasks that need this operation", "When the workflow goal is to retrieve job status"], "samplePrompts": ["Retrieve job status", "Retrieve job status with Adobe Illustrator"] })
104
+ .withHandler(handler);
105
+ }
106
+ //# sourceMappingURL=shells.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shells.js","sourceRoot":"","sources":["../../../src/generated/illustrator/shells.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,mEAAmE;AACnE,OAAO,EAAE,aAAa,EAA0B,MAAM,gCAAgC,CAAA;AACtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,GAAG,kDAAkD,CAAA;AAEjE,6BAA6B;AAC7B,MAAM,UAAU,6CAA6C,CAAC,OAA0B;IACtF,OAAO,aAAa,CAAC,MAAM,EAAE,+CAA+C,CAAC;SAC1E,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;QACtB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KACtD,CAAC,CAAC;SACE,UAAU,CAAC,OAAO,CAAC,qCAAqC,CAAC;SACzD,YAAY,CAAC,EAAC,SAAS,EAAC,wBAAwB,EAAC,aAAa,EAAC,yHAAyH,EAAC,UAAU,EAAC,CAAC,2DAA2D,EAAC,qDAAqD,CAAC,EAAC,eAAe,EAAC,CAAC,wBAAwB,EAAC,+CAA+C,CAAC,EAAC,CAAC;SACpZ,WAAW,CAAC,OAAO,CAAC,CAAA;AACzB,CAAC;AAED,+CAA+C;AAC/C,MAAM,UAAU,4CAA4C,CAAC,OAA0B;IACrF,OAAO,aAAa,CAAC,MAAM,EAAE,8CAA8C,CAAC;SACzE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YACf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;SAC/I,YAAY,CAAC,EAAC,SAAS,EAAC,qBAAqB,EAAC,aAAa,EAAC,yUAAyU,EAAC,UAAU,EAAC,CAAC,wDAAwD,EAAC,kDAAkD,CAAC,EAAC,eAAe,EAAC,CAAC,qBAAqB,EAAC,4CAA4C,CAAC,EAAC,CAAC;SACrlB,WAAW,CAAC,OAAO,CAAC,CAAA;AACzB,CAAC;AAED,0BAA0B;AAC1B,MAAM,UAAU,6BAA6B,CAAC,OAA0B;IACtE,OAAO,aAAa,CAAC,MAAM,EAAE,+BAA+B,CAAC;SAC1D,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACpB,CAAC;KACD,CAAC,CAAC;SACE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,8BAA8B,EAAE,OAAO,CAAC,oCAAoC,EAAE,OAAO,CAAC,2BAA2B,EAAE,OAAO,CAAC,iCAAiC,EAAE,OAAO,CAAC,6CAA6C,CAAC,CAAC,CAAC;SAClP,YAAY,CAAC,EAAC,SAAS,EAAC,qBAAqB,EAAC,aAAa,EAAC,+nBAA+nB,EAAC,UAAU,EAAC,CAAC,0EAA0E,EAAC,kDAAkD,CAAC,EAAC,eAAe,EAAC,CAAC,qBAAqB,EAAC,4CAA4C,CAAC,EAAC,CAAC;SAC75B,WAAW,CAAC,OAAO,CAAC,CAAA;AACzB,CAAC"}
@@ -0,0 +1,33 @@
1
+ /** Perform a data merge */
2
+ export declare const indesign_data_merge: import("@executioncontrolprotocol/core").CapabilityDefinition;
3
+ /** Get data merge tags */
4
+ export declare const indesign_data_merge_tags: import("@executioncontrolprotocol/core").CapabilityDefinition;
5
+ /** Remap links */
6
+ export declare const indesign_remap_links: import("@executioncontrolprotocol/core").CapabilityDefinition;
7
+ /** Create JPEG, PNG, or PDF renditions */
8
+ export declare const indesign_rendition_job: import("@executioncontrolprotocol/core").CapabilityDefinition;
9
+ /** List custom scripts API */
10
+ export declare const indesign_list_custom_scripts: import("@executioncontrolprotocol/core").CapabilityDefinition;
11
+ /** Submit a Custom Script */
12
+ export declare const indesign_submit_custom_script: import("@executioncontrolprotocol/core").CapabilityDefinition;
13
+ /** Submit a custom script execution request */
14
+ export declare const indesign_execute_custom_script: import("@executioncontrolprotocol/core").CapabilityDefinition;
15
+ /** Get Custom Script details */
16
+ export declare const indesign_get_custom_script_details: import("@executioncontrolprotocol/core").CapabilityDefinition;
17
+ /** Delete a Custom Script */
18
+ export declare const indesign_delete_custom_script: import("@executioncontrolprotocol/core").CapabilityDefinition;
19
+ /** Update Custom Script App Version */
20
+ export declare const indesign_update_script_app_version: import("@executioncontrolprotocol/core").CapabilityDefinition;
21
+ /** Get Current App Versions */
22
+ export declare const indesign_list_app_versions: import("@executioncontrolprotocol/core").CapabilityDefinition;
23
+ /** Get document information */
24
+ export declare const indesign_get_document_info: import("@executioncontrolprotocol/core").CapabilityDefinition;
25
+ /** Get status - Document Info API */
26
+ export declare const indesign_get_document_info_job_status: import("@executioncontrolprotocol/core").CapabilityDefinition;
27
+ /** Convert PDF to InDesign document */
28
+ export declare const indesign_convert_pdfto_in_design: import("@executioncontrolprotocol/core").CapabilityDefinition;
29
+ /** Get status - Convert PDF to InDesign API */
30
+ export declare const indesign_get_convert_pdfto_in_design_job_status: import("@executioncontrolprotocol/core").CapabilityDefinition;
31
+ /** Get the status of a job */
32
+ export declare const indesign_get_job_status: import("@executioncontrolprotocol/core").CapabilityDefinition;
33
+ //# sourceMappingURL=capabilities.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.browser.d.ts","sourceRoot":"","sources":["../../../src/generated/indesign/capabilities.browser.ts"],"names":[],"mappings":"AASA,2BAA2B;AAC3B,eAAO,MAAM,mBAAmB,+DAAsC,CAAA;AAEtE,0BAA0B;AAC1B,eAAO,MAAM,wBAAwB,+DAA2C,CAAA;AAEhF,kBAAkB;AAClB,eAAO,MAAM,oBAAoB,+DAAuC,CAAA;AAExE,0CAA0C;AAC1C,eAAO,MAAM,sBAAsB,+DAAyC,CAAA;AAE5E,8BAA8B;AAC9B,eAAO,MAAM,4BAA4B,+DAA+C,CAAA;AAExF,6BAA6B;AAC7B,eAAO,MAAM,6BAA6B,+DAAgD,CAAA;AAE1F,+CAA+C;AAC/C,eAAO,MAAM,8BAA8B,+DAAiD,CAAA;AAE5F,gCAAgC;AAChC,eAAO,MAAM,kCAAkC,+DAAqD,CAAA;AAEpG,6BAA6B;AAC7B,eAAO,MAAM,6BAA6B,+DAAgD,CAAA;AAE1F,uCAAuC;AACvC,eAAO,MAAM,kCAAkC,+DAAqD,CAAA;AAEpG,+BAA+B;AAC/B,eAAO,MAAM,0BAA0B,+DAA6C,CAAA;AAEpF,+BAA+B;AAC/B,eAAO,MAAM,0BAA0B,+DAA6C,CAAA;AAEpF,qCAAqC;AACrC,eAAO,MAAM,qCAAqC,+DAAwD,CAAA;AAE1G,uCAAuC;AACvC,eAAO,MAAM,gCAAgC,+DAAmD,CAAA;AAEhG,+CAA+C;AAC/C,eAAO,MAAM,+CAA+C,+DAAkE,CAAA;AAE9H,8BAA8B;AAC9B,eAAO,MAAM,uBAAuB,+DAA0C,CAAA"}
@@ -0,0 +1,40 @@
1
+ /* eslint-disable */
2
+ /** Generated Adobe indesign browser catalog — do not edit. */
3
+ import * as shells from "./shells.js";
4
+ import { HOST_HOP_MESSAGE } from "../../shared.js";
5
+ async function hostHop() {
6
+ throw new Error(HOST_HOP_MESSAGE);
7
+ }
8
+ /** Perform a data merge */
9
+ export const indesign_data_merge = shells.indesign_data_merge(hostHop);
10
+ /** Get data merge tags */
11
+ export const indesign_data_merge_tags = shells.indesign_data_merge_tags(hostHop);
12
+ /** Remap links */
13
+ export const indesign_remap_links = shells.indesign_remap_links(hostHop);
14
+ /** Create JPEG, PNG, or PDF renditions */
15
+ export const indesign_rendition_job = shells.indesign_rendition_job(hostHop);
16
+ /** List custom scripts API */
17
+ export const indesign_list_custom_scripts = shells.indesign_list_custom_scripts(hostHop);
18
+ /** Submit a Custom Script */
19
+ export const indesign_submit_custom_script = shells.indesign_submit_custom_script(hostHop);
20
+ /** Submit a custom script execution request */
21
+ export const indesign_execute_custom_script = shells.indesign_execute_custom_script(hostHop);
22
+ /** Get Custom Script details */
23
+ export const indesign_get_custom_script_details = shells.indesign_get_custom_script_details(hostHop);
24
+ /** Delete a Custom Script */
25
+ export const indesign_delete_custom_script = shells.indesign_delete_custom_script(hostHop);
26
+ /** Update Custom Script App Version */
27
+ export const indesign_update_script_app_version = shells.indesign_update_script_app_version(hostHop);
28
+ /** Get Current App Versions */
29
+ export const indesign_list_app_versions = shells.indesign_list_app_versions(hostHop);
30
+ /** Get document information */
31
+ export const indesign_get_document_info = shells.indesign_get_document_info(hostHop);
32
+ /** Get status - Document Info API */
33
+ export const indesign_get_document_info_job_status = shells.indesign_get_document_info_job_status(hostHop);
34
+ /** Convert PDF to InDesign document */
35
+ export const indesign_convert_pdfto_in_design = shells.indesign_convert_pdfto_in_design(hostHop);
36
+ /** Get status - Convert PDF to InDesign API */
37
+ export const indesign_get_convert_pdfto_in_design_job_status = shells.indesign_get_convert_pdfto_in_design_job_status(hostHop);
38
+ /** Get the status of a job */
39
+ export const indesign_get_job_status = shells.indesign_get_job_status(hostHop);
40
+ //# sourceMappingURL=capabilities.browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.browser.js","sourceRoot":"","sources":["../../../src/generated/indesign/capabilities.browser.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,8DAA8D;AAC9D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElD,KAAK,UAAU,OAAO;IACpB,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAA;AACnC,CAAC;AAED,2BAA2B;AAC3B,MAAM,CAAC,MAAM,mBAAmB,GAAG,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;AAC/C,eAAO,MAAM,+CAA+C,+DA2BxD,CAAA;AAEJ,8BAA8B;AAC9B,eAAO,MAAM,uBAAuB,+DA+BhC,CAAA"}
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../src/generated/indesign/capabilities.ts"],"names":[],"mappings":"AAOA,2BAA2B;AAC3B,eAAO,MAAM,mBAAmB,+DAiB9B,CAAA;AAEF,0BAA0B;AAC1B,eAAO,MAAM,wBAAwB,+DAiBnC,CAAA;AAEF,kBAAkB;AAClB,eAAO,MAAM,oBAAoB,+DAiB/B,CAAA;AAEF,0CAA0C;AAC1C,eAAO,MAAM,sBAAsB,+DAiBjC,CAAA;AAEF,8BAA8B;AAC9B,eAAO,MAAM,4BAA4B,+DAevC,CAAA;AAEF,6BAA6B;AAC7B,eAAO,MAAM,6BAA6B,+DAiBxC,CAAA;AAEF,+CAA+C;AAC/C,eAAO,MAAM,8BAA8B,+DAiBzC,CAAA;AAEF,gCAAgC;AAChC,eAAO,MAAM,kCAAkC,+DAe7C,CAAA;AAEF,6BAA6B;AAC7B,eAAO,MAAM,6BAA6B,+DAexC,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,kCAAkC,+DAiB7C,CAAA;AAEF,+BAA+B;AAC/B,eAAO,MAAM,0BAA0B,+DAerC,CAAA;AAEF,+BAA+B;AAC/B,eAAO,MAAM,0BAA0B,+DAiBrC,CAAA;AAEF,qCAAqC;AACrC,eAAO,MAAM,qCAAqC,+DAehD,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,gCAAgC,+DAiB3C,CAAA;AAEF,+CAA+C;AAC/C,eAAO,MAAM,+CAA+C,+DAe1D,CAAA;AAEF,8BAA8B;AAC9B,eAAO,MAAM,uBAAuB,+DAelC,CAAA"}
@@ -1,125 +1,59 @@
1
1
  /* eslint-disable */
2
2
  /** Generated Adobe indesign capabilities — do not edit. */
3
- import { capabilityFor } from "@executioncontrolprotocol/core";
3
+ import * as shells from "./shells.js";
4
4
  import { z } from "zod";
5
5
  import * as schemas from "./schemas.js";
6
6
  import { invokeAdobeOperation } from "../../runtime/invoke.js";
7
- const EXT_ID = "@executioncontrolprotocol/adobe-firefly-services";
8
7
  /** Perform a data merge */
9
- export const indesign_data_merge = capabilityFor(EXT_ID, "indesign.data-merge")
10
- .withInput(z.object({
11
- body: schemas.Schema_MergeDataRequest,
12
- poll: z.boolean().optional(),
13
- pollIntervalMs: z.number().int().positive().optional(),
14
- pollTimeoutMs: z.number().int().positive().optional()
15
- }))
16
- .withOutput(z.object({
17
- "jobId": z.string().optional(),
18
- "statusUrl": z.string().optional()
19
- }))
20
- .withHandler(async (input, ctx) => {
8
+ export const indesign_data_merge = shells.indesign_data_merge(async (input, ctx) => {
21
9
  return invokeAdobeOperation({
22
10
  method: "POST",
23
11
  pathTemplate: "/v3/merge-data",
24
12
  baseUrl: "https://indesign.adobe.io/",
25
13
  input: input,
26
14
  ctx,
27
- outputSchema: z.object({
28
- "jobId": z.string().optional(),
29
- "statusUrl": z.string().optional()
30
- }),
15
+ outputSchema: schemas.Schema_succeededEvent,
16
+ asyncMode: "submit",
31
17
  });
32
18
  });
33
19
  /** Get data merge tags */
34
- export const indesign_data_merge_tags = capabilityFor(EXT_ID, "indesign.data-merge-tags")
35
- .withInput(z.object({
36
- body: schemas.Schema_MergeDataTagsRequest,
37
- poll: z.boolean().optional(),
38
- pollIntervalMs: z.number().int().positive().optional(),
39
- pollTimeoutMs: z.number().int().positive().optional()
40
- }))
41
- .withOutput(z.object({
42
- "jobId": z.string().optional(),
43
- "statusUrl": z.string().optional()
44
- }))
45
- .withHandler(async (input, ctx) => {
20
+ export const indesign_data_merge_tags = shells.indesign_data_merge_tags(async (input, ctx) => {
46
21
  return invokeAdobeOperation({
47
22
  method: "POST",
48
23
  pathTemplate: "/v3/merge-data-tags",
49
24
  baseUrl: "https://indesign.adobe.io/",
50
25
  input: input,
51
26
  ctx,
52
- outputSchema: z.object({
53
- "jobId": z.string().optional(),
54
- "statusUrl": z.string().optional()
55
- }),
27
+ outputSchema: schemas.Schema_succeededEvent,
28
+ asyncMode: "submit",
56
29
  });
57
30
  });
58
31
  /** Remap links */
59
- export const indesign_remap_links = capabilityFor(EXT_ID, "indesign.remap-links")
60
- .withInput(z.object({
61
- headers: z.object({
62
- "x-aem-token": z.string()
63
- }).optional(),
64
- body: schemas.Schema_RemapLinksRequest,
65
- poll: z.boolean().optional(),
66
- pollIntervalMs: z.number().int().positive().optional(),
67
- pollTimeoutMs: z.number().int().positive().optional()
68
- }))
69
- .withOutput(z.object({
70
- "jobId": z.string().optional(),
71
- "statusUrl": z.string().optional()
72
- }))
73
- .withHandler(async (input, ctx) => {
32
+ export const indesign_remap_links = shells.indesign_remap_links(async (input, ctx) => {
74
33
  return invokeAdobeOperation({
75
34
  method: "POST",
76
35
  pathTemplate: "/v3/remap-links",
77
36
  baseUrl: "https://indesign.adobe.io/",
78
37
  input: input,
79
38
  ctx,
80
- outputSchema: z.object({
81
- "jobId": z.string().optional(),
82
- "statusUrl": z.string().optional()
83
- }),
39
+ outputSchema: schemas.Schema_succeededEvent,
40
+ asyncMode: "submit",
84
41
  });
85
42
  });
86
43
  /** Create JPEG, PNG, or PDF renditions */
87
- export const indesign_rendition_job = capabilityFor(EXT_ID, "indesign.rendition-job")
88
- .withInput(z.object({
89
- body: schemas.Schema_CreateRenditionRequest,
90
- poll: z.boolean().optional(),
91
- pollIntervalMs: z.number().int().positive().optional(),
92
- pollTimeoutMs: z.number().int().positive().optional()
93
- }))
94
- .withOutput(z.object({
95
- "jobId": z.string().optional(),
96
- "statusUrl": z.string().optional()
97
- }))
98
- .withHandler(async (input, ctx) => {
44
+ export const indesign_rendition_job = shells.indesign_rendition_job(async (input, ctx) => {
99
45
  return invokeAdobeOperation({
100
46
  method: "POST",
101
47
  pathTemplate: "/v3/create-rendition",
102
48
  baseUrl: "https://indesign.adobe.io/",
103
49
  input: input,
104
50
  ctx,
105
- outputSchema: z.object({
106
- "jobId": z.string().optional(),
107
- "statusUrl": z.string().optional()
108
- }),
51
+ outputSchema: schemas.Schema_succeededEvent,
52
+ asyncMode: "submit",
109
53
  });
110
54
  });
111
55
  /** List custom scripts API */
112
- export const indesign_list_custom_scripts = capabilityFor(EXT_ID, "indesign.list-custom-scripts")
113
- .withInput(z.object({
114
- query: z.object({
115
- "page": z.number().int().optional()
116
- }).optional(),
117
- poll: z.boolean().optional(),
118
- pollIntervalMs: z.number().int().positive().optional(),
119
- pollTimeoutMs: z.number().int().positive().optional()
120
- }))
121
- .withOutput(schemas.Schema_CustomScriptsListResponse)
122
- .withHandler(async (input, ctx) => {
56
+ export const indesign_list_custom_scripts = shells.indesign_list_custom_scripts(async (input, ctx) => {
123
57
  return invokeAdobeOperation({
124
58
  method: "GET",
125
59
  pathTemplate: "/v3/scripts",
@@ -127,75 +61,35 @@ export const indesign_list_custom_scripts = capabilityFor(EXT_ID, "indesign.list
127
61
  input: input,
128
62
  ctx,
129
63
  outputSchema: schemas.Schema_CustomScriptsListResponse,
64
+ asyncMode: "none",
130
65
  });
131
66
  });
132
67
  /** Submit a Custom Script */
133
- export const indesign_submit_custom_script = capabilityFor(EXT_ID, "indesign.submit-custom-script")
134
- .withInput(z.object({
135
- poll: z.boolean().optional(),
136
- pollIntervalMs: z.number().int().positive().optional(),
137
- pollTimeoutMs: z.number().int().positive().optional()
138
- }))
139
- .withOutput(z.object({
140
- "capability": z.string().optional(),
141
- "version": z.string().optional(),
142
- "url": z.string().optional()
143
- }))
144
- .withHandler(async (input, ctx) => {
68
+ export const indesign_submit_custom_script = shells.indesign_submit_custom_script(async (input, ctx) => {
145
69
  return invokeAdobeOperation({
146
70
  method: "POST",
147
71
  pathTemplate: "/v3/scripts",
148
72
  baseUrl: "https://indesign.adobe.io/",
149
73
  input: input,
150
74
  ctx,
151
- outputSchema: z.object({
152
- "capability": z.string().optional(),
153
- "version": z.string().optional(),
154
- "url": z.string().optional()
155
- }),
75
+ outputSchema: schemas.Schema_succeededEvent,
76
+ asyncMode: "submit",
156
77
  });
157
78
  });
158
79
  /** Submit a custom script execution request */
159
- export const indesign_execute_custom_script = capabilityFor(EXT_ID, "indesign.execute-custom-script")
160
- .withInput(z.object({
161
- path: z.object({
162
- "script_id": z.string(),
163
- "script_name": z.string()
164
- }),
165
- body: schemas.Schema_BaseJobRequestWithOutput,
166
- poll: z.boolean().optional(),
167
- pollIntervalMs: z.number().int().positive().optional(),
168
- pollTimeoutMs: z.number().int().positive().optional()
169
- }))
170
- .withOutput(z.object({
171
- "jobId": z.string().optional(),
172
- "statusUrl": z.string().optional()
173
- }))
174
- .withHandler(async (input, ctx) => {
80
+ export const indesign_execute_custom_script = shells.indesign_execute_custom_script(async (input, ctx) => {
175
81
  return invokeAdobeOperation({
176
82
  method: "POST",
177
83
  pathTemplate: "/v3/{script_id}/{script_name}",
178
84
  baseUrl: "https://indesign.adobe.io/",
179
85
  input: input,
180
86
  ctx,
181
- outputSchema: z.object({
182
- "jobId": z.string().optional(),
183
- "statusUrl": z.string().optional()
184
- }),
87
+ outputSchema: schemas.Schema_succeededEvent,
88
+ asyncMode: "submit",
185
89
  });
186
90
  });
187
91
  /** Get Custom Script details */
188
- export const indesign_get_custom_script_details = capabilityFor(EXT_ID, "indesign.get-custom-script-details")
189
- .withInput(z.object({
190
- path: z.object({
191
- "script_name": z.string()
192
- }),
193
- poll: z.boolean().optional(),
194
- pollIntervalMs: z.number().int().positive().optional(),
195
- pollTimeoutMs: z.number().int().positive().optional()
196
- }))
197
- .withOutput(schemas.Schema_CustomScriptDetails)
198
- .withHandler(async (input, ctx) => {
92
+ export const indesign_get_custom_script_details = shells.indesign_get_custom_script_details(async (input, ctx) => {
199
93
  return invokeAdobeOperation({
200
94
  method: "GET",
201
95
  pathTemplate: "/v3/scripts/{script_name}",
@@ -203,20 +97,11 @@ export const indesign_get_custom_script_details = capabilityFor(EXT_ID, "indesig
203
97
  input: input,
204
98
  ctx,
205
99
  outputSchema: schemas.Schema_CustomScriptDetails,
100
+ asyncMode: "none",
206
101
  });
207
102
  });
208
103
  /** Delete a Custom Script */
209
- export const indesign_delete_custom_script = capabilityFor(EXT_ID, "indesign.delete-custom-script")
210
- .withInput(z.object({
211
- path: z.object({
212
- "script_name": z.string()
213
- }),
214
- poll: z.boolean().optional(),
215
- pollIntervalMs: z.number().int().positive().optional(),
216
- pollTimeoutMs: z.number().int().positive().optional()
217
- }))
218
- .withOutput(z.object({}))
219
- .withHandler(async (input, ctx) => {
104
+ export const indesign_delete_custom_script = shells.indesign_delete_custom_script(async (input, ctx) => {
220
105
  return invokeAdobeOperation({
221
106
  method: "DELETE",
222
107
  pathTemplate: "/v3/scripts/{script_name}",
@@ -224,23 +109,11 @@ export const indesign_delete_custom_script = capabilityFor(EXT_ID, "indesign.del
224
109
  input: input,
225
110
  ctx,
226
111
  outputSchema: z.object({}),
112
+ asyncMode: "none",
227
113
  });
228
114
  });
229
115
  /** Update Custom Script App Version */
230
- export const indesign_update_script_app_version = capabilityFor(EXT_ID, "indesign.update-script-app-version")
231
- .withInput(z.object({
232
- path: z.object({
233
- "script_name": z.string()
234
- }),
235
- body: schemas.Schema_AppVersionUpdateRequest,
236
- poll: z.boolean().optional(),
237
- pollIntervalMs: z.number().int().positive().optional(),
238
- pollTimeoutMs: z.number().int().positive().optional()
239
- }))
240
- .withOutput(z.object({
241
- "message": z.string().optional()
242
- }))
243
- .withHandler(async (input, ctx) => {
116
+ export const indesign_update_script_app_version = shells.indesign_update_script_app_version(async (input, ctx) => {
244
117
  return invokeAdobeOperation({
245
118
  method: "PUT",
246
119
  pathTemplate: "/v3/scripts/{script_name}/app-version",
@@ -250,17 +123,11 @@ export const indesign_update_script_app_version = capabilityFor(EXT_ID, "indesig
250
123
  outputSchema: z.object({
251
124
  "message": z.string().optional()
252
125
  }),
126
+ asyncMode: "none",
253
127
  });
254
128
  });
255
129
  /** Get Current App Versions */
256
- export const indesign_list_app_versions = capabilityFor(EXT_ID, "indesign.list-app-versions")
257
- .withInput(z.object({
258
- poll: z.boolean().optional(),
259
- pollIntervalMs: z.number().int().positive().optional(),
260
- pollTimeoutMs: z.number().int().positive().optional()
261
- }))
262
- .withOutput(z.array(schemas.Schema_AppVersionInfo))
263
- .withHandler(async (input, ctx) => {
130
+ export const indesign_list_app_versions = shells.indesign_list_app_versions(async (input, ctx) => {
264
131
  return invokeAdobeOperation({
265
132
  method: "GET",
266
133
  pathTemplate: "/v3/app-versions",
@@ -268,45 +135,23 @@ export const indesign_list_app_versions = capabilityFor(EXT_ID, "indesign.list-a
268
135
  input: input,
269
136
  ctx,
270
137
  outputSchema: z.array(schemas.Schema_AppVersionInfo),
138
+ asyncMode: "none",
271
139
  });
272
140
  });
273
141
  /** Get document information */
274
- export const indesign_get_document_info = capabilityFor(EXT_ID, "indesign.get-document-info")
275
- .withInput(z.object({
276
- body: schemas.Schema_DocumentInfoRequest,
277
- poll: z.boolean().optional(),
278
- pollIntervalMs: z.number().int().positive().optional(),
279
- pollTimeoutMs: z.number().int().positive().optional()
280
- }))
281
- .withOutput(z.object({
282
- "jobId": z.string().optional(),
283
- "statusUrl": z.string().optional()
284
- }))
285
- .withHandler(async (input, ctx) => {
142
+ export const indesign_get_document_info = shells.indesign_get_document_info(async (input, ctx) => {
286
143
  return invokeAdobeOperation({
287
144
  method: "POST",
288
145
  pathTemplate: "/v3/document-info",
289
146
  baseUrl: "https://indesign.adobe.io/",
290
147
  input: input,
291
148
  ctx,
292
- outputSchema: z.object({
293
- "jobId": z.string().optional(),
294
- "statusUrl": z.string().optional()
295
- }),
149
+ outputSchema: schemas.Schema_succeededEvent,
150
+ asyncMode: "submit",
296
151
  });
297
152
  });
298
153
  /** Get status - Document Info API */
299
- export const indesign_get_document_info_job_status = capabilityFor(EXT_ID, "indesign.get-document-info-job-status")
300
- .withInput(z.object({
301
- path: z.object({
302
- "document-info_job_id": z.string()
303
- }),
304
- poll: z.boolean().optional(),
305
- pollIntervalMs: z.number().int().positive().optional(),
306
- pollTimeoutMs: z.number().int().positive().optional()
307
- }))
308
- .withOutput(z.union([schemas.Schema_notstartedEvent, schemas.Schema_runningEvent, schemas.Schema_succeededEvent, schemas.Schema_failedEvent, schemas.Schema_partialSuccessEvent]))
309
- .withHandler(async (input, ctx) => {
154
+ export const indesign_get_document_info_job_status = shells.indesign_get_document_info_job_status(async (input, ctx) => {
310
155
  return invokeAdobeOperation({
311
156
  method: "GET",
312
157
  pathTemplate: "/v3/status/{document-info_job_id}",
@@ -314,45 +159,23 @@ export const indesign_get_document_info_job_status = capabilityFor(EXT_ID, "inde
314
159
  input: input,
315
160
  ctx,
316
161
  outputSchema: z.union([schemas.Schema_notstartedEvent, schemas.Schema_runningEvent, schemas.Schema_succeededEvent, schemas.Schema_failedEvent, schemas.Schema_partialSuccessEvent]),
162
+ asyncMode: "none",
317
163
  });
318
164
  });
319
165
  /** Convert PDF to InDesign document */
320
- export const indesign_convert_pdfto_in_design = capabilityFor(EXT_ID, "indesign.convert-pdfto-in-design")
321
- .withInput(z.object({
322
- body: schemas.Schema_ConvertToInDesignRequest,
323
- poll: z.boolean().optional(),
324
- pollIntervalMs: z.number().int().positive().optional(),
325
- pollTimeoutMs: z.number().int().positive().optional()
326
- }))
327
- .withOutput(z.object({
328
- "jobId": z.string().optional(),
329
- "statusUrl": z.string().optional()
330
- }))
331
- .withHandler(async (input, ctx) => {
166
+ export const indesign_convert_pdfto_in_design = shells.indesign_convert_pdfto_in_design(async (input, ctx) => {
332
167
  return invokeAdobeOperation({
333
168
  method: "POST",
334
169
  pathTemplate: "/v3/convert-pdf-to-indesign",
335
170
  baseUrl: "https://indesign.adobe.io/",
336
171
  input: input,
337
172
  ctx,
338
- outputSchema: z.object({
339
- "jobId": z.string().optional(),
340
- "statusUrl": z.string().optional()
341
- }),
173
+ outputSchema: schemas.Schema_succeededEvent,
174
+ asyncMode: "submit",
342
175
  });
343
176
  });
344
177
  /** Get status - Convert PDF to InDesign API */
345
- export const indesign_get_convert_pdfto_in_design_job_status = capabilityFor(EXT_ID, "indesign.get-convert-pdfto-in-design-job-status")
346
- .withInput(z.object({
347
- path: z.object({
348
- "convert-pdf-to-indesign_job_id": z.string()
349
- }),
350
- poll: z.boolean().optional(),
351
- pollIntervalMs: z.number().int().positive().optional(),
352
- pollTimeoutMs: z.number().int().positive().optional()
353
- }))
354
- .withOutput(z.union([schemas.Schema_notstartedEvent, schemas.Schema_runningEvent, schemas.Schema_succeededEvent, schemas.Schema_failedEvent, schemas.Schema_partialSuccessEvent]))
355
- .withHandler(async (input, ctx) => {
178
+ export const indesign_get_convert_pdfto_in_design_job_status = shells.indesign_get_convert_pdfto_in_design_job_status(async (input, ctx) => {
356
179
  return invokeAdobeOperation({
357
180
  method: "GET",
358
181
  pathTemplate: "/v3/status/{convert-pdf-to-indesign_job_id}",
@@ -360,24 +183,11 @@ export const indesign_get_convert_pdfto_in_design_job_status = capabilityFor(EXT
360
183
  input: input,
361
184
  ctx,
362
185
  outputSchema: z.union([schemas.Schema_notstartedEvent, schemas.Schema_runningEvent, schemas.Schema_succeededEvent, schemas.Schema_failedEvent, schemas.Schema_partialSuccessEvent]),
186
+ asyncMode: "none",
363
187
  });
364
188
  });
365
189
  /** Get the status of a job */
366
- export const indesign_get_job_status = capabilityFor(EXT_ID, "indesign.get-job-status")
367
- .withInput(z.object({
368
- path: z.object({
369
- "id": z.string()
370
- }),
371
- query: z.object({
372
- "size": z.number().int().min(1).optional(),
373
- "page": z.number().int().min(0).optional()
374
- }).optional(),
375
- poll: z.boolean().optional(),
376
- pollIntervalMs: z.number().int().positive().optional(),
377
- pollTimeoutMs: z.number().int().positive().optional()
378
- }))
379
- .withOutput(z.union([schemas.Schema_notstartedEvent, schemas.Schema_runningEvent, schemas.Schema_succeededEvent, schemas.Schema_failedEvent, schemas.Schema_partialSuccessEvent]))
380
- .withHandler(async (input, ctx) => {
190
+ export const indesign_get_job_status = shells.indesign_get_job_status(async (input, ctx) => {
381
191
  return invokeAdobeOperation({
382
192
  method: "GET",
383
193
  pathTemplate: "/v3/status/{id}",
@@ -385,6 +195,7 @@ export const indesign_get_job_status = capabilityFor(EXT_ID, "indesign.get-job-s
385
195
  input: input,
386
196
  ctx,
387
197
  outputSchema: z.union([schemas.Schema_notstartedEvent, schemas.Schema_runningEvent, schemas.Schema_succeededEvent, schemas.Schema_failedEvent, schemas.Schema_partialSuccessEvent]),
198
+ asyncMode: "none",
388
199
  });
389
200
  });
390
201
  //# sourceMappingURL=capabilities.js.map