@archastro/sdk 0.20.0 → 0.22.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 (187) hide show
  1. package/dist/channels/api_artifact_channel.d.ts +48 -0
  2. package/dist/channels/api_artifact_channel.d.ts.map +1 -0
  3. package/dist/channels/api_artifact_channel.js +85 -0
  4. package/dist/channels/api_artifact_channel.js.map +1 -0
  5. package/dist/channels/api_chat_channel.d.ts +3 -1
  6. package/dist/channels/api_chat_channel.d.ts.map +1 -1
  7. package/dist/channels/api_chat_channel.js +6 -2
  8. package/dist/channels/api_chat_channel.js.map +1 -1
  9. package/dist/client.d.ts +10 -0
  10. package/dist/client.d.ts.map +1 -1
  11. package/dist/client.js +11 -1
  12. package/dist/client.js.map +1 -1
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +2 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/types/ai.d.ts +124 -10
  18. package/dist/types/ai.d.ts.map +1 -1
  19. package/dist/types/ai.js +27 -7
  20. package/dist/types/ai.js.map +1 -1
  21. package/dist/types/artifacts.d.ts +448 -0
  22. package/dist/types/artifacts.d.ts.map +1 -1
  23. package/dist/types/artifacts.js +65 -1
  24. package/dist/types/artifacts.js.map +1 -1
  25. package/dist/types/automations.d.ts +26 -26
  26. package/dist/types/automations.d.ts.map +1 -1
  27. package/dist/types/automations.js +10 -10
  28. package/dist/types/automations.js.map +1 -1
  29. package/dist/types/chat.d.ts +4150 -0
  30. package/dist/types/chat.d.ts.map +1 -1
  31. package/dist/types/common.d.ts +3635 -357
  32. package/dist/types/common.d.ts.map +1 -1
  33. package/dist/types/common.js +186 -32
  34. package/dist/types/common.js.map +1 -1
  35. package/dist/types/computers.d.ts +42 -0
  36. package/dist/types/computers.d.ts.map +1 -0
  37. package/dist/types/computers.js +19 -0
  38. package/dist/types/computers.js.map +1 -0
  39. package/dist/types/events.d.ts +34 -16
  40. package/dist/types/events.d.ts.map +1 -1
  41. package/dist/types/events.js +3 -1
  42. package/dist/types/events.js.map +1 -1
  43. package/dist/types/index.d.ts +2 -0
  44. package/dist/types/index.d.ts.map +1 -1
  45. package/dist/types/index.js +3 -1
  46. package/dist/types/index.js.map +1 -1
  47. package/dist/types/relays.d.ts +22 -0
  48. package/dist/types/relays.d.ts.map +1 -0
  49. package/dist/types/relays.js +12 -0
  50. package/dist/types/relays.js.map +1 -0
  51. package/dist/types/tasks.d.ts +839 -14
  52. package/dist/types/tasks.d.ts.map +1 -1
  53. package/dist/types/tasks.js +85 -11
  54. package/dist/types/tasks.js.map +1 -1
  55. package/dist/types/teams.d.ts +381 -0
  56. package/dist/types/teams.d.ts.map +1 -1
  57. package/dist/types/threads.d.ts +421 -0
  58. package/dist/types/threads.d.ts.map +1 -1
  59. package/dist/types/threads.js +3 -1
  60. package/dist/types/threads.js.map +1 -1
  61. package/dist/v1/resources/activity_feed.d.ts +15 -0
  62. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  63. package/dist/v1/resources/activity_feed.js +1 -1
  64. package/dist/v1/resources/agent_computers.d.ts +48 -1
  65. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  66. package/dist/v1/resources/agent_computers.js +17 -1
  67. package/dist/v1/resources/agent_computers.js.map +1 -1
  68. package/dist/v1/resources/agent_requests.d.ts +62 -0
  69. package/dist/v1/resources/agent_requests.d.ts.map +1 -0
  70. package/dist/v1/resources/agent_requests.js +79 -0
  71. package/dist/v1/resources/agent_requests.js.map +1 -0
  72. package/dist/v1/resources/agent_routines.d.ts +15 -0
  73. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  74. package/dist/v1/resources/agent_routines.js +1 -1
  75. package/dist/v1/resources/agent_routines.js.map +1 -1
  76. package/dist/v1/resources/agent_sessions.d.ts +23 -1
  77. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  78. package/dist/v1/resources/agent_sessions.js +26 -1
  79. package/dist/v1/resources/agent_sessions.js.map +1 -1
  80. package/dist/v1/resources/agents.d.ts +96 -1
  81. package/dist/v1/resources/agents.d.ts.map +1 -1
  82. package/dist/v1/resources/agents.js +13 -2
  83. package/dist/v1/resources/agents.js.map +1 -1
  84. package/dist/v1/resources/ai.d.ts +55 -4
  85. package/dist/v1/resources/ai.d.ts.map +1 -1
  86. package/dist/v1/resources/ai.js +44 -4
  87. package/dist/v1/resources/ai.js.map +1 -1
  88. package/dist/v1/resources/artifacts.d.ts +64 -2
  89. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  90. package/dist/v1/resources/artifacts.js +3 -2
  91. package/dist/v1/resources/artifacts.js.map +1 -1
  92. package/dist/v1/resources/automation_runs.d.ts +6 -2
  93. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  94. package/dist/v1/resources/automation_runs.js +10 -4
  95. package/dist/v1/resources/automation_runs.js.map +1 -1
  96. package/dist/v1/resources/computers.d.ts +113 -0
  97. package/dist/v1/resources/computers.d.ts.map +1 -0
  98. package/dist/v1/resources/computers.js +113 -0
  99. package/dist/v1/resources/computers.js.map +1 -0
  100. package/dist/v1/resources/custom_objects.d.ts +154 -0
  101. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  102. package/dist/v1/resources/custom_objects.js +60 -1
  103. package/dist/v1/resources/custom_objects.js.map +1 -1
  104. package/dist/v1/resources/event_subscriptions.d.ts +12 -0
  105. package/dist/v1/resources/event_subscriptions.d.ts.map +1 -1
  106. package/dist/v1/resources/event_subscriptions.js +7 -1
  107. package/dist/v1/resources/event_subscriptions.js.map +1 -1
  108. package/dist/v1/resources/files.d.ts +56 -10
  109. package/dist/v1/resources/files.d.ts.map +1 -1
  110. package/dist/v1/resources/files.js +39 -11
  111. package/dist/v1/resources/files.js.map +1 -1
  112. package/dist/v1/resources/index.d.ts +5 -0
  113. package/dist/v1/resources/index.d.ts.map +1 -1
  114. package/dist/v1/resources/index.js +6 -1
  115. package/dist/v1/resources/index.js.map +1 -1
  116. package/dist/v1/resources/knowledge_sources.d.ts +4 -0
  117. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
  118. package/dist/v1/resources/knowledge_sources.js +1 -1
  119. package/dist/v1/resources/kv.d.ts +75 -31
  120. package/dist/v1/resources/kv.d.ts.map +1 -1
  121. package/dist/v1/resources/kv.js +79 -32
  122. package/dist/v1/resources/kv.js.map +1 -1
  123. package/dist/v1/resources/notifications.d.ts +14 -0
  124. package/dist/v1/resources/notifications.d.ts.map +1 -1
  125. package/dist/v1/resources/notifications.js +13 -1
  126. package/dist/v1/resources/notifications.js.map +1 -1
  127. package/dist/v1/resources/oauth.d.ts +2 -0
  128. package/dist/v1/resources/oauth.d.ts.map +1 -1
  129. package/dist/v1/resources/oauth.js +2 -1
  130. package/dist/v1/resources/oauth.js.map +1 -1
  131. package/dist/v1/resources/orgs.d.ts +907 -1
  132. package/dist/v1/resources/orgs.d.ts.map +1 -1
  133. package/dist/v1/resources/orgs.js +471 -2
  134. package/dist/v1/resources/orgs.js.map +1 -1
  135. package/dist/v1/resources/private_service_enrollments.d.ts +7 -0
  136. package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -1
  137. package/dist/v1/resources/private_service_enrollments.js +10 -1
  138. package/dist/v1/resources/private_service_enrollments.js.map +1 -1
  139. package/dist/v1/resources/relays.d.ts +38 -0
  140. package/dist/v1/resources/relays.d.ts.map +1 -0
  141. package/dist/v1/resources/relays.js +44 -0
  142. package/dist/v1/resources/relays.js.map +1 -0
  143. package/dist/v1/resources/scripts.d.ts +20 -9
  144. package/dist/v1/resources/scripts.d.ts.map +1 -1
  145. package/dist/v1/resources/scripts.js +18 -10
  146. package/dist/v1/resources/scripts.js.map +1 -1
  147. package/dist/v1/resources/solutions.d.ts +15 -0
  148. package/dist/v1/resources/solutions.d.ts.map +1 -1
  149. package/dist/v1/resources/solutions.js +1 -1
  150. package/dist/v1/resources/solutions.js.map +1 -1
  151. package/dist/v1/resources/task_epics.d.ts +85 -0
  152. package/dist/v1/resources/task_epics.d.ts.map +1 -0
  153. package/dist/v1/resources/task_epics.js +71 -0
  154. package/dist/v1/resources/task_epics.js.map +1 -0
  155. package/dist/v1/resources/task_ownership_conversions.d.ts +14 -0
  156. package/dist/v1/resources/task_ownership_conversions.d.ts.map +1 -0
  157. package/dist/v1/resources/task_ownership_conversions.js +19 -0
  158. package/dist/v1/resources/task_ownership_conversions.js.map +1 -0
  159. package/dist/v1/resources/tasks.d.ts +122 -1
  160. package/dist/v1/resources/tasks.d.ts.map +1 -1
  161. package/dist/v1/resources/tasks.js +73 -1
  162. package/dist/v1/resources/tasks.js.map +1 -1
  163. package/dist/v1/resources/teams.d.ts +415 -1
  164. package/dist/v1/resources/teams.d.ts.map +1 -1
  165. package/dist/v1/resources/teams.js +137 -1
  166. package/dist/v1/resources/teams.js.map +1 -1
  167. package/dist/v1/resources/thread_messages.d.ts +15 -0
  168. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  169. package/dist/v1/resources/thread_messages.js +1 -1
  170. package/dist/v1/resources/thread_messages.js.map +1 -1
  171. package/dist/v1/resources/threads.d.ts +126 -0
  172. package/dist/v1/resources/threads.d.ts.map +1 -1
  173. package/dist/v1/resources/threads.js +43 -1
  174. package/dist/v1/resources/threads.js.map +1 -1
  175. package/dist/v1/resources/users.d.ts +372 -3
  176. package/dist/v1/resources/users.d.ts.map +1 -1
  177. package/dist/v1/resources/users.js +167 -3
  178. package/dist/v1/resources/users.js.map +1 -1
  179. package/dist/v1/resources/workflows.d.ts +5 -1
  180. package/dist/v1/resources/workflows.d.ts.map +1 -1
  181. package/dist/v1/resources/workflows.js +6 -2
  182. package/dist/v1/resources/workflows.js.map +1 -1
  183. package/dist/v1.d.ts +10 -0
  184. package/dist/v1.d.ts.map +1 -1
  185. package/dist/v1.js +16 -1
  186. package/dist/v1.js.map +1 -1
  187. package/package.json +1 -1
