@pikku/addon-postbin 0.0.2
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.
- package/README.md +12 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +67 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js +78 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +106 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts +2 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.js +10 -0
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.ts +11 -0
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +47 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js +18 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +82 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +7 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.js +2 -0
- package/dist/.pikku/console/pikku-node-types.gen.js.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/dist/.pikku/credentials/pikku-credentials-meta.gen.json +10 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts +15 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js +13 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.ts +23 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +490 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.js +334 -0
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.ts +754 -0
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +174 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +7 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.json +114 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.js +18 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +18 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
- package/dist/.pikku/pikku-services.gen.d.ts +35 -0
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-services.gen.js +30 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/pikku-services.gen.ts +42 -0
- package/dist/.pikku/pikku-types.gen.d.ts +12 -0
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-types.gen.js +17 -0
- package/dist/.pikku/pikku-types.gen.js.map +1 -0
- package/dist/.pikku/pikku-types.gen.ts +21 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +142 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +148 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +8 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/dist/.pikku/schemas/register.gen.d.ts +2 -0
- package/dist/.pikku/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/schemas/register.gen.js +31 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +55 -0
- package/dist/.pikku/schemas/schemas/BinCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/BinDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/BinDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/BinGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/BinGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_postbin.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RequestGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RequestGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RequestSendInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RequestSendOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RequestShiftInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RequestShiftOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_POSTBIN_BASE_URL.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +6 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +12 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +21 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +114 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +34 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +6 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +10 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +15 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -0
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.ts +23 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +90 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/functions/binCreate.function.d.ts +20 -0
- package/dist/src/functions/binCreate.function.d.ts.map +1 -0
- package/dist/src/functions/binCreate.function.js +15 -0
- package/dist/src/functions/binCreate.function.js.map +1 -0
- package/dist/src/functions/binDelete.function.d.ts +21 -0
- package/dist/src/functions/binDelete.function.d.ts.map +1 -0
- package/dist/src/functions/binDelete.function.js +17 -0
- package/dist/src/functions/binDelete.function.js.map +1 -0
- package/dist/src/functions/binGet.function.d.ts +29 -0
- package/dist/src/functions/binGet.function.d.ts.map +1 -0
- package/dist/src/functions/binGet.function.js +19 -0
- package/dist/src/functions/binGet.function.js.map +1 -0
- package/dist/src/functions/requestGet.function.d.ts +33 -0
- package/dist/src/functions/requestGet.function.d.ts.map +1 -0
- package/dist/src/functions/requestGet.function.js +20 -0
- package/dist/src/functions/requestGet.function.js.map +1 -0
- package/dist/src/functions/requestSend.function.d.ts +25 -0
- package/dist/src/functions/requestSend.function.d.ts.map +1 -0
- package/dist/src/functions/requestSend.function.js +18 -0
- package/dist/src/functions/requestSend.function.js.map +1 -0
- package/dist/src/functions/requestShift.function.d.ts +29 -0
- package/dist/src/functions/requestShift.function.d.ts.map +1 -0
- package/dist/src/functions/requestShift.function.js +19 -0
- package/dist/src/functions/requestShift.function.js.map +1 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +7 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/postbin-api.service.d.ts +10 -0
- package/dist/src/postbin-api.service.d.ts.map +1 -0
- package/dist/src/postbin-api.service.js +116 -0
- package/dist/src/postbin-api.service.js.map +1 -0
- package/dist/src/postbin.credential.d.ts +5 -0
- package/dist/src/postbin.credential.d.ts.map +1 -0
- package/dist/src/postbin.credential.js +13 -0
- package/dist/src/postbin.credential.js.map +1 -0
- package/dist/src/postbin.types.d.ts +7 -0
- package/dist/src/postbin.types.d.ts.map +1 -0
- package/dist/src/postbin.types.js +8 -0
- package/dist/src/postbin.types.js.map +1 -0
- package/dist/src/postbin.variable.d.ts +5 -0
- package/dist/src/postbin.variable.d.ts.map +1 -0
- package/dist/src/postbin.variable.js +11 -0
- package/dist/src/postbin.variable.js.map +1 -0
- package/dist/src/services.d.ts +2 -0
- package/dist/src/services.d.ts.map +1 -0
- package/dist/src/services.js +14 -0
- package/dist/src/services.js.map +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"binCreate": {
|
|
3
|
+
"pikkuFuncId": "binCreate",
|
|
4
|
+
"functionType": "user",
|
|
5
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
6
|
+
"sessionless": true,
|
|
7
|
+
"name": "binCreate",
|
|
8
|
+
"services": {
|
|
9
|
+
"optimized": true,
|
|
10
|
+
"services": [
|
|
11
|
+
"postbin"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"inputSchemaName": null,
|
|
15
|
+
"outputSchemaName": "BinCreateOutput",
|
|
16
|
+
"inputs": [],
|
|
17
|
+
"outputs": [
|
|
18
|
+
"BinCreateOutput"
|
|
19
|
+
],
|
|
20
|
+
"implementationHash": "8ecac5e14a4bf151",
|
|
21
|
+
"description": "Create a bin",
|
|
22
|
+
"isDirectFunction": false,
|
|
23
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/data/postbin/src/functions/binCreate.function.ts",
|
|
24
|
+
"exportedName": "binCreate",
|
|
25
|
+
"contractHash": "e8d1870789036e31",
|
|
26
|
+
"inputHash": "5bd02d19",
|
|
27
|
+
"outputHash": "5607cd2f"
|
|
28
|
+
},
|
|
29
|
+
"binGet": {
|
|
30
|
+
"pikkuFuncId": "binGet",
|
|
31
|
+
"functionType": "user",
|
|
32
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
33
|
+
"sessionless": true,
|
|
34
|
+
"name": "binGet",
|
|
35
|
+
"services": {
|
|
36
|
+
"optimized": true,
|
|
37
|
+
"services": [
|
|
38
|
+
"postbin"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"inputSchemaName": "BinGetInput",
|
|
42
|
+
"outputSchemaName": "BinGetOutput",
|
|
43
|
+
"inputs": [
|
|
44
|
+
"BinGetInput"
|
|
45
|
+
],
|
|
46
|
+
"outputs": [
|
|
47
|
+
"BinGetOutput"
|
|
48
|
+
],
|
|
49
|
+
"implementationHash": "7a121b7cdae4816f",
|
|
50
|
+
"description": "Get a bin",
|
|
51
|
+
"isDirectFunction": false,
|
|
52
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/data/postbin/src/functions/binGet.function.ts",
|
|
53
|
+
"exportedName": "binGet",
|
|
54
|
+
"contractHash": "5ccaf59d546b26ef",
|
|
55
|
+
"inputHash": "8e7f9128",
|
|
56
|
+
"outputHash": "02fb57ee"
|
|
57
|
+
},
|
|
58
|
+
"binDelete": {
|
|
59
|
+
"pikkuFuncId": "binDelete",
|
|
60
|
+
"functionType": "user",
|
|
61
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
62
|
+
"sessionless": true,
|
|
63
|
+
"name": "binDelete",
|
|
64
|
+
"services": {
|
|
65
|
+
"optimized": true,
|
|
66
|
+
"services": [
|
|
67
|
+
"postbin"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"inputSchemaName": "BinDeleteInput",
|
|
71
|
+
"outputSchemaName": "BinDeleteOutput",
|
|
72
|
+
"inputs": [
|
|
73
|
+
"BinDeleteInput"
|
|
74
|
+
],
|
|
75
|
+
"outputs": [
|
|
76
|
+
"BinDeleteOutput"
|
|
77
|
+
],
|
|
78
|
+
"implementationHash": "a60f8c66c1aa4ddc",
|
|
79
|
+
"description": "Delete a bin",
|
|
80
|
+
"isDirectFunction": false,
|
|
81
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/data/postbin/src/functions/binDelete.function.ts",
|
|
82
|
+
"exportedName": "binDelete",
|
|
83
|
+
"contractHash": "53f2c5fefd19ce56",
|
|
84
|
+
"inputHash": "e4bc8455",
|
|
85
|
+
"outputHash": "90cd8dab"
|
|
86
|
+
},
|
|
87
|
+
"requestGet": {
|
|
88
|
+
"pikkuFuncId": "requestGet",
|
|
89
|
+
"functionType": "user",
|
|
90
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
91
|
+
"sessionless": true,
|
|
92
|
+
"name": "requestGet",
|
|
93
|
+
"services": {
|
|
94
|
+
"optimized": true,
|
|
95
|
+
"services": [
|
|
96
|
+
"postbin"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"inputSchemaName": "RequestGetInput",
|
|
100
|
+
"outputSchemaName": "RequestGetOutput",
|
|
101
|
+
"inputs": [
|
|
102
|
+
"RequestGetInput"
|
|
103
|
+
],
|
|
104
|
+
"outputs": [
|
|
105
|
+
"RequestGetOutput"
|
|
106
|
+
],
|
|
107
|
+
"implementationHash": "d80a609996d7fb6e",
|
|
108
|
+
"description": "Get a request",
|
|
109
|
+
"isDirectFunction": false,
|
|
110
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/data/postbin/src/functions/requestGet.function.ts",
|
|
111
|
+
"exportedName": "requestGet",
|
|
112
|
+
"contractHash": "bac788e8dc087e61",
|
|
113
|
+
"inputHash": "a7aa6b76",
|
|
114
|
+
"outputHash": "6c979254"
|
|
115
|
+
},
|
|
116
|
+
"requestShift": {
|
|
117
|
+
"pikkuFuncId": "requestShift",
|
|
118
|
+
"functionType": "user",
|
|
119
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
120
|
+
"sessionless": true,
|
|
121
|
+
"name": "requestShift",
|
|
122
|
+
"services": {
|
|
123
|
+
"optimized": true,
|
|
124
|
+
"services": [
|
|
125
|
+
"postbin"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"inputSchemaName": "RequestShiftInput",
|
|
129
|
+
"outputSchemaName": "RequestShiftOutput",
|
|
130
|
+
"inputs": [
|
|
131
|
+
"RequestShiftInput"
|
|
132
|
+
],
|
|
133
|
+
"outputs": [
|
|
134
|
+
"RequestShiftOutput"
|
|
135
|
+
],
|
|
136
|
+
"implementationHash": "0e0600c71d02e43a",
|
|
137
|
+
"description": "Remove the first request from a bin",
|
|
138
|
+
"isDirectFunction": false,
|
|
139
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/data/postbin/src/functions/requestShift.function.ts",
|
|
140
|
+
"exportedName": "requestShift",
|
|
141
|
+
"contractHash": "f7559fbf911b2bac",
|
|
142
|
+
"inputHash": "ecc74cf3",
|
|
143
|
+
"outputHash": "fa51fb1f"
|
|
144
|
+
},
|
|
145
|
+
"requestSend": {
|
|
146
|
+
"pikkuFuncId": "requestSend",
|
|
147
|
+
"functionType": "user",
|
|
148
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
149
|
+
"sessionless": true,
|
|
150
|
+
"name": "requestSend",
|
|
151
|
+
"services": {
|
|
152
|
+
"optimized": true,
|
|
153
|
+
"services": [
|
|
154
|
+
"postbin"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"inputSchemaName": "RequestSendInput",
|
|
158
|
+
"outputSchemaName": "RequestSendOutput",
|
|
159
|
+
"inputs": [
|
|
160
|
+
"RequestSendInput"
|
|
161
|
+
],
|
|
162
|
+
"outputs": [
|
|
163
|
+
"RequestSendOutput"
|
|
164
|
+
],
|
|
165
|
+
"implementationHash": "c6287b1a304cc217",
|
|
166
|
+
"description": "Send a test request to the bin",
|
|
167
|
+
"isDirectFunction": false,
|
|
168
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/data/postbin/src/functions/requestSend.function.ts",
|
|
169
|
+
"exportedName": "requestSend",
|
|
170
|
+
"contractHash": "22492582d4b640fa",
|
|
171
|
+
"inputHash": "2fcdeee4",
|
|
172
|
+
"outputHash": "035e0815"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions-meta.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/function/pikku-functions-meta.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal';
|
|
5
|
+
import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState('@pikku/addon-postbin', 'function', 'meta', metaData);
|
|
7
|
+
//# sourceMappingURL=pikku-functions-meta.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions-meta.gen.js","sourceRoot":"","sources":["../../../.pikku/function/pikku-functions-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,QAAQ,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5E,UAAU,CAAC,sBAAsB,EAAE,UAAU,EAAE,MAAM,EAAE,QAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"binCreate": {
|
|
3
|
+
"pikkuFuncId": "binCreate",
|
|
4
|
+
"functionType": "user",
|
|
5
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
6
|
+
"sessionless": true,
|
|
7
|
+
"name": "binCreate",
|
|
8
|
+
"inputSchemaName": null,
|
|
9
|
+
"outputSchemaName": "BinCreateOutput",
|
|
10
|
+
"inputs": [],
|
|
11
|
+
"outputs": [
|
|
12
|
+
"BinCreateOutput"
|
|
13
|
+
],
|
|
14
|
+
"implementationHash": "8ecac5e14a4bf151",
|
|
15
|
+
"contractHash": "e8d1870789036e31",
|
|
16
|
+
"inputHash": "5bd02d19",
|
|
17
|
+
"outputHash": "5607cd2f"
|
|
18
|
+
},
|
|
19
|
+
"binGet": {
|
|
20
|
+
"pikkuFuncId": "binGet",
|
|
21
|
+
"functionType": "user",
|
|
22
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
23
|
+
"sessionless": true,
|
|
24
|
+
"name": "binGet",
|
|
25
|
+
"inputSchemaName": "BinGetInput",
|
|
26
|
+
"outputSchemaName": "BinGetOutput",
|
|
27
|
+
"inputs": [
|
|
28
|
+
"BinGetInput"
|
|
29
|
+
],
|
|
30
|
+
"outputs": [
|
|
31
|
+
"BinGetOutput"
|
|
32
|
+
],
|
|
33
|
+
"implementationHash": "7a121b7cdae4816f",
|
|
34
|
+
"contractHash": "5ccaf59d546b26ef",
|
|
35
|
+
"inputHash": "8e7f9128",
|
|
36
|
+
"outputHash": "02fb57ee"
|
|
37
|
+
},
|
|
38
|
+
"binDelete": {
|
|
39
|
+
"pikkuFuncId": "binDelete",
|
|
40
|
+
"functionType": "user",
|
|
41
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
42
|
+
"sessionless": true,
|
|
43
|
+
"name": "binDelete",
|
|
44
|
+
"inputSchemaName": "BinDeleteInput",
|
|
45
|
+
"outputSchemaName": "BinDeleteOutput",
|
|
46
|
+
"inputs": [
|
|
47
|
+
"BinDeleteInput"
|
|
48
|
+
],
|
|
49
|
+
"outputs": [
|
|
50
|
+
"BinDeleteOutput"
|
|
51
|
+
],
|
|
52
|
+
"implementationHash": "a60f8c66c1aa4ddc",
|
|
53
|
+
"contractHash": "53f2c5fefd19ce56",
|
|
54
|
+
"inputHash": "e4bc8455",
|
|
55
|
+
"outputHash": "90cd8dab"
|
|
56
|
+
},
|
|
57
|
+
"requestGet": {
|
|
58
|
+
"pikkuFuncId": "requestGet",
|
|
59
|
+
"functionType": "user",
|
|
60
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
61
|
+
"sessionless": true,
|
|
62
|
+
"name": "requestGet",
|
|
63
|
+
"inputSchemaName": "RequestGetInput",
|
|
64
|
+
"outputSchemaName": "RequestGetOutput",
|
|
65
|
+
"inputs": [
|
|
66
|
+
"RequestGetInput"
|
|
67
|
+
],
|
|
68
|
+
"outputs": [
|
|
69
|
+
"RequestGetOutput"
|
|
70
|
+
],
|
|
71
|
+
"implementationHash": "d80a609996d7fb6e",
|
|
72
|
+
"contractHash": "bac788e8dc087e61",
|
|
73
|
+
"inputHash": "a7aa6b76",
|
|
74
|
+
"outputHash": "6c979254"
|
|
75
|
+
},
|
|
76
|
+
"requestShift": {
|
|
77
|
+
"pikkuFuncId": "requestShift",
|
|
78
|
+
"functionType": "user",
|
|
79
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
80
|
+
"sessionless": true,
|
|
81
|
+
"name": "requestShift",
|
|
82
|
+
"inputSchemaName": "RequestShiftInput",
|
|
83
|
+
"outputSchemaName": "RequestShiftOutput",
|
|
84
|
+
"inputs": [
|
|
85
|
+
"RequestShiftInput"
|
|
86
|
+
],
|
|
87
|
+
"outputs": [
|
|
88
|
+
"RequestShiftOutput"
|
|
89
|
+
],
|
|
90
|
+
"implementationHash": "0e0600c71d02e43a",
|
|
91
|
+
"contractHash": "f7559fbf911b2bac",
|
|
92
|
+
"inputHash": "ecc74cf3",
|
|
93
|
+
"outputHash": "fa51fb1f"
|
|
94
|
+
},
|
|
95
|
+
"requestSend": {
|
|
96
|
+
"pikkuFuncId": "requestSend",
|
|
97
|
+
"functionType": "user",
|
|
98
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
99
|
+
"sessionless": true,
|
|
100
|
+
"name": "requestSend",
|
|
101
|
+
"inputSchemaName": "RequestSendInput",
|
|
102
|
+
"outputSchemaName": "RequestSendOutput",
|
|
103
|
+
"inputs": [
|
|
104
|
+
"RequestSendInput"
|
|
105
|
+
],
|
|
106
|
+
"outputs": [
|
|
107
|
+
"RequestSendOutput"
|
|
108
|
+
],
|
|
109
|
+
"implementationHash": "c6287b1a304cc217",
|
|
110
|
+
"contractHash": "22492582d4b640fa",
|
|
111
|
+
"inputHash": "2fcdeee4",
|
|
112
|
+
"outputHash": "035e0815"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal'
|
|
5
|
+
import type { FunctionsMeta } from '@pikku/core'
|
|
6
|
+
import metaData from './pikku-functions-meta.gen.json' with { type: 'json' }
|
|
7
|
+
pikkuState('@pikku/addon-postbin', 'function', 'meta', metaData as FunctionsMeta)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/function/pikku-functions.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/* Import and register functions used by RPCs */
|
|
5
|
+
import { addFunction } from '@pikku/core/function';
|
|
6
|
+
import { binCreate } from '../../src/functions/binCreate.function.js';
|
|
7
|
+
import { binDelete } from '../../src/functions/binDelete.function.js';
|
|
8
|
+
import { binGet } from '../../src/functions/binGet.function.js';
|
|
9
|
+
import { requestGet } from '../../src/functions/requestGet.function.js';
|
|
10
|
+
import { requestSend } from '../../src/functions/requestSend.function.js';
|
|
11
|
+
import { requestShift } from '../../src/functions/requestShift.function.js';
|
|
12
|
+
addFunction('binCreate', binCreate, '@pikku/addon-postbin');
|
|
13
|
+
addFunction('binDelete', binDelete, '@pikku/addon-postbin');
|
|
14
|
+
addFunction('binGet', binGet, '@pikku/addon-postbin');
|
|
15
|
+
addFunction('requestGet', requestGet, '@pikku/addon-postbin');
|
|
16
|
+
addFunction('requestSend', requestSend, '@pikku/addon-postbin');
|
|
17
|
+
addFunction('requestShift', requestShift, '@pikku/addon-postbin');
|
|
18
|
+
//# sourceMappingURL=pikku-functions.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions.gen.js","sourceRoot":"","sources":["../../../.pikku/function/pikku-functions.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,gDAAgD;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAA;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAA;AAE3E,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,sBAAsB,CAAC,CAAA;AAC3D,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,sBAAsB,CAAC,CAAA;AAC3D,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,sBAAsB,CAAC,CAAA;AACrD,WAAW,CAAC,YAAY,EAAE,UAAU,EAAE,sBAAsB,CAAC,CAAA;AAC7D,WAAW,CAAC,aAAa,EAAE,WAAW,EAAE,sBAAsB,CAAC,CAAA;AAC/D,WAAW,CAAC,cAAc,EAAE,YAAY,EAAE,sBAAsB,CAAC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/* Import and register functions used by RPCs */
|
|
5
|
+
import { addFunction } from '@pikku/core/function'
|
|
6
|
+
import { binCreate } from '../../src/functions/binCreate.function.js'
|
|
7
|
+
import { binDelete } from '../../src/functions/binDelete.function.js'
|
|
8
|
+
import { binGet } from '../../src/functions/binGet.function.js'
|
|
9
|
+
import { requestGet } from '../../src/functions/requestGet.function.js'
|
|
10
|
+
import { requestSend } from '../../src/functions/requestSend.function.js'
|
|
11
|
+
import { requestShift } from '../../src/functions/requestShift.function.js'
|
|
12
|
+
|
|
13
|
+
addFunction('binCreate', binCreate, '@pikku/addon-postbin')
|
|
14
|
+
addFunction('binDelete', binDelete, '@pikku/addon-postbin')
|
|
15
|
+
addFunction('binGet', binGet, '@pikku/addon-postbin')
|
|
16
|
+
addFunction('requestGet', requestGet, '@pikku/addon-postbin')
|
|
17
|
+
addFunction('requestSend', requestSend, '@pikku/addon-postbin')
|
|
18
|
+
addFunction('requestShift', requestShift, '@pikku/addon-postbin')
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* HTTP-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { AssertHTTPWiringParams } from '@pikku/core/http';
|
|
8
|
+
import type { PikkuFunction, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
import type { CoreHTTPFunctionWiring, HTTPMethod, HTTPRouteBaseConfig } from '@pikku/core/http';
|
|
10
|
+
/**
|
|
11
|
+
* Type definition for HTTP API wirings with type-safe path parameters.
|
|
12
|
+
* Supports both authenticated and unauthenticated functions.
|
|
13
|
+
*
|
|
14
|
+
* @template In - Input type for the HTTP wiring
|
|
15
|
+
* @template Out - Output type for the HTTP wiring
|
|
16
|
+
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
17
|
+
*/
|
|
18
|
+
type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out, Route, PikkuFunction<In, Out, 'rpc' | 'session'>, PikkuFunctionSessionless<In, Out, 'rpc' | 'session'>, PikkuPermission<In>, PikkuMiddleware>;
|
|
19
|
+
/**
|
|
20
|
+
* Registers an HTTP wiring with the Pikku framework.
|
|
21
|
+
*
|
|
22
|
+
* @template In - Input type for the HTTP wiring
|
|
23
|
+
* @template Out - Output type for the HTTP wiring
|
|
24
|
+
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
25
|
+
* @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
|
|
26
|
+
*/
|
|
27
|
+
export declare const wireHTTP: <In, Out, Route extends string>(httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Registers HTTP middleware either globally or for a specific route pattern.
|
|
30
|
+
*
|
|
31
|
+
* When a string route pattern is provided along with middleware, the middleware
|
|
32
|
+
* is applied only to that route. Otherwise, if an array is provided, it is treated
|
|
33
|
+
* as global middleware (applied to all routes).
|
|
34
|
+
*
|
|
35
|
+
* @param routeOrMiddleware - Either a global middleware array or a route pattern string
|
|
36
|
+
* @param middleware - The middleware array to apply when a route pattern is specified
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* // Add global HTTP middleware
|
|
41
|
+
* addHTTPMiddleware([authMiddleware, loggingMiddleware])
|
|
42
|
+
*
|
|
43
|
+
* // Add route-specific middleware
|
|
44
|
+
* addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare const addHTTPMiddleware: (routeOrMiddleware: PikkuMiddleware[] | string, middleware?: PikkuMiddleware[]) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Registers HTTP permissions either globally or for a specific route pattern.
|
|
50
|
+
*
|
|
51
|
+
* When a string route pattern is provided along with permissions, the permissions
|
|
52
|
+
* are applied only to that route. Permissions can be passed as an array or as a
|
|
53
|
+
* permission group object.
|
|
54
|
+
*
|
|
55
|
+
* @param pattern - Route pattern string (e.g., '*' for all routes, '/api/*' for specific routes)
|
|
56
|
+
* @param permissions - The permissions to apply for the specified route pattern
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```typescript
|
|
60
|
+
* // Add global HTTP permissions
|
|
61
|
+
* addHTTPPermission('*', { global: globalPermission })
|
|
62
|
+
*
|
|
63
|
+
* // Add route-specific permissions
|
|
64
|
+
* addHTTPPermission('/api/admin/*', { admin: adminPermission })
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare const addHTTPPermission: <In = unknown>(pattern: string, permissions: Record<string, PikkuPermission<In>> | PikkuPermission<In>[]) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Route configuration for wireHTTPRoutes with proper typing
|
|
70
|
+
*/
|
|
71
|
+
type HTTPRouteConfig = HTTPRouteBaseConfig & {
|
|
72
|
+
method: HTTPMethod;
|
|
73
|
+
route: string;
|
|
74
|
+
func: PikkuFunctionConfig<any, any, any, any, any, any>;
|
|
75
|
+
auth?: boolean;
|
|
76
|
+
permissions?: Record<string, PikkuPermission | PikkuPermission[]>;
|
|
77
|
+
middleware?: PikkuMiddleware[];
|
|
78
|
+
sse?: boolean;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Typed route map for wireHTTPRoutes
|
|
82
|
+
*/
|
|
83
|
+
type TypedHTTPRouteMap = {
|
|
84
|
+
[key: string]: HTTPRouteConfig | TypedHTTPRouteMap | TypedHTTPRouteContract;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Typed route contract for defineHTTPRoutes
|
|
88
|
+
*/
|
|
89
|
+
type TypedHTTPRouteContract<T extends TypedHTTPRouteMap = TypedHTTPRouteMap> = TypedHTTPRoutesGroupConfig & {
|
|
90
|
+
routes: T;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Group config with typed middleware/permissions
|
|
94
|
+
*/
|
|
95
|
+
type TypedHTTPRoutesGroupConfig = {
|
|
96
|
+
basePath?: string;
|
|
97
|
+
tags?: string[];
|
|
98
|
+
auth?: boolean;
|
|
99
|
+
middleware?: PikkuMiddleware[];
|
|
100
|
+
permissions?: Record<string, PikkuPermission | PikkuPermission[]>;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Full config for wireHTTPRoutes
|
|
104
|
+
*/
|
|
105
|
+
type TypedWireHTTPRoutesConfig = TypedHTTPRoutesGroupConfig & {
|
|
106
|
+
routes: TypedHTTPRouteMap | HTTPRouteConfig[];
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Type-safe helper for defining route contracts that can be composed.
|
|
110
|
+
*/
|
|
111
|
+
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>;
|
|
112
|
+
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & {
|
|
113
|
+
routes: T;
|
|
114
|
+
}): TypedHTTPRouteContract<T>;
|
|
115
|
+
/**
|
|
116
|
+
* Wires multiple HTTP routes from a nested map or array configuration.
|
|
117
|
+
*/
|
|
118
|
+
export declare const wireHTTPRoutes: (config: TypedWireHTTPRoutesConfig) => void;
|
|
119
|
+
export {};
|
|
120
|
+
//# sourceMappingURL=pikku-http-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-http-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/http/pikku-http-types.gen.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* HTTP-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireHTTP as wireHTTPCore, addHTTPMiddleware as addHTTPMiddlewareCore, addHTTPPermission as addHTTPPermissionCore, wireHTTPRoutes as wireHTTPRoutesCore, defineHTTPRoutes as defineHTTPRoutesCore } from '@pikku/core/http';
|
|
8
|
+
/**
|
|
9
|
+
* Registers an HTTP wiring with the Pikku framework.
|
|
10
|
+
*
|
|
11
|
+
* @template In - Input type for the HTTP wiring
|
|
12
|
+
* @template Out - Output type for the HTTP wiring
|
|
13
|
+
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
14
|
+
* @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
|
|
15
|
+
*/
|
|
16
|
+
export const wireHTTP = (httpWiring) => {
|
|
17
|
+
wireHTTPCore(httpWiring);
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Registers HTTP middleware either globally or for a specific route pattern.
|
|
21
|
+
*
|
|
22
|
+
* When a string route pattern is provided along with middleware, the middleware
|
|
23
|
+
* is applied only to that route. Otherwise, if an array is provided, it is treated
|
|
24
|
+
* as global middleware (applied to all routes).
|
|
25
|
+
*
|
|
26
|
+
* @param routeOrMiddleware - Either a global middleware array or a route pattern string
|
|
27
|
+
* @param middleware - The middleware array to apply when a route pattern is specified
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* // Add global HTTP middleware
|
|
32
|
+
* addHTTPMiddleware([authMiddleware, loggingMiddleware])
|
|
33
|
+
*
|
|
34
|
+
* // Add route-specific middleware
|
|
35
|
+
* addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export const addHTTPMiddleware = (routeOrMiddleware, middleware) => {
|
|
39
|
+
addHTTPMiddlewareCore(routeOrMiddleware, middleware);
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Registers HTTP permissions either globally or for a specific route pattern.
|
|
43
|
+
*
|
|
44
|
+
* When a string route pattern is provided along with permissions, the permissions
|
|
45
|
+
* are applied only to that route. Permissions can be passed as an array or as a
|
|
46
|
+
* permission group object.
|
|
47
|
+
*
|
|
48
|
+
* @param pattern - Route pattern string (e.g., '*' for all routes, '/api/*' for specific routes)
|
|
49
|
+
* @param permissions - The permissions to apply for the specified route pattern
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* // Add global HTTP permissions
|
|
54
|
+
* addHTTPPermission('*', { global: globalPermission })
|
|
55
|
+
*
|
|
56
|
+
* // Add route-specific permissions
|
|
57
|
+
* addHTTPPermission('/api/admin/*', { admin: adminPermission })
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export const addHTTPPermission = (pattern, permissions) => {
|
|
61
|
+
addHTTPPermissionCore(pattern, permissions);
|
|
62
|
+
};
|
|
63
|
+
export function defineHTTPRoutes(configOrRoutes) {
|
|
64
|
+
return defineHTTPRoutesCore(configOrRoutes);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Wires multiple HTTP routes from a nested map or array configuration.
|
|
68
|
+
*/
|
|
69
|
+
export const wireHTTPRoutes = (config) => {
|
|
70
|
+
wireHTTPRoutesCore(config);
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=pikku-http-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-http-types.gen.js","sourceRoot":"","sources":["../../../.pikku/http/pikku-http-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAA0B,QAAQ,IAAI,YAAY,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,cAAc,IAAI,kBAAkB,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAc3P;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,UAA0E,EAC1E,EAAE;IACF,YAAY,CAAC,UAAiB,CAAC,CAAA;AACjC,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,iBAA6C,EAC7C,UAA8B,EAC9B,EAAE;IACF,qBAAqB,CAAC,iBAAwB,EAAE,UAAiB,CAAC,CAAA;AACpE,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,OAAe,EACf,WAAwE,EACxE,EAAE;IACF,qBAAqB,CAAC,OAAO,EAAE,WAAkB,CAAC,CAAA;AACpD,CAAC,CAAA;AAoDD,MAAM,UAAU,gBAAgB,CAA8B,cAAgE;IAC5H,OAAO,oBAAoB,CAAC,cAAqB,CAAyC,CAAA;AAC5F,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAiC,EAAQ,EAAE;IACxE,kBAAkB,CAAC,MAAa,CAAC,CAAA;AACnC,CAAC,CAAA"}
|