n8n-nodes-base 3.0.1 → 3.2.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 (194) hide show
  1. package/dist/cjs/build.tsbuildinfo +1 -1
  2. package/dist/credentials/MicrosoftWorkIqOAuth2Api.credentials.d.ts +10 -0
  3. package/dist/credentials/MicrosoftWorkIqOAuth2Api.credentials.d.ts.map +1 -0
  4. package/dist/credentials/MicrosoftWorkIqOAuth2Api.credentials.js +101 -0
  5. package/dist/credentials/MicrosoftWorkIqOAuth2Api.credentials.js.map +1 -0
  6. package/dist/credentials/NotionApi.credentials.d.ts.map +1 -1
  7. package/dist/credentials/NotionApi.credentials.js +3 -4
  8. package/dist/credentials/NotionApi.credentials.js.map +1 -1
  9. package/dist/credentials/OpenWeatherMapApi.credentials.d.ts.map +1 -1
  10. package/dist/credentials/OpenWeatherMapApi.credentials.js +8 -2
  11. package/dist/credentials/OpenWeatherMapApi.credentials.js.map +1 -1
  12. package/dist/credentials/PaddleApi.credentials.d.ts.map +1 -1
  13. package/dist/credentials/PaddleApi.credentials.js +7 -1
  14. package/dist/credentials/PaddleApi.credentials.js.map +1 -1
  15. package/dist/credentials/PerplexityApi.credentials.d.ts.map +1 -1
  16. package/dist/credentials/PerplexityApi.credentials.js +2 -6
  17. package/dist/credentials/PerplexityApi.credentials.js.map +1 -1
  18. package/dist/known/credentials.json +7 -0
  19. package/dist/node-definitions/.nodes-hash +1 -1
  20. package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
  21. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
  22. package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/index.schema.js +2 -0
  23. package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/index.ts +3 -0
  24. package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_user/index.schema.js +18 -0
  25. package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_user/index.ts +10 -0
  26. package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_user/operation_get.schema.js +24 -0
  27. package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_user/operation_get.ts +59 -0
  28. package/dist/node-definitions/nodes/n8n-nodes-base/openWeatherMap/index.ts +3 -1
  29. package/dist/node-definitions/nodes/n8n-nodes-base/openWeatherMap/v11.schema.js +32 -0
  30. package/dist/node-definitions/nodes/n8n-nodes-base/openWeatherMap/v11.ts +68 -0
  31. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/index.ts +1 -1
  32. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/index.schema.js +1 -1
  33. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/index.ts +1 -1
  34. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/index.schema.js +1 -1
  35. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/index.ts +1 -1
  36. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_create.schema.js +1 -1
  37. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_create.ts +1 -1
  38. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_get_all.schema.js +1 -1
  39. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_get_all.ts +1 -1
  40. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_update.schema.js +1 -1
  41. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_update.ts +1 -1
  42. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/index.schema.js +1 -1
  43. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/index.ts +1 -1
  44. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/operation_get_all.schema.js +1 -1
  45. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/operation_get_all.ts +1 -1
  46. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/operation_reschedule.schema.js +1 -1
  47. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/operation_reschedule.ts +1 -1
  48. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/index.schema.js +1 -1
  49. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/index.ts +1 -1
  50. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/operation_get.schema.js +1 -1
  51. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/operation_get.ts +1 -1
  52. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/operation_get_all.schema.js +1 -1
  53. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/operation_get_all.ts +1 -1
  54. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_product/index.schema.js +1 -1
  55. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_product/index.ts +1 -1
  56. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_product/operation_get_all.schema.js +1 -1
  57. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_product/operation_get_all.ts +1 -1
  58. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_user/index.schema.js +1 -1
  59. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_user/index.ts +1 -1
  60. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_user/operation_get_all.schema.js +1 -1
  61. package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_user/operation_get_all.ts +1 -1
  62. package/dist/nodes/Compression/Compression.node.js +1 -1
  63. package/dist/nodes/Compression/Compression.node.js.map +1 -1
  64. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.d.ts.map +1 -1
  65. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +2 -1
  66. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
  67. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.d.ts.map +1 -1
  68. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +3 -2
  69. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
  70. package/dist/nodes/Google/Calendar/GoogleCalendar.node.js +1 -1
  71. package/dist/nodes/Google/Calendar/GoogleCalendar.node.js.map +1 -1
  72. package/dist/nodes/Google/Docs/GenericFunctions.d.ts.map +1 -1
  73. package/dist/nodes/Google/Docs/GenericFunctions.js +17 -3
  74. package/dist/nodes/Google/Docs/GenericFunctions.js.map +1 -1
  75. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts.map +1 -1
  76. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +39 -11
  77. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
  78. package/dist/nodes/Google/Gmail/Gmail.node.d.ts.map +1 -1
  79. package/dist/nodes/Google/Gmail/Gmail.node.js +1 -0
  80. package/dist/nodes/Google/Gmail/Gmail.node.js.map +1 -1
  81. package/dist/nodes/Google/Gmail/GmailTrigger.node.js +1 -1
  82. package/dist/nodes/Google/Gmail/GmailTrigger.node.js.map +1 -1
  83. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.d.ts +1 -1
  84. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.d.ts.map +1 -1
  85. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js +9 -0
  86. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js.map +1 -1
  87. package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/SpreadSheet.resource.d.ts.map +1 -1
  88. package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/SpreadSheet.resource.js +2 -0
  89. package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/SpreadSheet.resource.js.map +1 -1
  90. package/dist/nodes/HttpRequest/V3/Description.d.ts +1 -1
  91. package/dist/nodes/HttpRequest/V3/Description.d.ts.map +1 -1
  92. package/dist/nodes/HttpRequest/V3/Description.js +17 -7
  93. package/dist/nodes/HttpRequest/V3/Description.js.map +1 -1
  94. package/dist/nodes/Jenkins/GenericFunctions.d.ts.map +1 -1
  95. package/dist/nodes/Jenkins/GenericFunctions.js +99 -9
  96. package/dist/nodes/Jenkins/GenericFunctions.js.map +1 -1
  97. package/dist/nodes/Linear/GenericFunctions.d.ts.map +1 -1
  98. package/dist/nodes/Linear/GenericFunctions.js +3 -2
  99. package/dist/nodes/Linear/GenericFunctions.js.map +1 -1
  100. package/dist/nodes/Microsoft/Outlook/MicrosoftOutlookTrigger.node.js +3 -3
  101. package/dist/nodes/Microsoft/Outlook/MicrosoftOutlookTrigger.node.js.map +1 -1
  102. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.d.ts.map +1 -1
  103. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +106 -112
  104. package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -1
  105. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.d.ts +74 -6
  106. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.d.ts.map +1 -1
  107. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js +367 -109
  108. package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js.map +1 -1
  109. package/dist/nodes/Microsoft/Teams/v2/transport/forbiddenHints.d.ts +10 -0
  110. package/dist/nodes/Microsoft/Teams/v2/transport/forbiddenHints.d.ts.map +1 -1
  111. package/dist/nodes/Microsoft/Teams/v2/transport/forbiddenHints.js +24 -4
  112. package/dist/nodes/Microsoft/Teams/v2/transport/forbiddenHints.js.map +1 -1
  113. package/dist/nodes/MongoDb/mongodb.svg +3 -1
  114. package/dist/nodes/N8n/N8n.node.d.ts.map +1 -1
  115. package/dist/nodes/N8n/N8n.node.js +7 -0
  116. package/dist/nodes/N8n/N8n.node.js.map +1 -1
  117. package/dist/nodes/N8n/UserDescription.d.ts +4 -0
  118. package/dist/nodes/N8n/UserDescription.d.ts.map +1 -0
  119. package/dist/nodes/N8n/UserDescription.js +86 -0
  120. package/dist/nodes/N8n/UserDescription.js.map +1 -0
  121. package/dist/nodes/Notion/shared/GenericFunctions.d.ts +3 -3
  122. package/dist/nodes/Notion/shared/GenericFunctions.d.ts.map +1 -1
  123. package/dist/nodes/OpenWeatherMap/OpenWeatherMap.node.d.ts.map +1 -1
  124. package/dist/nodes/OpenWeatherMap/OpenWeatherMap.node.js +12 -9
  125. package/dist/nodes/OpenWeatherMap/OpenWeatherMap.node.js.map +1 -1
  126. package/dist/nodes/Paddle/Paddle.node.d.ts.map +1 -1
  127. package/dist/nodes/Paddle/Paddle.node.js +9 -3
  128. package/dist/nodes/Paddle/Paddle.node.js.map +1 -1
  129. package/dist/nodes/Postgres/v1/PostgresV1.node.d.ts.map +1 -1
  130. package/dist/nodes/Postgres/v1/PostgresV1.node.js +23 -6
  131. package/dist/nodes/Postgres/v1/PostgresV1.node.js.map +1 -1
  132. package/dist/nodes/Postgres/v2/actions/database/Database.resource.d.ts +1 -1
  133. package/dist/nodes/Postgres/v2/actions/database/Database.resource.d.ts.map +1 -1
  134. package/dist/nodes/Postgres/v2/actions/database/Database.resource.js +6 -0
  135. package/dist/nodes/Postgres/v2/actions/database/Database.resource.js.map +1 -1
  136. package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.d.ts.map +1 -1
  137. package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.js +3 -0
  138. package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.js.map +1 -1
  139. package/dist/nodes/Postgres/v2/actions/router.d.ts.map +1 -1
  140. package/dist/nodes/Postgres/v2/actions/router.js +15 -1
  141. package/dist/nodes/Postgres/v2/actions/router.js.map +1 -1
  142. package/dist/nodes/RabbitMQ/GenericFunctions.js +2 -2
  143. package/dist/nodes/RabbitMQ/GenericFunctions.js.map +1 -1
  144. package/dist/nodes/Slack/V2/GenericFunctions.d.ts.map +1 -1
  145. package/dist/nodes/Slack/V2/GenericFunctions.js +1 -7
  146. package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
  147. package/dist/nodes/Slack/V2/SlackHitlWebhook.js +1 -1
  148. package/dist/nodes/Slack/V2/SlackHitlWebhook.js.map +1 -1
  149. package/dist/nodes/Snowflake/GenericFunctions.d.ts +3 -3
  150. package/dist/nodes/Snowflake/GenericFunctions.d.ts.map +1 -1
  151. package/dist/nodes/Snowflake/GenericFunctions.js +12 -6
  152. package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
  153. package/dist/nodes/Snowflake/Snowflake.node.d.ts.map +1 -1
  154. package/dist/nodes/Snowflake/Snowflake.node.js +4 -6
  155. package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
  156. package/dist/nodes/Splunk/v1/GenericFunctions.d.ts +2 -2
  157. package/dist/nodes/Splunk/v1/GenericFunctions.d.ts.map +1 -1
  158. package/dist/nodes/Splunk/v1/GenericFunctions.js +10 -3
  159. package/dist/nodes/Splunk/v1/GenericFunctions.js.map +1 -1
  160. package/dist/nodes/Splunk/v1/SplunkV1.node.js +4 -4
  161. package/dist/nodes/Splunk/v1/SplunkV1.node.js.map +1 -1
  162. package/dist/nodes/Splunk/v2/actions/report/getAll.operation.js +1 -1
  163. package/dist/nodes/Splunk/v2/actions/report/getAll.operation.js.map +1 -1
  164. package/dist/nodes/Splunk/v2/actions/search/getAll.operation.js +1 -1
  165. package/dist/nodes/Splunk/v2/actions/search/getAll.operation.js.map +1 -1
  166. package/dist/nodes/Splunk/v2/actions/search/getResult.operation.js +1 -1
  167. package/dist/nodes/Splunk/v2/actions/search/getResult.operation.js.map +1 -1
  168. package/dist/nodes/Splunk/v2/actions/user/getAll.operation.d.ts +1 -1
  169. package/dist/nodes/Splunk/v2/actions/user/getAll.operation.d.ts.map +1 -1
  170. package/dist/nodes/Splunk/v2/actions/user/getAll.operation.js +2 -2
  171. package/dist/nodes/Splunk/v2/actions/user/getAll.operation.js.map +1 -1
  172. package/dist/nodes/Splunk/v2/helpers/utils.d.ts +2 -2
  173. package/dist/nodes/Splunk/v2/helpers/utils.d.ts.map +1 -1
  174. package/dist/nodes/Splunk/v2/helpers/utils.js +10 -3
  175. package/dist/nodes/Splunk/v2/helpers/utils.js.map +1 -1
  176. package/dist/nodes/Telegram/GenericFunctions.d.ts.map +1 -1
  177. package/dist/nodes/Telegram/GenericFunctions.js +1 -5
  178. package/dist/nodes/Telegram/GenericFunctions.js.map +1 -1
  179. package/dist/nodes/Telegram/TelegramTrigger.node.d.ts.map +1 -1
  180. package/dist/nodes/Telegram/TelegramTrigger.node.js +4 -1
  181. package/dist/nodes/Telegram/TelegramTrigger.node.js.map +1 -1
  182. package/dist/nodes/Telegram/hitl/setup.d.ts.map +1 -1
  183. package/dist/nodes/Telegram/hitl/setup.js +7 -9
  184. package/dist/nodes/Telegram/hitl/setup.js.map +1 -1
  185. package/dist/nodes/Telegram/hitl/tokens.d.ts +13 -0
  186. package/dist/nodes/Telegram/hitl/tokens.d.ts.map +1 -1
  187. package/dist/nodes/Telegram/hitl/tokens.js +25 -2
  188. package/dist/nodes/Telegram/hitl/tokens.js.map +1 -1
  189. package/dist/nodes/Telegram/hitl/webhook.d.ts.map +1 -1
  190. package/dist/nodes/Telegram/hitl/webhook.js +4 -1
  191. package/dist/nodes/Telegram/hitl/webhook.js.map +1 -1
  192. package/dist/types/credentials.json +4 -3
  193. package/dist/types/nodes.json +12 -12
  194. package/package.json +23 -21
