@chainlink/cre-sdk 1.0.8 → 1.1.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.
- package/README.md +36 -9
- package/dist/generated/capabilities/blockchain/evm/v1alpha/client_pb.js +1 -1
- package/dist/generated/capabilities/internal/actionandtrigger/v1/action_and_trigger_pb.d.ts +135 -0
- package/dist/generated/capabilities/internal/actionandtrigger/v1/action_and_trigger_pb.js +43 -0
- package/dist/generated/capabilities/internal/basicaction/v1/basic_action_pb.d.ts +77 -0
- package/dist/generated/capabilities/internal/basicaction/v1/basic_action_pb.js +33 -0
- package/dist/generated/capabilities/internal/nodeaction/v1/node_action_pb.d.ts +69 -0
- package/dist/generated/capabilities/internal/nodeaction/v1/node_action_pb.js +29 -0
- package/dist/generated/capabilities/networking/confidentialhttp/v1alpha/client_pb.d.ts +199 -100
- package/dist/generated/capabilities/networking/confidentialhttp/v1alpha/client_pb.js +18 -18
- package/dist/generated/capabilities/networking/http/v1alpha/client_pb.d.ts +69 -4
- package/dist/generated/capabilities/networking/http/v1alpha/client_pb.js +10 -3
- package/dist/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.d.ts +1 -0
- package/dist/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.js +1 -0
- package/dist/generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen.d.ts +4 -18
- package/dist/generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen.js +7 -34
- package/dist/generated-sdk/capabilities/networking/http/v1alpha/http_sdk_gen.js +0 -3
- package/dist/generated-sdk/capabilities/scheduler/cron/v1/cron_sdk_gen.js +0 -3
- package/dist/sdk/cre/index.d.ts +1 -1
- package/dist/sdk/cre/index.js +1 -1
- package/dist/sdk/errors.d.ts +2 -2
- package/dist/sdk/errors.js +3 -1
- package/dist/sdk/impl/runtime-impl.js +5 -5
- package/dist/sdk/test/generated/capabilities/blockchain/evm/v1alpha/evm_mock_gen.d.ts +31 -0
- package/dist/sdk/test/generated/capabilities/blockchain/evm/v1alpha/evm_mock_gen.js +158 -0
- package/dist/sdk/test/generated/capabilities/internal/actionandtrigger/v1/basic_test_action_trigger_mock_gen.d.ts +17 -0
- package/dist/sdk/test/generated/capabilities/internal/actionandtrigger/v1/basic_test_action_trigger_mock_gen.js +53 -0
- package/dist/sdk/test/generated/capabilities/internal/basicaction/v1/basic_test_action_mock_gen.d.ts +17 -0
- package/dist/sdk/test/generated/capabilities/internal/basicaction/v1/basic_test_action_mock_gen.js +53 -0
- package/dist/sdk/test/generated/capabilities/internal/consensus/v1alpha/consensus_mock_gen.d.ts +20 -0
- package/dist/sdk/test/generated/capabilities/internal/consensus/v1alpha/consensus_mock_gen.js +67 -0
- package/dist/sdk/test/generated/capabilities/internal/nodeaction/v1/basic_test_node_action_mock_gen.d.ts +17 -0
- package/dist/sdk/test/generated/capabilities/internal/nodeaction/v1/basic_test_node_action_mock_gen.js +53 -0
- package/dist/sdk/test/generated/capabilities/networking/confidentialhttp/v1alpha/confidential_http_mock_gen.d.ts +17 -0
- package/dist/sdk/test/generated/capabilities/networking/confidentialhttp/v1alpha/confidential_http_mock_gen.js +53 -0
- package/dist/sdk/test/generated/capabilities/networking/http/v1alpha/http_actions_mock_gen.d.ts +17 -0
- package/dist/sdk/test/generated/capabilities/networking/http/v1alpha/http_actions_mock_gen.js +53 -0
- package/dist/sdk/test/generated/index.d.ts +8 -0
- package/dist/sdk/test/generated/index.js +8 -0
- package/dist/sdk/test/index.d.ts +7 -0
- package/dist/sdk/test/index.js +7 -0
- package/dist/sdk/testutils/index.d.ts +6 -0
- package/dist/sdk/testutils/index.js +6 -0
- package/dist/sdk/testutils/test-runtime.d.ts +84 -0
- package/dist/sdk/testutils/test-runtime.js +309 -0
- package/dist/sdk/testutils/test-writer.d.ts +13 -0
- package/dist/sdk/testutils/test-writer.js +19 -0
- package/dist/sdk/utils/capabilities/blockchain/blockchain-helpers.d.ts +1 -1
- package/dist/sdk/utils/capabilities/blockchain/blockchain-helpers.js +5 -0
- package/dist/sdk/utils/capabilities/http/http-helpers.d.ts +7 -7
- package/dist/sdk/utils/chain-selectors/network-lookup.js +1 -1
- package/dist/sdk/utils/hex-utils.js +12 -0
- package/dist/sdk/utils/values/value.js +10 -6
- package/dist/sdk/wasm/host-bindings.js +3 -1
- package/dist/sdk/wasm/runner.js +22 -8
- package/dist/sdk/wasm/runtime.js +10 -9
- package/dist/sdk/wasm/send-error-response.js +6 -0
- package/dist/workflows/standard_tests/host_wasm_write_errors_are_respected/test.ts +1 -1
- package/dist/workflows/standard_tests/mode_switch/don_runtime_in_node_mode/test.ts +1 -1
- package/dist/workflows/standard_tests/time_interpretation/test.ts +32 -0
- package/package.json +11 -6
- package/scripts/src/cre-setup.ts +1 -1
- package/scripts/src/generate-sdks.ts +52 -0
package/README.md
CHANGED
|
@@ -32,6 +32,7 @@ The Chainlink Runtime Environment (CRE) SDK for TypeScript enables developers to
|
|
|
32
32
|
- [Core Functions](#core-functions)
|
|
33
33
|
- [Capabilities](#capabilities)
|
|
34
34
|
- [Utilities](#utilities)
|
|
35
|
+
- [Testing](#testing)
|
|
35
36
|
- [Building from Source](#building-from-source)
|
|
36
37
|
- [Protobuf Generation](#protobuf-generation)
|
|
37
38
|
- [Chain Selectors Generation](#chain-selectors-generation)
|
|
@@ -60,7 +61,7 @@ Then run `cre init`, name your project and choose TypeScript as the language to
|
|
|
60
61
|
|
|
61
62
|
This TypeScript CRE SDK also includes some reference examples - [cre-sdk-examples](https://github.com/smartcontractkit/cre-sdk-typescript/tree/main/packages/cre-sdk-examples). These can be copied and pasted into your project as needed.
|
|
62
63
|
|
|
63
|
-
⚠️ Note however that these are refence TypeScript workflows and may require some additional steps (having the CRE CLI installed, running `
|
|
64
|
+
⚠️ Note however that these are refence TypeScript workflows and may require some additional steps (having the CRE CLI installed, running `bun x cre-setup` from inside a workflow example directory, etc) to get them to work within this repo.
|
|
64
65
|
|
|
65
66
|
**We recommend you setup your project using the CRE CLI and then copy and paste these examples into your project**
|
|
66
67
|
|
|
@@ -149,11 +150,9 @@ const fetchData = (sendRequester: HTTPSendRequester, config: Config) => {
|
|
|
149
150
|
const onCronTrigger = (runtime: Runtime<Config>) => {
|
|
150
151
|
const httpCapability = new cre.capabilities.HTTPClient();
|
|
151
152
|
return httpCapability
|
|
152
|
-
.sendRequest(
|
|
153
|
-
runtime,
|
|
154
|
-
|
|
155
|
-
consensusMedianAggregation()
|
|
156
|
-
)(runtime.config)
|
|
153
|
+
.sendRequest(runtime, fetchData, consensusMedianAggregation())(
|
|
154
|
+
runtime.config,
|
|
155
|
+
)
|
|
157
156
|
.result();
|
|
158
157
|
};
|
|
159
158
|
```
|
|
@@ -190,7 +189,7 @@ const onCronTrigger = (runtime: Runtime<Config>) => {
|
|
|
190
189
|
if (!network) throw new Error("Network not found");
|
|
191
190
|
|
|
192
191
|
const evmClient = new cre.capabilities.EVMClient(
|
|
193
|
-
network.chainSelector.selector
|
|
192
|
+
network.chainSelector.selector,
|
|
194
193
|
);
|
|
195
194
|
|
|
196
195
|
// Read from blockchain
|
|
@@ -239,7 +238,7 @@ const configSchema = z.object({
|
|
|
239
238
|
z.object({
|
|
240
239
|
chainSelectorName: z.string(),
|
|
241
240
|
contractAddress: z.string(),
|
|
242
|
-
})
|
|
241
|
+
}),
|
|
243
242
|
),
|
|
244
243
|
});
|
|
245
244
|
|
|
@@ -267,7 +266,7 @@ const fetchDataFunction = async (nodeRuntime: NodeRuntime<Config>) => 42;
|
|
|
267
266
|
// Execute function across multiple nodes and aggregate results
|
|
268
267
|
const aggregatedValue = await runtime.runInNodeMode(
|
|
269
268
|
fetchDataFunction,
|
|
270
|
-
consensusMedianAggregation()
|
|
269
|
+
consensusMedianAggregation(),
|
|
271
270
|
)();
|
|
272
271
|
```
|
|
273
272
|
|
|
@@ -432,6 +431,34 @@ See the [star-wars example](https://github.com/smartcontractkit/cre-sdk-typescri
|
|
|
432
431
|
- `getAllNetworks()`: Get all supported networks
|
|
433
432
|
- `getNetwork(options)`: Get specific network metadata
|
|
434
433
|
|
|
434
|
+
## Testing
|
|
435
|
+
|
|
436
|
+
The CRE SDK includes a built-in test framework for unit testing your workflows without compiling to WASM or running on a DON. It provides capability mocks, secrets simulation, time control, and log capture — all with full type safety.
|
|
437
|
+
|
|
438
|
+
See the [Testing Guide](./TESTING.md) for full documentation, including examples for mocking EVM, HTTP, consensus, and more.
|
|
439
|
+
|
|
440
|
+
Quick example:
|
|
441
|
+
|
|
442
|
+
```typescript
|
|
443
|
+
import { describe, expect } from "bun:test";
|
|
444
|
+
import { test, newTestRuntime, EvmMock } from "@chainlink/cre-sdk/test";
|
|
445
|
+
import { ClientCapability as EvmClient } from "@cre/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen";
|
|
446
|
+
|
|
447
|
+
describe("my workflow", () => {
|
|
448
|
+
test("reads from EVM", () => {
|
|
449
|
+
const mock = EvmMock.testInstance(11155111n);
|
|
450
|
+
mock.callContract = () => ({ data: "AQID" });
|
|
451
|
+
|
|
452
|
+
const runtime = newTestRuntime();
|
|
453
|
+
const result = new EvmClient(11155111n)
|
|
454
|
+
.callContract(runtime, { call: { to: "", data: "" } })
|
|
455
|
+
.result();
|
|
456
|
+
|
|
457
|
+
expect(result.data).toEqual(new Uint8Array([1, 2, 3]));
|
|
458
|
+
});
|
|
459
|
+
});
|
|
460
|
+
```
|
|
461
|
+
|
|
435
462
|
## Building from Source
|
|
436
463
|
|
|
437
464
|
To build the SDK locally:
|
|
@@ -10,7 +10,7 @@ import { file_values_v1_values } from '../../../../values/v1/values_pb';
|
|
|
10
10
|
*/
|
|
11
11
|
export const file_capabilities_blockchain_evm_v1alpha_client =
|
|
12
12
|
/*@__PURE__*/
|
|
13
|
-
fileDesc('
|
|
13
|
+
fileDesc('CjBjYXBhYmlsaXRpZXMvYmxvY2tjaGFpbi9ldm0vdjFhbHBoYS9jbGllbnQucHJvdG8SI2NhcGFiaWxpdGllcy5ibG9ja2NoYW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HBoYeICL0NhcGFiaWxpdGllc1xCbG9ja2NoYWluXEV2bVxWMWFscGhhXEdQQk1ldGFkYXRh6gImQ2FwYWJpbGl0aWVzOjpCbG9ja2NoYWluOjpFdm06OlYxYWxwaGFiBnByb3RvMw', [file_sdk_v1alpha_sdk, file_tools_generator_v1alpha_cre_metadata, file_values_v1_values]);
|
|
14
14
|
/**
|
|
15
15
|
* Describes the message capabilities.blockchain.evm.v1alpha.TopicValues.
|
|
16
16
|
* Use `create(TopicValuesSchema)` to create a new message.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { Message } from '@bufbuild/protobuf';
|
|
2
|
+
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file capabilities/internal/actionandtrigger/v1/action_and_trigger.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_capabilities_internal_actionandtrigger_v1_action_and_trigger: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message capabilities.internal.actionandtrigger.v1.Config
|
|
9
|
+
*/
|
|
10
|
+
export type Config = Message<'capabilities.internal.actionandtrigger.v1.Config'> & {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: string name = 1;
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: int32 number = 2;
|
|
17
|
+
*/
|
|
18
|
+
number: number;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from message capabilities.internal.actionandtrigger.v1.Config
|
|
22
|
+
*/
|
|
23
|
+
export type ConfigJson = {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from field: string name = 1;
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: int32 number = 2;
|
|
30
|
+
*/
|
|
31
|
+
number?: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message capabilities.internal.actionandtrigger.v1.Config.
|
|
35
|
+
* Use `create(ConfigSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
export declare const ConfigSchema: GenMessage<Config, {
|
|
38
|
+
jsonType: ConfigJson;
|
|
39
|
+
}>;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from message capabilities.internal.actionandtrigger.v1.TriggerEvent
|
|
42
|
+
*/
|
|
43
|
+
export type TriggerEvent = Message<'capabilities.internal.actionandtrigger.v1.TriggerEvent'> & {
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: string cool_output = 1;
|
|
46
|
+
*/
|
|
47
|
+
coolOutput: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message capabilities.internal.actionandtrigger.v1.TriggerEvent
|
|
51
|
+
*/
|
|
52
|
+
export type TriggerEventJson = {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string cool_output = 1;
|
|
55
|
+
*/
|
|
56
|
+
coolOutput?: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message capabilities.internal.actionandtrigger.v1.TriggerEvent.
|
|
60
|
+
* Use `create(TriggerEventSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const TriggerEventSchema: GenMessage<TriggerEvent, {
|
|
63
|
+
jsonType: TriggerEventJson;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from message capabilities.internal.actionandtrigger.v1.Input
|
|
67
|
+
*/
|
|
68
|
+
export type Input = Message<'capabilities.internal.actionandtrigger.v1.Input'> & {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: string name = 1;
|
|
71
|
+
*/
|
|
72
|
+
name: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* @generated from message capabilities.internal.actionandtrigger.v1.Input
|
|
76
|
+
*/
|
|
77
|
+
export type InputJson = {
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: string name = 1;
|
|
80
|
+
*/
|
|
81
|
+
name?: string;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message capabilities.internal.actionandtrigger.v1.Input.
|
|
85
|
+
* Use `create(InputSchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export declare const InputSchema: GenMessage<Input, {
|
|
88
|
+
jsonType: InputJson;
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from message capabilities.internal.actionandtrigger.v1.Output
|
|
92
|
+
*/
|
|
93
|
+
export type Output = Message<'capabilities.internal.actionandtrigger.v1.Output'> & {
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: string welcome = 1;
|
|
96
|
+
*/
|
|
97
|
+
welcome: string;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* @generated from message capabilities.internal.actionandtrigger.v1.Output
|
|
101
|
+
*/
|
|
102
|
+
export type OutputJson = {
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: string welcome = 1;
|
|
105
|
+
*/
|
|
106
|
+
welcome?: string;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Describes the message capabilities.internal.actionandtrigger.v1.Output.
|
|
110
|
+
* Use `create(OutputSchema)` to create a new message.
|
|
111
|
+
*/
|
|
112
|
+
export declare const OutputSchema: GenMessage<Output, {
|
|
113
|
+
jsonType: OutputJson;
|
|
114
|
+
}>;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from service capabilities.internal.actionandtrigger.v1.Basic
|
|
117
|
+
*/
|
|
118
|
+
export declare const Basic: GenService<{
|
|
119
|
+
/**
|
|
120
|
+
* @generated from rpc capabilities.internal.actionandtrigger.v1.Basic.Action
|
|
121
|
+
*/
|
|
122
|
+
action: {
|
|
123
|
+
methodKind: 'unary';
|
|
124
|
+
input: typeof InputSchema;
|
|
125
|
+
output: typeof OutputSchema;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* @generated from rpc capabilities.internal.actionandtrigger.v1.Basic.Trigger
|
|
129
|
+
*/
|
|
130
|
+
trigger: {
|
|
131
|
+
methodKind: 'server_streaming';
|
|
132
|
+
input: typeof ConfigSchema;
|
|
133
|
+
output: typeof TriggerEventSchema;
|
|
134
|
+
};
|
|
135
|
+
}>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts,import_extension=none,json_types=true,keep_empty_files=false"
|
|
2
|
+
// @generated from file capabilities/internal/actionandtrigger/v1/action_and_trigger.proto (package capabilities.internal.actionandtrigger.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
|
5
|
+
import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/generator/v1alpha/cre_metadata_pb';
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file capabilities/internal/actionandtrigger/v1/action_and_trigger.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_capabilities_internal_actionandtrigger_v1_action_and_trigger =
|
|
10
|
+
/*@__PURE__*/
|
|
11
|
+
fileDesc('CkJjYXBhYmlsaXRpZXMvaW50ZXJuYWwvYWN0aW9uYW5kdHJpZ2dlci92MS9hY3Rpb25fYW5kX3RyaWdnZXIucHJvdG8SKWNhcGFiaWxpdGllcy5pbnRlcm5hbC5hY3Rpb25hbmR0cmlnZ2VyLnYxIiYKBkNvbmZpZxIMCgRuYW1lGAEgASgJEg4KBm51bWJlchgCIAEoBSIjCgxUcmlnZ2VyRXZlbnQSEwoLY29vbF9vdXRwdXQYASABKAkiFQoFSW5wdXQSDAoEbmFtZRgBIAEoCSIZCgZPdXRwdXQSDwoHd2VsY29tZRgBIAEoCTKYAgoFQmFzaWMSbQoGQWN0aW9uEjAuY2FwYWJpbGl0aWVzLmludGVybmFsLmFjdGlvbmFuZHRyaWdnZXIudjEuSW5wdXQaMS5jYXBhYmlsaXRpZXMuaW50ZXJuYWwuYWN0aW9uYW5kdHJpZ2dlci52MS5PdXRwdXQSdwoHVHJpZ2dlchIxLmNhcGFiaWxpdGllcy5pbnRlcm5hbC5hY3Rpb25hbmR0cmlnZ2VyLnYxLkNvbmZpZxo3LmNhcGFiaWxpdGllcy5pbnRlcm5hbC5hY3Rpb25hbmR0cmlnZ2VyLnYxLlRyaWdnZXJFdmVudDABGieCtRgjCAESH2Jhc2ljLXRlc3QtYWN0aW9uLXRyaWdnZXJAMS4wLjBCjQIKLWNvbS5jYXBhYmlsaXRpZXMuaW50ZXJuYWwuYWN0aW9uYW5kdHJpZ2dlci52MUIVQWN0aW9uQW5kVHJpZ2dlclByb3RvUAGiAgNDSUGqAilDYXBhYmlsaXRpZXMuSW50ZXJuYWwuQWN0aW9uYW5kdHJpZ2dlci5WMcoCKUNhcGFiaWxpdGllc1xJbnRlcm5hbFxBY3Rpb25hbmR0cmlnZ2VyXFYx4gI1Q2FwYWJpbGl0aWVzXEludGVybmFsXEFjdGlvbmFuZHRyaWdnZXJcVjFcR1BCTWV0YWRhdGHqAixDYXBhYmlsaXRpZXM6OkludGVybmFsOjpBY3Rpb25hbmR0cmlnZ2VyOjpWMWIGcHJvdG8z', [file_tools_generator_v1alpha_cre_metadata]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message capabilities.internal.actionandtrigger.v1.Config.
|
|
14
|
+
* Use `create(ConfigSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const ConfigSchema =
|
|
17
|
+
/*@__PURE__*/
|
|
18
|
+
messageDesc(file_capabilities_internal_actionandtrigger_v1_action_and_trigger, 0);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message capabilities.internal.actionandtrigger.v1.TriggerEvent.
|
|
21
|
+
* Use `create(TriggerEventSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const TriggerEventSchema =
|
|
24
|
+
/*@__PURE__*/
|
|
25
|
+
messageDesc(file_capabilities_internal_actionandtrigger_v1_action_and_trigger, 1);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message capabilities.internal.actionandtrigger.v1.Input.
|
|
28
|
+
* Use `create(InputSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const InputSchema =
|
|
31
|
+
/*@__PURE__*/
|
|
32
|
+
messageDesc(file_capabilities_internal_actionandtrigger_v1_action_and_trigger, 2);
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message capabilities.internal.actionandtrigger.v1.Output.
|
|
35
|
+
* Use `create(OutputSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
export const OutputSchema =
|
|
38
|
+
/*@__PURE__*/
|
|
39
|
+
messageDesc(file_capabilities_internal_actionandtrigger_v1_action_and_trigger, 3);
|
|
40
|
+
/**
|
|
41
|
+
* @generated from service capabilities.internal.actionandtrigger.v1.Basic
|
|
42
|
+
*/
|
|
43
|
+
export const Basic = /*@__PURE__*/ serviceDesc(file_capabilities_internal_actionandtrigger_v1_action_and_trigger, 0);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { Message } from '@bufbuild/protobuf';
|
|
2
|
+
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file capabilities/internal/basicaction/v1/basic_action.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_capabilities_internal_basicaction_v1_basic_action: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message capabilities.internal.basicaction.v1.Inputs
|
|
9
|
+
*/
|
|
10
|
+
export type Inputs = Message<'capabilities.internal.basicaction.v1.Inputs'> & {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: bool input_thing = 1;
|
|
13
|
+
*/
|
|
14
|
+
inputThing: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @generated from message capabilities.internal.basicaction.v1.Inputs
|
|
18
|
+
*/
|
|
19
|
+
export type InputsJson = {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: bool input_thing = 1;
|
|
22
|
+
*/
|
|
23
|
+
inputThing?: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message capabilities.internal.basicaction.v1.Inputs.
|
|
27
|
+
* Use `create(InputsSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export declare const InputsSchema: GenMessage<Inputs, {
|
|
30
|
+
jsonType: InputsJson;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from message capabilities.internal.basicaction.v1.Outputs
|
|
34
|
+
*/
|
|
35
|
+
export type Outputs = Message<'capabilities.internal.basicaction.v1.Outputs'> & {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from field: string adapted_thing = 1;
|
|
38
|
+
*/
|
|
39
|
+
adaptedThing: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @generated from message capabilities.internal.basicaction.v1.Outputs
|
|
43
|
+
*/
|
|
44
|
+
export type OutputsJson = {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: string adapted_thing = 1;
|
|
47
|
+
*/
|
|
48
|
+
adaptedThing?: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message capabilities.internal.basicaction.v1.Outputs.
|
|
52
|
+
* Use `create(OutputsSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export declare const OutputsSchema: GenMessage<Outputs, {
|
|
55
|
+
jsonType: OutputsJson;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* This action server for testing purposes only.
|
|
59
|
+
*
|
|
60
|
+
* This comment tests the generator's ability to handle comments.
|
|
61
|
+
*
|
|
62
|
+
* @generated from service capabilities.internal.basicaction.v1.BasicAction
|
|
63
|
+
*/
|
|
64
|
+
export declare const BasicAction: GenService<{
|
|
65
|
+
/**
|
|
66
|
+
* This comment tests the generator's ability to handle leading comments on methods.
|
|
67
|
+
*
|
|
68
|
+
* This comment tests the generator's ability to handle trailing comments on methods.
|
|
69
|
+
*
|
|
70
|
+
* @generated from rpc capabilities.internal.basicaction.v1.BasicAction.PerformAction
|
|
71
|
+
*/
|
|
72
|
+
performAction: {
|
|
73
|
+
methodKind: 'unary';
|
|
74
|
+
input: typeof InputsSchema;
|
|
75
|
+
output: typeof OutputsSchema;
|
|
76
|
+
};
|
|
77
|
+
}>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts,import_extension=none,json_types=true,keep_empty_files=false"
|
|
2
|
+
// @generated from file capabilities/internal/basicaction/v1/basic_action.proto (package capabilities.internal.basicaction.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
|
5
|
+
import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/generator/v1alpha/cre_metadata_pb';
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file capabilities/internal/basicaction/v1/basic_action.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_capabilities_internal_basicaction_v1_basic_action =
|
|
10
|
+
/*@__PURE__*/
|
|
11
|
+
fileDesc('CjdjYXBhYmlsaXRpZXMvaW50ZXJuYWwvYmFzaWNhY3Rpb24vdjEvYmFzaWNfYWN0aW9uLnByb3RvEiRjYXBhYmlsaXRpZXMuaW50ZXJuYWwuYmFzaWNhY3Rpb24udjEiHQoGSW5wdXRzEhMKC2lucHV0X3RoaW5nGAEgASgIIiAKB091dHB1dHMSFQoNYWRhcHRlZF90aGluZxgBIAEoCTKcAQoLQmFzaWNBY3Rpb24SbAoNUGVyZm9ybUFjdGlvbhIsLmNhcGFiaWxpdGllcy5pbnRlcm5hbC5iYXNpY2FjdGlvbi52MS5JbnB1dHMaLS5jYXBhYmlsaXRpZXMuaW50ZXJuYWwuYmFzaWNhY3Rpb24udjEuT3V0cHV0cxofgrUYGwgBEhdiYXNpYy10ZXN0LWFjdGlvbkAxLjAuMELvAQooY29tLmNhcGFiaWxpdGllcy5pbnRlcm5hbC5iYXNpY2FjdGlvbi52MUIQQmFzaWNBY3Rpb25Qcm90b1ABogIDQ0lCqgIkQ2FwYWJpbGl0aWVzLkludGVybmFsLkJhc2ljYWN0aW9uLlYxygIkQ2FwYWJpbGl0aWVzXEludGVybmFsXEJhc2ljYWN0aW9uXFYx4gIwQ2FwYWJpbGl0aWVzXEludGVybmFsXEJhc2ljYWN0aW9uXFYxXEdQQk1ldGFkYXRh6gInQ2FwYWJpbGl0aWVzOjpJbnRlcm5hbDo6QmFzaWNhY3Rpb246OlYxYgZwcm90bzM', [file_tools_generator_v1alpha_cre_metadata]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message capabilities.internal.basicaction.v1.Inputs.
|
|
14
|
+
* Use `create(InputsSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const InputsSchema =
|
|
17
|
+
/*@__PURE__*/
|
|
18
|
+
messageDesc(file_capabilities_internal_basicaction_v1_basic_action, 0);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message capabilities.internal.basicaction.v1.Outputs.
|
|
21
|
+
* Use `create(OutputsSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const OutputsSchema =
|
|
24
|
+
/*@__PURE__*/
|
|
25
|
+
messageDesc(file_capabilities_internal_basicaction_v1_basic_action, 1);
|
|
26
|
+
/**
|
|
27
|
+
* This action server for testing purposes only.
|
|
28
|
+
*
|
|
29
|
+
* This comment tests the generator's ability to handle comments.
|
|
30
|
+
*
|
|
31
|
+
* @generated from service capabilities.internal.basicaction.v1.BasicAction
|
|
32
|
+
*/
|
|
33
|
+
export const BasicAction = /*@__PURE__*/ serviceDesc(file_capabilities_internal_basicaction_v1_basic_action, 0);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Message } from '@bufbuild/protobuf';
|
|
2
|
+
import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file capabilities/internal/nodeaction/v1/node_action.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_capabilities_internal_nodeaction_v1_node_action: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message capabilities.internal.nodeaction.v1.NodeInputs
|
|
9
|
+
*/
|
|
10
|
+
export type NodeInputs = Message<'capabilities.internal.nodeaction.v1.NodeInputs'> & {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: bool input_thing = 1;
|
|
13
|
+
*/
|
|
14
|
+
inputThing: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @generated from message capabilities.internal.nodeaction.v1.NodeInputs
|
|
18
|
+
*/
|
|
19
|
+
export type NodeInputsJson = {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: bool input_thing = 1;
|
|
22
|
+
*/
|
|
23
|
+
inputThing?: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message capabilities.internal.nodeaction.v1.NodeInputs.
|
|
27
|
+
* Use `create(NodeInputsSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export declare const NodeInputsSchema: GenMessage<NodeInputs, {
|
|
30
|
+
jsonType: NodeInputsJson;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from message capabilities.internal.nodeaction.v1.NodeOutputs
|
|
34
|
+
*/
|
|
35
|
+
export type NodeOutputs = Message<'capabilities.internal.nodeaction.v1.NodeOutputs'> & {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from field: int32 output_thing = 1;
|
|
38
|
+
*/
|
|
39
|
+
outputThing: number;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @generated from message capabilities.internal.nodeaction.v1.NodeOutputs
|
|
43
|
+
*/
|
|
44
|
+
export type NodeOutputsJson = {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: int32 output_thing = 1;
|
|
47
|
+
*/
|
|
48
|
+
outputThing?: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message capabilities.internal.nodeaction.v1.NodeOutputs.
|
|
52
|
+
* Use `create(NodeOutputsSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export declare const NodeOutputsSchema: GenMessage<NodeOutputs, {
|
|
55
|
+
jsonType: NodeOutputsJson;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from service capabilities.internal.nodeaction.v1.BasicAction
|
|
59
|
+
*/
|
|
60
|
+
export declare const BasicAction: GenService<{
|
|
61
|
+
/**
|
|
62
|
+
* @generated from rpc capabilities.internal.nodeaction.v1.BasicAction.PerformAction
|
|
63
|
+
*/
|
|
64
|
+
performAction: {
|
|
65
|
+
methodKind: 'unary';
|
|
66
|
+
input: typeof NodeInputsSchema;
|
|
67
|
+
output: typeof NodeOutputsSchema;
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts,import_extension=none,json_types=true,keep_empty_files=false"
|
|
2
|
+
// @generated from file capabilities/internal/nodeaction/v1/node_action.proto (package capabilities.internal.nodeaction.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
|
5
|
+
import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/generator/v1alpha/cre_metadata_pb';
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file capabilities/internal/nodeaction/v1/node_action.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_capabilities_internal_nodeaction_v1_node_action =
|
|
10
|
+
/*@__PURE__*/
|
|
11
|
+
fileDesc('CjVjYXBhYmlsaXRpZXMvaW50ZXJuYWwvbm9kZWFjdGlvbi92MS9ub2RlX2FjdGlvbi5wcm90bxIjY2FwYWJpbGl0aWVzLmludGVybmFsLm5vZGVhY3Rpb24udjEiIQoKTm9kZUlucHV0cxITCgtpbnB1dF90aGluZxgBIAEoCCIjCgtOb2RlT3V0cHV0cxIUCgxvdXRwdXRfdGhpbmcYASABKAUypwEKC0Jhc2ljQWN0aW9uEnIKDVBlcmZvcm1BY3Rpb24SLy5jYXBhYmlsaXRpZXMuaW50ZXJuYWwubm9kZWFjdGlvbi52MS5Ob2RlSW5wdXRzGjAuY2FwYWJpbGl0aWVzLmludGVybmFsLm5vZGVhY3Rpb24udjEuTm9kZU91dHB1dHMaJIK1GCAIAhIcYmFzaWMtdGVzdC1ub2RlLWFjdGlvbkAxLjAuMELpAQonY29tLmNhcGFiaWxpdGllcy5pbnRlcm5hbC5ub2RlYWN0aW9uLnYxQg9Ob2RlQWN0aW9uUHJvdG9QAaICA0NJTqoCI0NhcGFiaWxpdGllcy5JbnRlcm5hbC5Ob2RlYWN0aW9uLlYxygIjQ2FwYWJpbGl0aWVzXEludGVybmFsXE5vZGVhY3Rpb25cVjHiAi9DYXBhYmlsaXRpZXNcSW50ZXJuYWxcTm9kZWFjdGlvblxWMVxHUEJNZXRhZGF0YeoCJkNhcGFiaWxpdGllczo6SW50ZXJuYWw6Ok5vZGVhY3Rpb246OlYxYgZwcm90bzM', [file_tools_generator_v1alpha_cre_metadata]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message capabilities.internal.nodeaction.v1.NodeInputs.
|
|
14
|
+
* Use `create(NodeInputsSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const NodeInputsSchema =
|
|
17
|
+
/*@__PURE__*/
|
|
18
|
+
messageDesc(file_capabilities_internal_nodeaction_v1_node_action, 0);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message capabilities.internal.nodeaction.v1.NodeOutputs.
|
|
21
|
+
* Use `create(NodeOutputsSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const NodeOutputsSchema =
|
|
24
|
+
/*@__PURE__*/
|
|
25
|
+
messageDesc(file_capabilities_internal_nodeaction_v1_node_action, 1);
|
|
26
|
+
/**
|
|
27
|
+
* @generated from service capabilities.internal.nodeaction.v1.BasicAction
|
|
28
|
+
*/
|
|
29
|
+
export const BasicAction = /*@__PURE__*/ serviceDesc(file_capabilities_internal_nodeaction_v1_node_action, 0);
|