@@ -59,24 +59,24 @@ export interface AutomationRun {
59
59
  automation: string;
60
60
  /** When the automation run was created (ISO 8601). */
61
61
  created_at?: string | undefined;
62
- /** ID of the platform event that triggered this run. `null` for directly invoked automations. */
63
- event_id?: string | undefined;
62
+ /** Event or invocation identifier for this run. Direct invocations use the supplied idempotency key or a generated UUID. `null` when no event identifier was recorded. */
63
+ event_id?: string | null | undefined;
64
64
  /** Automation run ID (`atr_...`). */
65
65
  id: string;
66
66
  /** Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied. */
67
- participants?: Record<string, unknown> | undefined;
68
- /** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
67
+ participants?: Record<string, unknown> | null | undefined;
68
+ /** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. Omitted on retrieval when include_payload=false. */
69
69
  payload?: Record<string, unknown> | undefined;
70
- /** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
71
- result?: Record<string, unknown> | undefined;
70
+ /** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. Omitted on retrieval when include_payload=false. */
71
+ result?: Record<string, unknown> | null | undefined;
72
72
  /** Current execution status of the run. One of `"pending"` (queued, not yet started), `"running"` (actively executing), `"completed"` (finished successfully), `"failed"` (finished with an error), or `"cancelled"` (stopped before completion). */
73
73
  status: string;
74
74
  /** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
75
- team?: string | undefined;
75
+ team?: string | null | undefined;
76
76
  /** When the automation run record was last updated (ISO 8601). */
77
77
  updated_at?: string | undefined;
78
78
  /** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
79
- user?: string | undefined;
79
+ user?: string | null | undefined;
80
80
  }
81
81
  /** Runtime validator for {@link AutomationRun}. */
82
82
  export declare const automationRunSchema: z.ZodObject<{
@@ -86,49 +86,49 @@ export declare const automationRunSchema: z.ZodObject<{
86
86
  automation: z.ZodString;
87
87
  /** When the automation run was created (ISO 8601). */
88
88
  created_at: z.ZodOptional<z.ZodString>;
89
- /** ID of the platform event that triggered this run. `null` for directly invoked automations. */
90
- event_id: z.ZodOptional<z.ZodString>;
89
+ /** Event or invocation identifier for this run. Direct invocations use the supplied idempotency key or a generated UUID. `null` when no event identifier was recorded. */
90
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
91
  /** Automation run ID (`atr_...`). */
92
92
  id: z.ZodString;
93
93
  /** Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied. */
94
- participants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
95
- /** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
94
+ participants: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>>;
95
+ /** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. Omitted on retrieval when include_payload=false. */
96
96
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
97
- /** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
98
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
97
+ /** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. Omitted on retrieval when include_payload=false. */
98
+ result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>>;
99
99
  /** Current execution status of the run. One of `"pending"` (queued, not yet started), `"running"` (actively executing), `"completed"` (finished successfully), `"failed"` (finished with an error), or `"cancelled"` (stopped before completion). */
100
100
  status: z.ZodString;
101
101
  /** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
102
- team: z.ZodOptional<z.ZodString>;
102
+ team: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
103
  /** When the automation run record was last updated (ISO 8601). */
104
104
  updated_at: z.ZodOptional<z.ZodString>;
105
105
  /** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
106
- user: z.ZodOptional<z.ZodString>;
106
+ user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
107
  }, "strip", z.ZodTypeAny, {
108
108
  automation: string;
109
109
  status: string;
110
110
  app: string;
111
111
  id: string;
112
- user?: string | undefined;
113
- team?: string | undefined;
114
- participants?: Record<string, {} | null> | undefined;
112
+ user?: string | null | undefined;
113
+ team?: string | null | undefined;
114
+ participants?: Record<string, {} | null> | null | undefined;
115
115
  payload?: Record<string, {} | null> | undefined;
116
116
  created_at?: string | undefined;
117
- event_id?: string | undefined;
118
- result?: Record<string, {} | null> | undefined;
117
+ event_id?: string | null | undefined;
118
+ result?: Record<string, {} | null> | null | undefined;
119
119
  updated_at?: string | undefined;
120
120
  }, {
121
121
  automation: string;
122
122
  status: string;
123
123
  app: string;
124
124
  id: string;
125
- user?: string | undefined;
126
- team?: string | undefined;
127
- participants?: Record<string, {} | null> | undefined;
125
+ user?: string | null | undefined;
126
+ team?: string | null | undefined;
127
+ participants?: Record<string, {} | null> | null | undefined;
128
128
  payload?: Record<string, {} | null> | undefined;
129
129
  created_at?: string | undefined;
130
- event_id?: string | undefined;
131
- result?: Record<string, {} | null> | undefined;
130
+ event_id?: string | null | undefined;
131
+ result?: Record<string, {} | null> | null | undefined;
132
132
  updated_at?: string | undefined;
133
133
  }>;
134
134
  //# sourceMappingURL=automations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4IAA4I;AAC5I,MAAM,WAAW,yBAAyB;IACxC,gGAAgG;IAChG,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,4IAA4I;IAC5I,IAAI,EAAE,MAAM,CAAC;IACb,wGAAwG;IACxG,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026 ArchAstro Inc. Licensed under the MIT License.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 3334c83f45c4
3
+ // Content hash: fd9fc8344b08
4
4
  import { z } from "zod";
5
5
  /** Runtime validator for {@link AutomationParticipantSlot}. */
6
6
  export const automationParticipantSlotSchema = z.object({
@@ -28,23 +28,23 @@ export const automationRunSchema = z.object({
28
28
  automation: z.string().describe("ID of the automation that was executed (`aut_...`)."),
29
29
  /** When the automation run was created (ISO 8601). */
30
30
  created_at: z.string().optional().describe("When the automation run was created (ISO 8601)."),
31
- /** ID of the platform event that triggered this run. `null` for directly invoked automations. */
32
- event_id: z.string().optional().describe("ID of the platform event that triggered this run. `null` for directly invoked automations."),
31
+ /** Event or invocation identifier for this run. Direct invocations use the supplied idempotency key or a generated UUID. `null` when no event identifier was recorded. */
32
+ event_id: z.string().nullable().optional().describe("Event or invocation identifier for this run. Direct invocations use the supplied idempotency key or a generated UUID. `null` when no event identifier was recorded."),
33
33
  /** Automation run ID (`atr_...`). */
34
34
  id: z.string().describe("Automation run ID (`atr_...`)."),
35
35
  /** Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied. */
36
- participants: z.record(z.custom((value) => value !== undefined)).optional().describe("Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied."),
37
- /** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
38
- payload: z.record(z.custom((value) => value !== undefined)).optional().describe("The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided."),
39
- /** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
40
- result: z.record(z.custom((value) => value !== undefined)).optional().describe("The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed."),
36
+ participants: z.record(z.custom((value) => value !== undefined)).nullable().optional().describe("Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied."),
37
+ /** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. Omitted on retrieval when include_payload=false. */
38
+ payload: z.record(z.custom((value) => value !== undefined)).optional().describe("The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. Omitted on retrieval when include_payload=false."),
39
+ /** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. Omitted on retrieval when include_payload=false. */
40
+ result: z.record(z.custom((value) => value !== undefined)).nullable().optional().describe("The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. Omitted on retrieval when include_payload=false."),
41
41
  /** Current execution status of the run. One of `"pending"` (queued, not yet started), `"running"` (actively executing), `"completed"` (finished successfully), `"failed"` (finished with an error), or `"cancelled"` (stopped before completion). */
42
42
  status: z.string().describe("Current execution status of the run. One of `\"pending\"` (queued, not yet started), `\"running\"` (actively executing), `\"completed\"` (finished successfully), `\"failed\"` (finished with an error), or `\"cancelled\"` (stopped before completion)."),
43
43
  /** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
44
- team: z.string().optional().describe("ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team."),
44
+ team: z.string().nullable().optional().describe("ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team."),
45
45
  /** When the automation run record was last updated (ISO 8601). */
46
46
  updated_at: z.string().optional().describe("When the automation run record was last updated (ISO 8601)."),
47
47
  /** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
48
- user: z.string().optional().describe("ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user."),
48
+ user: z.string().nullable().optional().describe("ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user."),
49
49
  }).describe("A single execution of an automation triggered by a platform event or direct invocation. Captures the run's status, input payload, and final result.");
50
50
  //# sourceMappingURL=automations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"automations.js","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAAA,oEAAo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