@@ -1,22 +1,90 @@
1
1
  import type { IHookFunctions, IDataObject, IWebhookFunctions } from 'n8n-workflow';
2
2
  import type { TeamResponse, ChannelResponse, SubscriptionResponse, LifecycleNotification } from './types';
3
3
  export declare function generateClientState(): string;
4
+ /** One shape for every trigger log line: the prefix, the workflow and node, then the fields. */
5
+ export declare function logTrigger(this: IHookFunctions | IWebhookFunctions, level: 'debug' | 'warn', message: string, fields?: Record<string, unknown>): void;
4
6
  export declare function isLiveSubscription(subscription: SubscriptionResponse): boolean;
5
7
  /** The stored clientState. An empty string counts as none, as in `verifyWebhook`. */
6
8
  export declare function getStoredSecret(webhookData: IDataObject): string | undefined;
7
- /** Deletes one subscription. A `404` counts as done, for example after it expired. */
8
- export declare function deleteSubscription(this: IHookFunctions | IWebhookFunctions, subscriptionId: string): Promise<void>;
9
+ /** The stored subscription ids, strings only. */
10
+ export declare function getStoredIds(webhookData: IDataObject): string[];
11
+ /**
12
+ * Deletes every id once, all in parallel, and returns the ids Graph refused to remove, in input
13
+ * order. Never throws: a 404 counts as done, an id that fails validation is warned only, and every
14
+ * other refusal is warned and returned, so the caller decides what it means.
15
+ */
16
+ export declare function deleteSubscriptions(this: IHookFunctions | IWebhookFunctions, ids: Iterable<string>): Promise<string[]>;
9
17
  export declare function fetchAllTeams(this: IHookFunctions | IWebhookFunctions): Promise<TeamResponse[]>;
