@pikku/addon-admin 0.12.9 → 0.12.10

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 (132) hide show
  1. package/dist/.pikku/addon/agent/index.d.ts +1 -1
  2. package/dist/.pikku/addon/agent/index.js +1 -1
  3. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
  4. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +1 -1
  5. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
  6. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
  7. package/dist/.pikku/addon/analytics/index.d.ts +1 -1
  8. package/dist/.pikku/addon/analytics/index.js +1 -1
  9. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +1 -1
  10. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +1 -1
  11. package/dist/.pikku/addon/auth/index.d.ts +1 -1
  12. package/dist/.pikku/addon/auth/index.js +1 -1
  13. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +1 -1
  14. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +1 -1
  15. package/dist/.pikku/addon/channel/index.d.ts +1 -1
  16. package/dist/.pikku/addon/channel/index.js +1 -1
  17. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +1 -1
  18. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +1 -1
  19. package/dist/.pikku/addon/cli/index.d.ts +1 -1
  20. package/dist/.pikku/addon/cli/index.js +1 -1
  21. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +1 -1
  22. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +1 -1
  23. package/dist/.pikku/addon/error/index.d.ts +1 -1
  24. package/dist/.pikku/addon/error/index.js +1 -1
  25. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
  26. package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
  27. package/dist/.pikku/addon/function/index.d.ts +1 -1
  28. package/dist/.pikku/addon/function/index.js +1 -1
  29. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +1 -1
  30. package/dist/.pikku/addon/function/pikku-function-types.gen.js +1 -1
  31. package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +72 -2
  32. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
  33. package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +58 -2
  34. package/dist/.pikku/addon/function/pikku-functions.gen.js +5 -1
  35. package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -1
  36. package/dist/.pikku/addon/http/index.d.ts +1 -1
  37. package/dist/.pikku/addon/http/index.js +1 -1
  38. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +1 -1
  39. package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
  40. package/dist/.pikku/addon/mcp/index.d.ts +1 -1
  41. package/dist/.pikku/addon/mcp/index.js +1 -1
  42. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +1 -1
  43. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
  44. package/dist/.pikku/addon/middleware/index.d.ts +1 -1
  45. package/dist/.pikku/addon/middleware/index.js +1 -1
  46. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +1 -1
  47. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +1 -1
  48. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  49. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
  50. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
  51. package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
  52. package/dist/.pikku/addon/pikku-local-services.gen.d.ts +28 -0
  53. package/dist/.pikku/addon/pikku-local-services.gen.d.ts.map +1 -0
  54. package/dist/.pikku/addon/pikku-local-services.gen.js +40 -0
  55. package/dist/.pikku/addon/pikku-local-services.gen.js.map +1 -0
  56. package/dist/.pikku/addon/pikku-package.gen.js +1 -1
  57. package/dist/.pikku/addon/pikku-services.gen.d.ts +1 -1
  58. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +12 -6
  59. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +12 -6
  60. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +10 -6
  61. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  62. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.json +2 -0
  63. package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
  64. package/dist/.pikku/addon/scenarios/index.js +1 -1
  65. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +1 -1
  66. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  67. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  68. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +1 -1
  69. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  70. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  71. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
  72. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
  73. package/dist/.pikku/addon/schemas/register.gen.js +9 -1
  74. package/dist/.pikku/addon/schemas/register.gen.js.map +1 -1
  75. package/dist/.pikku/addon/schemas/schemas/TriggerSourceDisableInput.schema.json +1 -0
  76. package/dist/.pikku/addon/schemas/schemas/TriggerSourceDisableOutput.schema.json +1 -0
  77. package/dist/.pikku/addon/schemas/schemas/TriggerSourceEnableInput.schema.json +1 -0
  78. package/dist/.pikku/addon/schemas/schemas/TriggerSourceEnableOutput.schema.json +1 -0
  79. package/dist/.pikku/addon/schemas/schemas/TriggerSourceListOutput.schema.json +1 -1
  80. package/dist/.pikku/addon/scopes/index.d.ts +1 -1
  81. package/dist/.pikku/addon/scopes/index.js +1 -1
  82. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +1 -1
  83. package/dist/.pikku/addon/scopes/pikku-personas.gen.js +1 -1
  84. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
  85. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +1 -1
  86. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
  87. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
  88. package/dist/.pikku/addon/secrets/index.d.ts +1 -1
  89. package/dist/.pikku/addon/secrets/index.js +1 -1
  90. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
  91. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
  92. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +1 -1
  93. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +1 -1
  94. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
  95. package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
  96. package/dist/.pikku/addon/setup/index.d.ts +1 -1
  97. package/dist/.pikku/addon/setup/index.js +1 -1
  98. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
  99. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
  100. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +1 -1
  101. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +1 -1
  102. package/dist/.pikku/addon/trigger/index.d.ts +1 -1
  103. package/dist/.pikku/addon/trigger/index.js +1 -1
  104. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +25 -1
  105. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
  106. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +9 -1
  107. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -1
  108. package/dist/.pikku/addon/variables/index.d.ts +1 -1
  109. package/dist/.pikku/addon/variables/index.js +1 -1
  110. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
  111. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
  112. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +1 -1
  113. package/dist/.pikku/addon/variables/pikku-variables.gen.js +1 -1
  114. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +1 -1
  115. package/dist/.pikku/addon/workflow/index.d.ts +1 -1
  116. package/dist/.pikku/addon/workflow/index.js +1 -1
  117. package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  118. package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
  119. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +1 -1
  120. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +1 -1
  121. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  122. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  123. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
  124. package/dist/src/functions/trigger-source-disable.function.d.ts +21 -0
  125. package/dist/src/functions/trigger-source-disable.function.d.ts.map +1 -0
  126. package/dist/src/functions/trigger-source-disable.function.js +12 -0
  127. package/dist/src/functions/trigger-source-disable.function.js.map +1 -0
  128. package/dist/src/functions/trigger-source-enable.function.d.ts +21 -0
  129. package/dist/src/functions/trigger-source-enable.function.d.ts.map +1 -0
  130. package/dist/src/functions/trigger-source-enable.function.js +12 -0
  131. package/dist/src/functions/trigger-source-enable.function.js.map +1 -0
  132. package/package.json +5 -5
