@versori/run 0.0.1-alpha.1 → 0.0.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/src/dsl/http/default.d.ts +23 -0
- package/esm/src/dsl/http/default.d.ts.map +1 -0
- package/esm/src/dsl/http/default.js +25 -0
- package/esm/src/dsl/http/types.d.ts +53 -0
- package/esm/src/dsl/http/types.d.ts.map +1 -0
- package/esm/src/dsl/http/types.js +2 -0
- package/esm/src/dsl/http/versori/configloader.d.ts +12 -0
- package/esm/src/dsl/http/versori/configloader.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/configloader.js +14 -0
- package/esm/src/dsl/http/versori/connectapi.d.ts +11 -0
- package/esm/src/dsl/http/versori/connectapi.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/connectapi.js +57 -0
- package/esm/src/dsl/http/versori/credentials/client.d.ts +10 -0
- package/esm/src/dsl/http/versori/credentials/client.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/client.js +30 -0
- package/esm/src/dsl/http/versori/credentials/credentials.d.ts +42 -0
- package/esm/src/dsl/http/versori/credentials/credentials.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/credentials.js +34 -0
- package/esm/src/dsl/http/versori/credentials/mod.d.ts +2 -0
- package/esm/src/dsl/http/versori/credentials/mod.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/mod.js +1 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts +10 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_pb.js +14 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts +69 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.js +76 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts +10 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_pb.js +14 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts +34 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.js +40 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts +165 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_pb.js +155 -0
- package/esm/src/dsl/http/versori/internalauth.d.ts +10 -0
- package/esm/src/dsl/http/versori/internalauth.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/internalauth.js +67 -0
- package/esm/src/dsl/http/versori/roundtripper.d.ts +31 -0
- package/esm/src/dsl/http/versori/roundtripper.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/roundtripper.js +218 -0
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +2 -0
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/memory/MemoryInterpreter.js +10 -0
- package/esm/src/interpreter/memory/ObservableCompiler.d.ts +2 -0
- package/esm/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/http.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/http.js +3 -1
- package/package.json +4 -1
- package/script/src/dsl/http/default.d.ts +23 -0
- package/script/src/dsl/http/default.d.ts.map +1 -0
- package/script/src/dsl/http/default.js +29 -0
- package/script/src/dsl/http/types.d.ts +53 -0
- package/script/src/dsl/http/types.d.ts.map +1 -0
- package/script/src/dsl/http/types.js +3 -0
- package/script/src/dsl/http/versori/configloader.d.ts +12 -0
- package/script/src/dsl/http/versori/configloader.d.ts.map +1 -0
- package/script/src/dsl/http/versori/configloader.js +40 -0
- package/script/src/dsl/http/versori/connectapi.d.ts +11 -0
- package/script/src/dsl/http/versori/connectapi.d.ts.map +1 -0
- package/script/src/dsl/http/versori/connectapi.js +61 -0
- package/script/src/dsl/http/versori/credentials/client.d.ts +10 -0
- package/script/src/dsl/http/versori/credentials/client.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/client.js +32 -0
- package/script/src/dsl/http/versori/credentials/credentials.d.ts +42 -0
- package/script/src/dsl/http/versori/credentials/credentials.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/credentials.js +38 -0
- package/script/src/dsl/http/versori/credentials/mod.d.ts +2 -0
- package/script/src/dsl/http/versori/credentials/mod.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/mod.js +5 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts +10 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_pb.js +17 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts +69 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.js +79 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts +10 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_pb.js +17 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts +34 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.js +43 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts +165 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_pb.js +158 -0
- package/script/src/dsl/http/versori/internalauth.d.ts +10 -0
- package/script/src/dsl/http/versori/internalauth.d.ts.map +1 -0
- package/script/src/dsl/http/versori/internalauth.js +94 -0
- package/script/src/dsl/http/versori/roundtripper.d.ts +31 -0
- package/script/src/dsl/http/versori/roundtripper.d.ts.map +1 -0
- package/script/src/dsl/http/versori/roundtripper.js +246 -0
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts +2 -0
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/memory/MemoryInterpreter.js +10 -0
- package/script/src/interpreter/memory/ObservableCompiler.d.ts +2 -0
- package/script/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/http.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/http.js +3 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.3
|
|
2
|
+
// @generated from file versori/credential/tokens/v1/token_service.proto (package versori.credential.tokens.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
import { file_versori_credential_tokens_v1_token } from "./token_pb.js";
|
|
7
|
+
import { file_versori_credential_v1alpha1_credential } from "../../v1alpha1/credential_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file versori/credential/tokens/v1/token_service.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_versori_credential_tokens_v1_token_service = /*@__PURE__*/ fileDesc("CjB2ZXJzb3JpL2NyZWRlbnRpYWwvdG9rZW5zL3YxL3Rva2VuX3NlcnZpY2UucHJvdG8SHHZlcnNvcmkuY3JlZGVudGlhbC50b2tlbnMudjEiPwoPR2V0VG9rZW5SZXF1ZXN0EhUKDWNyZWRlbnRpYWxfaWQYASABKAkSFQoNZm9yY2VfcmVmcmVzaBgCIAEoCCJGChBHZXRUb2tlblJlc3BvbnNlEjIKBXRva2VuGAEgASgLMiMudmVyc29yaS5jcmVkZW50aWFsLnRva2Vucy52MS5Ub2tlbiJxChJDaGVja0V4cGlyeVJlcXVlc3QSFQoNY3JlZGVudGlhbF9pZBgBIAEoCRIwCg1leHBpcnlfYnVmZmVyGAIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEhIKCm5vX3JlZnJlc2gYAyABKAgiWgoTQ2hlY2tFeHBpcnlSZXNwb25zZRIuCgpleHBpcmVzX2F0GAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBITCgtkaWRfcmVmcmVzaBgCIAEoCDLtAQoMVG9rZW5TZXJ2aWNlEmkKCEdldFRva2VuEi0udmVyc29yaS5jcmVkZW50aWFsLnRva2Vucy52MS5HZXRUb2tlblJlcXVlc3QaLi52ZXJzb3JpLmNyZWRlbnRpYWwudG9rZW5zLnYxLkdldFRva2VuUmVzcG9uc2UScgoLQ2hlY2tFeHBpcnkSMC52ZXJzb3JpLmNyZWRlbnRpYWwudG9rZW5zLnYxLkNoZWNrRXhwaXJ5UmVxdWVzdBoxLnZlcnNvcmkuY3JlZGVudGlhbC50b2tlbnMudjEuQ2hlY2tFeHBpcnlSZXNwb25zZUInWiV2ZXJzb3JpLmRldi9jcmVkZW50aWFscy9hcGkvdG9rZW5zL3YxYgZwcm90bzM", [file_google_protobuf_timestamp, file_google_protobuf_duration, file_versori_credential_tokens_v1_token, file_versori_credential_v1alpha1_credential]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message versori.credential.tokens.v1.GetTokenRequest.
|
|
14
|
+
* Use `create(GetTokenRequestSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const GetTokenRequestSchema = /*@__PURE__*/ messageDesc(file_versori_credential_tokens_v1_token_service, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message versori.credential.tokens.v1.GetTokenResponse.
|
|
19
|
+
* Use `create(GetTokenResponseSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const GetTokenResponseSchema = /*@__PURE__*/ messageDesc(file_versori_credential_tokens_v1_token_service, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message versori.credential.tokens.v1.CheckExpiryRequest.
|
|
24
|
+
* Use `create(CheckExpiryRequestSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const CheckExpiryRequestSchema = /*@__PURE__*/ messageDesc(file_versori_credential_tokens_v1_token_service, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message versori.credential.tokens.v1.CheckExpiryResponse.
|
|
29
|
+
* Use `create(CheckExpiryResponseSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const CheckExpiryResponseSchema = /*@__PURE__*/ messageDesc(file_versori_credential_tokens_v1_token_service, 3);
|
|
32
|
+
/**
|
|
33
|
+
* TokenService wraps the CredentialService and provides capability specifically around OAuth 2.0.
|
|
34
|
+
*
|
|
35
|
+
* This service should never be exposed to the outside world and is only for internal use of configuring new connections
|
|
36
|
+
* between Apps and organisations, and the execution of boards on behalf of organisations.
|
|
37
|
+
*
|
|
38
|
+
* @generated from service versori.credential.tokens.v1.TokenService
|
|
39
|
+
*/
|
|
40
|
+
export const TokenService = /*@__PURE__*/ serviceDesc(file_versori_credential_tokens_v1_token_service, 0);
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes the file versori/credential/v1alpha1/credential.proto.
|
|
3
|
+
*/
|
|
4
|
+
export const file_versori_credential_v1alpha1_credential: import("@bufbuild/protobuf").DescFile;
|
|
5
|
+
/**
|
|
6
|
+
* Describes the message versori.credential.v1alpha1.Credential.
|
|
7
|
+
* Use `create(CredentialSchema)` to create a new message.
|
|
8
|
+
*/
|
|
9
|
+
export const CredentialSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
10
|
+
/**
|
|
11
|
+
* Describes the enum versori.credential.v1alpha1.Credential.Type.
|
|
12
|
+
*/
|
|
13
|
+
export const Credential_TypeSchema: import("@bufbuild/protobuf/codegenv1").GenEnum<number, import("@bufbuild/protobuf").JsonValue>;
|
|
14
|
+
/**
|
|
15
|
+
* @generated from enum versori.credential.v1alpha1.Credential.Type
|
|
16
|
+
*/
|
|
17
|
+
export const Credential_Type: {
|
|
18
|
+
[key: number]: string;
|
|
19
|
+
[k: string]: string | number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataOAuth2Token.
|
|
23
|
+
* Use `create(CredentialDataOAuth2TokenSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const CredentialDataOAuth2TokenSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataRaw.
|
|
28
|
+
* Use `create(CredentialDataRawSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const CredentialDataRawSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message versori.credential.v1alpha1.CredentialHTTPRefreshData.
|
|
33
|
+
* Use `create(CredentialHTTPRefreshDataSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const CredentialHTTPRefreshDataSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message versori.credential.v1alpha1.CredentialHTTPRefreshConfig.
|
|
38
|
+
* Use `create(CredentialHTTPRefreshConfigSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const CredentialHTTPRefreshConfigSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message versori.credential.v1alpha1.CredentialCustomFunction.
|
|
43
|
+
* Use `create(CredentialCustomFunctionSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
export const CredentialCustomFunctionSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.
|
|
48
|
+
* Use `create(HTTPRefreshConfigSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export const HTTPRefreshConfigSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.
|
|
53
|
+
* Use `create(HTTPRefreshConfig_RequestTemplateSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
export const HTTPRefreshConfig_RequestTemplateSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.HeaderValue.
|
|
58
|
+
* Use `create(HTTPRefreshConfig_RequestTemplate_HeaderValueSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const HTTPRefreshConfig_RequestTemplate_HeaderValueSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
61
|
+
/**
|
|
62
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.CredentialTarget.
|
|
63
|
+
* Use `create(HTTPRefreshConfig_RequestTemplate_CredentialTargetSchema)` to create a new message.
|
|
64
|
+
*/
|
|
65
|
+
export const HTTPRefreshConfig_RequestTemplate_CredentialTargetSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
66
|
+
/**
|
|
67
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.CredentialTarget.Body.
|
|
68
|
+
* Use `create(HTTPRefreshConfig_RequestTemplate_CredentialTarget_BodySchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
export const HTTPRefreshConfig_RequestTemplate_CredentialTarget_BodySchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.CredentialTarget.Header.
|
|
73
|
+
* Use `create(HTTPRefreshConfig_RequestTemplate_CredentialTarget_HeaderSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
export const HTTPRefreshConfig_RequestTemplate_CredentialTarget_HeaderSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.Selector.
|
|
78
|
+
* Use `create(HTTPRefreshConfig_SelectorSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export const HTTPRefreshConfig_SelectorSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
81
|
+
/**
|
|
82
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.Selector.BodySelector.
|
|
83
|
+
* Use `create(HTTPRefreshConfig_Selector_BodySelectorSchema)` to create a new message.
|
|
84
|
+
*/
|
|
85
|
+
export const HTTPRefreshConfig_Selector_BodySelectorSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
86
|
+
/**
|
|
87
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.Selector.BodySelector.GvalExpression.
|
|
88
|
+
* Use `create(HTTPRefreshConfig_Selector_BodySelector_GvalExpressionSchema)` to create a new message.
|
|
89
|
+
*/
|
|
90
|
+
export const HTTPRefreshConfig_Selector_BodySelector_GvalExpressionSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
91
|
+
/**
|
|
92
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataBasicAuth.
|
|
93
|
+
* Use `create(CredentialDataBasicAuthSchema)` to create a new message.
|
|
94
|
+
*/
|
|
95
|
+
export const CredentialDataBasicAuthSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
96
|
+
/**
|
|
97
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataCertificate.
|
|
98
|
+
* Use `create(CredentialDataCertificateSchema)` to create a new message.
|
|
99
|
+
*/
|
|
100
|
+
export const CredentialDataCertificateSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
101
|
+
/**
|
|
102
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataOAuth2Client.
|
|
103
|
+
* Use `create(CredentialDataOAuth2ClientSchema)` to create a new message.
|
|
104
|
+
*/
|
|
105
|
+
export const CredentialDataOAuth2ClientSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
106
|
+
/**
|
|
107
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.
|
|
108
|
+
* Use `create(CredentialDataOAuth2Client_ParameterConfigSchema)` to create a new message.
|
|
109
|
+
*/
|
|
110
|
+
export const CredentialDataOAuth2Client_ParameterConfigSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
111
|
+
/**
|
|
112
|
+
* Describes the enum versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.Location.
|
|
113
|
+
*/
|
|
114
|
+
export const CredentialDataOAuth2Client_ParameterConfig_LocationSchema: import("@bufbuild/protobuf/codegenv1").GenEnum<number, import("@bufbuild/protobuf").JsonValue>;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from enum versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.Location
|
|
117
|
+
*/
|
|
118
|
+
export const CredentialDataOAuth2Client_ParameterConfig_Location: {
|
|
119
|
+
[key: number]: string;
|
|
120
|
+
[k: string]: string | number;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Describes the enum versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.From.
|
|
124
|
+
*/
|
|
125
|
+
export const CredentialDataOAuth2Client_ParameterConfig_FromSchema: import("@bufbuild/protobuf/codegenv1").GenEnum<number, import("@bufbuild/protobuf").JsonValue>;
|
|
126
|
+
/**
|
|
127
|
+
* @generated from enum versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.From
|
|
128
|
+
*/
|
|
129
|
+
export const CredentialDataOAuth2Client_ParameterConfig_From: {
|
|
130
|
+
[key: number]: string;
|
|
131
|
+
[k: string]: string | number;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Describes the enum versori.credential.v1alpha1.CredentialDataOAuth2Client.AuthStyle.
|
|
135
|
+
*/
|
|
136
|
+
export const CredentialDataOAuth2Client_AuthStyleSchema: import("@bufbuild/protobuf/codegenv1").GenEnum<number, import("@bufbuild/protobuf").JsonValue>;
|
|
137
|
+
/**
|
|
138
|
+
* @generated from enum versori.credential.v1alpha1.CredentialDataOAuth2Client.AuthStyle
|
|
139
|
+
*/
|
|
140
|
+
export const CredentialDataOAuth2Client_AuthStyle: {
|
|
141
|
+
[key: number]: string;
|
|
142
|
+
[k: string]: string | number;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Describes the enum versori.credential.v1alpha1.CredentialDataOAuth2Client.Flow.
|
|
146
|
+
*/
|
|
147
|
+
export const CredentialDataOAuth2Client_FlowSchema: import("@bufbuild/protobuf/codegenv1").GenEnum<number, import("@bufbuild/protobuf").JsonValue>;
|
|
148
|
+
/**
|
|
149
|
+
* @generated from enum versori.credential.v1alpha1.CredentialDataOAuth2Client.Flow
|
|
150
|
+
*/
|
|
151
|
+
export const CredentialDataOAuth2Client_Flow: {
|
|
152
|
+
[key: number]: string;
|
|
153
|
+
[k: string]: string | number;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataOAuth2ResourceOwner.
|
|
157
|
+
* Use `create(CredentialDataOAuth2ResourceOwnerSchema)` to create a new message.
|
|
158
|
+
*/
|
|
159
|
+
export const CredentialDataOAuth2ResourceOwnerSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
160
|
+
/**
|
|
161
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataJWTBearer.
|
|
162
|
+
* Use `create(CredentialDataJWTBearerSchema)` to create a new message.
|
|
163
|
+
*/
|
|
164
|
+
export const CredentialDataJWTBearerSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
165
|
+
//# sourceMappingURL=credential_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential_pb.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/dsl/http/versori/credentials/v1alpha1/credential_pb.js"],"names":[],"mappings":"AAQA;;GAEG;AACH,gGAC+zK;AAE/zK;;;GAGG;AACH,+JAC8D;AAE9D;;GAEG;AACH,mIAC8D;AAE9D;;GAEG;AACH;;;EACgC;AAEhC;;;GAGG;AACH,8KAC8D;AAE9D;;;GAGG;AACH,sKAC8D;AAE9D;;;GAGG;AACH,8KAC8D;AAE9D;;;GAGG;AACH,gLAC8D;AAE9D;;;GAGG;AACH,6KAC8D;AAE9D;;;GAGG;AACH,sKAC8D;AAE9D;;;GAGG;AACH,sLACiE;AAEjE;;;GAGG;AACH,kMACoE;AAEpE;;;GAGG;AACH,uMACoE;AAEpE;;;GAGG;AACH,4MACuE;AAEvE;;;GAGG;AACH,8MACuE;AAEvE;;;GAGG;AACH,+KACiE;AAEjE;;;GAGG;AACH,4LACoE;AAEpE;;;GAGG;AACH,2MACuE;AAEvE;;;GAGG;AACH,4KAC8D;AAE9D;;;GAGG;AACH,8KAC8D;AAE9D;;;GAGG;AACH,+KAC8D;AAE9D;;;GAGG;AACH,+LACiE;AAEjE;;GAEG;AACH,uKACiE;AAEjE;;GAEG;AACH;;;EACoE;AAEpE;;GAEG;AACH,mKACiE;AAEjE;;GAEG;AACH;;;EACgE;AAEhE;;GAEG;AACH,wJAC8D;AAE9D;;GAEG;AACH;;;EACqD;AAErD;;GAEG;AACH,mJAC8D;AAE9D;;GAEG;AACH;;;EACgD;AAEhD;;;GAGG;AACH,sLAC+D;AAE/D;;;GAGG;AACH,4KAC+D"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.3
|
|
2
|
+
// @generated from file versori/credential/v1alpha1/credential.proto (package versori.credential.v1alpha1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
// import { file_validate_validate } from "../../../validate/validate_pb";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file versori/credential/v1alpha1/credential.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_versori_credential_v1alpha1_credential = /*@__PURE__*/ fileDesc("Cix2ZXJzb3JpL2NyZWRlbnRpYWwvdjFhbHBoYTEvY3JlZGVudGlhbC5wcm90bxIbdmVyc29yaS5jcmVkZW50aWFsLnYxYWxwaGExIqcECgpDcmVkZW50aWFsEgoKAmlkGAEgASgJEhcKD29yZ2FuaXNhdGlvbl9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEjoKBHR5cGUYBCABKA4yLC52ZXJzb3JpLmNyZWRlbnRpYWwudjFhbHBoYTEuQ3JlZGVudGlhbC5UeXBlEhAKCGlzX3ZhbGlkGAUgASgIEj8KBGRhdGEYBiADKAsyMS52ZXJzb3JpLmNyZWRlbnRpYWwudjFhbHBoYTEuQ3JlZGVudGlhbC5EYXRhRW50cnkSFQoNcmVkYWN0X2ZpZWxkcxgHIAMoCRIuCgpleHBpcmVzX2F0GAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIZChF2YWxpZGF0aW9uX2Vycm9ycxgJIAMoCRorCglEYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4ASLHAQoEVHlwZRILCgdEZWZhdWx0EAASDwoLT0F1dGgyVG9rZW4QARIHCgNSYXcQAhINCglCYXNpY0F1dGgQAxIQCgxPQXV0aDJDbGllbnQQBBITCg9IVFRQUmVmcmVzaERhdGEQBRIVChFIVFRQUmVmcmVzaENvbmZpZxAGEg0KCUpXVEJlYXJlchAHEhIKDkN1c3RvbUZ1bmN0aW9uEAgSFwoTT0F1dGgyUmVzb3VyY2VPd25lchAJEg8KC0NlcnRpZmljYXRlEAoiyQEKGUNyZWRlbnRpYWxEYXRhT0F1dGgyVG9rZW4SLAob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AxCB/pCBHoCEAISEgoKZXhwaXJlc19pbhgEIAEoCRIdChVyZXF1ZXN0X2hlYWRlcl9wcmVmaXgYBSABKAlCJlokdmVyc29yaS5kZXYvY3JlZGVudGlhbHMvYXBpL3YxYWxwaGExYgZwcm90bzM", [file_google_protobuf_duration, file_google_protobuf_timestamp]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message versori.credential.v1alpha1.Credential.
|
|
13
|
+
* Use `create(CredentialSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const CredentialSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the enum versori.credential.v1alpha1.Credential.Type.
|
|
18
|
+
*/
|
|
19
|
+
export const Credential_TypeSchema = /*@__PURE__*/ enumDesc(file_versori_credential_v1alpha1_credential, 0, 0);
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum versori.credential.v1alpha1.Credential.Type
|
|
22
|
+
*/
|
|
23
|
+
export const Credential_Type = /*@__PURE__*/ tsEnum(Credential_TypeSchema);
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataOAuth2Token.
|
|
26
|
+
* Use `create(CredentialDataOAuth2TokenSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export const CredentialDataOAuth2TokenSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 1);
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataRaw.
|
|
31
|
+
* Use `create(CredentialDataRawSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const CredentialDataRawSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 2);
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message versori.credential.v1alpha1.CredentialHTTPRefreshData.
|
|
36
|
+
* Use `create(CredentialHTTPRefreshDataSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export const CredentialHTTPRefreshDataSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 3);
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message versori.credential.v1alpha1.CredentialHTTPRefreshConfig.
|
|
41
|
+
* Use `create(CredentialHTTPRefreshConfigSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export const CredentialHTTPRefreshConfigSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 4);
|
|
44
|
+
/**
|
|
45
|
+
* Describes the message versori.credential.v1alpha1.CredentialCustomFunction.
|
|
46
|
+
* Use `create(CredentialCustomFunctionSchema)` to create a new message.
|
|
47
|
+
*/
|
|
48
|
+
export const CredentialCustomFunctionSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 5);
|
|
49
|
+
/**
|
|
50
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.
|
|
51
|
+
* Use `create(HTTPRefreshConfigSchema)` to create a new message.
|
|
52
|
+
*/
|
|
53
|
+
export const HTTPRefreshConfigSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 6);
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.
|
|
56
|
+
* Use `create(HTTPRefreshConfig_RequestTemplateSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export const HTTPRefreshConfig_RequestTemplateSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 6, 0);
|
|
59
|
+
/**
|
|
60
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.HeaderValue.
|
|
61
|
+
* Use `create(HTTPRefreshConfig_RequestTemplate_HeaderValueSchema)` to create a new message.
|
|
62
|
+
*/
|
|
63
|
+
export const HTTPRefreshConfig_RequestTemplate_HeaderValueSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 6, 0, 0);
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.CredentialTarget.
|
|
66
|
+
* Use `create(HTTPRefreshConfig_RequestTemplate_CredentialTargetSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const HTTPRefreshConfig_RequestTemplate_CredentialTargetSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 6, 0, 1);
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.CredentialTarget.Body.
|
|
71
|
+
* Use `create(HTTPRefreshConfig_RequestTemplate_CredentialTarget_BodySchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export const HTTPRefreshConfig_RequestTemplate_CredentialTarget_BodySchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 6, 0, 1, 0);
|
|
74
|
+
/**
|
|
75
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.RequestTemplate.CredentialTarget.Header.
|
|
76
|
+
* Use `create(HTTPRefreshConfig_RequestTemplate_CredentialTarget_HeaderSchema)` to create a new message.
|
|
77
|
+
*/
|
|
78
|
+
export const HTTPRefreshConfig_RequestTemplate_CredentialTarget_HeaderSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 6, 0, 1, 1);
|
|
79
|
+
/**
|
|
80
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.Selector.
|
|
81
|
+
* Use `create(HTTPRefreshConfig_SelectorSchema)` to create a new message.
|
|
82
|
+
*/
|
|
83
|
+
export const HTTPRefreshConfig_SelectorSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 6, 1);
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.Selector.BodySelector.
|
|
86
|
+
* Use `create(HTTPRefreshConfig_Selector_BodySelectorSchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
export const HTTPRefreshConfig_Selector_BodySelectorSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 6, 1, 0);
|
|
89
|
+
/**
|
|
90
|
+
* Describes the message versori.credential.v1alpha1.HTTPRefreshConfig.Selector.BodySelector.GvalExpression.
|
|
91
|
+
* Use `create(HTTPRefreshConfig_Selector_BodySelector_GvalExpressionSchema)` to create a new message.
|
|
92
|
+
*/
|
|
93
|
+
export const HTTPRefreshConfig_Selector_BodySelector_GvalExpressionSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 6, 1, 0, 0);
|
|
94
|
+
/**
|
|
95
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataBasicAuth.
|
|
96
|
+
* Use `create(CredentialDataBasicAuthSchema)` to create a new message.
|
|
97
|
+
*/
|
|
98
|
+
export const CredentialDataBasicAuthSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 7);
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataCertificate.
|
|
101
|
+
* Use `create(CredentialDataCertificateSchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export const CredentialDataCertificateSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 8);
|
|
104
|
+
/**
|
|
105
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataOAuth2Client.
|
|
106
|
+
* Use `create(CredentialDataOAuth2ClientSchema)` to create a new message.
|
|
107
|
+
*/
|
|
108
|
+
export const CredentialDataOAuth2ClientSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 9);
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.
|
|
111
|
+
* Use `create(CredentialDataOAuth2Client_ParameterConfigSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export const CredentialDataOAuth2Client_ParameterConfigSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 9, 0);
|
|
114
|
+
/**
|
|
115
|
+
* Describes the enum versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.Location.
|
|
116
|
+
*/
|
|
117
|
+
export const CredentialDataOAuth2Client_ParameterConfig_LocationSchema = /*@__PURE__*/ enumDesc(file_versori_credential_v1alpha1_credential, 9, 0, 0);
|
|
118
|
+
/**
|
|
119
|
+
* @generated from enum versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.Location
|
|
120
|
+
*/
|
|
121
|
+
export const CredentialDataOAuth2Client_ParameterConfig_Location = /*@__PURE__*/ tsEnum(CredentialDataOAuth2Client_ParameterConfig_LocationSchema);
|
|
122
|
+
/**
|
|
123
|
+
* Describes the enum versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.From.
|
|
124
|
+
*/
|
|
125
|
+
export const CredentialDataOAuth2Client_ParameterConfig_FromSchema = /*@__PURE__*/ enumDesc(file_versori_credential_v1alpha1_credential, 9, 0, 1);
|
|
126
|
+
/**
|
|
127
|
+
* @generated from enum versori.credential.v1alpha1.CredentialDataOAuth2Client.ParameterConfig.From
|
|
128
|
+
*/
|
|
129
|
+
export const CredentialDataOAuth2Client_ParameterConfig_From = /*@__PURE__*/ tsEnum(CredentialDataOAuth2Client_ParameterConfig_FromSchema);
|
|
130
|
+
/**
|
|
131
|
+
* Describes the enum versori.credential.v1alpha1.CredentialDataOAuth2Client.AuthStyle.
|
|
132
|
+
*/
|
|
133
|
+
export const CredentialDataOAuth2Client_AuthStyleSchema = /*@__PURE__*/ enumDesc(file_versori_credential_v1alpha1_credential, 9, 0);
|
|
134
|
+
/**
|
|
135
|
+
* @generated from enum versori.credential.v1alpha1.CredentialDataOAuth2Client.AuthStyle
|
|
136
|
+
*/
|
|
137
|
+
export const CredentialDataOAuth2Client_AuthStyle = /*@__PURE__*/ tsEnum(CredentialDataOAuth2Client_AuthStyleSchema);
|
|
138
|
+
/**
|
|
139
|
+
* Describes the enum versori.credential.v1alpha1.CredentialDataOAuth2Client.Flow.
|
|
140
|
+
*/
|
|
141
|
+
export const CredentialDataOAuth2Client_FlowSchema = /*@__PURE__*/ enumDesc(file_versori_credential_v1alpha1_credential, 9, 1);
|
|
142
|
+
/**
|
|
143
|
+
* @generated from enum versori.credential.v1alpha1.CredentialDataOAuth2Client.Flow
|
|
144
|
+
*/
|
|
145
|
+
export const CredentialDataOAuth2Client_Flow = /*@__PURE__*/ tsEnum(CredentialDataOAuth2Client_FlowSchema);
|
|
146
|
+
/**
|
|
147
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataOAuth2ResourceOwner.
|
|
148
|
+
* Use `create(CredentialDataOAuth2ResourceOwnerSchema)` to create a new message.
|
|
149
|
+
*/
|
|
150
|
+
export const CredentialDataOAuth2ResourceOwnerSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 10);
|
|
151
|
+
/**
|
|
152
|
+
* Describes the message versori.credential.v1alpha1.CredentialDataJWTBearer.
|
|
153
|
+
* Use `create(CredentialDataJWTBearerSchema)` to create a new message.
|
|
154
|
+
*/
|
|
155
|
+
export const CredentialDataJWTBearerSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_credential, 11);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internalauth.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/internalauth.ts"],"names":[],"mappings":"AACA,qBAAa,YAAY;IACrB,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,aAAa,CAAQ;IAE7B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,SAAS,CAAQ;;IAuBnB,QAAQ;CAsBjB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as dntShim from "../../../../_dnt.shims.js";
|
|
2
|
+
export class InternalAuth {
|
|
3
|
+
constructor() {
|
|
4
|
+
Object.defineProperty(this, "clientId", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true,
|
|
8
|
+
value: void 0
|
|
9
|
+
});
|
|
10
|
+
Object.defineProperty(this, "clientSecret", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: void 0
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(this, "tokenEndpoint", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value: void 0
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(this, "accessToken", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: void 0
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(this, "expiresAt", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: void 0
|
|
33
|
+
});
|
|
34
|
+
this.clientId = dntShim.Deno.env.get("RUN_CLIENT_ID") || "";
|
|
35
|
+
this.clientSecret = dntShim.Deno.env.get("RUN_CLIENT_SECRET") || "";
|
|
36
|
+
this.tokenEndpoint = dntShim.Deno.env.get("RUN_TOKEN_ENDPOINT") || "";
|
|
37
|
+
this.accessToken = '';
|
|
38
|
+
this.expiresAt = 0;
|
|
39
|
+
if (dntShim.Deno.env.get("RUN_ACCESS_TOKEN")) {
|
|
40
|
+
this.accessToken = dntShim.Deno.env.get("RUN_INTERNAL_TOKEN") || "";
|
|
41
|
+
this.expiresAt = Date.now() + 365 * 24 * 60 * 60 * 1000; // expires in 1 year
|
|
42
|
+
console.log("Using static token provided by RUN_INTERNAL_TOKEN");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (!this.clientId || !this.clientSecret || !this.tokenEndpoint) {
|
|
46
|
+
throw new Error("Missing environment variables");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async getToken() {
|
|
50
|
+
if (this.accessToken && this.expiresAt > Date.now()) {
|
|
51
|
+
return this.accessToken;
|
|
52
|
+
}
|
|
53
|
+
const encoded = btoa(`${this.clientId}:${this.clientSecret}`);
|
|
54
|
+
const response = await fetch(this.tokenEndpoint, {
|
|
55
|
+
method: 'POST',
|
|
56
|
+
headers: {
|
|
57
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
58
|
+
'Authorization': `Basic ${encoded}`
|
|
59
|
+
},
|
|
60
|
+
body: `grant_type=client_credentials`
|
|
61
|
+
});
|
|
62
|
+
const data = await response.json();
|
|
63
|
+
this.accessToken = data.access_token;
|
|
64
|
+
this.expiresAt = (Date.now() + data.expires_in * 1000) - (2 * 60 * 1000); // 2 minutes before expiration
|
|
65
|
+
return this.accessToken;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ConnectAPIClient } from './connectapi.js';
|
|
2
|
+
import { DynamicFetcher, RoundTripperFactory } from "../types.js";
|
|
3
|
+
import { VersoriCredentialClient } from './credentials/mod.js';
|
|
4
|
+
export type RunningEnvironment = 'local' | 'versori' | 'staging';
|
|
5
|
+
export declare function CreateFromEnv(): VersoriRoundTripperFactory;
|
|
6
|
+
/**
|
|
7
|
+
* VersoriRoundTripper is an implementation of the RoundTripperFactory interface for Versori connections.
|
|
8
|
+
* This is the intended implementation for when projects/services are hosted on Versori infrastructure.
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const factory = new VersoriRoundTripperFactory(connectAPIClient, tokenClient);
|
|
14
|
+
* const customFetch = await factory.create('connectionName');
|
|
15
|
+
* const response = await customFetch('https://api.example.com/data');
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class VersoriRoundTripperFactory implements RoundTripperFactory {
|
|
19
|
+
private cAPIClient;
|
|
20
|
+
private tokenClient;
|
|
21
|
+
private versoriCfg;
|
|
22
|
+
constructor(cAPIClient: ConnectAPIClient, credsClient: VersoriCredentialClient);
|
|
23
|
+
create(connName: string, fn?: typeof fetch): Promise<typeof fetch>;
|
|
24
|
+
createDynamic(templateName: string, fn: typeof fetch): Promise<DynamicFetcher>;
|
|
25
|
+
private getConnectionID;
|
|
26
|
+
private apiKeyFetcher;
|
|
27
|
+
private basicAuthFetcher;
|
|
28
|
+
private bearerTokenFetcher;
|
|
29
|
+
private oauth2Fetcher;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=roundtripper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roundtripper.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/roundtripper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAc,cAAc,EAAE,mBAAmB,EAAoB,MAAM,aAAa,CAAC;AAEhG,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjE,wBAAgB,aAAa,IAAI,0BAA0B,CAgB1D;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAClE,OAAO,CAAC,UAAU,CAAmB;IAErC,OAAO,CAAC,WAAW,CAA0B;IAE7C,OAAO,CAAC,UAAU,CAAmB;gBAEzB,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,uBAAuB;IAMxE,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAE,OAAO,KAAa,GAAG,OAAO,CAAC,OAAO,KAAK,CAAC;IAsBzE,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC;IAIpF,OAAO,CAAC,eAAe;YAWT,aAAa;YA+Cb,gBAAgB;YA0BhB,kBAAkB;YAkClB,aAAa;CAgD9B"}
|