10
18
  export declare function fetchAllChannels(this: IHookFunctions | IWebhookFunctions, teamId: string): Promise<ChannelResponse[]>;
11
19
  export declare function createSubscription(this: IHookFunctions | IWebhookFunctions, webhookUrl: string, resourcePath: string, clientState: string): Promise<SubscriptionResponse>;
20
+ /**
21
+ * Creates one subscription per resource in parallel. Every POST settles first, so the
22
+ * ids that landed are known before the cleanup core runs next. An error is returned as
23
+ * thrown (`ensureError` keeps the object), so a Graph 403 keeps its hint copy.
24
+ */
25
+ export declare function createSubscriptions(this: IHookFunctions | IWebhookFunctions, webhookUrl: string, resources: string[], clientState: string): Promise<{
26
+ ids: string[];
27
+ errors: Error[];
28
+ }>;
12
29
  export declare function listOwnSubscriptions(this: IHookFunctions | IWebhookFunctions, webhookUrl: string | undefined): Promise<SubscriptionResponse[]>;
30
+ /**
31
+ * Marks the workflow so that its next lifecycle batch lists and reconciles instead of only
32
+ * renewing, after a failed create, read or listing. Only a subscription that still delivers
33
+ * sends that batch: when every subscription of the workflow is gone, nothing reads the mark
34
+ * (ENT-537, ENT-545). Writes on change only: the static-data proxy marks every set and delete
35
+ * as a change, and each change is a database write.
36
+ */
37
+ export declare function markPendingReconcile(webhookData: IDataObject, pending: boolean): void;
38
+ /**
39
+ * Applies the ownership rule to one own listing: one live subscription with the stored secret
40
+ * per required resource stays, the uncovered resources are created with the stored secret, and
41
+ * every other listed own subscription goes, except a stored one beside a keeper, which is
42
+ * forgotten, and everything on a held resource. Reads and writes
43
+ * `subscriptionIds` itself, so the trust decision and the write share one source. Returns the
44
+ * create errors, and whether the next lifecycle batch must reconcile again. Never throws.
45
+ */
46
+ export declare function reconcileSubscriptions(this: IHookFunctions | IWebhookFunctions, input: {
47
+ webhookUrl: string;
48
+ clientState: string;
49
+ requiredResources: string[];
50
+ /** The own listing. A lifecycle batch merges in the usable PATCH answers of the request. */
51
+ subscriptions: SubscriptionResponse[];
52
+ /** Ids a PATCH in this request succeeded for: live, and preferred as keepers. */
53
+ renewed?: ReadonlySet<string>;
54
+ /** Ids Graph reported removed. */
55
+ gone?: ReadonlySet<string>;
56
+ /**
57
+ * A lifecycle batch leaves a resource with any unproven subscription as it is. Activation
58
+ * does that only for an unproven stored one and replaces an unproven leftover: a failed
59
+ * create there fails the activation, and core retries it.
60
+ */
61
+ holdUnproven: boolean;
62
+ }): Promise<{
63
+ errors: Error[];
64
+ retry: boolean;
65
+ }>;
66
+ /**
67
+ * Whether the stored ids alone cover every required resource with a live subscription at
68
+ * this URL. Reads each stored id with GET by id, which has its own budget: 2000 requests per
69
+ * 20 s for an app across all tenants, against 40 for the listing. Two stored subscriptions on
70
+ * one resource both count: keeping them is safer than core's cleanup, and the next reconcile
71
+ * proves each secret. An answer with another clientState covers nothing. An answer without
72
+ * one still counts here; the reconcile treats it as unproven. Never throws.
73
+ */
74
+ export declare function storedSubscriptionsCover(this: IHookFunctions | IWebhookFunctions, webhookUrl: string, clientState: string, event: string): Promise<boolean>;
13
75
  export declare function isLifecycleNotification(item: unknown): item is LifecycleNotification;
