@chainlink/cre-sdk 1.0.9 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- 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 +18 -22
- package/dist/generated/capabilities/networking/confidentialhttp/v1alpha/client_pb.js +1 -1
- 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 +2 -2
- package/dist/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.js +0 -2
- package/dist/generated-sdk/capabilities/internal/consensus/v1alpha/consensus_sdk_gen.d.ts +1 -1
- package/dist/generated-sdk/capabilities/internal/consensus/v1alpha/consensus_sdk_gen.js +0 -1
- package/dist/generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen.d.ts +2 -16
- package/dist/generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen.js +2 -30
- package/dist/generated-sdk/capabilities/networking/http/v1alpha/client_sdk_gen.d.ts +1 -1
- package/dist/generated-sdk/capabilities/networking/http/v1alpha/client_sdk_gen.js +0 -1
- package/dist/generated-sdk/capabilities/networking/http/v1alpha/http_sdk_gen.d.ts +1 -1
- package/dist/generated-sdk/capabilities/networking/http/v1alpha/http_sdk_gen.js +0 -4
- package/dist/generated-sdk/capabilities/scheduler/cron/v1/cron_sdk_gen.d.ts +1 -1
- package/dist/generated-sdk/capabilities/scheduler/cron/v1/cron_sdk_gen.js +0 -4
- 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/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/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)
|
|
@@ -430,6 +431,34 @@ See the [star-wars example](https://github.com/smartcontractkit/cre-sdk-typescri
|
|
|
430
431
|
- `getAllNetworks()`: Get all supported networks
|
|
431
432
|
- `getNetwork(options)`: Get specific network metadata
|
|
432
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
|
+
|
|
433
462
|
## Building from Source
|
|
434
463
|
|
|
435
464
|
To build the SDK locally:
|
|
@@ -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);
|
|
@@ -144,6 +144,15 @@ export type HTTPRequest = Message<'capabilities.networking.confidentialhttp.v1al
|
|
|
144
144
|
* @generated from field: google.protobuf.Duration timeout = 7;
|
|
145
145
|
*/
|
|
146
146
|
timeout?: Duration;
|
|
147
|
+
/**
|
|
148
|
+
* encrypt_output controls whether the enclave response should be encrypted.
|
|
149
|
+
* If true, the response will be AES-GCM encrypted using the
|
|
150
|
+
* "san_marino_aes_gcm_encryption_key" secret.
|
|
151
|
+
* Default is false (response returned unencrypted).
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: bool encrypt_output = 9;
|
|
154
|
+
*/
|
|
155
|
+
encryptOutput: boolean;
|
|
147
156
|
};
|
|
148
157
|
/**
|
|
149
158
|
* HTTPRequest contains the HTTP fields used to make a request from the enclave.
|
|
@@ -201,6 +210,15 @@ export type HTTPRequestJson = {
|
|
|
201
210
|
* @generated from field: google.protobuf.Duration timeout = 7;
|
|
202
211
|
*/
|
|
203
212
|
timeout?: DurationJson;
|
|
213
|
+
/**
|
|
214
|
+
* encrypt_output controls whether the enclave response should be encrypted.
|
|
215
|
+
* If true, the response will be AES-GCM encrypted using the
|
|
216
|
+
* "san_marino_aes_gcm_encryption_key" secret.
|
|
217
|
+
* Default is false (response returned unencrypted).
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: bool encrypt_output = 9;
|
|
220
|
+
*/
|
|
221
|
+
encryptOutput?: boolean;
|
|
204
222
|
};
|
|
205
223
|
/**
|
|
206
224
|
* Describes the message capabilities.networking.confidentialhttp.v1alpha.HTTPRequest.
|
|
@@ -287,17 +305,6 @@ export type ConfidentialHTTPRequest = Message<'capabilities.networking.confident
|
|
|
287
305
|
* @generated from field: capabilities.networking.confidentialhttp.v1alpha.HTTPRequest request = 2;
|
|
288
306
|
*/
|
|
289
307
|
request?: HTTPRequest;
|
|
290
|
-
/**
|
|
291
|
-
* encrypt_output controls whether the enclave response should be encrypted.
|
|
292
|
-
* If true and a secret named "san_marino_aes_gcm_encryption_key" is provided,
|
|
293
|
-
* the response will be AES-GCM encrypted using that key.
|
|
294
|
-
* If true and no such key is provided, the response will be TDH2 encrypted
|
|
295
|
-
* using the VaultDON master public key.
|
|
296
|
-
* Default is false (response returned unencrypted).
|
|
297
|
-
*
|
|
298
|
-
* @generated from field: bool encrypt_output = 3;
|
|
299
|
-
*/
|
|
300
|
-
encryptOutput: boolean;
|
|
301
308
|
};
|
|
302
309
|
/**
|
|
303
310
|
* ConfidentialHTTPRequest is the input provided to the confidential HTTP capability.
|
|
@@ -314,17 +321,6 @@ export type ConfidentialHTTPRequestJson = {
|
|
|
314
321
|
* @generated from field: capabilities.networking.confidentialhttp.v1alpha.HTTPRequest request = 2;
|
|
315
322
|
*/
|
|
316
323
|
request?: HTTPRequestJson;
|
|
317
|
-
/**
|
|
318
|
-
* encrypt_output controls whether the enclave response should be encrypted.
|
|
319
|
-
* If true and a secret named "san_marino_aes_gcm_encryption_key" is provided,
|
|
320
|
-
* the response will be AES-GCM encrypted using that key.
|
|
321
|
-
* If true and no such key is provided, the response will be TDH2 encrypted
|
|
322
|
-
* using the VaultDON master public key.
|
|
323
|
-
* Default is false (response returned unencrypted).
|
|
324
|
-
*
|
|
325
|
-
* @generated from field: bool encrypt_output = 3;
|
|
326
|
-
*/
|
|
327
|
-
encryptOutput?: boolean;
|
|
328
324
|
};
|
|
329
325
|
/**
|
|
330
326
|
* Describes the message capabilities.networking.confidentialhttp.v1alpha.ConfidentialHTTPRequest.
|
|
@@ -9,7 +9,7 @@ import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/gen
|
|
|
9
9
|
*/
|
|
10
10
|
export const file_capabilities_networking_confidentialhttp_v1alpha_client =
|
|
11
11
|
/*@__PURE__*/
|
|
12
|
-
fileDesc('
|
|
12
|
+
fileDesc('Cj1jYXBhYmlsaXRpZXMvbmV0d29ya2luZy9jb25maWRlbnRpYWxodHRwL3YxYWxwaGEvY2xpZW50LnByb3RvEjBjYXBhYmlsaXRpZXMubmV0d29ya2luZy5jb25maWRlbnRpYWxodHRwLnYxYWxwaGEiUAoQU2VjcmV0SWRlbnRpZmllchILCgNrZXkYASABKAkSEQoJbmFtZXNwYWNlGAIgASgJEhIKBW93bmVyGAMgASgJSACIAQFCCAoGX293bmVyIh4KDEhlYWRlclZhbHVlcxIOCgZ2YWx1ZXMYASADKAki1wQKC0hUVFBSZXF1ZXN0EgsKA3VybBgBIAEoCRIOCgZtZXRob2QYAiABKAkSFQoLYm9keV9zdHJpbmcYAyABKAlIABIUCgpib2R5X2J5dGVzGAggASgMSAASZgoNbXVsdGlfaGVhZGVycxgEIAMoCzJPLmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5IVFRQUmVxdWVzdC5NdWx0aUhlYWRlcnNFbnRyeRJ3ChZ0ZW1wbGF0ZV9wdWJsaWNfdmFsdWVzGAUgAygLMlcuY2FwYWJpbGl0aWVzLm5ldHdvcmtpbmcuY29uZmlkZW50aWFsaHR0cC52MWFscGhhLkhUVFBSZXF1ZXN0LlRlbXBsYXRlUHVibGljVmFsdWVzRW50cnkSHwoXY3VzdG9tX3Jvb3RfY2FfY2VydF9wZW0YBiABKAwSKgoHdGltZW91dBgHIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIWCg5lbmNyeXB0X291dHB1dBgJIAEoCBpzChFNdWx0aUhlYWRlcnNFbnRyeRILCgNrZXkYASABKAkSTQoFdmFsdWUYAiABKAsyPi5jYXBhYmlsaXRpZXMubmV0d29ya2luZy5jb25maWRlbnRpYWxodHRwLnYxYWxwaGEuSGVhZGVyVmFsdWVzOgI4ARo7ChlUZW1wbGF0ZVB1YmxpY1ZhbHVlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAFCBgoEYm9keSKPAgoMSFRUUFJlc3BvbnNlEhMKC3N0YXR1c19jb2RlGAEgASgNEgwKBGJvZHkYAiABKAwSZwoNbXVsdGlfaGVhZGVycxgDIAMoCzJQLmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5IVFRQUmVzcG9uc2UuTXVsdGlIZWFkZXJzRW50cnkacwoRTXVsdGlIZWFkZXJzRW50cnkSCwoDa2V5GAEgASgJEk0KBXZhbHVlGAIgASgLMj4uY2FwYWJpbGl0aWVzLm5ldHdvcmtpbmcuY29uZmlkZW50aWFsaHR0cC52MWFscGhhLkhlYWRlclZhbHVlczoCOAEiyAEKF0NvbmZpZGVudGlhbEhUVFBSZXF1ZXN0El0KEXZhdWx0X2Rvbl9zZWNyZXRzGAEgAygLMkIuY2FwYWJpbGl0aWVzLm5ldHdvcmtpbmcuY29uZmlkZW50aWFsaHR0cC52MWFscGhhLlNlY3JldElkZW50aWZpZXISTgoHcmVxdWVzdBgCIAEoCzI9LmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5IVFRQUmVxdWVzdDLKAQoGQ2xpZW50EpgBCgtTZW5kUmVxdWVzdBJJLmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5Db25maWRlbnRpYWxIVFRQUmVxdWVzdBo+LmNhcGFiaWxpdGllcy5uZXR3b3JraW5nLmNvbmZpZGVudGlhbGh0dHAudjFhbHBoYS5IVFRQUmVzcG9uc2UaJYK1GCEIARIdY29uZmlkZW50aWFsLWh0dHBAMS4wLjAtYWxwaGFCpgIKNGNvbS5jYXBhYmlsaXRpZXMubmV0d29ya2luZy5jb25maWRlbnRpYWxodHRwLnYxYWxwaGFCC0NsaWVudFByb3RvUAGiAgNDTkOqAjBDYXBhYmlsaXRpZXMuTmV0d29ya2luZy5Db25maWRlbnRpYWxodHRwLlYxYWxwaGHKAjBDYXBhYmlsaXRpZXNcTmV0d29ya2luZ1xDb25maWRlbnRpYWxodHRwXFYxYWxwaGHiAjxDYXBhYmlsaXRpZXNcTmV0d29ya2luZ1xDb25maWRlbnRpYWxodHRwXFYxYWxwaGFcR1BCTWV0YWRhdGHqAjNDYXBhYmlsaXRpZXM6Ok5ldHdvcmtpbmc6OkNvbmZpZGVudGlhbGh0dHA6OlYxYWxwaGFiBnByb3RvMw', [file_google_protobuf_duration, file_tools_generator_v1alpha_cre_metadata]);
|
|
13
13
|
/**
|
|
14
14
|
* Describes the message capabilities.networking.confidentialhttp.v1alpha.SecretIdentifier.
|
|
15
15
|
* Use `create(SecretIdentifierSchema)` to create a new message.
|
|
@@ -50,6 +50,35 @@ export type CacheSettingsJson = {
|
|
|
50
50
|
export declare const CacheSettingsSchema: GenMessage<CacheSettings, {
|
|
51
51
|
jsonType: CacheSettingsJson;
|
|
52
52
|
}>;
|
|
53
|
+
/**
|
|
54
|
+
* HeaderValues represents multiple values for a single header key
|
|
55
|
+
*
|
|
56
|
+
* @generated from message capabilities.networking.http.v1alpha.HeaderValues
|
|
57
|
+
*/
|
|
58
|
+
export type HeaderValues = Message<'capabilities.networking.http.v1alpha.HeaderValues'> & {
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: repeated string values = 1;
|
|
61
|
+
*/
|
|
62
|
+
values: string[];
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* HeaderValues represents multiple values for a single header key
|
|
66
|
+
*
|
|
67
|
+
* @generated from message capabilities.networking.http.v1alpha.HeaderValues
|
|
68
|
+
*/
|
|
69
|
+
export type HeaderValuesJson = {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: repeated string values = 1;
|
|
72
|
+
*/
|
|
73
|
+
values?: string[];
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Describes the message capabilities.networking.http.v1alpha.HeaderValues.
|
|
77
|
+
* Use `create(HeaderValuesSchema)` to create a new message.
|
|
78
|
+
*/
|
|
79
|
+
export declare const HeaderValuesSchema: GenMessage<HeaderValues, {
|
|
80
|
+
jsonType: HeaderValuesJson;
|
|
81
|
+
}>;
|
|
53
82
|
/**
|
|
54
83
|
* @generated from message capabilities.networking.http.v1alpha.Request
|
|
55
84
|
*/
|
|
@@ -63,7 +92,10 @@ export type Request = Message<'capabilities.networking.http.v1alpha.Request'> &
|
|
|
63
92
|
*/
|
|
64
93
|
method: string;
|
|
65
94
|
/**
|
|
66
|
-
*
|
|
95
|
+
* Deprecated: use multi_headers
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: map<string, string> headers = 3 [deprecated = true];
|
|
98
|
+
* @deprecated
|
|
67
99
|
*/
|
|
68
100
|
headers: {
|
|
69
101
|
[key: string]: string;
|
|
@@ -82,6 +114,12 @@ export type Request = Message<'capabilities.networking.http.v1alpha.Request'> &
|
|
|
82
114
|
* @generated from field: capabilities.networking.http.v1alpha.CacheSettings cache_settings = 6;
|
|
83
115
|
*/
|
|
84
116
|
cacheSettings?: CacheSettings;
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: map<string, capabilities.networking.http.v1alpha.HeaderValues> multi_headers = 7;
|
|
119
|
+
*/
|
|
120
|
+
multiHeaders: {
|
|
121
|
+
[key: string]: HeaderValues;
|
|
122
|
+
};
|
|
85
123
|
};
|
|
86
124
|
/**
|
|
87
125
|
* @generated from message capabilities.networking.http.v1alpha.Request
|
|
@@ -96,7 +134,10 @@ export type RequestJson = {
|
|
|
96
134
|
*/
|
|
97
135
|
method?: string;
|
|
98
136
|
/**
|
|
99
|
-
*
|
|
137
|
+
* Deprecated: use multi_headers
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: map<string, string> headers = 3 [deprecated = true];
|
|
140
|
+
* @deprecated
|
|
100
141
|
*/
|
|
101
142
|
headers?: {
|
|
102
143
|
[key: string]: string;
|
|
@@ -115,6 +156,12 @@ export type RequestJson = {
|
|
|
115
156
|
* @generated from field: capabilities.networking.http.v1alpha.CacheSettings cache_settings = 6;
|
|
116
157
|
*/
|
|
117
158
|
cacheSettings?: CacheSettingsJson;
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: map<string, capabilities.networking.http.v1alpha.HeaderValues> multi_headers = 7;
|
|
161
|
+
*/
|
|
162
|
+
multiHeaders?: {
|
|
163
|
+
[key: string]: HeaderValuesJson;
|
|
164
|
+
};
|
|
118
165
|
};
|
|
119
166
|
/**
|
|
120
167
|
* Describes the message capabilities.networking.http.v1alpha.Request.
|
|
@@ -132,7 +179,10 @@ export type Response = Message<'capabilities.networking.http.v1alpha.Response'>
|
|
|
132
179
|
*/
|
|
133
180
|
statusCode: number;
|
|
134
181
|
/**
|
|
135
|
-
*
|
|
182
|
+
* Deprecated: use multi_headers
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: map<string, string> headers = 2 [deprecated = true];
|
|
185
|
+
* @deprecated
|
|
136
186
|
*/
|
|
137
187
|
headers: {
|
|
138
188
|
[key: string]: string;
|
|
@@ -141,6 +191,12 @@ export type Response = Message<'capabilities.networking.http.v1alpha.Response'>
|
|
|
141
191
|
* @generated from field: bytes body = 3;
|
|
142
192
|
*/
|
|
143
193
|
body: Uint8Array;
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: map<string, capabilities.networking.http.v1alpha.HeaderValues> multi_headers = 4;
|
|
196
|
+
*/
|
|
197
|
+
multiHeaders: {
|
|
198
|
+
[key: string]: HeaderValues;
|
|
199
|
+
};
|
|
144
200
|
};
|
|
145
201
|
/**
|
|
146
202
|
* @generated from message capabilities.networking.http.v1alpha.Response
|
|
@@ -151,7 +207,10 @@ export type ResponseJson = {
|
|
|
151
207
|
*/
|
|
152
208
|
statusCode?: number;
|
|
153
209
|
/**
|
|
154
|
-
*
|
|
210
|
+
* Deprecated: use multi_headers
|
|
211
|
+
*
|
|
212
|
+
* @generated from field: map<string, string> headers = 2 [deprecated = true];
|
|
213
|
+
* @deprecated
|
|
155
214
|
*/
|
|
156
215
|
headers?: {
|
|
157
216
|
[key: string]: string;
|
|
@@ -160,6 +219,12 @@ export type ResponseJson = {
|
|
|
160
219
|
* @generated from field: bytes body = 3;
|
|
161
220
|
*/
|
|
162
221
|
body?: string;
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: map<string, capabilities.networking.http.v1alpha.HeaderValues> multi_headers = 4;
|
|
224
|
+
*/
|
|
225
|
+
multiHeaders?: {
|
|
226
|
+
[key: string]: HeaderValuesJson;
|
|
227
|
+
};
|
|
163
228
|
};
|
|
164
229
|
/**
|
|
165
230
|
* Describes the message capabilities.networking.http.v1alpha.Response.
|