@@ -1,9 +1,10 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
6
6
  */
7
+ import type { CoreTriggerWebhookSource, WebhookRequest, WebhookReceiveResult, WebhookLifecycleInput, WebhookCheckResult, WebhookSetupResult, WebhookTeardownInput, WebhookTeardownResult } from '@pikku/core/trigger';
7
8
  import { CorePikkuTriggerFunction, CorePikkuTriggerFunctionConfig } from '@pikku/core/trigger';
8
9
  import type { CoreNodeConfig } from '@pikku/core/node';
9
10
  import type { SingletonServices } from '../../../types/application-types.d.js';
@@ -42,6 +43,21 @@ type PikkuTriggerFunctionConfigWithSchema<InputSchema extends StandardSchemaV1,
42
43
  * Type definition for trigger wirings.
43
44
  * Declares a trigger name and its target pikku function.
44
45
  */
46
+ /**
47
+ * One step of a webhook source: inline, a pikku function, or `ref('addon:fn')`.
48
+ */
49
+ type WebhookSourceStep<In, Out> = {
50
+ func: (services: any, data: In, wire: any) => Promise<Out | void>;
51
+ };
52
+ /**
53
+ * A webhook source, using project-specific services.
54
+ */
55
+ type TriggerWebhookSource<Events extends Record<string, StandardSchemaV1>> = Omit<CoreTriggerWebhookSource<Events>, 'receive' | 'check' | 'setup' | 'teardown'> & {
56
+ receive?: WebhookSourceStep<WebhookRequest, WebhookReceiveResult>;
57
+ check?: WebhookSourceStep<WebhookLifecycleInput, WebhookCheckResult>;
58
+ setup?: WebhookSourceStep<WebhookLifecycleInput, WebhookSetupResult>;
59
+ teardown?: WebhookSourceStep<WebhookTeardownInput, WebhookTeardownResult>;
60
+ };
45
61
  /**
46
62
  * Creates a trigger function configuration.
47
63
  * Use this to define trigger functions that set up subscriptions.
@@ -79,5 +95,13 @@ type PikkuTriggerFunctionConfigWithSchema<InputSchema extends StandardSchemaV1,
79
95
  */
80
96
  export declare function pikkuTriggerFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuTriggerFunctionConfigWithSchema<InputSchema, OutputSchema>): PikkuTriggerFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, InputSchema, OutputSchema>;
81
97
  export declare function pikkuTriggerFunc<TInput, TOutput = unknown>(triggerOrConfig: PikkuTriggerFunction<TInput, TOutput> | PikkuTriggerFunctionConfig<TInput, TOutput>): PikkuTriggerFunctionConfig<TInput, TOutput>;
98
+ /**
99
+ * Declares a webhook source this addon ships. An app that wires the addon
100
+ * mounts its route and can register it with the provider, but the source
101
+ * stays off until someone turns it on. Declaration only: nothing runs here.
102
+ *
103
+ * @param source - Webhook source with name, events and its steps
104
+ */
105
+ export declare const wireTriggerWebhookSource: <Events extends Record<string, StandardSchemaV1> = Record<string, StandardSchemaV1>>(_source: TriggerWebhookSource<Events>) => void;
82
106
  export {};
