@zapier/zapier-sdk 0.48.1 → 0.50.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 (213) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +832 -81
  3. package/dist/api/client.d.ts.map +1 -1
  4. package/dist/api/client.js +27 -16
  5. package/dist/api/polling.d.ts +7 -0
  6. package/dist/api/polling.d.ts.map +1 -1
  7. package/dist/api/polling.js +29 -4
  8. package/dist/api/types.d.ts +15 -7
  9. package/dist/api/types.d.ts.map +1 -1
  10. package/dist/constants.d.ts +8 -9
  11. package/dist/constants.d.ts.map +1 -1
  12. package/dist/constants.js +8 -11
  13. package/dist/experimental.cjs +10383 -0
  14. package/dist/experimental.d.mts +2292 -0
  15. package/dist/experimental.d.ts +2308 -0
  16. package/dist/experimental.d.ts.map +1 -0
  17. package/dist/experimental.js +155 -0
  18. package/dist/experimental.mjs +10202 -0
  19. package/dist/index-BQ2ii0Bs.d.mts +9538 -0
  20. package/dist/index-BQ2ii0Bs.d.ts +9538 -0
  21. package/dist/index.cjs +718 -513
  22. package/dist/index.d.mts +6 -8562
  23. package/dist/index.d.ts +7 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +5 -1
  26. package/dist/index.mjs +706 -512
  27. package/dist/plugins/api/index.d.ts.map +1 -1
  28. package/dist/plugins/api/index.js +1 -2
  29. package/dist/plugins/apps/index.d.ts +1 -1
  30. package/dist/plugins/deprecated/inputFields.d.ts +468 -0
  31. package/dist/plugins/deprecated/inputFields.d.ts.map +1 -0
  32. package/dist/plugins/deprecated/inputFields.js +73 -0
  33. package/dist/plugins/fetch/index.d.ts +1 -1
  34. package/dist/plugins/fetch/schemas.d.ts +1 -1
  35. package/dist/plugins/{getInputFieldsSchema → getActionInputFieldsSchema}/index.d.ts +4 -4
  36. package/dist/plugins/getActionInputFieldsSchema/index.d.ts.map +1 -0
  37. package/dist/plugins/{getInputFieldsSchema → getActionInputFieldsSchema}/index.js +4 -4
  38. package/dist/plugins/{getInputFieldsSchema → getActionInputFieldsSchema}/schemas.d.ts +8 -8
  39. package/dist/plugins/getActionInputFieldsSchema/schemas.d.ts.map +1 -0
  40. package/dist/plugins/{getInputFieldsSchema → getActionInputFieldsSchema}/schemas.js +13 -10
  41. package/dist/plugins/{listInputFieldChoices → listActionInputFieldChoices}/index.d.ts +4 -4
  42. package/dist/plugins/listActionInputFieldChoices/index.d.ts.map +1 -0
  43. package/dist/plugins/{listInputFieldChoices → listActionInputFieldChoices}/index.js +4 -4
  44. package/dist/plugins/{listInputFieldChoices → listActionInputFieldChoices}/schemas.d.ts +10 -10
  45. package/dist/plugins/listActionInputFieldChoices/schemas.d.ts.map +1 -0
  46. package/dist/plugins/{listInputFieldChoices → listActionInputFieldChoices}/schemas.js +13 -10
  47. package/dist/plugins/{listInputFields → listActionInputFields}/index.d.ts +4 -4
  48. package/dist/plugins/listActionInputFields/index.d.ts.map +1 -0
  49. package/dist/plugins/{listInputFields → listActionInputFields}/index.js +4 -4
  50. package/dist/plugins/{listInputFields → listActionInputFields}/schemas.d.ts +9 -9
  51. package/dist/plugins/listActionInputFields/schemas.d.ts.map +1 -0
  52. package/dist/plugins/{listInputFields → listActionInputFields}/schemas.js +7 -7
  53. package/dist/plugins/request/index.d.ts +2 -2
  54. package/dist/plugins/request/schemas.d.ts +2 -2
  55. package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts +51 -0
  56. package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts.map +1 -0
  57. package/dist/plugins/triggers/ackTriggerInboxMessages/index.js +35 -0
  58. package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.d.ts +34 -0
  59. package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.d.ts.map +1 -0
  60. package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.js +17 -0
  61. package/dist/plugins/triggers/createTriggerInbox/index.d.ts +62 -0
  62. package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -0
  63. package/dist/plugins/triggers/createTriggerInbox/index.js +54 -0
  64. package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts +20 -0
  65. package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts.map +1 -0
  66. package/dist/plugins/triggers/createTriggerInbox/schemas.js +20 -0
  67. package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts +50 -0
  68. package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts.map +1 -0
  69. package/dist/plugins/triggers/deleteTriggerInbox/index.js +27 -0
  70. package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts +14 -0
  71. package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts.map +1 -0
  72. package/dist/plugins/triggers/deleteTriggerInbox/schemas.js +9 -0
  73. package/dist/plugins/triggers/drainTriggerInbox/index.d.ts +213 -0
  74. package/dist/plugins/triggers/drainTriggerInbox/index.d.ts.map +1 -0
  75. package/dist/plugins/triggers/drainTriggerInbox/index.js +227 -0
  76. package/dist/plugins/triggers/drainTriggerInbox/pipeline.d.ts +56 -0
  77. package/dist/plugins/triggers/drainTriggerInbox/pipeline.d.ts.map +1 -0
  78. package/dist/plugins/triggers/drainTriggerInbox/pipeline.js +225 -0
  79. package/dist/plugins/triggers/drainTriggerInbox/schemas.d.ts +104 -0
  80. package/dist/plugins/triggers/drainTriggerInbox/schemas.d.ts.map +1 -0
  81. package/dist/plugins/triggers/drainTriggerInbox/schemas.js +102 -0
  82. package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts +63 -0
  83. package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -0
  84. package/dist/plugins/triggers/ensureTriggerInbox/index.js +77 -0
  85. package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts +21 -0
  86. package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts.map +1 -0
  87. package/dist/plugins/triggers/ensureTriggerInbox/schemas.js +21 -0
  88. package/dist/plugins/triggers/getTriggerInbox/index.d.ts +50 -0
  89. package/dist/plugins/triggers/getTriggerInbox/index.d.ts.map +1 -0
  90. package/dist/plugins/triggers/getTriggerInbox/index.js +26 -0
  91. package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts +14 -0
  92. package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts.map +1 -0
  93. package/dist/plugins/triggers/getTriggerInbox/schemas.js +9 -0
  94. package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts +48 -0
  95. package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts.map +1 -0
  96. package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.js +23 -0
  97. package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.d.ts +13 -0
  98. package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.d.ts.map +1 -0
  99. package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.js +10 -0
  100. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts +58 -0
  101. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts.map +1 -0
  102. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.js +70 -0
  103. package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.d.ts +57 -0
  104. package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.d.ts.map +1 -0
  105. package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.js +25 -0
  106. package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts +51 -0
  107. package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts.map +1 -0
  108. package/dist/plugins/triggers/listTriggerInboxMessages/index.js +48 -0
  109. package/dist/plugins/triggers/listTriggerInboxMessages/schemas.d.ts +37 -0
  110. package/dist/plugins/triggers/listTriggerInboxMessages/schemas.d.ts.map +1 -0
  111. package/dist/plugins/triggers/listTriggerInboxMessages/schemas.js +27 -0
  112. package/dist/plugins/triggers/listTriggerInboxes/index.d.ts +56 -0
  113. package/dist/plugins/triggers/listTriggerInboxes/index.d.ts.map +1 -0
  114. package/dist/plugins/triggers/listTriggerInboxes/index.js +51 -0
  115. package/dist/plugins/triggers/listTriggerInboxes/schemas.d.ts +58 -0
  116. package/dist/plugins/triggers/listTriggerInboxes/schemas.d.ts.map +1 -0
  117. package/dist/plugins/triggers/listTriggerInboxes/schemas.js +35 -0
  118. package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts +77 -0
  119. package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts.map +1 -0
  120. package/dist/plugins/triggers/listTriggerInputFieldChoices/index.js +30 -0
  121. package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.d.ts +20 -0
  122. package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.d.ts.map +1 -0
  123. package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.js +28 -0
  124. package/dist/plugins/triggers/listTriggerInputFields/index.d.ts +101 -0
  125. package/dist/plugins/triggers/listTriggerInputFields/index.d.ts.map +1 -0
  126. package/dist/plugins/triggers/listTriggerInputFields/index.js +33 -0
  127. package/dist/plugins/triggers/listTriggerInputFields/schemas.d.ts +16 -0
  128. package/dist/plugins/triggers/listTriggerInputFields/schemas.d.ts.map +1 -0
  129. package/dist/plugins/triggers/listTriggerInputFields/schemas.js +21 -0
  130. package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts +50 -0
  131. package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts.map +1 -0
  132. package/dist/plugins/triggers/pauseTriggerInbox/index.js +26 -0
  133. package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts +14 -0
  134. package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts.map +1 -0
  135. package/dist/plugins/triggers/pauseTriggerInbox/schemas.js +9 -0
  136. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts +51 -0
  137. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts.map +1 -0
  138. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.js +37 -0
  139. package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.d.ts +34 -0
  140. package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.d.ts.map +1 -0
  141. package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.js +17 -0
  142. package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts +50 -0
  143. package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts.map +1 -0
  144. package/dist/plugins/triggers/resumeTriggerInbox/index.js +26 -0
  145. package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts +14 -0
  146. package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts.map +1 -0
  147. package/dist/plugins/triggers/resumeTriggerInbox/schemas.js +9 -0
  148. package/dist/plugins/triggers/shared.d.ts +17 -0
  149. package/dist/plugins/triggers/shared.d.ts.map +1 -0
  150. package/dist/plugins/triggers/shared.js +16 -0
  151. package/dist/plugins/triggers/updateTriggerInbox/index.d.ts +51 -0
  152. package/dist/plugins/triggers/updateTriggerInbox/index.d.ts.map +1 -0
  153. package/dist/plugins/triggers/updateTriggerInbox/index.js +30 -0
  154. package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts +15 -0
  155. package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts.map +1 -0
  156. package/dist/plugins/triggers/updateTriggerInbox/schemas.js +15 -0
  157. package/dist/plugins/triggers/utils.d.ts +17 -0
  158. package/dist/plugins/triggers/utils.d.ts.map +1 -0
  159. package/dist/plugins/triggers/utils.js +28 -0
  160. package/dist/plugins/triggers/watchTriggerInbox/index.d.ts +163 -0
  161. package/dist/plugins/triggers/watchTriggerInbox/index.d.ts.map +1 -0
  162. package/dist/plugins/triggers/watchTriggerInbox/index.js +111 -0
  163. package/dist/registry.d.ts.map +1 -1
  164. package/dist/registry.js +2 -0
  165. package/dist/resolvers/actionKey.d.ts +1 -0
  166. package/dist/resolvers/actionKey.d.ts.map +1 -1
  167. package/dist/resolvers/actionKey.js +1 -1
  168. package/dist/resolvers/index.d.ts +2 -2
  169. package/dist/resolvers/index.d.ts.map +1 -1
  170. package/dist/resolvers/index.js +2 -2
  171. package/dist/resolvers/triggerInbox.d.ts +4 -0
  172. package/dist/resolvers/triggerInbox.d.ts.map +1 -0
  173. package/dist/resolvers/triggerInbox.js +18 -0
  174. package/dist/schemas/TriggerInbox.d.ts +59 -0
  175. package/dist/schemas/TriggerInbox.d.ts.map +1 -0
  176. package/dist/schemas/TriggerInbox.js +81 -0
  177. package/dist/schemas/TriggerMessage.d.ts +48 -0
  178. package/dist/schemas/TriggerMessage.d.ts.map +1 -0
  179. package/dist/schemas/TriggerMessage.js +79 -0
  180. package/dist/sdk.d.ts +621 -17
  181. package/dist/sdk.d.ts.map +1 -1
  182. package/dist/sdk.js +26 -9
  183. package/dist/types/errors.d.ts +18 -5
  184. package/dist/types/errors.d.ts.map +1 -1
  185. package/dist/types/errors.js +16 -0
  186. package/dist/types/plugin.d.ts +12 -1
  187. package/dist/types/plugin.d.ts.map +1 -1
  188. package/dist/types/properties.d.ts +12 -0
  189. package/dist/types/properties.d.ts.map +1 -1
  190. package/dist/types/properties.js +25 -0
  191. package/dist/types/registry.d.ts +5 -0
  192. package/dist/types/registry.d.ts.map +1 -1
  193. package/dist/types/sdk.d.ts +4 -4
  194. package/dist/types/sdk.d.ts.map +1 -1
  195. package/dist/types/sdk.js +4 -11
  196. package/dist/types/signals.d.ts +20 -0
  197. package/dist/types/signals.d.ts.map +1 -0
  198. package/dist/types/signals.js +21 -0
  199. package/dist/utils/abort-utils.d.ts +13 -0
  200. package/dist/utils/abort-utils.d.ts.map +1 -1
  201. package/dist/utils/abort-utils.js +15 -0
  202. package/dist/utils/retry-utils.d.ts +6 -2
  203. package/dist/utils/retry-utils.d.ts.map +1 -1
  204. package/dist/utils/retry-utils.js +22 -3
  205. package/dist/utils/schema-utils.d.ts +19 -1
  206. package/dist/utils/schema-utils.d.ts.map +1 -1
  207. package/package.json +12 -1
  208. package/dist/plugins/getInputFieldsSchema/index.d.ts.map +0 -1
  209. package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +0 -1
  210. package/dist/plugins/listInputFieldChoices/index.d.ts.map +0 -1
  211. package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +0 -1
  212. package/dist/plugins/listInputFields/index.d.ts.map +0 -1
  213. package/dist/plugins/listInputFields/schemas.d.ts.map +0 -1