76
+ /** A PATCH answer that can stand in for a listing entry. */
77
+ export declare function isSubscriptionResponse(value: unknown): value is SubscriptionResponse;
14
78
  /**
15
79
  * Runs after `webhook()` sent the 202. Never throws: a throw skips the static-data
16
- * save and core would answer an ended response. Lists the subscriptions at most once
17
- * per request.
80
+ * save and core would answer an ended response. Renews the stored ids the batch names;
81
+ * a batch with a removal, an unknown id, a failed renewal or a rejected item lists once
82
+ * and reconciles, and so does a trigger that watches one resource but stores more ids, or
83
+ * one that an earlier batch marked because its reconcile did not finish. A batch arrives only
84
+ * while a subscription still delivers.
18
85
  */
19
- export declare function handleLifecycleNotifications(this: IWebhookFunctions, items: LifecycleNotification[]): Promise<void>;
20
- export declare function verifyWebhook(this: IWebhookFunctions): boolean;
86
+ export declare function handleLifecycleNotifications(this: IWebhookFunctions, items: LifecycleNotification[], rejectedCount?: number): Promise<void>;
87
+ /** The accepted items of the request body; `[]` for a missing, empty or non-array body. */
88
+ export declare function verifyWebhook(this: IWebhookFunctions): unknown[];
21
89
  export declare function getResourcePath(this: IHookFunctions | IWebhookFunctions, event: string): Promise<string | string[]>;
22
90
  //# sourceMappingURL=utils-trigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-trigger.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/Teams/v2/helpers/utils-trigger.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGnF,OAAO,KAAK,EACX,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAYjB,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAYD,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,oBAAoB,GAAG,OAAO,CAG9E;AAED,qFAAqF;AACrF,wBA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