@milaboratories/pl-client 2.16.8 → 2.16.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.cjs +2 -2
- package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.cjs.map +1 -1
- package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.js +2 -2
- package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.js.map +1 -1
- package/dist/core/abstract_stream.d.ts +18 -0
- package/dist/core/abstract_stream.d.ts.map +1 -0
- package/dist/core/client.cjs +6 -6
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +3 -3
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +6 -6
- package/dist/core/client.js.map +1 -1
- package/dist/core/config.cjs +3 -0
- package/dist/core/config.cjs.map +1 -1
- package/dist/core/config.d.ts +4 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +3 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/driver.cjs +11 -0
- package/dist/core/driver.cjs.map +1 -1
- package/dist/core/driver.d.ts +8 -2
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/driver.js +11 -1
- package/dist/core/driver.js.map +1 -1
- package/dist/core/errors.cjs +9 -0
- package/dist/core/errors.cjs.map +1 -1
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +9 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/ll_client.cjs +194 -39
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +36 -15
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +195 -40
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/ll_transaction.cjs.map +1 -1
- package/dist/core/ll_transaction.d.ts +3 -3
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/ll_transaction.js.map +1 -1
- package/dist/core/transaction.cjs +2 -2
- package/dist/core/transaction.cjs.map +1 -1
- package/dist/core/transaction.js +2 -2
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/type_conversion.cjs +2 -2
- package/dist/core/type_conversion.cjs.map +1 -1
- package/dist/core/type_conversion.d.ts +2 -2
- package/dist/core/type_conversion.d.ts.map +1 -1
- package/dist/core/type_conversion.js +2 -2
- package/dist/core/type_conversion.js.map +1 -1
- package/dist/core/unauth_client.cjs +4 -8
- package/dist/core/unauth_client.cjs.map +1 -1
- package/dist/core/unauth_client.d.ts +1 -1
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/core/unauth_client.js +4 -8
- package/dist/core/unauth_client.js.map +1 -1
- package/dist/core/wire.d.ts +34 -0
- package/dist/core/wire.d.ts.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.d.ts +4 -2
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +25 -25
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.js +25 -25
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts +73 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts.map +1 -0
- package/dist/{proto → proto-grpc}/google/api/http.d.ts +28 -32
- package/dist/proto-grpc/google/api/http.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/any.cjs.map +1 -0
- package/dist/proto-grpc/google/protobuf/any.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/any.js.map +1 -0
- package/dist/{proto → proto-grpc}/google/protobuf/descriptor.d.ts +6 -152
- package/dist/proto-grpc/google/protobuf/descriptor.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -0
- package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/duration.js.map +1 -0
- package/dist/proto-grpc/google/protobuf/empty.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/struct.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -0
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -0
- package/dist/{proto → proto-grpc}/google/protobuf/wrappers.d.ts +0 -27
- package/dist/proto-grpc/google/protobuf/wrappers.d.ts.map +1 -0
- package/dist/proto-grpc/google/rpc/code.cjs +240 -0
- package/dist/proto-grpc/google/rpc/code.cjs.map +1 -0
- package/dist/proto-grpc/google/rpc/code.d.ts +219 -0
- package/dist/proto-grpc/google/rpc/code.d.ts.map +1 -0
- package/dist/proto-grpc/google/rpc/code.js +240 -0
- package/dist/proto-grpc/google/rpc/code.js.map +1 -0
- package/dist/proto-grpc/google/rpc/error_details.d.ts +654 -0
- package/dist/proto-grpc/google/rpc/error_details.d.ts.map +1 -0
- package/dist/proto-grpc/google/rpc/http.d.ts +121 -0
- package/dist/proto-grpc/google/rpc/http.d.ts.map +1 -0
- package/dist/proto-grpc/google/rpc/status.d.ts +55 -0
- package/dist/proto-grpc/google/rpc/status.d.ts.map +1 -0
- package/dist/proto-rest/index.cjs +64 -0
- package/dist/proto-rest/index.cjs.map +1 -0
- package/dist/proto-rest/index.d.ts +23 -0
- package/dist/proto-rest/index.d.ts.map +1 -0
- package/dist/proto-rest/index.js +61 -0
- package/dist/proto-rest/index.js.map +1 -0
- package/dist/proto-rest/plapi.d.ts +1488 -0
- package/dist/proto-rest/plapi.d.ts.map +1 -0
- package/package.json +8 -5
- package/src/core/abstract_stream.ts +25 -0
- package/src/core/client.ts +8 -8
- package/src/core/config.ts +9 -0
- package/src/core/driver.ts +13 -2
- package/src/core/errors.ts +7 -1
- package/src/core/ll_client.test.ts +1 -1
- package/src/core/ll_client.ts +212 -42
- package/src/core/ll_transaction.test.ts +1 -1
- package/src/core/ll_transaction.ts +4 -4
- package/src/core/transaction.ts +1 -1
- package/src/core/type_conversion.ts +3 -3
- package/src/core/unauth_client.test.ts +6 -0
- package/src/core/unauth_client.ts +8 -12
- package/src/core/wire.ts +40 -0
- package/src/index.ts +3 -1
- package/src/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.ts +5 -3
- package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.ts +25 -25
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.ts +209 -0
- package/src/{proto → proto-grpc}/google/api/http.ts +29 -33
- package/src/{proto → proto-grpc}/google/protobuf/descriptor.ts +11 -221
- package/src/{proto → proto-grpc}/google/protobuf/wrappers.ts +4 -38
- package/src/proto-grpc/google/rpc/code.ts +236 -0
- package/src/proto-grpc/google/rpc/error_details.ts +1386 -0
- package/src/proto-grpc/google/rpc/http.ts +307 -0
- package/src/proto-grpc/google/rpc/status.ts +127 -0
- package/src/proto-rest/index.ts +83 -0
- package/src/proto-rest/plapi.ts +1488 -0
- package/dist/core/grpc.d.ts +0 -16
- package/dist/core/grpc.d.ts.map +0 -1
- package/dist/core/http.d.ts +0 -2
- package/dist/core/http.d.ts.map +0 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.cjs.map +0 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +0 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +0 -40
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +0 -116
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +0 -46
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +0 -170
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +0 -51
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +0 -176
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +0 -131
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +0 -320
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +0 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +0 -1
- package/dist/proto/google/api/http.d.ts.map +0 -1
- package/dist/proto/google/protobuf/any.cjs.map +0 -1
- package/dist/proto/google/protobuf/any.d.ts.map +0 -1
- package/dist/proto/google/protobuf/any.js.map +0 -1
- package/dist/proto/google/protobuf/descriptor.d.ts.map +0 -1
- package/dist/proto/google/protobuf/duration.cjs.map +0 -1
- package/dist/proto/google/protobuf/duration.d.ts.map +0 -1
- package/dist/proto/google/protobuf/duration.js.map +0 -1
- package/dist/proto/google/protobuf/empty.d.ts.map +0 -1
- package/dist/proto/google/protobuf/struct.d.ts.map +0 -1
- package/dist/proto/google/protobuf/timestamp.cjs.map +0 -1
- package/dist/proto/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/proto/google/protobuf/timestamp.js.map +0 -1
- package/dist/proto/google/protobuf/wrappers.d.ts.map +0 -1
- package/src/core/grpc.ts +0 -17
- package/src/core/http.ts +0 -178
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +0 -45
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +0 -313
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +0 -51
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +0 -406
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +0 -59
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +0 -489
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +0 -148
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +0 -719
- /package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/any.cjs +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/any.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/any.js +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/duration.cjs +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/duration.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/duration.js +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/empty.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/struct.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.cjs +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.d.ts +0 -0
- /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.js +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/import.ts +0 -0
- /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/any.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/duration.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/empty.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/struct.ts +0 -0
- /package/src/{proto → proto-grpc}/google/protobuf/timestamp.ts +0 -0
|
@@ -15771,29 +15771,29 @@ export const MaintenanceAPI_License_Response = new MaintenanceAPI_License_Respon
|
|
|
15771
15771
|
*/
|
|
15772
15772
|
export const Platform = new ServiceType("MiLaboratories.PL.API.Platform", [
|
|
15773
15773
|
{ name: "Tx", serverStreaming: true, clientStreaming: true, options: {}, I: TxAPI_ClientMessage, O: TxAPI_ServerMessage },
|
|
15774
|
-
{ name: "TxSync", options: {}, I: TxAPI_Sync_Request, O: TxAPI_Sync_Response },
|
|
15775
|
-
{ name: "SubscriptionAttachFilter", options: {}, I: SubscriptionAPI_AttachFilter_Request, O: SubscriptionAPI_AttachFilter_Response },
|
|
15776
|
-
{ name: "SubscriptionDetachFilter", options: {}, I: SubscriptionAPI_DetachFilter_Request, O: SubscriptionAPI_DetachFilter_Response },
|
|
15777
|
-
{ name: "NotificationsGet", options: {}, I: NotificationAPI_Get_Request, O: NotificationAPI_Get_Response },
|
|
15778
|
-
{ name: "ControllerRegister", options: {}, I: ControllerAPI_Register_Request, O: ControllerAPI_Register_Response },
|
|
15779
|
-
{ name: "ControllerDeregister", options: {}, I: ControllerAPI_Deregister_Request, O: ControllerAPI_Deregister_Response },
|
|
15780
|
-
{ name: "ControllerCreate", options: {}, I: ControllerAPI_Create_Request, O: ControllerAPI_Create_Response },
|
|
15781
|
-
{ name: "ControllerExists", options: {}, I: ControllerAPI_Exists_Request, O: ControllerAPI_Exists_Response },
|
|
15782
|
-
{ name: "ControllerGet", options: {}, I: ControllerAPI_Get_Request, O: ControllerAPI_Get_Response },
|
|
15783
|
-
{ name: "ControllerUpdate", options: {}, I: ControllerAPI_Update_Request, O: ControllerAPI_Update_Response },
|
|
15784
|
-
{ name: "ControllerAttachSubscription", options: {}, I: ControllerAPI_AttachSubscription_Request, O: ControllerAPI_AttachSubscription_Response },
|
|
15785
|
-
{ name: "GetControllerNotifications", options: {}, I: ControllerAPI_GetNotifications_Request, O: ControllerAPI_GetNotifications_Response },
|
|
15786
|
-
{ name: "WriteControllerAliasesAndUrls", options: {}, I: ControllerAPI_WriteAliasesAndUrls_Request, O: ControllerAPI_WriteAliasesAndUrls_Response },
|
|
15787
|
-
{ name: "RemoveControllerAliasesAndUrls", options: {}, I: ControllerAPI_RemoveAliasesAndUrls_Request, O: ControllerAPI_RemoveAliasesAndUrls_Response },
|
|
15788
|
-
{ name: "GetControllerUrl", options: {}, I: ControllerAPI_GetUrl_Request, O: ControllerAPI_GetUrl_Response },
|
|
15789
|
-
{ name: "ControllerSetFeatures", options: {}, I: ControllerAPI_SetFeatures_Request, O: ControllerAPI_SetFeatures_Response },
|
|
15790
|
-
{ name: "ControllerClearFeatures", options: {}, I: ControllerAPI_ClearFeatures_Request, O: ControllerAPI_ClearFeatures_Response },
|
|
15791
|
-
{ name: "LeaseResource", options: {}, I: LocksAPI_Lease_Create_Request, O: LocksAPI_Lease_Create_Response },
|
|
15792
|
-
{ name: "UpdateLease", options: {}, I: LocksAPI_Lease_Update_Request, O: LocksAPI_Lease_Update_Response },
|
|
15793
|
-
{ name: "ReleaseLease", options: {}, I: LocksAPI_Lease_Release_Request, O: LocksAPI_Lease_Release_Response },
|
|
15794
|
-
{ name: "AuthMethods", options: {}, I: AuthAPI_ListMethods_Request, O: AuthAPI_ListMethods_Response },
|
|
15795
|
-
{ name: "GetJWTToken", options: {}, I: AuthAPI_GetJWTToken_Request, O: AuthAPI_GetJWTToken_Response },
|
|
15796
|
-
{ name: "ListResourceTypes", options: {}, I: MiscAPI_ListResourceTypes_Request, O: MiscAPI_ListResourceTypes_Response },
|
|
15797
|
-
{ name: "Ping", options: {}, I: MaintenanceAPI_Ping_Request, O: MaintenanceAPI_Ping_Response },
|
|
15798
|
-
{ name: "License", options: {}, I: MaintenanceAPI_License_Request, O: MaintenanceAPI_License_Response }
|
|
15774
|
+
{ name: "TxSync", options: { "google.api.http": { post: "/v1/tx-sync", body: "*" } }, I: TxAPI_Sync_Request, O: TxAPI_Sync_Response },
|
|
15775
|
+
{ name: "SubscriptionAttachFilter", options: { "google.api.http": { post: "/v1/subscription/attach-filter", body: "*" } }, I: SubscriptionAPI_AttachFilter_Request, O: SubscriptionAPI_AttachFilter_Response },
|
|
15776
|
+
{ name: "SubscriptionDetachFilter", options: { "google.api.http": { post: "/v1/subscription/detach-filter", body: "*" } }, I: SubscriptionAPI_DetachFilter_Request, O: SubscriptionAPI_DetachFilter_Response },
|
|
15777
|
+
{ name: "NotificationsGet", options: { "google.api.http": { post: "/v1/notifications/get", body: "*" } }, I: NotificationAPI_Get_Request, O: NotificationAPI_Get_Response },
|
|
15778
|
+
{ name: "ControllerRegister", options: { "google.api.http": { post: "/v1/controller/register", body: "*" } }, I: ControllerAPI_Register_Request, O: ControllerAPI_Register_Response },
|
|
15779
|
+
{ name: "ControllerDeregister", options: { "google.api.http": { post: "/v1/controller/deregister", body: "*" } }, I: ControllerAPI_Deregister_Request, O: ControllerAPI_Deregister_Response },
|
|
15780
|
+
{ name: "ControllerCreate", options: { "google.api.http": { post: "/v1/controller/create", body: "*" } }, I: ControllerAPI_Create_Request, O: ControllerAPI_Create_Response },
|
|
15781
|
+
{ name: "ControllerExists", options: { "google.api.http": { post: "/v1/controller/exists", body: "*" } }, I: ControllerAPI_Exists_Request, O: ControllerAPI_Exists_Response },
|
|
15782
|
+
{ name: "ControllerGet", options: { "google.api.http": { post: "/v1/controller/get", body: "*" } }, I: ControllerAPI_Get_Request, O: ControllerAPI_Get_Response },
|
|
15783
|
+
{ name: "ControllerUpdate", options: { "google.api.http": { post: "/v1/controller/update", body: "*" } }, I: ControllerAPI_Update_Request, O: ControllerAPI_Update_Response },
|
|
15784
|
+
{ name: "ControllerAttachSubscription", options: { "google.api.http": { post: "/v1/controller/attach-subscription", body: "*" } }, I: ControllerAPI_AttachSubscription_Request, O: ControllerAPI_AttachSubscription_Response },
|
|
15785
|
+
{ name: "GetControllerNotifications", options: { "google.api.http": { post: "/v1/controller/notifications", body: "*" } }, I: ControllerAPI_GetNotifications_Request, O: ControllerAPI_GetNotifications_Response },
|
|
15786
|
+
{ name: "WriteControllerAliasesAndUrls", options: { "google.api.http": { post: "/v1/controller/aliases-and-urls", body: "*" } }, I: ControllerAPI_WriteAliasesAndUrls_Request, O: ControllerAPI_WriteAliasesAndUrls_Response },
|
|
15787
|
+
{ name: "RemoveControllerAliasesAndUrls", options: { "google.api.http": { delete: "/v1/controller/aliases-and-urls", body: "*" } }, I: ControllerAPI_RemoveAliasesAndUrls_Request, O: ControllerAPI_RemoveAliasesAndUrls_Response },
|
|
15788
|
+
{ name: "GetControllerUrl", options: { "google.api.http": { post: "/v1/controller/url", body: "*" } }, I: ControllerAPI_GetUrl_Request, O: ControllerAPI_GetUrl_Response },
|
|
15789
|
+
{ name: "ControllerSetFeatures", options: { "google.api.http": { post: "/v1/controller/features", body: "*" } }, I: ControllerAPI_SetFeatures_Request, O: ControllerAPI_SetFeatures_Response },
|
|
15790
|
+
{ name: "ControllerClearFeatures", options: { "google.api.http": { delete: "/v1/controller/features", body: "*" } }, I: ControllerAPI_ClearFeatures_Request, O: ControllerAPI_ClearFeatures_Response },
|
|
15791
|
+
{ name: "LeaseResource", options: { "google.api.http": { post: "/v1/locks/lease", body: "*" } }, I: LocksAPI_Lease_Create_Request, O: LocksAPI_Lease_Create_Response },
|
|
15792
|
+
{ name: "UpdateLease", options: { "google.api.http": { put: "/v1/locks/lease", body: "*" } }, I: LocksAPI_Lease_Update_Request, O: LocksAPI_Lease_Update_Response },
|
|
15793
|
+
{ name: "ReleaseLease", options: { "google.api.http": { delete: "/v1/locks/lease", body: "*" } }, I: LocksAPI_Lease_Release_Request, O: LocksAPI_Lease_Release_Response },
|
|
15794
|
+
{ name: "AuthMethods", options: { "google.api.http": { get: "/v1/auth/methods" } }, I: AuthAPI_ListMethods_Request, O: AuthAPI_ListMethods_Response },
|
|
15795
|
+
{ name: "GetJWTToken", options: { "google.api.http": { post: "/v1/auth/jwt-token", body: "*" } }, I: AuthAPI_GetJWTToken_Request, O: AuthAPI_GetJWTToken_Response },
|
|
15796
|
+
{ name: "ListResourceTypes", options: { "google.api.http": { get: "/v1/resource-types" } }, I: MiscAPI_ListResourceTypes_Request, O: MiscAPI_ListResourceTypes_Response },
|
|
15797
|
+
{ name: "Ping", options: { "google.api.http": { get: "/v1/ping" } }, I: MaintenanceAPI_Ping_Request, O: MaintenanceAPI_Ping_Response },
|
|
15798
|
+
{ name: "License", options: { "google.api.http": { get: "/v1/license" } }, I: MaintenanceAPI_License_Request, O: MaintenanceAPI_License_Response }
|
|
15799
15799
|
]);
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
|
+
// @generated from protobuf file "github.com/milaboratory/pl/plapi/plapiproto/ws-test.proto" (package "MiLaboratories.PL.WSTest", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
//
|
|
6
|
+
// This is dirty implementation of custom protocol for fast WebSocket support testing in
|
|
7
|
+
// environments with ZScaler or other similar MITM corporate proxies.
|
|
8
|
+
//
|
|
9
|
+
//
|
|
10
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
12
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
13
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
14
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
15
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
16
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
17
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
18
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf message MiLaboratories.PL.WSTest.PingWS
|
|
21
|
+
*/
|
|
22
|
+
export interface PingWS {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf message MiLaboratories.PL.WSTest.PingWS.Request
|
|
26
|
+
*/
|
|
27
|
+
export interface PingWS_Request {
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf field: int32 request_id = 1
|
|
30
|
+
*/
|
|
31
|
+
requestId: number;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: int32 replies_count = 2
|
|
34
|
+
*/
|
|
35
|
+
repliesCount: number; // amount of Response messages to send (0 - send nothing)
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: bool close = 3
|
|
38
|
+
*/
|
|
39
|
+
close: boolean; // make server to close connection after sending responses
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf message MiLaboratories.PL.WSTest.PingWS.Response
|
|
43
|
+
*/
|
|
44
|
+
export interface PingWS_Response {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf field: int32 request_id = 1
|
|
47
|
+
*/
|
|
48
|
+
requestId: number;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: int32 reply_id = 2
|
|
51
|
+
*/
|
|
52
|
+
replyId: number;
|
|
53
|
+
}
|
|
54
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
55
|
+
class PingWS$Type extends MessageType<PingWS> {
|
|
56
|
+
constructor() {
|
|
57
|
+
super("MiLaboratories.PL.WSTest.PingWS", []);
|
|
58
|
+
}
|
|
59
|
+
create(value?: PartialMessage<PingWS>): PingWS {
|
|
60
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
61
|
+
if (value !== undefined)
|
|
62
|
+
reflectionMergePartial<PingWS>(this, message, value);
|
|
63
|
+
return message;
|
|
64
|
+
}
|
|
65
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PingWS): PingWS {
|
|
66
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
67
|
+
while (reader.pos < end) {
|
|
68
|
+
let [fieldNo, wireType] = reader.tag();
|
|
69
|
+
switch (fieldNo) {
|
|
70
|
+
default:
|
|
71
|
+
let u = options.readUnknownField;
|
|
72
|
+
if (u === "throw")
|
|
73
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
74
|
+
let d = reader.skip(wireType);
|
|
75
|
+
if (u !== false)
|
|
76
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return message;
|
|
80
|
+
}
|
|
81
|
+
internalBinaryWrite(message: PingWS, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
82
|
+
let u = options.writeUnknownFields;
|
|
83
|
+
if (u !== false)
|
|
84
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
85
|
+
return writer;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.WSTest.PingWS
|
|
90
|
+
*/
|
|
91
|
+
export const PingWS = new PingWS$Type();
|
|
92
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
93
|
+
class PingWS_Request$Type extends MessageType<PingWS_Request> {
|
|
94
|
+
constructor() {
|
|
95
|
+
super("MiLaboratories.PL.WSTest.PingWS.Request", [
|
|
96
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
97
|
+
{ no: 2, name: "replies_count", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
98
|
+
{ no: 3, name: "close", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
99
|
+
]);
|
|
100
|
+
}
|
|
101
|
+
create(value?: PartialMessage<PingWS_Request>): PingWS_Request {
|
|
102
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
103
|
+
message.requestId = 0;
|
|
104
|
+
message.repliesCount = 0;
|
|
105
|
+
message.close = false;
|
|
106
|
+
if (value !== undefined)
|
|
107
|
+
reflectionMergePartial<PingWS_Request>(this, message, value);
|
|
108
|
+
return message;
|
|
109
|
+
}
|
|
110
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PingWS_Request): PingWS_Request {
|
|
111
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
112
|
+
while (reader.pos < end) {
|
|
113
|
+
let [fieldNo, wireType] = reader.tag();
|
|
114
|
+
switch (fieldNo) {
|
|
115
|
+
case /* int32 request_id */ 1:
|
|
116
|
+
message.requestId = reader.int32();
|
|
117
|
+
break;
|
|
118
|
+
case /* int32 replies_count */ 2:
|
|
119
|
+
message.repliesCount = reader.int32();
|
|
120
|
+
break;
|
|
121
|
+
case /* bool close */ 3:
|
|
122
|
+
message.close = reader.bool();
|
|
123
|
+
break;
|
|
124
|
+
default:
|
|
125
|
+
let u = options.readUnknownField;
|
|
126
|
+
if (u === "throw")
|
|
127
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
128
|
+
let d = reader.skip(wireType);
|
|
129
|
+
if (u !== false)
|
|
130
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return message;
|
|
134
|
+
}
|
|
135
|
+
internalBinaryWrite(message: PingWS_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
136
|
+
/* int32 request_id = 1; */
|
|
137
|
+
if (message.requestId !== 0)
|
|
138
|
+
writer.tag(1, WireType.Varint).int32(message.requestId);
|
|
139
|
+
/* int32 replies_count = 2; */
|
|
140
|
+
if (message.repliesCount !== 0)
|
|
141
|
+
writer.tag(2, WireType.Varint).int32(message.repliesCount);
|
|
142
|
+
/* bool close = 3; */
|
|
143
|
+
if (message.close !== false)
|
|
144
|
+
writer.tag(3, WireType.Varint).bool(message.close);
|
|
145
|
+
let u = options.writeUnknownFields;
|
|
146
|
+
if (u !== false)
|
|
147
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
148
|
+
return writer;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.WSTest.PingWS.Request
|
|
153
|
+
*/
|
|
154
|
+
export const PingWS_Request = new PingWS_Request$Type();
|
|
155
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
156
|
+
class PingWS_Response$Type extends MessageType<PingWS_Response> {
|
|
157
|
+
constructor() {
|
|
158
|
+
super("MiLaboratories.PL.WSTest.PingWS.Response", [
|
|
159
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
160
|
+
{ no: 2, name: "reply_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
161
|
+
]);
|
|
162
|
+
}
|
|
163
|
+
create(value?: PartialMessage<PingWS_Response>): PingWS_Response {
|
|
164
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
165
|
+
message.requestId = 0;
|
|
166
|
+
message.replyId = 0;
|
|
167
|
+
if (value !== undefined)
|
|
168
|
+
reflectionMergePartial<PingWS_Response>(this, message, value);
|
|
169
|
+
return message;
|
|
170
|
+
}
|
|
171
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PingWS_Response): PingWS_Response {
|
|
172
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
173
|
+
while (reader.pos < end) {
|
|
174
|
+
let [fieldNo, wireType] = reader.tag();
|
|
175
|
+
switch (fieldNo) {
|
|
176
|
+
case /* int32 request_id */ 1:
|
|
177
|
+
message.requestId = reader.int32();
|
|
178
|
+
break;
|
|
179
|
+
case /* int32 reply_id */ 2:
|
|
180
|
+
message.replyId = reader.int32();
|
|
181
|
+
break;
|
|
182
|
+
default:
|
|
183
|
+
let u = options.readUnknownField;
|
|
184
|
+
if (u === "throw")
|
|
185
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
186
|
+
let d = reader.skip(wireType);
|
|
187
|
+
if (u !== false)
|
|
188
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return message;
|
|
192
|
+
}
|
|
193
|
+
internalBinaryWrite(message: PingWS_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
194
|
+
/* int32 request_id = 1; */
|
|
195
|
+
if (message.requestId !== 0)
|
|
196
|
+
writer.tag(1, WireType.Varint).int32(message.requestId);
|
|
197
|
+
/* int32 reply_id = 2; */
|
|
198
|
+
if (message.replyId !== 0)
|
|
199
|
+
writer.tag(2, WireType.Varint).int32(message.replyId);
|
|
200
|
+
let u = options.writeUnknownFields;
|
|
201
|
+
if (u !== false)
|
|
202
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
203
|
+
return writer;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.WSTest.PingWS.Response
|
|
208
|
+
*/
|
|
209
|
+
export const PingWS_Response = new PingWS_Response$Type();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
5
|
-
// Copyright
|
|
5
|
+
// Copyright 2025 Google LLC
|
|
6
6
|
//
|
|
7
7
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
// you may not use this file except in compliance with the License.
|
|
@@ -54,7 +54,7 @@ export interface Http {
|
|
|
54
54
|
fullyDecodeReservedExpansion: boolean;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* gRPC Transcoding
|
|
58
58
|
*
|
|
59
59
|
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
|
60
60
|
* more HTTP REST endpoints. It allows developers to build a single API service
|
|
@@ -95,9 +95,8 @@ export interface Http {
|
|
|
95
95
|
*
|
|
96
96
|
* This enables an HTTP REST to gRPC mapping as below:
|
|
97
97
|
*
|
|
98
|
-
* HTTP
|
|
99
|
-
*
|
|
100
|
-
* `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
|
|
98
|
+
* - HTTP: `GET /v1/messages/123456`
|
|
99
|
+
* - gRPC: `GetMessage(name: "messages/123456")`
|
|
101
100
|
*
|
|
102
101
|
* Any fields in the request message which are not bound by the path template
|
|
103
102
|
* automatically become HTTP query parameters if there is no HTTP request body.
|
|
@@ -121,11 +120,9 @@ export interface Http {
|
|
|
121
120
|
*
|
|
122
121
|
* This enables a HTTP JSON to RPC mapping as below:
|
|
123
122
|
*
|
|
124
|
-
* HTTP
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
|
|
128
|
-
* "foo"))`
|
|
123
|
+
* - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
|
|
124
|
+
* - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
|
|
125
|
+
* SubMessage(subfield: "foo"))`
|
|
129
126
|
*
|
|
130
127
|
* Note that fields which are mapped to URL query parameters must have a
|
|
131
128
|
* primitive type or a repeated primitive type or a non-repeated message type.
|
|
@@ -155,10 +152,8 @@ export interface Http {
|
|
|
155
152
|
* representation of the JSON in the request body is determined by
|
|
156
153
|
* protos JSON encoding:
|
|
157
154
|
*
|
|
158
|
-
* HTTP
|
|
159
|
-
*
|
|
160
|
-
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
|
161
|
-
* "123456" message { text: "Hi!" })`
|
|
155
|
+
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
|
156
|
+
* - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
|
|
162
157
|
*
|
|
163
158
|
* The special name `*` can be used in the body mapping to define that
|
|
164
159
|
* every field not bound by the path template should be mapped to the
|
|
@@ -181,10 +176,8 @@ export interface Http {
|
|
|
181
176
|
*
|
|
182
177
|
* The following HTTP JSON to RPC mapping is enabled:
|
|
183
178
|
*
|
|
184
|
-
* HTTP
|
|
185
|
-
*
|
|
186
|
-
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
|
187
|
-
* "123456" text: "Hi!")`
|
|
179
|
+
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
|
180
|
+
* - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
|
|
188
181
|
*
|
|
189
182
|
* Note that when using `*` in the body mapping, it is not possible to
|
|
190
183
|
* have HTTP parameters, as all fields not bound by the path end in
|
|
@@ -212,29 +205,32 @@ export interface Http {
|
|
|
212
205
|
*
|
|
213
206
|
* This enables the following two alternative HTTP JSON to RPC mappings:
|
|
214
207
|
*
|
|
215
|
-
* HTTP
|
|
216
|
-
*
|
|
217
|
-
* `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
|
|
218
|
-
* `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
|
|
219
|
-
* "123456")`
|
|
208
|
+
* - HTTP: `GET /v1/messages/123456`
|
|
209
|
+
* - gRPC: `GetMessage(message_id: "123456")`
|
|
220
210
|
*
|
|
221
|
-
*
|
|
211
|
+
* - HTTP: `GET /v1/users/me/messages/123456`
|
|
212
|
+
* - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
|
|
213
|
+
*
|
|
214
|
+
* Rules for HTTP mapping
|
|
222
215
|
*
|
|
223
216
|
* 1. Leaf request fields (recursive expansion nested messages in the request
|
|
224
217
|
* message) are classified into three categories:
|
|
225
218
|
* - Fields referred by the path template. They are passed via the URL path.
|
|
226
|
-
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
|
|
219
|
+
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
|
|
220
|
+
* are passed via the HTTP
|
|
227
221
|
* request body.
|
|
228
222
|
* - All other fields are passed via the URL query parameters, and the
|
|
229
223
|
* parameter name is the field path in the request message. A repeated
|
|
230
224
|
* field can be represented as multiple query parameters under the same
|
|
231
225
|
* name.
|
|
232
|
-
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
|
|
226
|
+
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
|
|
227
|
+
* query parameter, all fields
|
|
233
228
|
* are passed via URL path and HTTP request body.
|
|
234
|
-
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
|
|
229
|
+
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
|
|
230
|
+
* request body, all
|
|
235
231
|
* fields are passed via URL path and URL query parameters.
|
|
236
232
|
*
|
|
237
|
-
*
|
|
233
|
+
* Path template syntax
|
|
238
234
|
*
|
|
239
235
|
* Template = "/" Segments [ Verb ] ;
|
|
240
236
|
* Segments = Segment { "/" Segment } ;
|
|
@@ -273,7 +269,7 @@ export interface Http {
|
|
|
273
269
|
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
|
274
270
|
* `{+var}`.
|
|
275
271
|
*
|
|
276
|
-
*
|
|
272
|
+
* Using gRPC API Service Configuration
|
|
277
273
|
*
|
|
278
274
|
* gRPC API Service Configuration (service config) is a configuration language
|
|
279
275
|
* for configuring a gRPC service to become a user-facing product. The
|
|
@@ -288,15 +284,14 @@ export interface Http {
|
|
|
288
284
|
* specified in the service config will override any matching transcoding
|
|
289
285
|
* configuration in the proto.
|
|
290
286
|
*
|
|
291
|
-
*
|
|
287
|
+
* The following example selects a gRPC method and applies an `HttpRule` to it:
|
|
292
288
|
*
|
|
293
289
|
* http:
|
|
294
290
|
* rules:
|
|
295
|
-
* # Selects a gRPC method and applies HttpRule to it.
|
|
296
291
|
* - selector: example.v1.Messaging.GetMessage
|
|
297
292
|
* get: /v1/messages/{message_id}/{sub.subfield}
|
|
298
293
|
*
|
|
299
|
-
*
|
|
294
|
+
* Special notes
|
|
300
295
|
*
|
|
301
296
|
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
|
302
297
|
* proto to JSON conversion must follow the [proto3
|
|
@@ -330,7 +325,8 @@ export interface HttpRule {
|
|
|
330
325
|
/**
|
|
331
326
|
* Selects a method to which this rule applies.
|
|
332
327
|
*
|
|
333
|
-
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
|
328
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
|
329
|
+
* details.
|
|
334
330
|
*
|
|
335
331
|
* @generated from protobuf field: string selector = 1
|
|
336
332
|
*/
|