83
107
  //# sourceMappingURL=pikku-trigger-types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-trigger-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAI7D;;;;;;GAMG;AACH,KAAK,oBAAoB,CACvB,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,IACf,wBAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAA;AAEhE;;GAEG;AACH,KAAK,0BAA0B,CAC7B,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,EACjB,WAAW,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,EAC5D,YAAY,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAA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CAC9B,WAAW,SAAS,gBAAgB,EACpC,YAAY,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,EAE7D,MAAM,EAAE,oCAAoC,CAAC,WAAW,EAAE,YAAY,CAAC,GACtE,0BAA0B,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,YAAY,SAAS,gBAAgB,GAAG,iBAAiB,CAAC,YAAY,CAAC,GAAG,OAAO,EAAE,WAAW,EAAE,YAAY,CAAC,CAAA;AAC3K,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,EACxD,eAAe,EACX,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,0BAA0B,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9C,0BAA0B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAS9C;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,WAEzE,oBAAoB,CAAC,MAAM,CAAC,SAChC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -10,4 +10,12 @@ export function pikkuTriggerFunc(triggerOrConfig) {
10
10
  }
11
11
  return triggerOrConfig;
12
12
  }
13
+ /**
14
+ * Declares a webhook source this addon ships. An app that wires the addon
15
+ * mounts its route and can register it with the provider, but the source
16
+ * stays off until someone turns it on. Declaration only: nothing runs here.
17
+ *
18
+ * @param source - Webhook source with name, events and its steps
19
+ */
20
+ export const wireTriggerWebhookSource = (_source) => { };
13
21
  //# sourceMappingURL=pikku-trigger-types.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-trigger-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAgHH,MAAM,UAAU,gBAAgB,CAAC,eAAoB;IACnD,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,CAAA;IAClC,CAAC;IACD,OAAO,eAAe,CAAA;AACxB,CAAC"}
