@versori/run 0.2.23 → 0.2.25
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/esm/src/context/Context.d.ts.map +1 -1
- package/esm/src/context/Context.js +1 -0
- package/esm/src/dsl/http/versori/contextcredentials.d.ts +2 -0
- package/esm/src/dsl/http/versori/contextcredentials.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/{credentials → credential}/client.d.ts +3 -0
- package/esm/src/dsl/http/versori/credential/client.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/{credentials → credential}/client.js +11 -1
- package/{script/src/dsl/http/versori/credentials → esm/src/dsl/http/versori/credential}/credentials.d.ts +21 -4
- package/esm/src/dsl/http/versori/credential/credentials.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/{credentials → credential}/credentials.js +8 -0
- package/esm/src/dsl/http/versori/credential/mod.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credential/oauth1/v1/authorization_metadata_pb.d.ts +40 -0
- package/esm/src/dsl/http/versori/credential/oauth1/v1/authorization_metadata_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credential/oauth1/v1/authorization_metadata_pb.js +35 -0
- package/esm/src/dsl/http/versori/credential/oauth1/v1/authorization_service_pb.d.ts +57 -0
- package/esm/src/dsl/http/versori/credential/oauth1/v1/authorization_service_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credential/oauth1/v1/authorization_service_pb.js +44 -0
- package/esm/src/dsl/http/versori/{credentials → credential}/oauth2/v1/token_pb.d.ts +4 -1
- package/esm/src/dsl/http/versori/credential/oauth2/v1/token_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/{credentials → credential}/oauth2/v1/token_pb.js +3 -3
- package/esm/src/dsl/http/versori/{credentials → credential}/oauth2/v1/token_service_pb.d.ts +45 -12
- package/esm/src/dsl/http/versori/credential/oauth2/v1/token_service_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/{credentials → credential}/oauth2/v1/token_service_pb.js +3 -4
- package/esm/src/dsl/http/versori/{credentials → credential}/tokens/v1/token_pb.d.ts +4 -1
- package/esm/src/dsl/http/versori/credential/tokens/v1/token_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/{credentials → credential}/tokens/v1/token_pb.js +3 -3
- package/{script/src/dsl/http/versori/credentials → esm/src/dsl/http/versori/credential}/tokens/v1/token_service_pb.d.ts +17 -5
- package/esm/src/dsl/http/versori/credential/tokens/v1/token_service_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/{credentials → credential}/tokens/v1/token_service_pb.js +3 -3
- package/{script/src/dsl/http/versori/credentials → esm/src/dsl/http/versori/credential}/v1alpha1/common_pb.d.ts +13 -4
- package/esm/src/dsl/http/versori/credential/v1alpha1/common_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/{credentials → credential}/v1alpha1/common_pb.js +3 -3
- package/esm/src/dsl/http/versori/credential/v1alpha1/credential_pb.d.ts +364 -0
- package/esm/src/dsl/http/versori/credential/v1alpha1/credential_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credential/v1alpha1/credential_pb.js +248 -0
- package/{script/src/dsl/http/versori/credentials → esm/src/dsl/http/versori/credential}/v1alpha1/credential_service_pb.d.ts +61 -16
- package/esm/src/dsl/http/versori/credential/v1alpha1/credential_service_pb.d.ts.map +1 -0
- package/{script/src/dsl/http/versori/credentials → esm/src/dsl/http/versori/credential}/v1alpha1/credential_service_pb.js +22 -63
- package/esm/src/dsl/http/versori/kvapi/index.d.ts +41 -0
- package/esm/src/dsl/http/versori/kvapi/index.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/index.js +11 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchDeleteKVResponse.d.ts +4 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchDeleteKVResponse.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchDeleteKVResponse.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchEntries.d.ts +3 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchEntries.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchEntries.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchEntry.d.ts +10 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchEntry.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchEntry.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchGetKVResponse.d.ts +5 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchGetKVResponse.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchGetKVResponse.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchSetKVRequest.d.ts +5 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchSetKVRequest.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchSetKVRequest.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchSetKVResponse.d.ts +3 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchSetKVResponse.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/BatchSetKVResponse.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/CountKVRequest.d.ts +5 -0
- package/esm/src/dsl/http/versori/kvapi/models/CountKVRequest.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/CountKVRequest.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/CountKVResponse.d.ts +4 -0
- package/esm/src/dsl/http/versori/kvapi/models/CountKVResponse.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/CountKVResponse.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/CountSelector.d.ts +4 -0
- package/esm/src/dsl/http/versori/kvapi/models/CountSelector.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/CountSelector.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/Error.d.ts +14 -0
- package/esm/src/dsl/http/versori/kvapi/models/Error.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/Error.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ErrorField.d.ts +16 -0
- package/esm/src/dsl/http/versori/kvapi/models/ErrorField.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ErrorField.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/GetOptions.d.ts +7 -0
- package/esm/src/dsl/http/versori/kvapi/models/GetOptions.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/GetOptions.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVBatchFailure.d.ts +6 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVBatchFailure.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVBatchFailure.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVBatchResult.d.ts +7 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVBatchResult.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVBatchResult.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVCommitResult.d.ts +15 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVCommitResult.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVCommitResult.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVEntry.d.ts +18 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVEntry.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVEntry.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVFilter.d.ts +15 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVFilter.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVFilter.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVKey.d.ts +2 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVKey.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/KVKey.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListKVRequest.d.ts +7 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListKVRequest.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListKVRequest.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListKVResponse.d.ts +7 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListKVResponse.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListKVResponse.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListOptions.d.ts +11 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListOptions.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListOptions.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListSelector.d.ts +8 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListSelector.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/ListSelector.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/Pagination.d.ts +5 -0
- package/esm/src/dsl/http/versori/kvapi/models/Pagination.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/models/Pagination.js +1 -0
- package/esm/src/dsl/http/versori/kvapi/services/BatchOperationsService.d.ts +40 -0
- package/esm/src/dsl/http/versori/kvapi/services/BatchOperationsService.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/services/BatchOperationsService.js +58 -0
- package/esm/src/dsl/http/versori/kvapi/services/QueryOperationsService.d.ts +24 -0
- package/esm/src/dsl/http/versori/kvapi/services/QueryOperationsService.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/kvapi/services/QueryOperationsService.js +40 -0
- package/esm/src/dsl/http/versori/roundtripper.d.ts +3 -1
- package/esm/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/roundtripper.js +85 -1
- package/esm/src/dsl/tasks/HttpTask.d.ts.map +1 -1
- package/esm/src/dsl/tasks/HttpTask.js +1 -0
- package/esm/src/kv/KeyValue.d.ts +3 -0
- package/esm/src/kv/KeyValue.d.ts.map +1 -1
- package/esm/src/kv/memory/MemoryKeyValue.d.ts +3 -0
- package/esm/src/kv/memory/MemoryKeyValue.d.ts.map +1 -1
- package/esm/src/kv/memory/MemoryKeyValue.js +8 -0
- package/esm/src/kv/nats/NatsKeyValue.d.ts +3 -0
- package/esm/src/kv/nats/NatsKeyValue.d.ts.map +1 -1
- package/esm/src/kv/nats/NatsKeyValue.js +8 -0
- package/esm/src/kv/sdk/SDKKeyValue.d.ts +5 -0
- package/esm/src/kv/sdk/SDKKeyValue.d.ts.map +1 -1
- package/esm/src/kv/sdk/SDKKeyValue.js +19 -0
- package/package.json +2 -1
- package/script/src/context/Context.d.ts.map +1 -1
- package/script/src/context/Context.js +1 -0
- package/script/src/dsl/http/versori/contextcredentials.d.ts +2 -0
- package/script/src/dsl/http/versori/contextcredentials.d.ts.map +1 -1
- package/script/src/dsl/http/versori/{credentials → credential}/client.d.ts +3 -0
- package/script/src/dsl/http/versori/credential/client.d.ts.map +1 -0
- package/script/src/dsl/http/versori/{credentials → credential}/client.js +10 -0
- package/{esm/src/dsl/http/versori/credentials → script/src/dsl/http/versori/credential}/credentials.d.ts +21 -4
- package/script/src/dsl/http/versori/credential/credentials.d.ts.map +1 -0
- package/script/src/dsl/http/versori/{credentials → credential}/credentials.js +9 -0
- package/script/src/dsl/http/versori/credential/mod.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credential/oauth1/v1/authorization_metadata_pb.d.ts +40 -0
- package/script/src/dsl/http/versori/credential/oauth1/v1/authorization_metadata_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credential/oauth1/v1/authorization_metadata_pb.js +38 -0
- package/script/src/dsl/http/versori/credential/oauth1/v1/authorization_service_pb.d.ts +57 -0
- package/script/src/dsl/http/versori/credential/oauth1/v1/authorization_service_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credential/oauth1/v1/authorization_service_pb.js +47 -0
- package/script/src/dsl/http/versori/{credentials → credential}/oauth2/v1/token_pb.d.ts +4 -1
- package/script/src/dsl/http/versori/credential/oauth2/v1/token_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/{credentials → credential}/oauth2/v1/token_pb.js +4 -4
- package/script/src/dsl/http/versori/{credentials → credential}/oauth2/v1/token_service_pb.d.ts +45 -12
- package/script/src/dsl/http/versori/credential/oauth2/v1/token_service_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/{credentials → credential}/oauth2/v1/token_service_pb.js +15 -16
- package/script/src/dsl/http/versori/{credentials → credential}/tokens/v1/token_pb.d.ts +4 -1
- package/script/src/dsl/http/versori/credential/tokens/v1/token_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/{credentials → credential}/tokens/v1/token_pb.js +4 -4
- package/{esm/src/dsl/http/versori/credentials → script/src/dsl/http/versori/credential}/tokens/v1/token_service_pb.d.ts +17 -5
- package/script/src/dsl/http/versori/credential/tokens/v1/token_service_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/{credentials → credential}/tokens/v1/token_service_pb.js +8 -8
- package/{esm/src/dsl/http/versori/credentials → script/src/dsl/http/versori/credential}/v1alpha1/common_pb.d.ts +13 -4
- package/script/src/dsl/http/versori/credential/v1alpha1/common_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/{credentials → credential}/v1alpha1/common_pb.js +8 -8
- package/script/src/dsl/http/versori/credential/v1alpha1/credential_pb.d.ts +364 -0
- package/script/src/dsl/http/versori/credential/v1alpha1/credential_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credential/v1alpha1/credential_pb.js +252 -0
- package/{esm/src/dsl/http/versori/credentials → script/src/dsl/http/versori/credential}/v1alpha1/credential_service_pb.d.ts +61 -16
- package/script/src/dsl/http/versori/credential/v1alpha1/credential_service_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credential/v1alpha1/credential_service_pb.js +93 -0
- package/script/src/dsl/http/versori/kvapi/index.d.ts +41 -0
- package/script/src/dsl/http/versori/kvapi/index.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/index.js +22 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchDeleteKVResponse.d.ts +4 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchDeleteKVResponse.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchDeleteKVResponse.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchEntries.d.ts +3 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchEntries.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchEntries.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchEntry.d.ts +10 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchEntry.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchEntry.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchGetKVResponse.d.ts +5 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchGetKVResponse.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchGetKVResponse.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchSetKVRequest.d.ts +5 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchSetKVRequest.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchSetKVRequest.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchSetKVResponse.d.ts +3 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchSetKVResponse.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/BatchSetKVResponse.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/CountKVRequest.d.ts +5 -0
- package/script/src/dsl/http/versori/kvapi/models/CountKVRequest.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/CountKVRequest.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/CountKVResponse.d.ts +4 -0
- package/script/src/dsl/http/versori/kvapi/models/CountKVResponse.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/CountKVResponse.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/CountSelector.d.ts +4 -0
- package/script/src/dsl/http/versori/kvapi/models/CountSelector.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/CountSelector.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/Error.d.ts +14 -0
- package/script/src/dsl/http/versori/kvapi/models/Error.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/Error.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/ErrorField.d.ts +16 -0
- package/script/src/dsl/http/versori/kvapi/models/ErrorField.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/ErrorField.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/GetOptions.d.ts +7 -0
- package/script/src/dsl/http/versori/kvapi/models/GetOptions.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/GetOptions.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/KVBatchFailure.d.ts +6 -0
- package/script/src/dsl/http/versori/kvapi/models/KVBatchFailure.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/KVBatchFailure.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/KVBatchResult.d.ts +7 -0
- package/script/src/dsl/http/versori/kvapi/models/KVBatchResult.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/KVBatchResult.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/KVCommitResult.d.ts +15 -0
- package/script/src/dsl/http/versori/kvapi/models/KVCommitResult.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/KVCommitResult.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/KVEntry.d.ts +18 -0
- package/script/src/dsl/http/versori/kvapi/models/KVEntry.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/KVEntry.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/KVFilter.d.ts +15 -0
- package/script/src/dsl/http/versori/kvapi/models/KVFilter.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/KVFilter.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/KVKey.d.ts +2 -0
- package/script/src/dsl/http/versori/kvapi/models/KVKey.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/KVKey.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/ListKVRequest.d.ts +7 -0
- package/script/src/dsl/http/versori/kvapi/models/ListKVRequest.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/ListKVRequest.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/ListKVResponse.d.ts +7 -0
- package/script/src/dsl/http/versori/kvapi/models/ListKVResponse.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/ListKVResponse.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/ListOptions.d.ts +11 -0
- package/script/src/dsl/http/versori/kvapi/models/ListOptions.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/ListOptions.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/ListSelector.d.ts +8 -0
- package/script/src/dsl/http/versori/kvapi/models/ListSelector.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/ListSelector.js +2 -0
- package/script/src/dsl/http/versori/kvapi/models/Pagination.d.ts +5 -0
- package/script/src/dsl/http/versori/kvapi/models/Pagination.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/models/Pagination.js +2 -0
- package/script/src/dsl/http/versori/kvapi/services/BatchOperationsService.d.ts +40 -0
- package/script/src/dsl/http/versori/kvapi/services/BatchOperationsService.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/services/BatchOperationsService.js +62 -0
- package/script/src/dsl/http/versori/kvapi/services/QueryOperationsService.d.ts +24 -0
- package/script/src/dsl/http/versori/kvapi/services/QueryOperationsService.d.ts.map +1 -0
- package/script/src/dsl/http/versori/kvapi/services/QueryOperationsService.js +44 -0
- package/script/src/dsl/http/versori/roundtripper.d.ts +3 -1
- package/script/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
- package/script/src/dsl/http/versori/roundtripper.js +88 -1
- package/script/src/dsl/tasks/HttpTask.d.ts.map +1 -1
- package/script/src/dsl/tasks/HttpTask.js +1 -0
- package/script/src/kv/KeyValue.d.ts +3 -0
- package/script/src/kv/KeyValue.d.ts.map +1 -1
- package/script/src/kv/memory/MemoryKeyValue.d.ts +3 -0
- package/script/src/kv/memory/MemoryKeyValue.d.ts.map +1 -1
- package/script/src/kv/memory/MemoryKeyValue.js +8 -0
- package/script/src/kv/nats/NatsKeyValue.d.ts +3 -0
- package/script/src/kv/nats/NatsKeyValue.d.ts.map +1 -1
- package/script/src/kv/nats/NatsKeyValue.js +8 -0
- package/script/src/kv/sdk/SDKKeyValue.d.ts +5 -0
- package/script/src/kv/sdk/SDKKeyValue.d.ts.map +1 -1
- package/script/src/kv/sdk/SDKKeyValue.js +19 -0
- package/esm/src/dsl/http/versori/credentials/client.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/credentials.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/mod.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts +0 -165
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_pb.js +0 -155
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts.map +0 -1
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.js +0 -128
- package/script/src/dsl/http/versori/credentials/client.d.ts.map +0 -1
- package/script/src/dsl/http/versori/credentials/credentials.d.ts.map +0 -1
- package/script/src/dsl/http/versori/credentials/mod.d.ts.map +0 -1
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts.map +0 -1
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts.map +0 -1
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts.map +0 -1
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts.map +0 -1
- package/script/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts.map +0 -1
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts +0 -165
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts.map +0 -1
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_pb.js +0 -158
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts.map +0 -1
- /package/esm/src/dsl/http/versori/{credentials → credential}/mod.d.ts +0 -0
- /package/esm/src/dsl/http/versori/{credentials → credential}/mod.js +0 -0
- /package/script/src/dsl/http/versori/{credentials → credential}/mod.d.ts +0 -0
- /package/script/src/dsl/http/versori/{credentials → credential}/mod.js +0 -0
|
@@ -2,9 +2,12 @@ import { Code, ConnectError } from '@connectrpc/connect';
|
|
|
2
2
|
import { ConsoleLogger } from '../../../observability/mod.js';
|
|
3
3
|
import { VersoriConfigReader } from './configloader.js';
|
|
4
4
|
import { envVarCredsBaseURL, envVarEnvId, envVarOrgId, envVarPlatformApiBaseURL, } from './constants.js';
|
|
5
|
-
import { VersoriCredentialClient } from './
|
|
5
|
+
import { VersoriCredentialClient } from './credential/mod.js';
|
|
6
6
|
import { isValidURL } from './helpers.js';
|
|
7
7
|
import { PlatformAPIClient } from './platformapi.js';
|
|
8
|
+
import { URLSearchParams } from 'node:url';
|
|
9
|
+
import { createHmac } from 'node:crypto';
|
|
10
|
+
import OAuth from 'oauth-1.0a'; // Importing the OAuth class as default export
|
|
8
11
|
/**
|
|
9
12
|
* VersoriRoundTripper is an implementation of the RoundTripperFactory interface for Versori connections.
|
|
10
13
|
* This is the intended implementation for when projects/services are hosted on Versori infrastructure.
|
|
@@ -169,6 +172,9 @@ export class VersoriCredentialsFactory {
|
|
|
169
172
|
case 'certificate':
|
|
170
173
|
_fetch = this.mtlsFetcher(cred, _fetch);
|
|
171
174
|
break;
|
|
175
|
+
case 'oauth1':
|
|
176
|
+
_fetch = this.oauth1Fetcher(cred, _fetch);
|
|
177
|
+
break;
|
|
172
178
|
default:
|
|
173
179
|
break;
|
|
174
180
|
}
|
|
@@ -255,6 +261,7 @@ export class VersoriCredentialsFactory {
|
|
|
255
261
|
return {
|
|
256
262
|
getRaw: this.getRawByName.bind(this),
|
|
257
263
|
getAccessToken: this.getTokenByName.bind(this),
|
|
264
|
+
getOAuth1Metadata: this.getOAuth1Metadata.bind(this),
|
|
258
265
|
};
|
|
259
266
|
}
|
|
260
267
|
baseUrlFetcher(templateName) {
|
|
@@ -506,6 +513,65 @@ export class VersoriCredentialsFactory {
|
|
|
506
513
|
};
|
|
507
514
|
return _fn;
|
|
508
515
|
}
|
|
516
|
+
oauth1Fetcher(cred, fn) {
|
|
517
|
+
const _fn = async (input, init) => {
|
|
518
|
+
const metadata = await this.getOAuth1Metadata(cred.credential.id);
|
|
519
|
+
const authParams = new URLSearchParams(metadata.authorizationMetadata?.authorizationParams);
|
|
520
|
+
if (!metadata.authorizationMetadata) {
|
|
521
|
+
throw new Error('OAuth1 metadata not found');
|
|
522
|
+
}
|
|
523
|
+
const oauth = new OAuth({
|
|
524
|
+
consumer: {
|
|
525
|
+
key: metadata.authorizationMetadata.consumerKey,
|
|
526
|
+
secret: metadata.authorizationMetadata.consumerSecret,
|
|
527
|
+
},
|
|
528
|
+
signature_method: 'HMAC-SHA256',
|
|
529
|
+
hash_function: (baseString, key) => createHmac('sha256', key).update(baseString).digest('base64'),
|
|
530
|
+
realm: authParams.get('realm') || undefined,
|
|
531
|
+
});
|
|
532
|
+
let url;
|
|
533
|
+
if (input instanceof Request) {
|
|
534
|
+
url = input.url;
|
|
535
|
+
}
|
|
536
|
+
else if (input instanceof URL) {
|
|
537
|
+
url = input.toString();
|
|
538
|
+
}
|
|
539
|
+
else if (typeof input === 'string') {
|
|
540
|
+
url = input;
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
throw new Error('Invalid input type for OAuth1 fetcher');
|
|
544
|
+
}
|
|
545
|
+
const header = oauth.toHeader(oauth.authorize({
|
|
546
|
+
url: url,
|
|
547
|
+
method: init?.method || 'GET',
|
|
548
|
+
}, {
|
|
549
|
+
key: metadata.authorizationMetadata?.oauthToken,
|
|
550
|
+
secret: metadata.authorizationMetadata?.oauthTokenSecret,
|
|
551
|
+
}));
|
|
552
|
+
const authHeader = header.Authorization;
|
|
553
|
+
if (!init) {
|
|
554
|
+
init = {};
|
|
555
|
+
}
|
|
556
|
+
if (!init.headers) {
|
|
557
|
+
init.headers = new Headers();
|
|
558
|
+
}
|
|
559
|
+
if (init.headers instanceof Headers) {
|
|
560
|
+
init.headers.set('Authorization', authHeader);
|
|
561
|
+
}
|
|
562
|
+
else if (init.headers instanceof Array) {
|
|
563
|
+
init.headers.push(['Authorization', authHeader]);
|
|
564
|
+
}
|
|
565
|
+
else {
|
|
566
|
+
init.headers = {
|
|
567
|
+
...init.headers,
|
|
568
|
+
['Authorization']: authHeader,
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
return fn(input, init);
|
|
572
|
+
};
|
|
573
|
+
return _fn;
|
|
574
|
+
}
|
|
509
575
|
mtlsFetcher(cred, fn) {
|
|
510
576
|
const _fn = async (input, init) => {
|
|
511
577
|
const raw = await this.getRaw(cred.credential.id);
|
|
@@ -563,4 +629,22 @@ export class VersoriCredentialsFactory {
|
|
|
563
629
|
throw error;
|
|
564
630
|
}
|
|
565
631
|
}
|
|
632
|
+
async getOAuth1Metadata(id) {
|
|
633
|
+
try {
|
|
634
|
+
return await this.tokenClient.getOAuth1Metadata(id);
|
|
635
|
+
}
|
|
636
|
+
catch (error) {
|
|
637
|
+
this.log.error('unable to get OAuth1 metadata', { error });
|
|
638
|
+
if (error instanceof ConnectError) {
|
|
639
|
+
if (error.rawMessage.includes('connection error received: not a result of an error') &&
|
|
640
|
+
error.code === Code.Internal) {
|
|
641
|
+
this.log.info('Connection error received, attempting to reconnect');
|
|
642
|
+
this.tokenClient = new VersoriCredentialClient(this.credsBaseURL);
|
|
643
|
+
return await this.tokenClient.getOAuth1Metadata(id);
|
|
644
|
+
}
|
|
645
|
+
throw error;
|
|
646
|
+
}
|
|
647
|
+
throw error;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
566
650
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpTask.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/tasks/HttpTask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAsB,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,IAAI,EA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AAC,OAAO,GAAG,SAAS;CAGzC;AAED,wBAAgB,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,EAAE,UAAU,GAAG,OAAO,EAC1D,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,EACtC,EAAE,EAAE,eAAe,CAAC,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,GACzC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAEf"}
|
|
@@ -98,6 +98,7 @@ export class HttpContextImpl {
|
|
|
98
98
|
this.openKv = this.openKv.bind(this);
|
|
99
99
|
this.credentials = this.credentials.bind(this);
|
|
100
100
|
this.nextPage = this.nextPage.bind(this);
|
|
101
|
+
this.createIssue = this.createIssue.bind(this);
|
|
101
102
|
}
|
|
102
103
|
get log() {
|
|
103
104
|
return __classPrivateFieldGet(this, _HttpContextImpl_inner, "f").log;
|
package/esm/src/kv/KeyValue.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ListKVRequest, ListKVResponse, CountKVResponse } from '../dsl/http/versori/kvapi/index.js';
|
|
1
2
|
type GetOptionsMaybeDefault<T> = {
|
|
2
3
|
defaultValue?: T;
|
|
3
4
|
throwOnNotFound?: false;
|
|
@@ -15,6 +16,8 @@ export interface KeyValue {
|
|
|
15
16
|
get<T = any>(key: string | string[], options?: GetOptionsMaybeDefault<T>): Promise<T | undefined>;
|
|
16
17
|
get<T = any>(key: string | string[], options?: GetOptions<T>): Promise<T | undefined>;
|
|
17
18
|
set<T>(key: string | string[], value: T): Promise<void>;
|
|
19
|
+
list(prefix: string[], options?: ListKVRequest): Promise<ListKVResponse>;
|
|
20
|
+
count(prefix: string[]): Promise<CountKVResponse>;
|
|
18
21
|
delete(key: string | string[]): Promise<void>;
|
|
19
22
|
}
|
|
20
23
|
export type KeyValueScope = ':execution:' | ':project:' | ':organization:';
|
|
@@ -1 +1 @@
|
|
|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gBAAgB,CAAC;AAE3E,KAAK,kBAAkB,GAAG;IACtB,KAAK,EAAE,aAAa,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAgB,oBAAoB,CAChC,OAAO,EAAE,SAAS,GACnB,OAAO,IAAI,kBAAkB,CAI/B;AAED,KAAK,qBAAqB,GAAG;IACzB,KAAK,EAAE,OAAO,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,kBAAkB,GAAG,qBAAqB,CAAC,GAAG;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC7B;;;;;OAKG;IACH,EAAE,CAAC,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;IAEjC,OAAO,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { GetOptions, KeyValue } from '../KeyValue.js';
|
|
2
|
+
import { CountKVResponse, ListKVRequest, ListKVResponse } from '../../dsl/http/versori/kvapi/index.js';
|
|
2
3
|
export declare class MemoryKeyValue implements KeyValue {
|
|
3
4
|
private store;
|
|
4
5
|
get<T>(key: string | string[], options?: GetOptions<T>): Promise<T | undefined>;
|
|
5
6
|
set<T>(key: string | string[], value: T): Promise<void>;
|
|
6
7
|
delete(key: string | string[]): Promise<void>;
|
|
8
|
+
list(prefix: string[], options?: ListKVRequest): Promise<ListKVResponse>;
|
|
9
|
+
count(prefix: string[]): Promise<CountKVResponse>;
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=MemoryKeyValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemoryKeyValue.d.ts","sourceRoot":"","sources":["../../../../src/src/kv/memory/MemoryKeyValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"MemoryKeyValue.d.ts","sourceRoot":"","sources":["../../../../src/src/kv/memory/MemoryKeyValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvG,qBAAa,cAAe,YAAW,QAAQ;IAC3C,OAAO,CAAC,KAAK,CAAmC;IAEhD,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAc/E,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAM7C,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IAKxE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC;CAIpD"}
|
|
@@ -26,4 +26,12 @@ export class MemoryKeyValue {
|
|
|
26
26
|
this.store.delete(key instanceof Array ? key.join('.') : key);
|
|
27
27
|
return Promise.resolve();
|
|
28
28
|
}
|
|
29
|
+
list(prefix, options) {
|
|
30
|
+
console.log('Listing not implemented', prefix, options);
|
|
31
|
+
return Promise.reject(new Error('Listing not implemented'));
|
|
32
|
+
}
|
|
33
|
+
count(prefix) {
|
|
34
|
+
console.log('Count not implemented', prefix);
|
|
35
|
+
return Promise.reject(new Error('Count not implemented'));
|
|
36
|
+
}
|
|
29
37
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { KV } from '../../../deps/jsr.io/@nats-io/kv/3.1.0/src/mod.js';
|
|
2
2
|
import { GetOptions, KeyValue } from '../KeyValue.js';
|
|
3
|
+
import { CountKVResponse, ListKVRequest, ListKVResponse } from '../../dsl/http/versori/kvapi/index.js';
|
|
3
4
|
export declare class NatsKeyValue implements KeyValue {
|
|
4
5
|
private readonly kv;
|
|
5
6
|
private readonly prefix;
|
|
@@ -7,6 +8,8 @@ export declare class NatsKeyValue implements KeyValue {
|
|
|
7
8
|
get<T>(key: string | string[], options?: GetOptions<T>): Promise<T | undefined>;
|
|
8
9
|
set<T>(key: string | string[], value: T): Promise<void>;
|
|
9
10
|
delete(key: string | string[]): Promise<void>;
|
|
11
|
+
list(prefix: string[], options?: ListKVRequest): Promise<ListKVResponse>;
|
|
12
|
+
count(prefix: string[]): Promise<CountKVResponse>;
|
|
10
13
|
private generateKey;
|
|
11
14
|
}
|
|
12
15
|
//# sourceMappingURL=NatsKeyValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NatsKeyValue.d.ts","sourceRoot":"","sources":["../../../../src/src/kv/nats/NatsKeyValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAW,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"NatsKeyValue.d.ts","sourceRoot":"","sources":["../../../../src/src/kv/nats/NatsKeyValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAW,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvG,qBAAa,YAAa,YAAW,QAAQ;IAC7B,OAAO,CAAC,QAAQ,CAAC,EAAE;IAAM,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAA/B,EAAE,EAAE,EAAE,EAAmB,MAAM,EAAE,MAAM;IAE9D,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,GAAE,UAAU,CAAC,CAAC,CAAM,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAwBnF,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAInD,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IAKxE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAKjD,OAAO,CAAC,WAAW;CAGtB"}
|
|
@@ -41,6 +41,14 @@ export class NatsKeyValue {
|
|
|
41
41
|
async delete(key) {
|
|
42
42
|
await this.kv.delete(this.generateKey(key instanceof Array ? key.join('.') : key));
|
|
43
43
|
}
|
|
44
|
+
list(prefix, options) {
|
|
45
|
+
console.log('Listing not implemented', prefix, options);
|
|
46
|
+
return Promise.reject(new Error('Listing not implemented'));
|
|
47
|
+
}
|
|
48
|
+
count(prefix) {
|
|
49
|
+
console.log('Count not implemented', prefix);
|
|
50
|
+
return Promise.reject(new Error('Count not implemented'));
|
|
51
|
+
}
|
|
44
52
|
generateKey(key) {
|
|
45
53
|
return `${this.prefix}.${key instanceof Array ? key.join('.') : key}`;
|
|
46
54
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { GetOptions, KeyValue } from '../KeyValue.js';
|
|
2
2
|
import { CreateStoreResponse } from '../../dsl/http/versori/kvapi/models/CreateStoreResponse.js';
|
|
3
|
+
import { ListKVRequest } from '../../dsl/http/versori/kvapi/models/ListKVRequest.js';
|
|
4
|
+
import { ListKVResponse } from '../../dsl/http/versori/kvapi/models/ListKVResponse.js';
|
|
5
|
+
import { CountKVResponse } from '../../dsl/http/versori/kvapi/models/CountKVResponse.js';
|
|
3
6
|
export declare class SDKKeyValue implements KeyValue {
|
|
4
7
|
private readonly store;
|
|
5
8
|
private readonly prefix;
|
|
@@ -7,6 +10,8 @@ export declare class SDKKeyValue implements KeyValue {
|
|
|
7
10
|
get<T>(key: string | string[], options?: GetOptions<T>): Promise<T | undefined>;
|
|
8
11
|
set<T>(key: string | string[], value: T): Promise<void>;
|
|
9
12
|
delete(key: string | string[]): Promise<void>;
|
|
13
|
+
count(prefix: string[]): Promise<CountKVResponse>;
|
|
14
|
+
list(prefix: string[], options?: ListKVRequest): Promise<ListKVResponse>;
|
|
10
15
|
private generateKey;
|
|
11
16
|
}
|
|
12
17
|
//# sourceMappingURL=SDKKeyValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDKKeyValue.d.ts","sourceRoot":"","sources":["../../../../src/src/kv/sdk/SDKKeyValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AAGjG,qBAAa,WAAY,YAAW,QAAQ;IAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAuB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAnD,KAAK,EAAE,mBAAmB,EAAmB,MAAM,EAAE,MAAM;IAElF,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,GAAE,UAAU,CAAC,CAAC,CAAM,GAAG,OAAO,CAAC,CAAC,G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,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IAY9E,OAAO,CAAC,WAAW;CAGtB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KvOperationsService } from '../../dsl/http/versori/kvapi/services/KvOperationsService.js';
|
|
2
|
+
import { QueryOperationsService } from '../../dsl/http/versori/kvapi/services/QueryOperationsService.js';
|
|
2
3
|
export class SDKKeyValue {
|
|
3
4
|
constructor(store, prefix) {
|
|
4
5
|
Object.defineProperty(this, "store", {
|
|
@@ -45,6 +46,24 @@ export class SDKKeyValue {
|
|
|
45
46
|
options: {}
|
|
46
47
|
});
|
|
47
48
|
}
|
|
49
|
+
async count(prefix) {
|
|
50
|
+
const k = this.generateKey(prefix).split("/");
|
|
51
|
+
return await QueryOperationsService.countKv(this.store.id, {
|
|
52
|
+
selector: {
|
|
53
|
+
prefix: k
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
async list(prefix, options) {
|
|
58
|
+
const k = this.generateKey(prefix).split("/");
|
|
59
|
+
return await QueryOperationsService.listKv(this.store.id, {
|
|
60
|
+
selector: {
|
|
61
|
+
prefix: k,
|
|
62
|
+
...options?.selector,
|
|
63
|
+
},
|
|
64
|
+
options: options?.options,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
48
67
|
generateKey(key) {
|
|
49
68
|
return `${this.prefix}/${key instanceof Array ? key.join('/') : key}`;
|
|
50
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versori/run",
|
|
3
|
-
"version": "v0.2.
|
|
3
|
+
"version": "v0.2.25",
|
|
4
4
|
"description": "Versori Run",
|
|
5
5
|
"homepage": "https://github.com/versori/versori-run#readme",
|
|
6
6
|
"repository": {
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"cors": "^2.8.5",
|
|
35
35
|
"express": "^4.18.3",
|
|
36
36
|
"express-xml-bodyparser": "^0.3.0",
|
|
37
|
+
"oauth-1.0a": "^2.2.6",
|
|
37
38
|
"rxjs": "^7.8.1",
|
|
38
39
|
"tweetnacl": "1.0.3"
|
|
39
40
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/src/context/Context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAKF,MAAM,MAAM,YAAY,GAAG;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM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B,OAAO,GAAE,cAAmB;IAwBhC,IAAI,UAAU,IAAI,UAAU,GAAG,SAAS,CAEvC;IAED,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;IAiB7C,cAAc,CAAC,UAAU,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC;IAsB7D,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,WAAW,CAAC,EAAE,EAAE,KAAK,CAAC;IAc9C,MAAM,CAAC,KAAK,GAAE,aAA2B,GAAG,QAAQ;IAepD,OAAO,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS;IAIhC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC;IAgCtE,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAO3F,WAAW,IAAI,mBAAmB;IAUlC,OAAO,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAe5C,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAQlD"}
|
|
@@ -163,6 +163,7 @@ class ContextImpl {
|
|
|
163
163
|
return {
|
|
164
164
|
getRaw: (name) => __classPrivateFieldGet(this, _ContextImpl_creds, "f").getRaw(name, this.activation?.id || undefined),
|
|
165
165
|
getAccessToken: (name, forceRefresh = false) => __classPrivateFieldGet(this, _ContextImpl_creds, "f").getAccessToken(name, forceRefresh, this.activation?.id || undefined),
|
|
166
|
+
getOAuth1Metadata: (name, activationId) => __classPrivateFieldGet(this, _ContextImpl_creds, "f").getOAuth1Metadata(name, activationId ?? this.activation?.id),
|
|
166
167
|
};
|
|
167
168
|
}
|
|
168
169
|
destroy(scope) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GetAuthorizationMetadataResponse } from './credential/oauth1/v1/authorization_service_pb.js';
|
|
1
2
|
export type Token = {
|
|
2
3
|
accessToken: string;
|
|
3
4
|
tokenType: string;
|
|
@@ -6,5 +7,6 @@ export type Token = {
|
|
|
6
7
|
export interface CredentialsProvider {
|
|
7
8
|
getRaw(name: string, activationId?: string): Promise<Uint8Array>;
|
|
8
9
|
getAccessToken(name: string, forceRefresh?: boolean, activationId?: string): Promise<Token>;
|
|
10
|
+
getOAuth1Metadata(name: string, activationId?: string): Promise<GetAuthorizationMetadataResponse>;
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=contextcredentials.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextcredentials.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/contextcredentials.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contextcredentials.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/contextcredentials.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oDAAoD,CAAC;AAEtG,MAAM,MAAM,KAAK,GAAG;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAChC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEjE,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAE5F,iBAAiB,CACb,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,gCAAgC,CAAC,CAAC;CAChD"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { GetTokenResponse } from './tokens/v1/token_service_pb.js';
|
|
2
2
|
import { GetCredentialResponse } from './v1alpha1/credential_service_pb.js';
|
|
3
|
+
import { GetAuthorizationMetadataResponse } from './oauth1/v1/authorization_service_pb.js';
|
|
3
4
|
export declare class VersoriCredentialClient {
|
|
4
5
|
private tokenClient;
|
|
5
6
|
private credentialsClient;
|
|
7
|
+
private oauth1Client;
|
|
6
8
|
constructor(credsBaseUrl: string);
|
|
7
9
|
getToken(credId: string, forceRefresh?: boolean): Promise<GetTokenResponse>;
|
|
8
10
|
getRaw(credId: string): Promise<GetCredentialResponse>;
|
|
11
|
+
getOAuth1Metadata(credId: string): Promise<GetAuthorizationMetadataResponse>;
|
|
9
12
|
}
|
|
10
13
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/src/dsl/http/versori/credential/client.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAG5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAE3F,qBAAa,uBAAuB;IAChC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,YAAY,CAAe;gBAEvB,YAAY,EAAE,MAAM;IAMhC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,GAAE,OAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIlF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAItD,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,gCAAgC,CAAC;CAG/E"}
|
|
@@ -16,8 +16,15 @@ class VersoriCredentialClient {
|
|
|
16
16
|
writable: true,
|
|
17
17
|
value: void 0
|
|
18
18
|
});
|
|
19
|
+
Object.defineProperty(this, "oauth1Client", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: void 0
|
|
24
|
+
});
|
|
19
25
|
this.tokenClient = (0, credentials_js_1.createTokenClient)(credsBaseUrl);
|
|
20
26
|
this.credentialsClient = (0, credentials_js_1.createCredentialsClient)(credsBaseUrl);
|
|
27
|
+
this.oauth1Client = (0, credentials_js_1.createOAuth1Cleint)(credsBaseUrl);
|
|
21
28
|
}
|
|
22
29
|
getToken(credId, forceRefresh = false) {
|
|
23
30
|
return this.tokenClient.getToken({ credentialId: credId, forceRefresh });
|
|
@@ -25,5 +32,8 @@ class VersoriCredentialClient {
|
|
|
25
32
|
getRaw(credId) {
|
|
26
33
|
return this.credentialsClient.get({ id: credId, showRedacted: true });
|
|
27
34
|
}
|
|
35
|
+
getOAuth1Metadata(credId) {
|
|
36
|
+
return this.oauth1Client.getAuthorizationMetadata({ credentialId: credId });
|
|
37
|
+
}
|
|
28
38
|
}
|
|
29
39
|
exports.VersoriCredentialClient = VersoriCredentialClient;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function createTokenClient(baseUrl?: string): Client<import("@bufbuild/protobuf/codegenv1").GenService<{
|
|
1
|
+
export declare function createTokenClient(baseUrl?: string): import("@connectrpc/connect").Client<import("@bufbuild/protobuf/codegenv2").GenService<{
|
|
3
2
|
getToken: {
|
|
4
3
|
methodKind: "unary";
|
|
5
4
|
input: typeof import("./tokens/v1/token_service_pb.js").GetTokenRequestSchema;
|
|
@@ -12,7 +11,7 @@ export declare function createTokenClient(baseUrl?: string): Client<import("@buf
|
|
|
12
11
|
};
|
|
13
12
|
}>>;
|
|
14
13
|
export type TokenClient = ReturnType<typeof createTokenClient>;
|
|
15
|
-
export declare function createOAuth2TokenService(baseUrl?: string): Client<import("@bufbuild/protobuf/
|
|
14
|
+
export declare function createOAuth2TokenService(baseUrl?: string): import("@connectrpc/connect").Client<import("@bufbuild/protobuf/codegenv2").GenService<{
|
|
16
15
|
getAccessToken: {
|
|
17
16
|
methodKind: "unary";
|
|
18
17
|
input: typeof import("./oauth2/v1/token_service_pb.js").GetAccessTokenRequestSchema;
|
|
@@ -40,7 +39,7 @@ export declare function createOAuth2TokenService(baseUrl?: string): Client<impor
|
|
|
40
39
|
};
|
|
41
40
|
}>>;
|
|
42
41
|
export type OAuth2TokenClient = ReturnType<typeof createOAuth2TokenService>;
|
|
43
|
-
export declare function createCredentialsClient(baseUrl?: string): Client<import("@bufbuild/protobuf/
|
|
42
|
+
export declare function createCredentialsClient(baseUrl?: string): import("@connectrpc/connect").Client<import("@bufbuild/protobuf/codegenv2").GenService<{
|
|
44
43
|
create: {
|
|
45
44
|
methodKind: "unary";
|
|
46
45
|
input: typeof import("./v1alpha1/credential_service_pb.js").CreateCredentialRequestSchema;
|
|
@@ -78,4 +77,22 @@ export declare function createCredentialsClient(baseUrl?: string): Client<import
|
|
|
78
77
|
};
|
|
79
78
|
}>>;
|
|
80
79
|
export type CredentialsClient = ReturnType<typeof createCredentialsClient>;
|
|
80
|
+
export declare function createOAuth1Cleint(baseUrl?: string): import("@connectrpc/connect").Client<import("@bufbuild/protobuf/codegenv2").GenService<{
|
|
81
|
+
getTemporaryToken: {
|
|
82
|
+
methodKind: "unary";
|
|
83
|
+
input: typeof import("./oauth1/v1/authorization_service_pb.js").GetTemporaryTokenRequestSchema;
|
|
84
|
+
output: typeof import("./oauth1/v1/authorization_service_pb.js").GetTemporaryTokenResponseSchema;
|
|
85
|
+
};
|
|
86
|
+
handleAuthorizationCallback: {
|
|
87
|
+
methodKind: "unary";
|
|
88
|
+
input: typeof import("./oauth1/v1/authorization_service_pb.js").HandleAuthorizationCallbackRequestSchema;
|
|
89
|
+
output: typeof import("./oauth1/v1/authorization_service_pb.js").HandleAuthorizationCallbackResponseSchema;
|
|
90
|
+
};
|
|
91
|
+
getAuthorizationMetadata: {
|
|
92
|
+
methodKind: "unary";
|
|
93
|
+
input: typeof import("./oauth1/v1/authorization_service_pb.js").GetAuthorizationMetadataRequestSchema;
|
|
94
|
+
output: typeof import("./oauth1/v1/authorization_service_pb.js").GetAuthorizationMetadataResponseSchema;
|
|
95
|
+
};
|
|
96
|
+
}>>;
|
|
97
|
+
export type OAuth1Client = ReturnType<typeof createOAuth1Cleint>;
|
|
81
98
|
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../../src/src/dsl/http/versori/credential/credentials.ts"],"names":[],"mappings":"AAoBA,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,MAAgC;;;;;;;;;;;IAK1E;AAED,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE/D,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,MAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;IAKjF;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE5E,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,MAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKhF;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,MAAgC;;;;;;;;;;;;;;;;IAK3E;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createTokenClient = createTokenClient;
|
|
4
4
|
exports.createOAuth2TokenService = createOAuth2TokenService;
|
|
5
5
|
exports.createCredentialsClient = createCredentialsClient;
|
|
6
|
+
exports.createOAuth1Cleint = createOAuth1Cleint;
|
|
6
7
|
const connect_1 = require("@connectrpc/connect");
|
|
7
8
|
const connect_node_1 = require("@connectrpc/connect-node");
|
|
8
9
|
const token_service_pb_js_1 = require("./tokens/v1/token_service_pb.js");
|
|
9
10
|
const token_service_pb_js_2 = require("./oauth2/v1/token_service_pb.js");
|
|
10
11
|
const credential_service_pb_js_1 = require("./v1alpha1/credential_service_pb.js");
|
|
12
|
+
const authorization_service_pb_js_1 = require("./oauth1/v1/authorization_service_pb.js");
|
|
13
|
+
// import { metadatac}
|
|
11
14
|
// // @deno-types="./customauth/v1/customauth_service_pb.d.ts"
|
|
12
15
|
// import { CustomAuthenticationService } from './customauth/v1/customauth_service_pb.d.ts';
|
|
13
16
|
function createTokenClient(baseUrl = 'http://localhost:9000') {
|
|
@@ -28,6 +31,12 @@ function createCredentialsClient(baseUrl = 'http://localhost:9000') {
|
|
|
28
31
|
});
|
|
29
32
|
return (0, connect_1.createClient)(credential_service_pb_js_1.CredentialService, transport);
|
|
30
33
|
}
|
|
34
|
+
function createOAuth1Cleint(baseUrl = 'http://localhost:9000') {
|
|
35
|
+
const transport = (0, connect_node_1.createGrpcTransport)({
|
|
36
|
+
baseUrl,
|
|
37
|
+
});
|
|
38
|
+
return (0, connect_1.createClient)(authorization_service_pb_js_1.AuthorizationService, transport);
|
|
39
|
+
}
|
|
31
40
|
// export function createCustomAuthService(baseUrl: string = 'http://localhost:9000') {
|
|
32
41
|
// const transport = createGrpcTransport({
|
|
33
42
|
// baseUrl,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/src/dsl/http/versori/credential/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes the file versori/credential/oauth1/v1/authorization_metadata.proto.
|
|
3
|
+
*/
|
|
4
|
+
export const file_versori_credential_oauth1_v1_authorization_metadata: import("@bufbuild/protobuf").DescFile;
|
|
5
|
+
/**
|
|
6
|
+
* Describes the message versori.credential.oauth1.v1.AuthorizationMetadata.
|
|
7
|
+
* Use `create(AuthorizationMetadataSchema)` to create a new message.
|
|
8
|
+
*/
|
|
9
|
+
export const AuthorizationMetadataSchema: import("@bufbuild/protobuf/codegenv2").GenMessage<import("@bufbuild/protobuf").Message, {
|
|
10
|
+
jsonType: undefined;
|
|
11
|
+
validType: undefined;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* Describes the enum versori.credential.oauth1.v1.AuthorizationMetadata.SignatureMethod.
|
|
15
|
+
*/
|
|
16
|
+
export const AuthorizationMetadata_SignatureMethodSchema: import("@bufbuild/protobuf/codegenv2").GenEnum<number, import("@bufbuild/protobuf").JsonValue>;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from enum versori.credential.oauth1.v1.AuthorizationMetadata.SignatureMethod
|
|
19
|
+
*/
|
|
20
|
+
export const AuthorizationMetadata_SignatureMethod: {
|
|
21
|
+
[key: number]: string;
|
|
22
|
+
[k: string]: string | number;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Describes the enum versori.credential.oauth1.v1.AuthorizationMetadata.ParameterTransmission.
|
|
26
|
+
*/
|
|
27
|
+
export const AuthorizationMetadata_ParameterTransmissionSchema: import("@bufbuild/protobuf/codegenv2").GenEnum<number, import("@bufbuild/protobuf").JsonValue>;
|
|
28
|
+
/**
|
|
29
|
+
* ParameterTransmission defines the possible values for how to transmit the authorization
|
|
30
|
+
* parameters to the server. See
|
|
31
|
+
* [RFC-5849 §3.5](https://datatracker.ietf.org/doc/html/rfc5849#section-3.5) for more
|
|
32
|
+
* information.
|
|
33
|
+
*
|
|
34
|
+
* @generated from enum versori.credential.oauth1.v1.AuthorizationMetadata.ParameterTransmission
|
|
35
|
+
*/
|
|
36
|
+
export const AuthorizationMetadata_ParameterTransmission: {
|
|
37
|
+
[key: number]: string;
|
|
38
|
+
[k: string]: string | number;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=authorization_metadata_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorization_metadata_pb.d.ts","sourceRoot":"","sources":["../../../../../../../../src/src/dsl/http/versori/credential/oauth1/v1/authorization_metadata_pb.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,6GAC2yC;AAE3yC;;;GAGG;AACH;;;GAC2E;AAE3E;;GAEG;AACH,yJAC2E;AAE3E;;GAEG;AACH;;;EACsD;AAEtD;;GAEG;AACH,+JAC2E;AAE3E;;;;;;;GAOG;AACH;;;EAC4D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.6.2
|
|
3
|
+
// @generated from file versori/credential/oauth1/v1/authorization_metadata.proto (package versori.credential.oauth1.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AuthorizationMetadata_ParameterTransmission = exports.AuthorizationMetadata_ParameterTransmissionSchema = exports.AuthorizationMetadata_SignatureMethod = exports.AuthorizationMetadata_SignatureMethodSchema = exports.AuthorizationMetadataSchema = exports.file_versori_credential_oauth1_v1_authorization_metadata = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file versori/credential/oauth1/v1/authorization_metadata.proto.
|
|
11
|
+
*/
|
|
12
|
+
exports.file_versori_credential_oauth1_v1_authorization_metadata = (0, codegenv2_1.fileDesc)("Cjl2ZXJzb3JpL2NyZWRlbnRpYWwvb2F1dGgxL3YxL2F1dGhvcml6YXRpb25fbWV0YWRhdG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gxXFYx4gIoVmVyc29yaVxDcmVkZW50aWFsXE9hdXRoMVxWMVxHUEJNZXRhZGF0YeoCH1ZlcnNvcmk6OkNyZWRlbnRpYWw6Ok9hdXRoMTo6VjFiBnByb3RvMw", [wkt_1.file_google_protobuf_timestamp]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message versori.credential.oauth1.v1.AuthorizationMetadata.
|
|
15
|
+
* Use `create(AuthorizationMetadataSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
exports.AuthorizationMetadataSchema = (0, codegenv2_1.messageDesc)(exports.file_versori_credential_oauth1_v1_authorization_metadata, 0);
|
|
18
|
+
/**
|
|
19
|
+
* Describes the enum versori.credential.oauth1.v1.AuthorizationMetadata.SignatureMethod.
|
|
20
|
+
*/
|
|
21
|
+
exports.AuthorizationMetadata_SignatureMethodSchema = (0, codegenv2_1.enumDesc)(exports.file_versori_credential_oauth1_v1_authorization_metadata, 0, 0);
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum versori.credential.oauth1.v1.AuthorizationMetadata.SignatureMethod
|
|
24
|
+
*/
|
|
25
|
+
exports.AuthorizationMetadata_SignatureMethod = (0, codegenv2_1.tsEnum)(exports.AuthorizationMetadata_SignatureMethodSchema);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the enum versori.credential.oauth1.v1.AuthorizationMetadata.ParameterTransmission.
|
|
28
|
+
*/
|
|
29
|
+
exports.AuthorizationMetadata_ParameterTransmissionSchema = (0, codegenv2_1.enumDesc)(exports.file_versori_credential_oauth1_v1_authorization_metadata, 0, 1);
|
|
30
|
+
/**
|
|
31
|
+
* ParameterTransmission defines the possible values for how to transmit the authorization
|
|
32
|
+
* parameters to the server. See
|
|
33
|
+
* [RFC-5849 §3.5](https://datatracker.ietf.org/doc/html/rfc5849#section-3.5) for more
|
|
34
|
+
* information.
|
|
35
|
+
*
|
|
36
|
+
* @generated from enum versori.credential.oauth1.v1.AuthorizationMetadata.ParameterTransmission
|
|
37
|
+
*/
|
|
38
|
+
exports.AuthorizationMetadata_ParameterTransmission = (0, codegenv2_1.tsEnum)(exports.AuthorizationMetadata_ParameterTransmissionSchema);
|