hs-playlib 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.js +1 -1
- package/dist/src/payments/_generated_connector_client_flows.d.ts +17 -17
- package/dist/src/payments/connector_client.d.ts +8 -8
- package/dist/src/payments/connector_client.js +12 -13
- package/dist/src/payments/generated/libconnector_service_ffi.dylib +0 -0
- package/dist/src/payments/generated/proto.d.ts +47 -54
- package/dist/src/payments/generated/proto.js +104 -115
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -24,7 +24,7 @@ __exportStar(require("./payments/generated/proto"), exports);
|
|
|
24
24
|
// ---------------------------------------------------------------------------
|
|
25
25
|
// Domain namespaces — runtime values
|
|
26
26
|
// Usage: import { payments, payment_methods, configs } from '@juspay/connector-service-sdk';
|
|
27
|
-
// const
|
|
27
|
+
// const config: configs.IConnectorConfig = { ... };
|
|
28
28
|
// const client = new ConnectorClient(identity);
|
|
29
29
|
// ---------------------------------------------------------------------------
|
|
30
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,49 +2,49 @@ import { ConnectorClient as _ConnectorClientBase } from "./connector_client";
|
|
|
2
2
|
import { types } from "./generated/proto";
|
|
3
3
|
export declare class CustomerClient extends _ConnectorClientBase {
|
|
4
4
|
/** CustomerService.Create — Create customer record in the payment processor system. Stores customer details for future payment operations without re-sending personal information. */
|
|
5
|
-
create(requestMsg: types.ICustomerServiceCreateRequest, options?: types.
|
|
5
|
+
create(requestMsg: types.ICustomerServiceCreateRequest, options?: types.IRequestConfig | null): Promise<types.CustomerServiceCreateResponse>;
|
|
6
6
|
}
|
|
7
7
|
export declare class EventClient extends _ConnectorClientBase {
|
|
8
8
|
/** EventService.HandleEvent — Process webhook notifications from connectors. Translates connector events into standardized responses for asynchronous payment state updates. */
|
|
9
|
-
handleEvent(requestMsg: types.IEventServiceHandleRequest, options?: types.
|
|
9
|
+
handleEvent(requestMsg: types.IEventServiceHandleRequest, options?: types.IRequestConfig | null): Promise<types.EventServiceHandleResponse>;
|
|
10
10
|
}
|
|
11
11
|
export declare class MerchantAuthenticationClient extends _ConnectorClientBase {
|
|
12
12
|
/** MerchantAuthenticationService.CreateAccessToken — Generate short-lived connector authentication token. Provides secure credentials for connector API access without storing secrets client-side. */
|
|
13
|
-
createAccessToken(requestMsg: types.IMerchantAuthenticationServiceCreateAccessTokenRequest, options?: types.
|
|
13
|
+
createAccessToken(requestMsg: types.IMerchantAuthenticationServiceCreateAccessTokenRequest, options?: types.IRequestConfig | null): Promise<types.MerchantAuthenticationServiceCreateAccessTokenResponse>;
|
|
14
14
|
/** MerchantAuthenticationService.CreateSessionToken — Create session token for payment processing. Maintains session state across multiple payment operations for improved security and tracking. */
|
|
15
|
-
createSessionToken(requestMsg: types.IMerchantAuthenticationServiceCreateSessionTokenRequest, options?: types.
|
|
15
|
+
createSessionToken(requestMsg: types.IMerchantAuthenticationServiceCreateSessionTokenRequest, options?: types.IRequestConfig | null): Promise<types.MerchantAuthenticationServiceCreateSessionTokenResponse>;
|
|
16
16
|
}
|
|
17
17
|
export declare class PaymentMethodAuthenticationClient extends _ConnectorClientBase {
|
|
18
18
|
/** PaymentMethodAuthenticationService.Authenticate — Execute 3DS challenge or frictionless verification. Authenticates customer via bank challenge or behind-the-scenes verification for fraud prevention. */
|
|
19
|
-
authenticate(requestMsg: types.IPaymentMethodAuthenticationServiceAuthenticateRequest, options?: types.
|
|
19
|
+
authenticate(requestMsg: types.IPaymentMethodAuthenticationServiceAuthenticateRequest, options?: types.IRequestConfig | null): Promise<types.PaymentMethodAuthenticationServiceAuthenticateResponse>;
|
|
20
20
|
/** PaymentMethodAuthenticationService.PostAuthenticate — Validate authentication results with the issuing bank. Processes bank's authentication decision to determine if payment can proceed. */
|
|
21
|
-
postAuthenticate(requestMsg: types.IPaymentMethodAuthenticationServicePostAuthenticateRequest, options?: types.
|
|
21
|
+
postAuthenticate(requestMsg: types.IPaymentMethodAuthenticationServicePostAuthenticateRequest, options?: types.IRequestConfig | null): Promise<types.PaymentMethodAuthenticationServicePostAuthenticateResponse>;
|
|
22
22
|
/** PaymentMethodAuthenticationService.PreAuthenticate — Initiate 3DS flow before payment authorization. Collects device data and prepares authentication context for frictionless or challenge-based verification. */
|
|
23
|
-
preAuthenticate(requestMsg: types.IPaymentMethodAuthenticationServicePreAuthenticateRequest, options?: types.
|
|
23
|
+
preAuthenticate(requestMsg: types.IPaymentMethodAuthenticationServicePreAuthenticateRequest, options?: types.IRequestConfig | null): Promise<types.PaymentMethodAuthenticationServicePreAuthenticateResponse>;
|
|
24
24
|
}
|
|
25
25
|
export declare class PaymentMethodClient extends _ConnectorClientBase {
|
|
26
26
|
/** PaymentMethodService.Tokenize — Tokenize payment method for secure storage. Replaces raw card details with secure token for one-click payments and recurring billing. */
|
|
27
|
-
tokenize(requestMsg: types.IPaymentMethodServiceTokenizeRequest, options?: types.
|
|
27
|
+
tokenize(requestMsg: types.IPaymentMethodServiceTokenizeRequest, options?: types.IRequestConfig | null): Promise<types.PaymentMethodServiceTokenizeResponse>;
|
|
28
28
|
}
|
|
29
29
|
export declare class PaymentClient extends _ConnectorClientBase {
|
|
30
30
|
/** PaymentService.Authorize — Authorize a payment amount on a payment method. This reserves funds without capturing them, essential for verifying availability before finalizing. */
|
|
31
|
-
authorize(requestMsg: types.IPaymentServiceAuthorizeRequest, options?: types.
|
|
31
|
+
authorize(requestMsg: types.IPaymentServiceAuthorizeRequest, options?: types.IRequestConfig | null): Promise<types.PaymentServiceAuthorizeResponse>;
|
|
32
32
|
/** PaymentService.Capture — Finalize an authorized payment transaction. Transfers reserved funds from customer to merchant account, completing the payment lifecycle. */
|
|
33
|
-
capture(requestMsg: types.IPaymentServiceCaptureRequest, options?: types.
|
|
33
|
+
capture(requestMsg: types.IPaymentServiceCaptureRequest, options?: types.IRequestConfig | null): Promise<types.PaymentServiceCaptureResponse>;
|
|
34
34
|
/** PaymentService.CreateOrder — Initialize an order in the payment processor system. Sets up payment context before customer enters card details for improved authorization rates. */
|
|
35
|
-
createOrder(requestMsg: types.IPaymentServiceCreateOrderRequest, options?: types.
|
|
35
|
+
createOrder(requestMsg: types.IPaymentServiceCreateOrderRequest, options?: types.IRequestConfig | null): Promise<types.PaymentServiceCreateOrderResponse>;
|
|
36
36
|
/** PaymentService.Get — Retrieve current payment status from the payment processor. Enables synchronization between your system and payment processors for accurate state tracking. */
|
|
37
|
-
get(requestMsg: types.IPaymentServiceGetRequest, options?: types.
|
|
37
|
+
get(requestMsg: types.IPaymentServiceGetRequest, options?: types.IRequestConfig | null): Promise<types.PaymentServiceGetResponse>;
|
|
38
38
|
/** PaymentService.Refund — Initiate a refund to customer's payment method. Returns funds for returns, cancellations, or service adjustments after original payment. */
|
|
39
|
-
refund(requestMsg: types.IPaymentServiceRefundRequest, options?: types.
|
|
39
|
+
refund(requestMsg: types.IPaymentServiceRefundRequest, options?: types.IRequestConfig | null): Promise<types.RefundResponse>;
|
|
40
40
|
/** PaymentService.Reverse — Reverse a captured payment before settlement. Recovers funds after capture but before bank settlement, used for corrections or cancellations. */
|
|
41
|
-
reverse(requestMsg: types.IPaymentServiceReverseRequest, options?: types.
|
|
41
|
+
reverse(requestMsg: types.IPaymentServiceReverseRequest, options?: types.IRequestConfig | null): Promise<types.PaymentServiceReverseResponse>;
|
|
42
42
|
/** PaymentService.SetupRecurring — Setup a recurring payment instruction for future payments/ debits. This could be for SaaS subscriptions, monthly bill payments, insurance payments and similar use cases. */
|
|
43
|
-
setupRecurring(requestMsg: types.IPaymentServiceSetupRecurringRequest, options?: types.
|
|
43
|
+
setupRecurring(requestMsg: types.IPaymentServiceSetupRecurringRequest, options?: types.IRequestConfig | null): Promise<types.PaymentServiceSetupRecurringResponse>;
|
|
44
44
|
/** PaymentService.Void — Cancel an authorized payment before capture. Releases held funds back to customer, typically used when orders are cancelled or abandoned. */
|
|
45
|
-
void(requestMsg: types.IPaymentServiceVoidRequest, options?: types.
|
|
45
|
+
void(requestMsg: types.IPaymentServiceVoidRequest, options?: types.IRequestConfig | null): Promise<types.PaymentServiceVoidResponse>;
|
|
46
46
|
}
|
|
47
47
|
export declare class RecurringPaymentClient extends _ConnectorClientBase {
|
|
48
48
|
/** RecurringPaymentService.Charge — Charge using an existing stored recurring payment instruction. Processes repeat payments for subscriptions or recurring billing without collecting payment details. */
|
|
49
|
-
charge(requestMsg: types.IRecurringPaymentServiceChargeRequest, options?: types.
|
|
49
|
+
charge(requestMsg: types.IRecurringPaymentServiceChargeRequest, options?: types.IRequestConfig | null): Promise<types.RecurringPaymentServiceChargeResponse>;
|
|
50
50
|
}
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
import { types } from "./generated/proto";
|
|
15
15
|
export declare class ConnectorClient {
|
|
16
16
|
private uniffi;
|
|
17
|
-
private
|
|
17
|
+
private config;
|
|
18
18
|
private defaults;
|
|
19
19
|
private dispatcher;
|
|
20
20
|
/**
|
|
21
|
-
* Initialize the client with mandatory
|
|
21
|
+
* Initialize the client with mandatory config and optional request defaults.
|
|
22
22
|
*
|
|
23
|
-
* @param
|
|
24
|
-
* @param defaults -
|
|
23
|
+
* @param config - Immutable connector identity and environment (Connector, Auth, Environment).
|
|
24
|
+
* @param defaults - Optional per-request defaults (Http, Vault).
|
|
25
25
|
* @param libPath - optional path to the UniFFI shared library.
|
|
26
26
|
*/
|
|
27
|
-
constructor(
|
|
27
|
+
constructor(config: types.IConnectorConfig, defaults?: types.IRequestConfig, libPath?: string);
|
|
28
28
|
/**
|
|
29
|
-
* Merges request-level options with client defaults.
|
|
29
|
+
* Merges request-level options with client defaults. Environment comes from config (immutable).
|
|
30
30
|
*/
|
|
31
31
|
private _resolveConfig;
|
|
32
32
|
/**
|
|
@@ -36,10 +36,10 @@ export declare class ConnectorClient {
|
|
|
36
36
|
* @param requestMsg - Protobuf request message object.
|
|
37
37
|
* @param options - Optional ConfigOptions override (Environment, Http).
|
|
38
38
|
*/
|
|
39
|
-
_executeFlow(flow: string, requestMsg: object, options?: types.
|
|
39
|
+
_executeFlow(flow: string, requestMsg: object, options?: types.IRequestConfig | null, reqTypeName?: string, resTypeName?: string): Promise<unknown>;
|
|
40
40
|
/**
|
|
41
41
|
* Execute a single-step flow directly via FFI (no HTTP round-trip).
|
|
42
42
|
* Used for inbound flows like webhook processing where the connector sends data to us.
|
|
43
43
|
*/
|
|
44
|
-
_executeDirect(flow: string, requestMsg: object, options?: types.
|
|
44
|
+
_executeDirect(flow: string, requestMsg: object, options?: types.IRequestConfig | null, reqTypeName?: string, resTypeName?: string): Promise<unknown>;
|
|
45
45
|
}
|
|
@@ -21,32 +21,31 @@ const proto_1 = require("./generated/proto");
|
|
|
21
21
|
const v2 = proto_1.types;
|
|
22
22
|
class ConnectorClient {
|
|
23
23
|
uniffi;
|
|
24
|
-
|
|
24
|
+
config;
|
|
25
25
|
defaults;
|
|
26
26
|
dispatcher;
|
|
27
27
|
/**
|
|
28
|
-
* Initialize the client with mandatory
|
|
28
|
+
* Initialize the client with mandatory config and optional request defaults.
|
|
29
29
|
*
|
|
30
|
-
* @param
|
|
31
|
-
* @param defaults -
|
|
30
|
+
* @param config - Immutable connector identity and environment (Connector, Auth, Environment).
|
|
31
|
+
* @param defaults - Optional per-request defaults (Http, Vault).
|
|
32
32
|
* @param libPath - optional path to the UniFFI shared library.
|
|
33
33
|
*/
|
|
34
|
-
constructor(
|
|
34
|
+
constructor(config, defaults = {}, libPath) {
|
|
35
35
|
this.uniffi = new uniffi_client_1.UniffiClient(libPath);
|
|
36
|
-
this.
|
|
36
|
+
this.config = proto_1.types.ConnectorConfig.create(config);
|
|
37
37
|
this.defaults = defaults;
|
|
38
|
-
if (
|
|
39
|
-
throw new http_client_1.ConnectorError("Connector is required in
|
|
38
|
+
if (config.connector === undefined) {
|
|
39
|
+
throw new http_client_1.ConnectorError("Connector is required in ConnectorConfig", 400, "CLIENT_INITIALIZATION");
|
|
40
40
|
}
|
|
41
41
|
// Instance-level cache: create the primary connection pool at startup
|
|
42
42
|
this.dispatcher = (0, http_client_1.createDispatcher)(defaults.http || {});
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* Merges request-level options with client defaults.
|
|
45
|
+
* Merges request-level options with client defaults. Environment comes from config (immutable).
|
|
46
46
|
*/
|
|
47
47
|
_resolveConfig(overrides) {
|
|
48
48
|
const opt = overrides || {};
|
|
49
|
-
const environment = opt.environment ?? this.defaults.environment ?? proto_1.types.Environment.SANDBOX;
|
|
50
49
|
const clientHttp = this.defaults.http || {};
|
|
51
50
|
const overrideHttp = opt.http || {};
|
|
52
51
|
const http = {
|
|
@@ -58,9 +57,9 @@ class ConnectorClient {
|
|
|
58
57
|
caCert: overrideHttp.caCert ?? clientHttp.caCert,
|
|
59
58
|
};
|
|
60
59
|
const ffi = proto_1.types.FfiOptions.create({
|
|
61
|
-
environment,
|
|
62
|
-
connector: this.
|
|
63
|
-
auth: this.
|
|
60
|
+
environment: this.config.environment ?? proto_1.types.Environment.SANDBOX,
|
|
61
|
+
connector: this.config.connector,
|
|
62
|
+
auth: this.config.auth,
|
|
64
63
|
});
|
|
65
64
|
return { ffi, http };
|
|
66
65
|
}
|
|
Binary file
|
|
@@ -18392,8 +18392,8 @@ export namespace types {
|
|
|
18392
18392
|
}
|
|
18393
18393
|
|
|
18394
18394
|
/**
|
|
18395
|
-
* ConnectorAuth message with oneof containing all
|
|
18396
|
-
*
|
|
18395
|
+
* ConnectorAuth message with oneof containing all auth types.
|
|
18396
|
+
* Comment above each field (e.g. "// PAYPAL = 62") is the Connector enum value from this file;
|
|
18397
18397
|
*/
|
|
18398
18398
|
class ConnectorAuth implements IConnectorAuth {
|
|
18399
18399
|
|
|
@@ -27115,27 +27115,30 @@ export namespace types {
|
|
|
27115
27115
|
PRODUCTION = 1
|
|
27116
27116
|
}
|
|
27117
27117
|
|
|
27118
|
-
/** Properties of a
|
|
27119
|
-
interface
|
|
27118
|
+
/** Properties of a ConnectorConfig. */
|
|
27119
|
+
interface IConnectorConfig {
|
|
27120
27120
|
|
|
27121
27121
|
/** The connector to use for all requests (Immutable) */
|
|
27122
27122
|
connector?: (types.Connector|null);
|
|
27123
27123
|
|
|
27124
27124
|
/** Mandatory authentication for the connector (Immutable) */
|
|
27125
27125
|
auth?: (types.IConnectorAuth|null);
|
|
27126
|
+
|
|
27127
|
+
/** Primary deployment environment (Immutable) */
|
|
27128
|
+
environment?: (types.Environment|null);
|
|
27126
27129
|
}
|
|
27127
27130
|
|
|
27128
27131
|
/**
|
|
27129
|
-
*
|
|
27132
|
+
* Immutable parameters for the ConnectorClient.
|
|
27130
27133
|
* Passed as the FIRST parameter during client creation.
|
|
27131
27134
|
*/
|
|
27132
|
-
class
|
|
27135
|
+
class ConnectorConfig implements IConnectorConfig {
|
|
27133
27136
|
|
|
27134
27137
|
/**
|
|
27135
|
-
* Constructs a new
|
|
27138
|
+
* Constructs a new ConnectorConfig.
|
|
27136
27139
|
* @param [properties] Properties to set
|
|
27137
27140
|
*/
|
|
27138
|
-
constructor(properties?: types.
|
|
27141
|
+
constructor(properties?: types.IConnectorConfig);
|
|
27139
27142
|
|
|
27140
27143
|
/** The connector to use for all requests (Immutable) */
|
|
27141
27144
|
public connector: types.Connector;
|
|
@@ -27143,51 +27146,51 @@ export namespace types {
|
|
|
27143
27146
|
/** Mandatory authentication for the connector (Immutable) */
|
|
27144
27147
|
public auth?: (types.IConnectorAuth|null);
|
|
27145
27148
|
|
|
27149
|
+
/** Primary deployment environment (Immutable) */
|
|
27150
|
+
public environment: types.Environment;
|
|
27151
|
+
|
|
27146
27152
|
/**
|
|
27147
|
-
* Creates a new
|
|
27153
|
+
* Creates a new ConnectorConfig instance using the specified properties.
|
|
27148
27154
|
* @param [properties] Properties to set
|
|
27149
|
-
* @returns
|
|
27155
|
+
* @returns ConnectorConfig instance
|
|
27150
27156
|
*/
|
|
27151
|
-
public static create(properties?: types.
|
|
27157
|
+
public static create(properties?: types.IConnectorConfig): types.ConnectorConfig;
|
|
27152
27158
|
|
|
27153
27159
|
/**
|
|
27154
|
-
* Encodes the specified
|
|
27155
|
-
* @param message
|
|
27160
|
+
* Encodes the specified ConnectorConfig message. Does not implicitly {@link types.ConnectorConfig.verify|verify} messages.
|
|
27161
|
+
* @param message ConnectorConfig message or plain object to encode
|
|
27156
27162
|
* @param [writer] Writer to encode to
|
|
27157
27163
|
* @returns Writer
|
|
27158
27164
|
*/
|
|
27159
|
-
public static encode(message: types.
|
|
27165
|
+
public static encode(message: types.IConnectorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
27160
27166
|
|
|
27161
27167
|
/**
|
|
27162
|
-
* Decodes a
|
|
27168
|
+
* Decodes a ConnectorConfig message from the specified reader or buffer.
|
|
27163
27169
|
* @param reader Reader or buffer to decode from
|
|
27164
27170
|
* @param [length] Message length if known beforehand
|
|
27165
|
-
* @returns
|
|
27171
|
+
* @returns ConnectorConfig
|
|
27166
27172
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27167
27173
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27168
27174
|
*/
|
|
27169
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): types.
|
|
27175
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): types.ConnectorConfig;
|
|
27170
27176
|
|
|
27171
27177
|
/**
|
|
27172
|
-
* Verifies a
|
|
27178
|
+
* Verifies a ConnectorConfig message.
|
|
27173
27179
|
* @param message Plain object to verify
|
|
27174
27180
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
27175
27181
|
*/
|
|
27176
27182
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
27177
27183
|
|
|
27178
27184
|
/**
|
|
27179
|
-
* Gets the default type url for
|
|
27185
|
+
* Gets the default type url for ConnectorConfig
|
|
27180
27186
|
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
27181
27187
|
* @returns The default type url
|
|
27182
27188
|
*/
|
|
27183
27189
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
27184
27190
|
}
|
|
27185
27191
|
|
|
27186
|
-
/** Properties of a
|
|
27187
|
-
interface
|
|
27188
|
-
|
|
27189
|
-
/** Deployment environment */
|
|
27190
|
-
environment?: (types.Environment|null);
|
|
27192
|
+
/** Properties of a RequestConfig. */
|
|
27193
|
+
interface IRequestConfig {
|
|
27191
27194
|
|
|
27192
27195
|
/** HTTP and transport configuration */
|
|
27193
27196
|
http?: (types.IHttpConfig|null);
|
|
@@ -27196,21 +27199,14 @@ export namespace types {
|
|
|
27196
27199
|
vault?: (types.IVaultOptions|null);
|
|
27197
27200
|
}
|
|
27198
27201
|
|
|
27199
|
-
/**
|
|
27200
|
-
|
|
27201
|
-
* Used as the SECOND parameter in initialization (defaults)
|
|
27202
|
-
* and as the parameter for request-level overrides.
|
|
27203
|
-
*/
|
|
27204
|
-
class ConfigOptions implements IConfigOptions {
|
|
27202
|
+
/** Overridable parameters for individual SDK calls. */
|
|
27203
|
+
class RequestConfig implements IRequestConfig {
|
|
27205
27204
|
|
|
27206
27205
|
/**
|
|
27207
|
-
* Constructs a new
|
|
27206
|
+
* Constructs a new RequestConfig.
|
|
27208
27207
|
* @param [properties] Properties to set
|
|
27209
27208
|
*/
|
|
27210
|
-
constructor(properties?: types.
|
|
27211
|
-
|
|
27212
|
-
/** Deployment environment */
|
|
27213
|
-
public environment?: (types.Environment|null);
|
|
27209
|
+
constructor(properties?: types.IRequestConfig);
|
|
27214
27210
|
|
|
27215
27211
|
/** HTTP and transport configuration */
|
|
27216
27212
|
public http?: (types.IHttpConfig|null);
|
|
@@ -27219,39 +27215,39 @@ export namespace types {
|
|
|
27219
27215
|
public vault?: (types.IVaultOptions|null);
|
|
27220
27216
|
|
|
27221
27217
|
/**
|
|
27222
|
-
* Creates a new
|
|
27218
|
+
* Creates a new RequestConfig instance using the specified properties.
|
|
27223
27219
|
* @param [properties] Properties to set
|
|
27224
|
-
* @returns
|
|
27220
|
+
* @returns RequestConfig instance
|
|
27225
27221
|
*/
|
|
27226
|
-
public static create(properties?: types.
|
|
27222
|
+
public static create(properties?: types.IRequestConfig): types.RequestConfig;
|
|
27227
27223
|
|
|
27228
27224
|
/**
|
|
27229
|
-
* Encodes the specified
|
|
27230
|
-
* @param message
|
|
27225
|
+
* Encodes the specified RequestConfig message. Does not implicitly {@link types.RequestConfig.verify|verify} messages.
|
|
27226
|
+
* @param message RequestConfig message or plain object to encode
|
|
27231
27227
|
* @param [writer] Writer to encode to
|
|
27232
27228
|
* @returns Writer
|
|
27233
27229
|
*/
|
|
27234
|
-
public static encode(message: types.
|
|
27230
|
+
public static encode(message: types.IRequestConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
27235
27231
|
|
|
27236
27232
|
/**
|
|
27237
|
-
* Decodes a
|
|
27233
|
+
* Decodes a RequestConfig message from the specified reader or buffer.
|
|
27238
27234
|
* @param reader Reader or buffer to decode from
|
|
27239
27235
|
* @param [length] Message length if known beforehand
|
|
27240
|
-
* @returns
|
|
27236
|
+
* @returns RequestConfig
|
|
27241
27237
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27242
27238
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27243
27239
|
*/
|
|
27244
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): types.
|
|
27240
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): types.RequestConfig;
|
|
27245
27241
|
|
|
27246
27242
|
/**
|
|
27247
|
-
* Verifies a
|
|
27243
|
+
* Verifies a RequestConfig message.
|
|
27248
27244
|
* @param message Plain object to verify
|
|
27249
27245
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
27250
27246
|
*/
|
|
27251
27247
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
27252
27248
|
|
|
27253
27249
|
/**
|
|
27254
|
-
* Gets the default type url for
|
|
27250
|
+
* Gets the default type url for RequestConfig
|
|
27255
27251
|
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
27256
27252
|
* @returns The default type url
|
|
27257
27253
|
*/
|
|
@@ -27280,10 +27276,7 @@ export namespace types {
|
|
|
27280
27276
|
caCert?: (types.ICaCert|null);
|
|
27281
27277
|
}
|
|
27282
27278
|
|
|
27283
|
-
/**
|
|
27284
|
-
* HTTP transport configuration.
|
|
27285
|
-
* Flattened for cleaner access and merging logic across SDKs.
|
|
27286
|
-
*/
|
|
27279
|
+
/** HTTP transport configuration. */
|
|
27287
27280
|
class HttpConfig implements IHttpConfig {
|
|
27288
27281
|
|
|
27289
27282
|
/**
|
|
@@ -27545,10 +27538,10 @@ export namespace types {
|
|
|
27545
27538
|
/** Properties of a FfiOptions. */
|
|
27546
27539
|
interface IFfiOptions {
|
|
27547
27540
|
|
|
27548
|
-
/**
|
|
27541
|
+
/** Resolved environment context */
|
|
27549
27542
|
environment?: (types.Environment|null);
|
|
27550
27543
|
|
|
27551
|
-
/**
|
|
27544
|
+
/** Resolved connector context */
|
|
27552
27545
|
connector?: (types.Connector|null);
|
|
27553
27546
|
|
|
27554
27547
|
/** Credentials needed to build auth headers/payloads */
|
|
@@ -27564,10 +27557,10 @@ export namespace types {
|
|
|
27564
27557
|
*/
|
|
27565
27558
|
constructor(properties?: types.IFfiOptions);
|
|
27566
27559
|
|
|
27567
|
-
/**
|
|
27560
|
+
/** Resolved environment context */
|
|
27568
27561
|
public environment: types.Environment;
|
|
27569
27562
|
|
|
27570
|
-
/**
|
|
27563
|
+
/** Resolved connector context */
|
|
27571
27564
|
public connector: types.Connector;
|
|
27572
27565
|
|
|
27573
27566
|
/** Credentials needed to build auth headers/payloads */
|
|
@@ -54652,8 +54652,8 @@ $root.types = (function() {
|
|
|
54652
54652
|
/**
|
|
54653
54653
|
* Constructs a new ConnectorAuth.
|
|
54654
54654
|
* @memberof types
|
|
54655
|
-
* @classdesc ConnectorAuth message with oneof containing all
|
|
54656
|
-
*
|
|
54655
|
+
* @classdesc ConnectorAuth message with oneof containing all auth types.
|
|
54656
|
+
* Comment above each field (e.g. "// PAYPAL = 62") is the Connector enum value from this file;
|
|
54657
54657
|
* @implements IConnectorAuth
|
|
54658
54658
|
* @constructor
|
|
54659
54659
|
* @param {types.IConnectorAuth=} [properties] Properties to set
|
|
@@ -80657,26 +80657,27 @@ $root.types = (function() {
|
|
|
80657
80657
|
return values;
|
|
80658
80658
|
})();
|
|
80659
80659
|
|
|
80660
|
-
types.
|
|
80660
|
+
types.ConnectorConfig = (function() {
|
|
80661
80661
|
|
|
80662
80662
|
/**
|
|
80663
|
-
* Properties of a
|
|
80663
|
+
* Properties of a ConnectorConfig.
|
|
80664
80664
|
* @memberof types
|
|
80665
|
-
* @interface
|
|
80665
|
+
* @interface IConnectorConfig
|
|
80666
80666
|
* @property {types.Connector|null} [connector] The connector to use for all requests (Immutable)
|
|
80667
80667
|
* @property {types.IConnectorAuth|null} [auth] Mandatory authentication for the connector (Immutable)
|
|
80668
|
+
* @property {types.Environment|null} [environment] Primary deployment environment (Immutable)
|
|
80668
80669
|
*/
|
|
80669
80670
|
|
|
80670
80671
|
/**
|
|
80671
|
-
* Constructs a new
|
|
80672
|
+
* Constructs a new ConnectorConfig.
|
|
80672
80673
|
* @memberof types
|
|
80673
|
-
* @classdesc
|
|
80674
|
+
* @classdesc Immutable parameters for the ConnectorClient.
|
|
80674
80675
|
* Passed as the FIRST parameter during client creation.
|
|
80675
|
-
* @implements
|
|
80676
|
+
* @implements IConnectorConfig
|
|
80676
80677
|
* @constructor
|
|
80677
|
-
* @param {types.
|
|
80678
|
+
* @param {types.IConnectorConfig=} [properties] Properties to set
|
|
80678
80679
|
*/
|
|
80679
|
-
function
|
|
80680
|
+
function ConnectorConfig(properties) {
|
|
80680
80681
|
if (properties)
|
|
80681
80682
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80682
80683
|
if (properties[keys[i]] != null)
|
|
@@ -80686,65 +80687,75 @@ $root.types = (function() {
|
|
|
80686
80687
|
/**
|
|
80687
80688
|
* The connector to use for all requests (Immutable)
|
|
80688
80689
|
* @member {types.Connector} connector
|
|
80689
|
-
* @memberof types.
|
|
80690
|
+
* @memberof types.ConnectorConfig
|
|
80690
80691
|
* @instance
|
|
80691
80692
|
*/
|
|
80692
|
-
|
|
80693
|
+
ConnectorConfig.prototype.connector = 0;
|
|
80693
80694
|
|
|
80694
80695
|
/**
|
|
80695
80696
|
* Mandatory authentication for the connector (Immutable)
|
|
80696
80697
|
* @member {types.IConnectorAuth|null|undefined} auth
|
|
80697
|
-
* @memberof types.
|
|
80698
|
+
* @memberof types.ConnectorConfig
|
|
80698
80699
|
* @instance
|
|
80699
80700
|
*/
|
|
80700
|
-
|
|
80701
|
+
ConnectorConfig.prototype.auth = null;
|
|
80701
80702
|
|
|
80702
80703
|
/**
|
|
80703
|
-
*
|
|
80704
|
+
* Primary deployment environment (Immutable)
|
|
80705
|
+
* @member {types.Environment} environment
|
|
80706
|
+
* @memberof types.ConnectorConfig
|
|
80707
|
+
* @instance
|
|
80708
|
+
*/
|
|
80709
|
+
ConnectorConfig.prototype.environment = 0;
|
|
80710
|
+
|
|
80711
|
+
/**
|
|
80712
|
+
* Creates a new ConnectorConfig instance using the specified properties.
|
|
80704
80713
|
* @function create
|
|
80705
|
-
* @memberof types.
|
|
80714
|
+
* @memberof types.ConnectorConfig
|
|
80706
80715
|
* @static
|
|
80707
|
-
* @param {types.
|
|
80708
|
-
* @returns {types.
|
|
80716
|
+
* @param {types.IConnectorConfig=} [properties] Properties to set
|
|
80717
|
+
* @returns {types.ConnectorConfig} ConnectorConfig instance
|
|
80709
80718
|
*/
|
|
80710
|
-
|
|
80711
|
-
return new
|
|
80719
|
+
ConnectorConfig.create = function create(properties) {
|
|
80720
|
+
return new ConnectorConfig(properties);
|
|
80712
80721
|
};
|
|
80713
80722
|
|
|
80714
80723
|
/**
|
|
80715
|
-
* Encodes the specified
|
|
80724
|
+
* Encodes the specified ConnectorConfig message. Does not implicitly {@link types.ConnectorConfig.verify|verify} messages.
|
|
80716
80725
|
* @function encode
|
|
80717
|
-
* @memberof types.
|
|
80726
|
+
* @memberof types.ConnectorConfig
|
|
80718
80727
|
* @static
|
|
80719
|
-
* @param {types.
|
|
80728
|
+
* @param {types.IConnectorConfig} message ConnectorConfig message or plain object to encode
|
|
80720
80729
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80721
80730
|
* @returns {$protobuf.Writer} Writer
|
|
80722
80731
|
*/
|
|
80723
|
-
|
|
80732
|
+
ConnectorConfig.encode = function encode(message, writer) {
|
|
80724
80733
|
if (!writer)
|
|
80725
80734
|
writer = $Writer.create();
|
|
80726
80735
|
if (message.connector != null && Object.hasOwnProperty.call(message, "connector"))
|
|
80727
80736
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.connector);
|
|
80728
80737
|
if (message.auth != null && Object.hasOwnProperty.call(message, "auth"))
|
|
80729
80738
|
$root.types.ConnectorAuth.encode(message.auth, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
80739
|
+
if (message.environment != null && Object.hasOwnProperty.call(message, "environment"))
|
|
80740
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.environment);
|
|
80730
80741
|
return writer;
|
|
80731
80742
|
};
|
|
80732
80743
|
|
|
80733
80744
|
/**
|
|
80734
|
-
* Decodes a
|
|
80745
|
+
* Decodes a ConnectorConfig message from the specified reader or buffer.
|
|
80735
80746
|
* @function decode
|
|
80736
|
-
* @memberof types.
|
|
80747
|
+
* @memberof types.ConnectorConfig
|
|
80737
80748
|
* @static
|
|
80738
80749
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80739
80750
|
* @param {number} [length] Message length if known beforehand
|
|
80740
|
-
* @returns {types.
|
|
80751
|
+
* @returns {types.ConnectorConfig} ConnectorConfig
|
|
80741
80752
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80742
80753
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80743
80754
|
*/
|
|
80744
|
-
|
|
80755
|
+
ConnectorConfig.decode = function decode(reader, length, error) {
|
|
80745
80756
|
if (!(reader instanceof $Reader))
|
|
80746
80757
|
reader = $Reader.create(reader);
|
|
80747
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.types.
|
|
80758
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.types.ConnectorConfig();
|
|
80748
80759
|
while (reader.pos < end) {
|
|
80749
80760
|
var tag = reader.uint32();
|
|
80750
80761
|
if (tag === error)
|
|
@@ -80758,6 +80769,10 @@ $root.types = (function() {
|
|
|
80758
80769
|
message.auth = $root.types.ConnectorAuth.decode(reader, reader.uint32());
|
|
80759
80770
|
break;
|
|
80760
80771
|
}
|
|
80772
|
+
case 3: {
|
|
80773
|
+
message.environment = reader.int32();
|
|
80774
|
+
break;
|
|
80775
|
+
}
|
|
80761
80776
|
default:
|
|
80762
80777
|
reader.skipType(tag & 7);
|
|
80763
80778
|
break;
|
|
@@ -80767,14 +80782,14 @@ $root.types = (function() {
|
|
|
80767
80782
|
};
|
|
80768
80783
|
|
|
80769
80784
|
/**
|
|
80770
|
-
* Verifies a
|
|
80785
|
+
* Verifies a ConnectorConfig message.
|
|
80771
80786
|
* @function verify
|
|
80772
|
-
* @memberof types.
|
|
80787
|
+
* @memberof types.ConnectorConfig
|
|
80773
80788
|
* @static
|
|
80774
80789
|
* @param {Object.<string,*>} message Plain object to verify
|
|
80775
80790
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80776
80791
|
*/
|
|
80777
|
-
|
|
80792
|
+
ConnectorConfig.verify = function verify(message) {
|
|
80778
80793
|
if (typeof message !== "object" || message === null)
|
|
80779
80794
|
return "object expected";
|
|
80780
80795
|
if (message.connector != null && message.hasOwnProperty("connector"))
|
|
@@ -80899,162 +80914,147 @@ $root.types = (function() {
|
|
|
80899
80914
|
if (error)
|
|
80900
80915
|
return "auth." + error;
|
|
80901
80916
|
}
|
|
80917
|
+
if (message.environment != null && message.hasOwnProperty("environment"))
|
|
80918
|
+
switch (message.environment) {
|
|
80919
|
+
default:
|
|
80920
|
+
return "environment: enum value expected";
|
|
80921
|
+
case 0:
|
|
80922
|
+
case 1:
|
|
80923
|
+
break;
|
|
80924
|
+
}
|
|
80902
80925
|
return null;
|
|
80903
80926
|
};
|
|
80904
80927
|
|
|
80905
80928
|
/**
|
|
80906
|
-
* Gets the default type url for
|
|
80929
|
+
* Gets the default type url for ConnectorConfig
|
|
80907
80930
|
* @function getTypeUrl
|
|
80908
|
-
* @memberof types.
|
|
80931
|
+
* @memberof types.ConnectorConfig
|
|
80909
80932
|
* @static
|
|
80910
80933
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
80911
80934
|
* @returns {string} The default type url
|
|
80912
80935
|
*/
|
|
80913
|
-
|
|
80936
|
+
ConnectorConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
80914
80937
|
if (typeUrlPrefix === undefined) {
|
|
80915
80938
|
typeUrlPrefix = "type.googleapis.com";
|
|
80916
80939
|
}
|
|
80917
|
-
return typeUrlPrefix + "/types.
|
|
80940
|
+
return typeUrlPrefix + "/types.ConnectorConfig";
|
|
80918
80941
|
};
|
|
80919
80942
|
|
|
80920
|
-
return
|
|
80943
|
+
return ConnectorConfig;
|
|
80921
80944
|
})();
|
|
80922
80945
|
|
|
80923
|
-
types.
|
|
80946
|
+
types.RequestConfig = (function() {
|
|
80924
80947
|
|
|
80925
80948
|
/**
|
|
80926
|
-
* Properties of a
|
|
80949
|
+
* Properties of a RequestConfig.
|
|
80927
80950
|
* @memberof types
|
|
80928
|
-
* @interface
|
|
80929
|
-
* @property {types.Environment|null} [environment] Deployment environment
|
|
80951
|
+
* @interface IRequestConfig
|
|
80930
80952
|
* @property {types.IHttpConfig|null} [http] HTTP and transport configuration
|
|
80931
80953
|
* @property {types.IVaultOptions|null} [vault] Vault configuration options (Placeholder)
|
|
80932
80954
|
*/
|
|
80933
80955
|
|
|
80934
80956
|
/**
|
|
80935
|
-
* Constructs a new
|
|
80957
|
+
* Constructs a new RequestConfig.
|
|
80936
80958
|
* @memberof types
|
|
80937
|
-
* @classdesc Overridable parameters for
|
|
80938
|
-
*
|
|
80939
|
-
* and as the parameter for request-level overrides.
|
|
80940
|
-
* @implements IConfigOptions
|
|
80959
|
+
* @classdesc Overridable parameters for individual SDK calls.
|
|
80960
|
+
* @implements IRequestConfig
|
|
80941
80961
|
* @constructor
|
|
80942
|
-
* @param {types.
|
|
80962
|
+
* @param {types.IRequestConfig=} [properties] Properties to set
|
|
80943
80963
|
*/
|
|
80944
|
-
function
|
|
80964
|
+
function RequestConfig(properties) {
|
|
80945
80965
|
if (properties)
|
|
80946
80966
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80947
80967
|
if (properties[keys[i]] != null)
|
|
80948
80968
|
this[keys[i]] = properties[keys[i]];
|
|
80949
80969
|
}
|
|
80950
80970
|
|
|
80951
|
-
/**
|
|
80952
|
-
* Deployment environment
|
|
80953
|
-
* @member {types.Environment|null|undefined} environment
|
|
80954
|
-
* @memberof types.ConfigOptions
|
|
80955
|
-
* @instance
|
|
80956
|
-
*/
|
|
80957
|
-
ConfigOptions.prototype.environment = null;
|
|
80958
|
-
|
|
80959
80971
|
/**
|
|
80960
80972
|
* HTTP and transport configuration
|
|
80961
80973
|
* @member {types.IHttpConfig|null|undefined} http
|
|
80962
|
-
* @memberof types.
|
|
80974
|
+
* @memberof types.RequestConfig
|
|
80963
80975
|
* @instance
|
|
80964
80976
|
*/
|
|
80965
|
-
|
|
80977
|
+
RequestConfig.prototype.http = null;
|
|
80966
80978
|
|
|
80967
80979
|
/**
|
|
80968
80980
|
* Vault configuration options (Placeholder)
|
|
80969
80981
|
* @member {types.IVaultOptions|null|undefined} vault
|
|
80970
|
-
* @memberof types.
|
|
80982
|
+
* @memberof types.RequestConfig
|
|
80971
80983
|
* @instance
|
|
80972
80984
|
*/
|
|
80973
|
-
|
|
80985
|
+
RequestConfig.prototype.vault = null;
|
|
80974
80986
|
|
|
80975
80987
|
// OneOf field names bound to virtual getters and setters
|
|
80976
80988
|
var $oneOfFields;
|
|
80977
80989
|
|
|
80978
80990
|
// Virtual OneOf for proto3 optional field
|
|
80979
|
-
Object.defineProperty(
|
|
80980
|
-
get: $util.oneOfGetter($oneOfFields = ["environment"]),
|
|
80981
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
80982
|
-
});
|
|
80983
|
-
|
|
80984
|
-
// Virtual OneOf for proto3 optional field
|
|
80985
|
-
Object.defineProperty(ConfigOptions.prototype, "_http", {
|
|
80991
|
+
Object.defineProperty(RequestConfig.prototype, "_http", {
|
|
80986
80992
|
get: $util.oneOfGetter($oneOfFields = ["http"]),
|
|
80987
80993
|
set: $util.oneOfSetter($oneOfFields)
|
|
80988
80994
|
});
|
|
80989
80995
|
|
|
80990
80996
|
// Virtual OneOf for proto3 optional field
|
|
80991
|
-
Object.defineProperty(
|
|
80997
|
+
Object.defineProperty(RequestConfig.prototype, "_vault", {
|
|
80992
80998
|
get: $util.oneOfGetter($oneOfFields = ["vault"]),
|
|
80993
80999
|
set: $util.oneOfSetter($oneOfFields)
|
|
80994
81000
|
});
|
|
80995
81001
|
|
|
80996
81002
|
/**
|
|
80997
|
-
* Creates a new
|
|
81003
|
+
* Creates a new RequestConfig instance using the specified properties.
|
|
80998
81004
|
* @function create
|
|
80999
|
-
* @memberof types.
|
|
81005
|
+
* @memberof types.RequestConfig
|
|
81000
81006
|
* @static
|
|
81001
|
-
* @param {types.
|
|
81002
|
-
* @returns {types.
|
|
81007
|
+
* @param {types.IRequestConfig=} [properties] Properties to set
|
|
81008
|
+
* @returns {types.RequestConfig} RequestConfig instance
|
|
81003
81009
|
*/
|
|
81004
|
-
|
|
81005
|
-
return new
|
|
81010
|
+
RequestConfig.create = function create(properties) {
|
|
81011
|
+
return new RequestConfig(properties);
|
|
81006
81012
|
};
|
|
81007
81013
|
|
|
81008
81014
|
/**
|
|
81009
|
-
* Encodes the specified
|
|
81015
|
+
* Encodes the specified RequestConfig message. Does not implicitly {@link types.RequestConfig.verify|verify} messages.
|
|
81010
81016
|
* @function encode
|
|
81011
|
-
* @memberof types.
|
|
81017
|
+
* @memberof types.RequestConfig
|
|
81012
81018
|
* @static
|
|
81013
|
-
* @param {types.
|
|
81019
|
+
* @param {types.IRequestConfig} message RequestConfig message or plain object to encode
|
|
81014
81020
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81015
81021
|
* @returns {$protobuf.Writer} Writer
|
|
81016
81022
|
*/
|
|
81017
|
-
|
|
81023
|
+
RequestConfig.encode = function encode(message, writer) {
|
|
81018
81024
|
if (!writer)
|
|
81019
81025
|
writer = $Writer.create();
|
|
81020
|
-
if (message.environment != null && Object.hasOwnProperty.call(message, "environment"))
|
|
81021
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.environment);
|
|
81022
81026
|
if (message.http != null && Object.hasOwnProperty.call(message, "http"))
|
|
81023
|
-
$root.types.HttpConfig.encode(message.http, writer.uint32(/* id
|
|
81027
|
+
$root.types.HttpConfig.encode(message.http, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
81024
81028
|
if (message.vault != null && Object.hasOwnProperty.call(message, "vault"))
|
|
81025
|
-
$root.types.VaultOptions.encode(message.vault, writer.uint32(/* id
|
|
81029
|
+
$root.types.VaultOptions.encode(message.vault, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
81026
81030
|
return writer;
|
|
81027
81031
|
};
|
|
81028
81032
|
|
|
81029
81033
|
/**
|
|
81030
|
-
* Decodes a
|
|
81034
|
+
* Decodes a RequestConfig message from the specified reader or buffer.
|
|
81031
81035
|
* @function decode
|
|
81032
|
-
* @memberof types.
|
|
81036
|
+
* @memberof types.RequestConfig
|
|
81033
81037
|
* @static
|
|
81034
81038
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81035
81039
|
* @param {number} [length] Message length if known beforehand
|
|
81036
|
-
* @returns {types.
|
|
81040
|
+
* @returns {types.RequestConfig} RequestConfig
|
|
81037
81041
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81038
81042
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81039
81043
|
*/
|
|
81040
|
-
|
|
81044
|
+
RequestConfig.decode = function decode(reader, length, error) {
|
|
81041
81045
|
if (!(reader instanceof $Reader))
|
|
81042
81046
|
reader = $Reader.create(reader);
|
|
81043
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.types.
|
|
81047
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.types.RequestConfig();
|
|
81044
81048
|
while (reader.pos < end) {
|
|
81045
81049
|
var tag = reader.uint32();
|
|
81046
81050
|
if (tag === error)
|
|
81047
81051
|
break;
|
|
81048
81052
|
switch (tag >>> 3) {
|
|
81049
81053
|
case 1: {
|
|
81050
|
-
message.environment = reader.int32();
|
|
81051
|
-
break;
|
|
81052
|
-
}
|
|
81053
|
-
case 2: {
|
|
81054
81054
|
message.http = $root.types.HttpConfig.decode(reader, reader.uint32());
|
|
81055
81055
|
break;
|
|
81056
81056
|
}
|
|
81057
|
-
case
|
|
81057
|
+
case 2: {
|
|
81058
81058
|
message.vault = $root.types.VaultOptions.decode(reader, reader.uint32());
|
|
81059
81059
|
break;
|
|
81060
81060
|
}
|
|
@@ -81067,27 +81067,17 @@ $root.types = (function() {
|
|
|
81067
81067
|
};
|
|
81068
81068
|
|
|
81069
81069
|
/**
|
|
81070
|
-
* Verifies a
|
|
81070
|
+
* Verifies a RequestConfig message.
|
|
81071
81071
|
* @function verify
|
|
81072
|
-
* @memberof types.
|
|
81072
|
+
* @memberof types.RequestConfig
|
|
81073
81073
|
* @static
|
|
81074
81074
|
* @param {Object.<string,*>} message Plain object to verify
|
|
81075
81075
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
81076
81076
|
*/
|
|
81077
|
-
|
|
81077
|
+
RequestConfig.verify = function verify(message) {
|
|
81078
81078
|
if (typeof message !== "object" || message === null)
|
|
81079
81079
|
return "object expected";
|
|
81080
81080
|
var properties = {};
|
|
81081
|
-
if (message.environment != null && message.hasOwnProperty("environment")) {
|
|
81082
|
-
properties._environment = 1;
|
|
81083
|
-
switch (message.environment) {
|
|
81084
|
-
default:
|
|
81085
|
-
return "environment: enum value expected";
|
|
81086
|
-
case 0:
|
|
81087
|
-
case 1:
|
|
81088
|
-
break;
|
|
81089
|
-
}
|
|
81090
|
-
}
|
|
81091
81081
|
if (message.http != null && message.hasOwnProperty("http")) {
|
|
81092
81082
|
properties._http = 1;
|
|
81093
81083
|
{
|
|
@@ -81108,21 +81098,21 @@ $root.types = (function() {
|
|
|
81108
81098
|
};
|
|
81109
81099
|
|
|
81110
81100
|
/**
|
|
81111
|
-
* Gets the default type url for
|
|
81101
|
+
* Gets the default type url for RequestConfig
|
|
81112
81102
|
* @function getTypeUrl
|
|
81113
|
-
* @memberof types.
|
|
81103
|
+
* @memberof types.RequestConfig
|
|
81114
81104
|
* @static
|
|
81115
81105
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
81116
81106
|
* @returns {string} The default type url
|
|
81117
81107
|
*/
|
|
81118
|
-
|
|
81108
|
+
RequestConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
81119
81109
|
if (typeUrlPrefix === undefined) {
|
|
81120
81110
|
typeUrlPrefix = "type.googleapis.com";
|
|
81121
81111
|
}
|
|
81122
|
-
return typeUrlPrefix + "/types.
|
|
81112
|
+
return typeUrlPrefix + "/types.RequestConfig";
|
|
81123
81113
|
};
|
|
81124
81114
|
|
|
81125
|
-
return
|
|
81115
|
+
return RequestConfig;
|
|
81126
81116
|
})();
|
|
81127
81117
|
|
|
81128
81118
|
types.HttpConfig = (function() {
|
|
@@ -81143,7 +81133,6 @@ $root.types = (function() {
|
|
|
81143
81133
|
* Constructs a new HttpConfig.
|
|
81144
81134
|
* @memberof types
|
|
81145
81135
|
* @classdesc HTTP transport configuration.
|
|
81146
|
-
* Flattened for cleaner access and merging logic across SDKs.
|
|
81147
81136
|
* @implements IHttpConfig
|
|
81148
81137
|
* @constructor
|
|
81149
81138
|
* @param {types.IHttpConfig=} [properties] Properties to set
|
|
@@ -81877,8 +81866,8 @@ $root.types = (function() {
|
|
|
81877
81866
|
* Properties of a FfiOptions.
|
|
81878
81867
|
* @memberof types
|
|
81879
81868
|
* @interface IFfiOptions
|
|
81880
|
-
* @property {types.Environment|null} [environment]
|
|
81881
|
-
* @property {types.Connector|null} [connector]
|
|
81869
|
+
* @property {types.Environment|null} [environment] Resolved environment context
|
|
81870
|
+
* @property {types.Connector|null} [connector] Resolved connector context
|
|
81882
81871
|
* @property {types.IConnectorAuth|null} [auth] Credentials needed to build auth headers/payloads
|
|
81883
81872
|
*/
|
|
81884
81873
|
|
|
@@ -81898,7 +81887,7 @@ $root.types = (function() {
|
|
|
81898
81887
|
}
|
|
81899
81888
|
|
|
81900
81889
|
/**
|
|
81901
|
-
*
|
|
81890
|
+
* Resolved environment context
|
|
81902
81891
|
* @member {types.Environment} environment
|
|
81903
81892
|
* @memberof types.FfiOptions
|
|
81904
81893
|
* @instance
|
|
@@ -81906,7 +81895,7 @@ $root.types = (function() {
|
|
|
81906
81895
|
FfiOptions.prototype.environment = 0;
|
|
81907
81896
|
|
|
81908
81897
|
/**
|
|
81909
|
-
*
|
|
81898
|
+
* Resolved connector context
|
|
81910
81899
|
* @member {types.Connector} connector
|
|
81911
81900
|
* @memberof types.FfiOptions
|
|
81912
81901
|
* @instance
|