1
+ {"version":3,"file":"pikku-trigger-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAmIH,MAAM,UAAU,gBAAgB,CAAC,eAAoB;IACnD,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,CAAA;IAClC,CAAC;IACD,OAAO,eAAe,CAAA;AACxB,CAAC;AAGD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAGtC,OAAqC,EACrC,EAAE,GAAE,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/variables` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/variables` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
5
5
  //# sourceMappingURL=pikku-variable-types.gen.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
5
5
  //# sourceMappingURL=pikku-variable-types.gen.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  import type { VariablesService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService, } from '@pikku/core/services';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  import type { TypedWebhookService as CoreTypedWebhookService } from '@pikku/core/webhook';
5
5
  import type { WebhookService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/workflow` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/workflow` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  /**
5
5
  * Scenario step map: the names `scenario.given/when/then` accepts, with
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  /**
5
5
  * Workflow type map with input/output types for each workflow
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import type { PikkuWorkflowGraphConfig, PikkuWorkflowGraphResult } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import { pikkuWorkflowGraph as corePikkuWorkflowGraph } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.172
2
+ * This file was generated by @pikku/cli@0.12.173
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  const workflowsMeta = {};
@@ -1,5 +1,5 @@
1
1
  export {};
2
2
  /**
3
- * This file was generated by @pikku/cli@0.12.172
3
+ * This file was generated by @pikku/cli@0.12.173
4
4
  */
5
5
  //# sourceMappingURL=pikku-workflow-wirings.gen.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export {};
2
2
  /**
3
- * This file was generated by @pikku/cli@0.12.172
3
+ * This file was generated by @pikku/cli@0.12.173
4
4
  */
5
5
  //# sourceMappingURL=pikku-workflow-wirings.gen.js.map
@@ -0,0 +1,21 @@
1
+ import { type WebhookSourceOutcome } from '@pikku/core/trigger';
2
+ export declare const triggerSourceDisable: import("#pikku/addon/function").PikkuFunctionConfig<{
3
+ name: string;
4
+ baseUrl?: string;
5
+ labelPrefix?: string;
6
+ }, {
7
+ outcome: WebhookSourceOutcome;
8
+ }, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
9
+ name: string;
10
+ baseUrl?: string;
11
+ labelPrefix?: string;
12
+ }, {
13
+ outcome: WebhookSourceOutcome;
14
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
15
+ name: string;
16
+ baseUrl?: string;
17
+ labelPrefix?: string;
18
+ }, {
19
+ outcome: WebhookSourceOutcome;
20
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
21
+ //# sourceMappingURL=trigger-source-disable.function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger-source-disable.function.d.ts","sourceRoot":"","sources":["../../../src/functions/trigger-source-disable.function.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAA;AAE5B,eAAO,MAAM,oBAAoB;UACvB,MAAM;cAAY,MAAM;kBAAgB,MAAM;;aAC3C,oBAAoB;;;;;;;;;;;;;oGAU/B,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { pikkuFunc } from '#pikku/addon/function';
2
+ import { disableTriggerSource, } from '@pikku/core/trigger';
3
+ export const triggerSourceDisable = pikkuFunc({
4
+ title: 'Turn Off a Trigger Source',
5
+ description: 'Stops a trigger source receiving at once, then removes it from its provider.',
6
+ expose: true,
7
+ scopes: ['admin:triggers:manage'],
8
+ func: async (_services, input) => ({
9
+ outcome: await disableTriggerSource(input),
10
+ }),
11
+ });
12
+ //# sourceMappingURL=trigger-source-disable.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger-source-disable.function.js","sourceRoot":"","sources":["../../../src/functions/trigger-source-disable.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EACL,oBAAoB,GAErB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAG3C;IACA,KAAK,EAAE,2BAA2B;IAClC,WAAW,EACT,8EAA8E;IAChF,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,uBAAuB,CAAC;IACjC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACjC,OAAO,EAAE,MAAM,oBAAoB,CAAC,KAAK,CAAC;KAC3C,CAAC;CACH,CAAC,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { type WebhookSourceOutcome } from '@pikku/core/trigger';
2
+ export declare const triggerSourceEnable: import("#pikku/addon/function").PikkuFunctionConfig<{
3
+ name: string;
4
+ baseUrl?: string;
5
+ labelPrefix?: string;
6
+ }, {
7
+ outcome: WebhookSourceOutcome;
8
+ }, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
9
+ name: string;
10
+ baseUrl?: string;
11
+ labelPrefix?: string;
12
+ }, {
13
+ outcome: WebhookSourceOutcome;
14
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
15
+ name: string;
16
+ baseUrl?: string;
17
+ labelPrefix?: string;
18
+ }, {
19
+ outcome: WebhookSourceOutcome;
20
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
21
+ //# sourceMappingURL=trigger-source-enable.function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger-source-enable.function.d.ts","sourceRoot":"","sources":["../../../src/functions/trigger-source-enable.function.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAA;AAE5B,eAAO,MAAM,mBAAmB;UACtB,MAAM;cAAY,MAAM;kBAAgB,MAAM;;aAC3C,oBAAoB;;;;;;;;;;;;;oGAU/B,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { pikkuFunc } from '#pikku/addon/function';
2
+ import { enableTriggerSource, } from '@pikku/core/trigger';
3
+ export const triggerSourceEnable = pikkuFunc({
4
+ title: 'Turn On a Trigger Source',
5
+ description: 'Turns a declared trigger source on and registers it with its provider, at the address the last deployment recorded unless one is given. Sources are off until turned on here.',
6
+ expose: true,
7
+ scopes: ['admin:triggers:manage'],
8
+ func: async (_services, input) => ({
9
+ outcome: await enableTriggerSource(input),
10
+ }),
11
+ });
12
+ //# sourceMappingURL=trigger-source-enable.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger-source-enable.function.js","sourceRoot":"","sources":["../../../src/functions/trigger-source-enable.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EACL,mBAAmB,GAEpB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAG1C;IACA,KAAK,EAAE,0BAA0B;IACjC,WAAW,EACT,+KAA+K;IACjL,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,uBAAuB,CAAC;IACjC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACjC,OAAO,EAAE,MAAM,mBAAmB,CAAC,KAAK,CAAC;KAC1C,CAAC;CACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/addon-admin",
3
- "version": "0.12.9",
3
+ "version": "0.12.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/pikkujs/pikku.git",
@@ -32,8 +32,8 @@
32
32
  "test:coverage": "bash run-tests.sh --coverage"
33
33
  },
34
34
  "peerDependencies": {
35
- "@pikku/better-auth": "^0.12.49",
36
- "@pikku/core": "^0.12.128",
35
+ "@pikku/better-auth": "^0.12.50",
36
+ "@pikku/core": "^0.12.130",
37
37
  "zod": "^4"
38
38
  },
39
39
  "peerDependenciesMeta": {
@@ -42,8 +42,8 @@
42
42
  }
43
43
  },
44
44
  "devDependencies": {
45
- "@pikku/better-auth": "^0.12.49",
46
- "@pikku/cli": "^0.12.172",
45
+ "@pikku/better-auth": "^0.12.50",
46
+ "@pikku/cli": "^0.12.173",
47
47
  "@pikku/core": "*",
48
48
  "@standard-schema/spec": "^1.1.0",
49
49
  "zod": "^4"