@@ -0,0 +1,101 @@
1
+ export declare const listTriggerInputFieldsPlugin: (sdk: {
2
+ listActionInputFields: (options?: (({
3
+ app: string;
4
+ actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | "write";
5
+ action: string;
6
+ connection?: string | number | undefined;
7
+ connectionId?: string | number | null | undefined;
8
+ authenticationId?: string | number | null | undefined;
9
+ inputs?: Record<string, unknown> | undefined;
10
+ pageSize?: number | undefined;
11
+ maxItems?: number | undefined;
12
+ cursor?: string | undefined;
13
+ } | {
14
+ appKey: string;
15
+ actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | "write";
16
+ actionKey: string;
17
+ connection?: string | number | undefined;
18
+ connectionId?: string | number | null | undefined;
19
+ authenticationId?: string | number | null | undefined;
20
+ inputs?: Record<string, unknown> | undefined;
21
+ pageSize?: number | undefined;
22
+ maxItems?: number | undefined;
23
+ cursor?: string | undefined;
24
+ }) & {
25
+ cursor?: string;
26
+ pageSize?: number;
27
+ maxItems?: number;
28
+ }) | undefined) => import("../../..").PaginatedSdkResult<{
29
+ key: string;
30
+ type: "input_field";
31
+ default_value: string;
32
+ depends_on: string[];
33
+ description: string;
34
+ invalidates_input_fields: boolean;
35
+ is_required: boolean;
36
+ placeholder: string;
37
+ title: string;
38
+ value_type: string;
39
+ format?: string | undefined;
40
+ items?: {
41
+ type: string;
42
+ } | undefined;
43
+ } | {
44
+ key: string;
45
+ type: "info_field";
46
+ description: string;
47
+ title?: string | undefined;
48
+ } | import("../../..").FieldsetItem>;
49
+ } & {
50
+ context: {
51
+ meta: {
52
+ listActionInputFields: import("../../..").PluginMeta;
53
+ };
54
+ };
55
+ } & {
56
+ context: {
57
+ meta: Record<string, import("../../..").PluginMeta>;
58
+ };
59
+ }) => {
60
+ listTriggerInputFields: (options?: ({
61
+ app: string;
62
+ action: string;
63
+ connection?: string | number | undefined;
64
+ inputs?: Record<string, unknown> | undefined;
65
+ pageSize?: number | undefined;
66
+ maxItems?: number | undefined;
67
+ cursor?: string | undefined;
68
+ } & {
69
+ cursor?: string;
70
+ pageSize?: number;
71
+ maxItems?: number;
72
+ }) | undefined) => import("../../..").PaginatedSdkResult<{
73
+ key: string;
74
+ type: "input_field";
75
+ default_value: string;
76
+ depends_on: string[];
77
+ description: string;
78
+ invalidates_input_fields: boolean;
79
+ is_required: boolean;
80
+ placeholder: string;
81
+ title: string;
82
+ value_type: string;
83
+ format?: string | undefined;
84
+ items?: {
85
+ type: string;
86
+ } | undefined;
87
+ } | {
88
+ key: string;
89
+ type: "info_field";
90
+ description: string;
91
+ title?: string | undefined;
92
+ } | import("../../..").FieldsetItem>;
93
+ } & {
94
+ context: {
95
+ meta: {
96
+ listTriggerInputFields: import("../../..").PluginMeta;
97
+ };
98
+ };
99
+ };
100
+ export type ListTriggerInputFieldsPluginProvides = ReturnType<typeof listTriggerInputFieldsPlugin>;
101
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/listTriggerInputFields/index.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,4BAA4B,CACpC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { definePlugin, createPaginatedPluginMethod, } from "../../../utils/plugin-utils";
2
+ import { ListTriggerInputFieldsSchema } from "./schemas";
3
+ import { RootFieldItemSchema } from "../../../schemas/Field";
4
+ import { appKeyResolver, actionKeyResolver, connectionIdResolver, inputsAllOptionalResolver, } from "../../../resolvers";
5
+ import { triggersDefaults } from "../shared";
6
+ import { DEFAULT_PAGE_SIZE } from "../../../constants";
7
+ export const listTriggerInputFieldsPlugin = definePlugin((sdk) => createPaginatedPluginMethod(sdk, {
8
+ ...triggersDefaults,
9
+ name: "listTriggerInputFields",
10
+ type: "list",
11
+ itemType: "RootField",
12
+ inputSchema: ListTriggerInputFieldsSchema,
13
+ outputSchema: RootFieldItemSchema,
14
+ defaultPageSize: DEFAULT_PAGE_SIZE,
15
+ // actionKeyResolver and inputsAllOptionalResolver depend on actionType.
16
+ // Pin it to "read" so they resolve correctly without the user setting it.
17
+ resolvers: {
18
+ app: appKeyResolver,
19
+ action: actionKeyResolver,
20
+ connection: connectionIdResolver,
21
+ inputs: inputsAllOptionalResolver,
22
+ actionType: { type: "constant", value: "read" },
23
+ },
24
+ handler: async ({ sdk, options, }) => {
25
+ // Thin pass-through to listActionInputFields with actionType pinned.
26
+ // Awaiting the paginated method returns the first page.
27
+ const result = await sdk.listActionInputFields({
28
+ ...options,
29
+ actionType: "read",
30
+ });
31
+ return { data: result.data, nextCursor: result.nextCursor };
32
+ },
33
+ }));
@@ -0,0 +1,16 @@
1
+ import { z } from "zod";
2
+ export declare const ListTriggerInputFieldsSchema: z.ZodObject<{
3
+ app: z.ZodString & {
4
+ _def: z.core.$ZodStringDef & import("../../..").PositionalMetadata;
5
+ };
6
+ action: z.ZodString & {
7
+ _def: z.core.$ZodStringDef & import("../../..").PositionalMetadata;
8
+ };
9
+ connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
10
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ pageSize: z.ZodOptional<z.ZodNumber>;
12
+ maxItems: z.ZodOptional<z.ZodNumber>;
13
+ cursor: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ export type ListTriggerInputFieldsOptions = z.infer<typeof ListTriggerInputFieldsSchema>;
16
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/listTriggerInputFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAsB0B,CAAC;AAEpE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,4BAA4B,CACpC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ import { AppPropertySchema, ActionPropertySchema, ConnectionPropertySchema, InputsPropertySchema, } from "../../../types/properties";
3
+ export const ListTriggerInputFieldsSchema = z
4
+ .object({
5
+ app: AppPropertySchema,
6
+ action: ActionPropertySchema,
7
+ connection: ConnectionPropertySchema.optional().describe("Connection alias or connection ID. Required if the trigger needs a connection to determine available fields."),
8
+ inputs: InputsPropertySchema.optional().describe("Current input values that may affect available fields"),
9
+ pageSize: z
10
+ .number()
11
+ .min(1)
12
+ .optional()
13
+ .describe("Number of input fields per page"),
14
+ maxItems: z
15
+ .number()
16
+ .min(1)
17
+ .optional()
18
+ .describe("Maximum total items to return across all pages"),
19
+ cursor: z.string().optional().describe("Cursor to start from"),
20
+ })
21
+ .describe("Get the input fields required for a specific trigger");
@@ -0,0 +1,50 @@
1
+ export declare const pauseTriggerInboxPlugin: (sdk: {
2
+ context: {
3
+ api: import("../../..").ApiClient;
4
+ resolveCredentials: () => Promise<string | {
5
+ clientId: string;
6
+ clientSecret: string;
7
+ type?: "client_credentials" | undefined;
8
+ baseUrl?: string | undefined;
9
+ scope?: string | undefined;
10
+ } | {
11
+ clientId: string;
12
+ type?: "pkce" | undefined;
13
+ baseUrl?: string | undefined;
14
+ scope?: string | undefined;
15
+ } | undefined>;
16
+ };
17
+ } & {
18
+ context: import("../../eventEmission").EventEmissionContext;
19
+ } & {
20
+ context: {
21
+ meta: Record<string, import("../../..").PluginMeta>;
22
+ };
23
+ }) => {
24
+ pauseTriggerInbox: (options?: {
25
+ inbox: string;
26
+ } | undefined) => Promise<{
27
+ data: {
28
+ id: string;
29
+ created_at: string;
30
+ name: string | null;
31
+ status: string;
32
+ paused_reason: string | null;
33
+ notification_url: string | null;
34
+ subscription: {
35
+ connection_id: string | number | null;
36
+ app_key: string;
37
+ action_key: string;
38
+ inputs: Record<string, unknown>;
39
+ };
40
+ };
41
+ }>;
42
+ } & {
43
+ context: {
44
+ meta: {
45
+ pauseTriggerInbox: import("../../..").PluginMeta;
46
+ };
47
+ };
48
+ };
49
+ export type PauseTriggerInboxPluginProvides = ReturnType<typeof pauseTriggerInboxPlugin>;
50
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/pauseTriggerInbox/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BnC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,uBAAuB,CAC/B,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { definePlugin, createPluginMethod } from "../../../utils/plugin-utils";
2
+ import { PauseTriggerInboxSchema, TriggerInboxItemSchema } from "./schemas";
3
+ import { triggerInboxResolver } from "../../../resolvers";
4
+ import { resolveTriggerInboxId } from "../utils";
5
+ import { triggersDefaults } from "../shared";
6
+ export const pauseTriggerInboxPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
7
+ ...triggersDefaults,
8
+ name: "pauseTriggerInbox",
9
+ type: "update",
10
+ itemType: "TriggerInbox",
11
+ inputSchema: PauseTriggerInboxSchema,
12
+ outputSchema: TriggerInboxItemSchema,
13
+ resolvers: { inbox: triggerInboxResolver },
14
+ handler: async ({ sdk, options }) => {
15
+ const { inbox } = options;
16
+ const inboxId = await resolveTriggerInboxId({
17
+ api: sdk.context.api,
18
+ inbox,
19
+ });
20
+ const rawResponse = await sdk.context.api.post(`/trigger-inbox/api/v1/inboxes/${encodeURIComponent(inboxId)}/pause`, undefined, {
21
+ authRequired: true,
22
+ resource: { type: "trigger_inbox", id: inboxId },
23
+ });
24
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
25
+ },
26
+ }));
@@ -0,0 +1,14 @@
1
+ import { z } from "zod";
2
+ import type { FunctionOptions } from "../../../types/functions";
3
+ import { TriggerInboxItemSchema, type TriggerInboxItem } from "../../../schemas/TriggerInbox";
4
+ export declare const PauseTriggerInboxSchema: z.ZodObject<{
5
+ inbox: z.ZodString & {
6
+ _def: z.core.$ZodStringDef & import("../../..").PositionalMetadata;
7
+ };
8
+ }, z.core.$strip>;
9
+ export type PauseTriggerInboxOptions = z.infer<typeof PauseTriggerInboxSchema> & FunctionOptions;
10
+ export interface PauseTriggerInboxResult {
11
+ data: TriggerInboxItem;
12
+ }
13
+ export { TriggerInboxItemSchema };
14
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/pauseTriggerInbox/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EACL,sBAAsB,EACtB,KAAK,gBAAgB,EACtB,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,uBAAuB;;;;iBAI6B,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,GAC5E,eAAe,CAAC;AAElB,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ import { TriggerInboxPropertySchema } from "../../../types/properties";
3
+ import { TriggerInboxItemSchema, } from "../../../schemas/TriggerInbox";
4
+ export const PauseTriggerInboxSchema = z
5
+ .object({
6
+ inbox: TriggerInboxPropertySchema,
7
+ })
8
+ .describe("Pause a trigger inbox; events stop being collected");
9
+ export { TriggerInboxItemSchema };
@@ -0,0 +1,51 @@
1
+ export declare const releaseTriggerInboxMessagesPlugin: (sdk: {
2
+ context: {
3
+ api: import("../../..").ApiClient;
4
+ resolveCredentials: () => Promise<string | {
5
+ clientId: string;
6
+ clientSecret: string;
7
+ type?: "client_credentials" | undefined;
8
+ baseUrl?: string | undefined;
9
+ scope?: string | undefined;
10
+ } | {
11
+ clientId: string;
12
+ type?: "pkce" | undefined;
13
+ baseUrl?: string | undefined;
14
+ scope?: string | undefined;
15
+ } | undefined>;
16
+ };
17
+ } & {
18
+ context: import("../../eventEmission").EventEmissionContext;
19
+ } & {
20
+ context: {
21
+ meta: Record<string, import("../../..").PluginMeta>;
22
+ };
23
+ }) => {
24
+ releaseTriggerInboxMessages: (options?: {
25
+ inbox: string;
26
+ lease: string;
27
+ messages?: string[] | undefined;
28
+ } | undefined) => Promise<{
29
+ data: {
30
+ released_id: string | null;
31
+ results: {
32
+ id: string;
33
+ created_at: string;
34
+ status: string;
35
+ message_attributes: {
36
+ lease_count: number;
37
+ error_message: string | null;
38
+ possible_duplicate_data: boolean;
39
+ };
40
+ }[];
41
+ };
42
+ }>;
43
+ } & {
44
+ context: {
45
+ meta: {
46
+ releaseTriggerInboxMessages: import("../../..").PluginMeta;
47
+ };
48
+ };
49
+ };
50
+ export type ReleaseTriggerInboxMessagesPluginProvides = ReturnType<typeof releaseTriggerInboxMessagesPlugin>;
51
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/releaseTriggerInboxMessages/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC7C,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG,UAAU,CAChE,OAAO,iCAAiC,CACzC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { definePlugin, createPluginMethod } from "../../../utils/plugin-utils";
2
+ import { ReleaseTriggerInboxMessagesSchema, ReleaseTriggerInboxMessagesItemSchema, } from "./schemas";
3
+ import { triggerInboxResolver } from "../../../resolvers";
4
+ import { resolveTriggerInboxId } from "../utils";
5
+ import { triggersDefaults } from "../shared";
6
+ export const releaseTriggerInboxMessagesPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
7
+ ...triggersDefaults,
8
+ name: "releaseTriggerInboxMessages",
9
+ type: "create",
10
+ itemType: "TriggerInboxRelease",
11
+ inputSchema: ReleaseTriggerInboxMessagesSchema,
12
+ outputSchema: ReleaseTriggerInboxMessagesItemSchema,
13
+ resolvers: {
14
+ inbox: triggerInboxResolver,
15
+ // No way to look up a lease — leases are short-lived, only the
16
+ // most recent leaseTriggerInboxMessages caller knows the ID.
17
+ // Static resolver prompts for free-text input.
18
+ lease: { type: "static", inputType: "text" },
19
+ },
20
+ handler: async ({ sdk, options }) => {
21
+ const { inbox, lease, messages } = options;
22
+ const inboxId = await resolveTriggerInboxId({
23
+ api: sdk.context.api,
24
+ inbox,
25
+ });
26
+ const requestBody = {
27
+ lease_id: lease,
28
+ };
29
+ if (messages !== undefined) {
30
+ requestBody.message_ids = messages;
31
+ }
32
+ const rawResponse = await sdk.context.api.post(`/trigger-inbox/api/v1/inboxes/${encodeURIComponent(inboxId)}/messages/release`, requestBody, { authRequired: true });
33
+ return {
34
+ data: ReleaseTriggerInboxMessagesItemSchema.parse(rawResponse),
35
+ };
36
+ },
37
+ }));
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ import { type TriggerMessageItem } from "../../../schemas/TriggerMessage";
3
+ export declare const ReleaseTriggerInboxMessagesSchema: z.ZodObject<{
4
+ inbox: z.ZodString & {
5
+ _def: z.core.$ZodStringDef & import("../../..").PositionalMetadata;
6
+ };
7
+ lease: z.ZodString;
8
+ messages: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ }, z.core.$strip>;
10
+ export type ReleaseTriggerInboxMessagesOptions = z.infer<typeof ReleaseTriggerInboxMessagesSchema>;
11
+ export declare const ReleaseTriggerInboxMessagesItemSchema: z.ZodObject<{
12
+ released_id: z.ZodNullable<z.ZodString>;
13
+ results: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodString;
15
+ created_at: z.ZodString;
16
+ status: z.ZodUnion<readonly [z.ZodEnum<{
17
+ available: "available";
18
+ leased: "leased";
19
+ acked: "acked";
20
+ quarantined: "quarantined";
21
+ }>, z.ZodString]>;
22
+ message_attributes: z.ZodObject<{
23
+ lease_count: z.ZodNumber;
24
+ error_message: z.ZodNullable<z.ZodString>;
25
+ possible_duplicate_data: z.ZodBoolean;
26
+ }, z.core.$strip>;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>;
29
+ export type ReleaseTriggerInboxMessagesItem = z.infer<typeof ReleaseTriggerInboxMessagesItemSchema>;
30
+ export interface ReleaseTriggerInboxMessagesResult {
31
+ data: ReleaseTriggerInboxMessagesItem;
32
+ }
33
+ export type ReleasedMessage = TriggerMessageItem;
34
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/releaseTriggerInboxMessages/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,iCAAiC;;;;;;iBAa3C,CAAC;AAEJ,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;iBAGhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,+BAA+B,CAAC;CACvC;AAED,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ import { TriggerInboxPropertySchema, LeasePropertySchema, } from "../../../types/properties";
3
+ import { TriggerMessageItemSchema, } from "../../../schemas/TriggerMessage";
4
+ export const ReleaseTriggerInboxMessagesSchema = z
5
+ .object({
6
+ inbox: TriggerInboxPropertySchema,
7
+ lease: LeasePropertySchema,
8
+ messages: z
9
+ .array(z.string().min(1))
10
+ .optional()
11
+ .describe("Specific message IDs to release. Omit to release every message in the lease."),
12
+ })
13
+ .describe("Release messages from a lease back to the inbox without acknowledging them. Released messages become immediately available for re-leasing. The lease attempt still counts against the per-message lease limit; releasing does not refund the attempt.");
14
+ export const ReleaseTriggerInboxMessagesItemSchema = z.object({
15
+ released_id: z.string().nullable(),
16
+ results: z.array(TriggerMessageItemSchema),
17
+ });
@@ -0,0 +1,50 @@
1
+ export declare const resumeTriggerInboxPlugin: (sdk: {
2
+ context: {
3
+ api: import("../../..").ApiClient;
4
+ resolveCredentials: () => Promise<string | {
5
+ clientId: string;
6
+ clientSecret: string;
7
+ type?: "client_credentials" | undefined;
8
+ baseUrl?: string | undefined;
9
+ scope?: string | undefined;
10
+ } | {
11
+ clientId: string;
12
+ type?: "pkce" | undefined;
13
+ baseUrl?: string | undefined;
14
+ scope?: string | undefined;
15
+ } | undefined>;
16
+ };
17
+ } & {
18
+ context: import("../../eventEmission").EventEmissionContext;
19
+ } & {
20
+ context: {
21
+ meta: Record<string, import("../../..").PluginMeta>;
22
+ };
23
+ }) => {
24
+ resumeTriggerInbox: (options?: {
25
+ inbox: string;
26
+ } | undefined) => Promise<{
27
+ data: {
28
+ id: string;
29
+ created_at: string;
30
+ name: string | null;
31
+ status: string;
32
+ paused_reason: string | null;
33
+ notification_url: string | null;
34
+ subscription: {
35
+ connection_id: string | number | null;
36
+ app_key: string;
37
+ action_key: string;
38
+ inputs: Record<string, unknown>;
39
+ };
40
+ };
41
+ }>;
42
+ } & {
43
+ context: {
44
+ meta: {
45
+ resumeTriggerInbox: import("../../..").PluginMeta;
46
+ };
47
+ };
48
+ };
49
+ export type ResumeTriggerInboxPluginProvides = ReturnType<typeof resumeTriggerInboxPlugin>;
50
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/resumeTriggerInbox/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BpC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,wBAAwB,CAChC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { definePlugin, createPluginMethod } from "../../../utils/plugin-utils";
2
+ import { ResumeTriggerInboxSchema, TriggerInboxItemSchema } from "./schemas";
3
+ import { triggerInboxResolver } from "../../../resolvers";
4
+ import { resolveTriggerInboxId } from "../utils";
5
+ import { triggersDefaults } from "../shared";
6
+ export const resumeTriggerInboxPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
7
+ ...triggersDefaults,
8
+ name: "resumeTriggerInbox",
9
+ type: "update",
10
+ itemType: "TriggerInbox",
11
+ inputSchema: ResumeTriggerInboxSchema,
12
+ outputSchema: TriggerInboxItemSchema,
13
+ resolvers: { inbox: triggerInboxResolver },
14
+ handler: async ({ sdk, options }) => {
15
+ const { inbox } = options;
16
+ const inboxId = await resolveTriggerInboxId({
17
+ api: sdk.context.api,
18
+ inbox,
19
+ });
20
+ const rawResponse = await sdk.context.api.post(`/trigger-inbox/api/v1/inboxes/${encodeURIComponent(inboxId)}/resume`, undefined, {
21
+ authRequired: true,
22
+ resource: { type: "trigger_inbox", id: inboxId },
23
+ });
24
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
25
+ },
26
+ }));
@@ -0,0 +1,14 @@
1
+ import { z } from "zod";
2
+ import type { FunctionOptions } from "../../../types/functions";
3
+ import { TriggerInboxItemSchema, type TriggerInboxItem } from "../../../schemas/TriggerInbox";
4
+ export declare const ResumeTriggerInboxSchema: z.ZodObject<{
5
+ inbox: z.ZodString & {
6
+ _def: z.core.$ZodStringDef & import("../../..").PositionalMetadata;
7
+ };
8
+ }, z.core.$strip>;
9
+ export type ResumeTriggerInboxOptions = z.infer<typeof ResumeTriggerInboxSchema> & FunctionOptions;
10
+ export interface ResumeTriggerInboxResult {
11
+ data: TriggerInboxItem;
12
+ }
13
+ export { TriggerInboxItemSchema };
14
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/resumeTriggerInbox/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EACL,sBAAsB,EACtB,KAAK,gBAAgB,EACtB,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,wBAAwB;;;;iBAIsC,CAAC;AAE5E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,wBAAwB,CAChC,GACC,eAAe,CAAC;AAElB,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ import { TriggerInboxPropertySchema } from "../../../types/properties";
3
+ import { TriggerInboxItemSchema, } from "../../../schemas/TriggerInbox";
4
+ export const ResumeTriggerInboxSchema = z
5
+ .object({
6
+ inbox: TriggerInboxPropertySchema,
7
+ })
8
+ .describe("Resume a paused trigger inbox; events resume being collected");
9
+ export { TriggerInboxItemSchema };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Method-meta defaults shared across every plugin in the `triggers/` domain.
3
+ * Each plugin spreads `...triggersDefaults` into its `createPluginMethod` /
4
+ * `createPaginatedPluginMethod` config so we declare these once instead of
5
+ * per plugin.
6
+ *
7
+ * `experimental: true` keeps every trigger method out of the stable SDK
8
+ * factory — they're registered only by the experimental subpath
9
+ * (`@zapier/zapier-sdk/experimental`) — and adds an "experimental"
10
+ * marker in generated docs / CLI help. See the "Experimental gating"
11
+ * section in `docs/design/2026-05-01-triggers-in-sdk.md`.
12
+ */
13
+ export declare const triggersDefaults: {
14
+ categories: string[];
15
+ experimental: true;
16
+ };
17
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/plugins/triggers/shared.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB;;;CAGE,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Method-meta defaults shared across every plugin in the `triggers/` domain.
3
+ * Each plugin spreads `...triggersDefaults` into its `createPluginMethod` /
4
+ * `createPaginatedPluginMethod` config so we declare these once instead of
5
+ * per plugin.
6
+ *
7
+ * `experimental: true` keeps every trigger method out of the stable SDK
8
+ * factory — they're registered only by the experimental subpath
9
+ * (`@zapier/zapier-sdk/experimental`) — and adds an "experimental"
10
+ * marker in generated docs / CLI help. See the "Experimental gating"
11
+ * section in `docs/design/2026-05-01-triggers-in-sdk.md`.
12
+ */
13
+ export const triggersDefaults = {
14
+ categories: ["trigger"],
15
+ experimental: true,
16
+ };
@@ -0,0 +1,51 @@
1
+ export declare const updateTriggerInboxPlugin: (sdk: {
2
+ context: {
3
+ api: import("../../..").ApiClient;
4
+ resolveCredentials: () => Promise<string | {
5
+ clientId: string;
6
+ clientSecret: string;
7
+ type?: "client_credentials" | undefined;
8
+ baseUrl?: string | undefined;
9
+ scope?: string | undefined;
10
+ } | {
11
+ clientId: string;
12
+ type?: "pkce" | undefined;
13
+ baseUrl?: string | undefined;
14
+ scope?: string | undefined;
15
+ } | undefined>;
16
+ };
17
+ } & {
18
+ context: import("../../eventEmission").EventEmissionContext;
19
+ } & {
20
+ context: {
21
+ meta: Record<string, import("../../..").PluginMeta>;
22
+ };
23
+ }) => {
24
+ updateTriggerInbox: (options?: {
25
+ inbox: string;
26
+ notificationUrl?: string | null | undefined;
27
+ } | undefined) => Promise<{
28
+ data: {
29
+ id: string;
30
+ created_at: string;
31
+ name: string | null;
32
+ status: string;
33
+ paused_reason: string | null;
34
+ notification_url: string | null;
35
+ subscription: {
36
+ connection_id: string | number | null;
37
+ app_key: string;
38
+ action_key: string;
39
+ inputs: Record<string, unknown>;
40
+ };
41
+ };
42
+ }>;
43
+ } & {
44
+ context: {
45
+ meta: {
46
+ updateTriggerInbox: import("../../..").PluginMeta;
47
+ };
48
+ };
49
+ };
50
+ export type UpdateTriggerInboxPluginProvides = ReturnType<typeof updateTriggerInboxPlugin>;
51
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/updateTriggerInbox/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCpC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,wBAAwB,CAChC,CAAC"}