@hostwebhook/node-types 1.70.0 → 1.71.1

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.
@@ -104,7 +104,7 @@ const repo = () => ({
104
104
  label: 'Repository',
105
105
  type: 'githubRepo',
106
106
  required: true,
107
- description: 'De la lista de repos que alcanza esta credencial. Se guarda como owner/repo.',
107
+ description: 'From the repos this credential can reach. Stored as owner/repo.',
108
108
  });
109
109
  const issueNumber = (label = 'Issue number') => ({
110
110
  name: 'issueNumber',
@@ -112,7 +112,7 @@ const issueNumber = (label = 'Issue number') => ({
112
112
  type: 'template',
113
113
  required: true,
114
114
  placeholder: '{{payload.issue.number}}',
115
- description: 'El número que se ve en la URL del issue, no su id interno.',
115
+ description: 'The number shown in the issue URL, not its internal id.',
116
116
  });
117
117
  const pullNumber = () => ({
118
118
  name: 'pullNumber',
@@ -120,7 +120,7 @@ const pullNumber = () => ({
120
120
  type: 'template',
121
121
  required: true,
122
122
  placeholder: '{{payload.pull_request.number}}',
123
- description: 'El número que se ve en la URL del PR, no su id interno.',
123
+ description: 'The number shown in the PR URL, not its internal id.',
124
124
  });
125
125
  const perPage = () => ({
126
126
  name: 'perPage',
@@ -130,13 +130,13 @@ const perPage = () => ({
130
130
  min: 1,
131
131
  max: 100,
132
132
  advanced: true,
133
- description: 'GitHub no devuelve más de 100 por página.',
133
+ description: 'GitHub never returns more than 100 per page.',
134
134
  });
135
135
  export const GITHUB_OPERATION_SPECS = {
136
136
  /* ── Issues ────────────────────────────────────────────────────────────── */
137
137
  createIssue: {
138
138
  label: 'Create issue',
139
- description: 'Abre un issue nuevo en el repositorio.',
139
+ description: 'Opens a new issue in the repository.',
140
140
  apiRoute: 'POST /repos/{owner}/{repo}/issues',
141
141
  params: [
142
142
  repo(),
@@ -145,32 +145,32 @@ export const GITHUB_OPERATION_SPECS = {
145
145
  label: 'Title',
146
146
  type: 'template',
147
147
  required: true,
148
- placeholder: 'Error en el pago: {{payload.order.id}}',
148
+ placeholder: 'Payment failed: {{payload.order.id}}',
149
149
  },
150
150
  {
151
151
  name: 'body',
152
152
  label: 'Body',
153
153
  type: 'textarea',
154
- placeholder: 'Lo que llegó:\n\n{{payload.message}}',
155
- description: 'Admite Markdown, que es como GitHub lo va a pintar.',
154
+ placeholder: 'What came in:\n\n{{payload.message}}',
155
+ description: 'Supports Markdown, which is how GitHub will render it.',
156
156
  },
157
157
  {
158
158
  name: 'labels',
159
159
  label: 'Labels',
160
160
  type: 'githubLabels',
161
- description: 'De las que ya existen en el repo.',
161
+ description: 'From the ones that already exist in the repo.',
162
162
  },
163
163
  {
164
164
  name: 'assignees',
165
165
  label: 'Assignees',
166
166
  type: 'githubAssignees',
167
- description: 'Sólo se puede asignar a quien tiene acceso al repo.',
167
+ description: 'Only people with access to the repo can be assigned.',
168
168
  },
169
169
  ],
170
170
  },
171
171
  updateIssue: {
172
172
  label: 'Update issue',
173
- description: 'Cambia título, cuerpo, estado, etiquetas o asignados.',
173
+ description: 'Changes title, body, state, labels or assignees.',
174
174
  apiRoute: 'PATCH /repos/{owner}/{repo}/issues/{issue_number}',
175
175
  params: [
176
176
  repo(),
@@ -179,24 +179,24 @@ export const GITHUB_OPERATION_SPECS = {
179
179
  name: 'title',
180
180
  label: 'New title',
181
181
  type: 'template',
182
- description: 'Se deja vacío para no tocarlo.',
182
+ description: 'Leave empty to keep it unchanged.',
183
183
  },
184
184
  {
185
185
  name: 'body',
186
186
  label: 'New body',
187
187
  type: 'textarea',
188
- description: 'Se deja vacío para no tocarlo. Reemplaza el cuerpo entero.',
188
+ description: 'Leave empty to keep it unchanged. Replaces the whole body.',
189
189
  },
190
190
  {
191
191
  name: 'state',
192
192
  label: 'State',
193
193
  type: 'select',
194
194
  options: [
195
- { value: '', label: '— sin tocar —' },
196
- { value: 'open', label: 'Open (reabrir)' },
197
- { value: 'closed', label: 'Closed (cerrar)' },
195
+ { value: '', label: '— leave as is —' },
196
+ { value: 'open', label: 'Open (reopen it)' },
197
+ { value: 'closed', label: 'Closed (close it)' },
198
198
  ],
199
- description: 'Cerrar y reabrir se hacen aquí; no hay operación aparte.',
199
+ description: 'Closing and reopening happen here; there is no separate operation.',
200
200
  },
201
201
  {
202
202
  name: 'stateReason',
@@ -204,34 +204,34 @@ export const GITHUB_OPERATION_SPECS = {
204
204
  type: 'select',
205
205
  showWhen: { field: 'state', in: ['closed'] },
206
206
  options: [
207
- { value: 'completed', label: 'Completed — se resolvió' },
208
- { value: 'not_planned', label: 'Not planned — no se va a hacer' },
207
+ { value: 'completed', label: 'Completed — it got resolved' },
208
+ { value: 'not_planned', label: 'Not planned — it will not be done' },
209
209
  ],
210
- description: 'Es lo que decide qué icono pinta GitHub al cerrarlo.',
210
+ description: 'This is what decides which icon GitHub draws when it closes.',
211
211
  },
212
212
  {
213
213
  name: 'labels',
214
214
  label: 'Labels',
215
215
  type: 'githubLabels',
216
- description: 'Ojo: REEMPLAZA las etiquetas del issue, no las añade. Vacío las deja como están.',
216
+ description: 'Careful: this REPLACES the issue labels, it does not add to them. Empty leaves them as they are.',
217
217
  },
218
218
  {
219
219
  name: 'assignees',
220
220
  label: 'Assignees',
221
221
  type: 'githubAssignees',
222
- description: 'Igual que las etiquetas: reemplaza, no añade.',
222
+ description: 'Same as labels: it replaces, it does not add.',
223
223
  },
224
224
  ],
225
225
  },
226
226
  getIssue: {
227
227
  label: 'Get issue',
228
- description: 'Lee un issue por su número.',
228
+ description: 'Reads an issue by its number.',
229
229
  apiRoute: 'GET /repos/{owner}/{repo}/issues/{issue_number}',
230
230
  params: [repo(), issueNumber()],
231
231
  },
232
232
  commentIssue: {
233
233
  label: 'Comment on issue',
234
- description: 'Añade un comentario a un issue o a un pull request.',
234
+ description: 'Adds a comment to an issue or a pull request.',
235
235
  apiRoute: 'POST /repos/{owner}/{repo}/issues/{issue_number}/comments',
236
236
  params: [
237
237
  repo(),
@@ -241,14 +241,14 @@ export const GITHUB_OPERATION_SPECS = {
241
241
  label: 'Comment',
242
242
  type: 'textarea',
243
243
  required: true,
244
- placeholder: 'Desplegado en producción: {{payload.deployment.url}}',
245
- description: 'Vale igual para un PR: en la API de GitHub un pull request ES un issue.',
244
+ placeholder: 'Deployed to production: {{payload.deployment.url}}',
245
+ description: 'Works for a PR too: in the GitHub API a pull request IS an issue.',
246
246
  },
247
247
  ],
248
248
  },
249
249
  listIssues: {
250
250
  label: 'List issues',
251
- description: 'Los issues del repositorio, filtrables. Devuelve una lista.',
251
+ description: 'The repository issues, filterable. Returns a list.',
252
252
  apiRoute: 'GET /repos/{owner}/{repo}/issues',
253
253
  params: [
254
254
  repo(),
@@ -260,20 +260,20 @@ export const GITHUB_OPERATION_SPECS = {
260
260
  options: [
261
261
  { value: 'open', label: 'Open' },
262
262
  { value: 'closed', label: 'Closed' },
263
- { value: 'all', label: 'Todos' },
263
+ { value: 'all', label: 'All' },
264
264
  ],
265
265
  },
266
266
  {
267
267
  name: 'labels',
268
268
  label: 'With these labels',
269
269
  type: 'githubLabels',
270
- description: 'Un issue tiene que llevarlas TODAS para salir.',
270
+ description: 'An issue has to carry them ALL to show up.',
271
271
  },
272
272
  {
273
273
  name: 'assignee',
274
274
  label: 'Assigned to',
275
275
  type: 'githubAssignees',
276
- description: 'Una sola persona. Vacío no filtra.',
276
+ description: 'A single person. Empty does not filter.',
277
277
  },
278
278
  perPage(),
279
279
  ],
@@ -281,7 +281,7 @@ export const GITHUB_OPERATION_SPECS = {
281
281
  /* ── Pull requests ─────────────────────────────────────────────────────── */
282
282
  createPullRequest: {
283
283
  label: 'Create pull request',
284
- description: 'Abre un PR de una rama contra otra.',
284
+ description: 'Opens a PR from one branch against another.',
285
285
  apiRoute: 'POST /repos/{owner}/{repo}/pulls',
286
286
  params: [
287
287
  repo(),
@@ -290,21 +290,21 @@ export const GITHUB_OPERATION_SPECS = {
290
290
  label: 'Title',
291
291
  type: 'template',
292
292
  required: true,
293
- placeholder: 'Actualiza dependencias — {{payload.date}}',
293
+ placeholder: 'Update dependencies — {{payload.date}}',
294
294
  },
295
295
  {
296
296
  name: 'head',
297
297
  label: 'From branch',
298
298
  type: 'githubBranch',
299
299
  required: true,
300
- description: 'La rama con los cambios. La que se quiere fusionar.',
300
+ description: 'The branch with the changes. The one to be merged.',
301
301
  },
302
302
  {
303
303
  name: 'base',
304
304
  label: 'Into branch',
305
305
  type: 'githubBranch',
306
306
  required: true,
307
- description: 'La rama de destino. Normalmente main.',
307
+ description: 'The target branch. Usually main.',
308
308
  },
309
309
  { name: 'body', label: 'Description', type: 'textarea' },
310
310
  {
@@ -312,9 +312,9 @@ export const GITHUB_OPERATION_SPECS = {
312
312
  label: 'Open as draft',
313
313
  type: 'booleanSelect',
314
314
  options: [
315
- { value: '', label: '— sin tocar —' },
316
- { value: 'true', label: 'Sí, en borrador' },
317
- { value: 'false', label: 'No, listo para revisar' },
315
+ { value: '', label: '— leave as is —' },
316
+ { value: 'true', label: 'Yes, as a draft' },
317
+ { value: 'false', label: 'No, ready for review' },
318
318
  ],
319
319
  advanced: true,
320
320
  },
@@ -322,13 +322,13 @@ export const GITHUB_OPERATION_SPECS = {
322
322
  },
323
323
  getPullRequest: {
324
324
  label: 'Get pull request',
325
- description: 'Lee un PR por su número, con su estado de fusión.',
325
+ description: 'Reads a PR by its number, with its merge state.',
326
326
  apiRoute: 'GET /repos/{owner}/{repo}/pulls/{pull_number}',
327
327
  params: [repo(), pullNumber()],
328
328
  },
329
329
  mergePullRequest: {
330
330
  label: 'Merge pull request',
331
- description: 'Fusiona un PR abierto.',
331
+ description: 'Merges an open PR.',
332
332
  apiRoute: 'PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge',
333
333
  params: [
334
334
  repo(),
@@ -343,14 +343,14 @@ export const GITHUB_OPERATION_SPECS = {
343
343
  { value: 'squash', label: 'Squash and merge' },
344
344
  { value: 'rebase', label: 'Rebase and merge' },
345
345
  ],
346
- description: 'El repo puede tener métodos deshabilitados en sus ajustes; si el elegido no está permitido, GitHub responde 405.',
346
+ description: 'The repo can have methods disabled in its settings; when the chosen one is not allowed, GitHub answers 405.',
347
347
  },
348
348
  {
349
349
  name: 'commitTitle',
350
350
  label: 'Commit title',
351
351
  type: 'template',
352
352
  advanced: true,
353
- description: 'Vacío deja el que GitHub genera solo.',
353
+ description: 'Empty keeps the one GitHub generates on its own.',
354
354
  },
355
355
  {
356
356
  name: 'commitMessage',
@@ -362,7 +362,7 @@ export const GITHUB_OPERATION_SPECS = {
362
362
  },
363
363
  listPullRequests: {
364
364
  label: 'List pull requests',
365
- description: 'Los PRs del repositorio, filtrables. Devuelve una lista.',
365
+ description: 'The repository PRs, filterable. Returns a list.',
366
366
  apiRoute: 'GET /repos/{owner}/{repo}/pulls',
367
367
  params: [
368
368
  repo(),
@@ -374,14 +374,14 @@ export const GITHUB_OPERATION_SPECS = {
374
374
  options: [
375
375
  { value: 'open', label: 'Open' },
376
376
  { value: 'closed', label: 'Closed' },
377
- { value: 'all', label: 'Todos' },
377
+ { value: 'all', label: 'All' },
378
378
  ],
379
379
  },
380
380
  {
381
381
  name: 'base',
382
382
  label: 'Into branch',
383
383
  type: 'githubBranch',
384
- description: 'Sólo los que apuntan a esta rama. Vacío no filtra.',
384
+ description: 'Only the ones targeting this branch. Empty does not filter.',
385
385
  },
386
386
  perPage(),
387
387
  ],
@@ -389,7 +389,7 @@ export const GITHUB_OPERATION_SPECS = {
389
389
  /* ── Contenido del repositorio ─────────────────────────────────────────── */
390
390
  getFile: {
391
391
  label: 'Get file',
392
- description: 'Lee un archivo del repositorio, ya decodificado.',
392
+ description: 'Reads a file from the repository, already decoded.',
393
393
  apiRoute: 'GET /repos/{owner}/{repo}/contents/{path}',
394
394
  params: [
395
395
  repo(),
@@ -399,19 +399,19 @@ export const GITHUB_OPERATION_SPECS = {
399
399
  type: 'template',
400
400
  required: true,
401
401
  placeholder: 'package.json',
402
- description: 'Ruta desde la raíz del repo, sin barra inicial.',
402
+ description: 'Path from the repo root, no leading slash.',
403
403
  },
404
404
  {
405
405
  name: 'ref',
406
406
  label: 'Branch',
407
407
  type: 'githubBranch',
408
- description: 'Vacío usa la rama por defecto del repo.',
408
+ description: 'Empty uses the repo default branch.',
409
409
  },
410
410
  ],
411
411
  },
412
412
  createOrUpdateFile: {
413
413
  label: 'Create or update file',
414
- description: 'Escribe un archivo y commitea el cambio.',
414
+ description: 'Writes a file and commits the change.',
415
415
  apiRoute: 'PUT /repos/{owner}/{repo}/contents/{path}',
416
416
  params: [
417
417
  repo(),
@@ -421,33 +421,33 @@ export const GITHUB_OPERATION_SPECS = {
421
421
  type: 'template',
422
422
  required: true,
423
423
  placeholder: 'data/report.md',
424
- description: 'Si el archivo ya existe se actualiza; si no, se crea. El sha lo resuelve el nodo — no hace falta dárselo.',
424
+ description: 'When the file already exists it is updated; otherwise it is created. The node resolves the sha — you do not have to supply it.',
425
425
  },
426
426
  {
427
427
  name: 'content',
428
428
  label: 'Content',
429
429
  type: 'textarea',
430
430
  required: true,
431
- description: 'Texto plano. El nodo lo codifica antes de mandarlo.',
431
+ description: 'Plain text. The node encodes it before sending it.',
432
432
  },
433
433
  {
434
434
  name: 'commitMessage',
435
435
  label: 'Commit message',
436
436
  type: 'template',
437
437
  required: true,
438
- placeholder: 'Actualiza el informe de {{payload.date}}',
438
+ placeholder: 'Update the {{payload.date}} report',
439
439
  },
440
440
  {
441
441
  name: 'branch',
442
442
  label: 'Branch',
443
443
  type: 'githubBranch',
444
- description: 'Vacío commitea en la rama por defecto del repo.',
444
+ description: 'Empty commits to the repo default branch.',
445
445
  },
446
446
  ],
447
447
  },
448
448
  createBranch: {
449
449
  label: 'Create branch',
450
- description: 'Crea una rama a partir de otra.',
450
+ description: 'Creates a branch off another one.',
451
451
  apiRoute: 'POST /repos/{owner}/{repo}/git/refs',
452
452
  params: [
453
453
  repo(),
@@ -457,21 +457,21 @@ export const GITHUB_OPERATION_SPECS = {
457
457
  type: 'template',
458
458
  required: true,
459
459
  placeholder: 'fix/{{payload.issue.number}}',
460
- description: 'Sin el prefijo refs/heads/ — lo pone el nodo.',
460
+ description: 'Without the refs/heads/ prefix — the node adds it.',
461
461
  },
462
462
  {
463
463
  name: 'fromBranch',
464
464
  label: 'From branch',
465
465
  type: 'githubBranch',
466
466
  required: true,
467
- description: 'De dónde parte. El sha de su punta lo resuelve el nodo desde este nombre.',
467
+ description: 'Where it starts from. The node resolves its tip sha from this name.',
468
468
  },
469
469
  ],
470
470
  },
471
471
  /* ── Automatización ────────────────────────────────────────────────────── */
472
472
  dispatchWorkflow: {
473
473
  label: 'Run workflow',
474
- description: 'Dispara un workflow de GitHub Actions.',
474
+ description: 'Triggers a GitHub Actions workflow.',
475
475
  apiRoute: 'POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches',
476
476
  params: [
477
477
  repo(),
@@ -480,14 +480,14 @@ export const GITHUB_OPERATION_SPECS = {
480
480
  label: 'Workflow',
481
481
  type: 'githubWorkflow',
482
482
  required: true,
483
- description: 'Sólo salen los que declaran workflow_dispatch: el resto no se puede disparar desde fuera.',
483
+ description: 'Only the ones declaring workflow_dispatch show up: the rest cannot be triggered from outside.',
484
484
  },
485
485
  {
486
486
  name: 'ref',
487
487
  label: 'Branch or tag',
488
488
  type: 'githubBranch',
489
489
  required: true,
490
- description: 'Desde dónde se corre el workflow.',
490
+ description: 'Which ref the workflow runs from.',
491
491
  },
492
492
  {
493
493
  name: 'inputs',
@@ -495,14 +495,14 @@ export const GITHUB_OPERATION_SPECS = {
495
495
  type: 'json',
496
496
  advanced: true,
497
497
  placeholder: '{ "environment": "production" }',
498
- description: 'Los inputs que declara el workflow. Objeto plano: GitHub sólo acepta cadenas como valores.',
498
+ description: 'The inputs the workflow declares. Flat object: GitHub only accepts strings as values.',
499
499
  },
500
500
  ],
501
501
  },
502
502
  /* ── Transversal ───────────────────────────────────────────────────────── */
503
503
  searchIssues: {
504
504
  label: 'Search issues and PRs',
505
- description: 'Busca en todo GitHub con su sintaxis de búsqueda. Devuelve una lista.',
505
+ description: 'Searches all of GitHub with its search syntax. Returns a list.',
506
506
  apiRoute: 'GET /search/issues',
507
507
  params: [
508
508
  {
@@ -511,17 +511,17 @@ export const GITHUB_OPERATION_SPECS = {
511
511
  type: 'template',
512
512
  required: true,
513
513
  placeholder: 'repo:hostwebhook/dashboard is:open label:bug',
514
- description: 'La misma sintaxis de la barra de búsqueda de GitHub. Sin repo: busca en todo lo que alcance la credencial.',
514
+ description: 'The same syntax as the GitHub search bar. With no repo: it searches everything the credential can reach.',
515
515
  },
516
516
  {
517
517
  name: 'sort',
518
518
  label: 'Sort by',
519
519
  type: 'select',
520
520
  options: [
521
- { value: '', label: 'Relevancia' },
522
- { value: 'created', label: 'Fecha de creación' },
523
- { value: 'updated', label: 'Última actualización' },
524
- { value: 'comments', label: 'Número de comentarios' },
521
+ { value: '', label: 'Relevance' },
522
+ { value: 'created', label: 'Created date' },
523
+ { value: 'updated', label: 'Last updated' },
524
+ { value: 'comments', label: 'Comment count' },
525
525
  ],
526
526
  advanced: true,
527
527
  },
@@ -531,8 +531,8 @@ export const GITHUB_OPERATION_SPECS = {
531
531
  type: 'select',
532
532
  default: 'desc',
533
533
  options: [
534
- { value: 'desc', label: 'Descendente' },
535
- { value: 'asc', label: 'Ascendente' },
534
+ { value: 'desc', label: 'Descending' },
535
+ { value: 'asc', label: 'Ascending' },
536
536
  ],
537
537
  advanced: true,
538
538
  },
@@ -36,6 +36,8 @@ export { GITHUB_OPERATIONS, GITHUB_OPERATION_SPECS, GITHUB_DROPDOWN_OPERATIONS,
36
36
  export type { GithubOperation, GithubParamType, GithubParamSpec, GithubOperationSpec, } from './github-operations.js';
37
37
  export { JIRA_OPERATIONS, JIRA_OPERATION_SPECS, JIRA_DROPDOWN_OPERATIONS, JIRA_ITERABLE_OPERATIONS, isJiraOperation, } from './jira-operations.js';
38
38
  export type { JiraOperation, JiraParamType, JiraParamSpec, JiraOperationSpec, } from './jira-operations.js';
39
+ export { BUCKET_OPERATIONS, BUCKET_OPERATION_SPECS, BUCKET_ITERABLE_OPERATIONS, isBucketOperation, } from './bucket-operations.js';
40
+ export type { BucketOperation, BucketParamType, BucketParamSpec, BucketOperationSpec, } from './bucket-operations.js';
39
41
  export { SLACK_OPERATIONS, SLACK_OPERATION_SPECS, SLACK_CAPACIDADES_POR_CREDENCIAL, operacionesDeSlackPara, slackPuedeEjecutar, camposDeSlackNoDisponibles, isSlackOperation, } from './slack-operations.js';
40
42
  export type { SlackOperation, SlackParamSpec, SlackOperationSpec, } from './slack-operations.js';
41
43
  export { SLACK_TOOLKIT_SPECS, SLACK_TOOLKIT_BY_TOOL_NAME, herramientasDeSlackPara, } from './slack-toolkit.js';
package/dist/esm/index.js CHANGED
@@ -32,6 +32,7 @@ export { MAILCHIMP_OPERATIONS, MAILCHIMP_OPERATION_SPECS, MAILCHIMP_CONTACT_STAT
32
32
  export { SHOPIFY_OPERATIONS, SHOPIFY_OPERATION_SPECS, SHOPIFY_TAGGABLE_RESOURCES, SHOPIFY_SEARCHABLE_RESOURCES, isShopifyOperation, } from './shopify-operations.js';
33
33
  export { GITHUB_OPERATIONS, GITHUB_OPERATION_SPECS, GITHUB_DROPDOWN_OPERATIONS, GITHUB_ITERABLE_OPERATIONS, isGithubOperation, } from './github-operations.js';
34
34
  export { JIRA_OPERATIONS, JIRA_OPERATION_SPECS, JIRA_DROPDOWN_OPERATIONS, JIRA_ITERABLE_OPERATIONS, isJiraOperation, } from './jira-operations.js';
35
+ export { BUCKET_OPERATIONS, BUCKET_OPERATION_SPECS, BUCKET_ITERABLE_OPERATIONS, isBucketOperation, } from './bucket-operations.js';
35
36
  export { SLACK_OPERATIONS, SLACK_OPERATION_SPECS, SLACK_CAPACIDADES_POR_CREDENCIAL, operacionesDeSlackPara, slackPuedeEjecutar, camposDeSlackNoDisponibles, isSlackOperation, } from './slack-operations.js';
36
37
  /* Misma pareja que en Discord: `SlackOperationSpec` es el formulario,
37
38
  `SlackToolkitSpec` es la herramienta que ve el LLM. */