@versori/run 0.2.0-alpha.9 → 0.2.1-alpha.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/{script/deps/jsr.io/@std/bytes/1.0.5 → esm/deps/jsr.io/@std/bytes/1.0.6}/_types.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/bytes/1.0.5 → esm/deps/jsr.io/@std/bytes/1.0.6}/concat.d.ts +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/copy.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/fmt/{1.0.7 → 1.0.8}/colors.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/0.225.2/buffer.js +1 -1
- package/esm/deps/jsr.io/@std/io/0.225.2/read_all.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/base_handler.d.ts +21 -0
- package/esm/deps/jsr.io/@std/log/0.224.14/base_handler.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/src/context/Context.d.ts +17 -24
- package/esm/src/context/Context.d.ts.map +1 -1
- package/esm/src/context/Context.js +23 -8
- package/esm/src/context/ContextProvider.d.ts +6 -4
- package/esm/src/context/ContextProvider.d.ts.map +1 -1
- package/esm/src/context/ContextProvider.js +9 -2
- package/esm/src/dsl/http/default.d.ts +2 -0
- package/esm/src/dsl/http/default.d.ts.map +1 -1
- package/esm/src/dsl/http/default.js +10 -0
- package/esm/src/dsl/http/versori/contextcredentials.d.ts +10 -0
- package/esm/src/dsl/http/versori/contextcredentials.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/contextcredentials.js +1 -0
- package/esm/src/dsl/http/versori/credentials/client.d.ts +3 -0
- package/esm/src/dsl/http/versori/credentials/client.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/credentials/client.js +11 -3
- package/esm/src/dsl/http/versori/credentials/credentials.d.ts +41 -2
- package/esm/src/dsl/http/versori/credentials/credentials.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/credentials/credentials.js +7 -9
- package/esm/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts +31 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/common_pb.js +31 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts +84 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.js +128 -0
- package/esm/src/dsl/http/versori/roundtripper.d.ts +14 -7
- package/esm/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/roundtripper.js +132 -72
- package/esm/src/dsl/tasks/HttpTask.d.ts +13 -4
- package/esm/src/dsl/tasks/HttpTask.d.ts.map +1 -1
- package/esm/src/dsl/tasks/HttpTask.js +42 -21
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/memory/MemoryInterpreter.js +11 -3
- package/esm/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/schedule.js +1 -1
- package/esm/src/interpreter/memory/compilers/webhook.js +1 -1
- package/esm/src/kv/nats/NatsKeyValueProvider.d.ts +1 -0
- package/esm/src/kv/nats/NatsKeyValueProvider.d.ts.map +1 -1
- package/esm/src/observability/logging/ConsoleLogger.d.ts +1 -0
- package/esm/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
- package/esm/src/observability/logging/ConsoleLogger.js +124 -30
- package/package.json +3 -2
- package/{esm/deps/jsr.io/@std/bytes/1.0.5 → script/deps/jsr.io/@std/bytes/1.0.6}/_types.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/bytes/1.0.5 → script/deps/jsr.io/@std/bytes/1.0.6}/concat.d.ts +1 -1
- package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/copy.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/fmt/{1.0.7 → 1.0.8}/colors.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/0.225.2/buffer.js +1 -1
- package/script/deps/jsr.io/@std/io/0.225.2/read_all.js +1 -1
- package/script/deps/jsr.io/@std/log/0.224.14/base_handler.d.ts +21 -0
- package/script/deps/jsr.io/@std/log/0.224.14/base_handler.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/script/src/context/Context.d.ts +17 -24
- package/script/src/context/Context.d.ts.map +1 -1
- package/script/src/context/Context.js +23 -8
- package/script/src/context/ContextProvider.d.ts +6 -4
- package/script/src/context/ContextProvider.d.ts.map +1 -1
- package/script/src/context/ContextProvider.js +9 -2
- package/script/src/dsl/http/default.d.ts +2 -0
- package/script/src/dsl/http/default.d.ts.map +1 -1
- package/script/src/dsl/http/default.js +10 -0
- package/script/src/dsl/http/versori/contextcredentials.d.ts +10 -0
- package/script/src/dsl/http/versori/contextcredentials.d.ts.map +1 -0
- package/script/src/dsl/http/versori/contextcredentials.js +2 -0
- package/script/src/dsl/http/versori/credentials/client.d.ts +3 -0
- package/script/src/dsl/http/versori/credentials/client.d.ts.map +1 -1
- package/script/src/dsl/http/versori/credentials/client.js +10 -0
- package/script/src/dsl/http/versori/credentials/credentials.d.ts +41 -2
- package/script/src/dsl/http/versori/credentials/credentials.d.ts.map +1 -1
- package/script/src/dsl/http/versori/credentials/credentials.js +8 -9
- package/script/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts +31 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/common_pb.js +34 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts +84 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.js +131 -0
- package/script/src/dsl/http/versori/roundtripper.d.ts +14 -7
- package/script/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
- package/script/src/dsl/http/versori/roundtripper.js +137 -77
- package/script/src/dsl/tasks/HttpTask.d.ts +13 -4
- package/script/src/dsl/tasks/HttpTask.d.ts.map +1 -1
- package/script/src/dsl/tasks/HttpTask.js +42 -21
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/memory/MemoryInterpreter.js +10 -2
- package/script/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/schedule.js +1 -1
- package/script/src/interpreter/memory/compilers/webhook.js +1 -1
- package/script/src/kv/nats/NatsKeyValueProvider.d.ts +1 -0
- package/script/src/kv/nats/NatsKeyValueProvider.d.ts.map +1 -1
- package/script/src/observability/logging/ConsoleLogger.d.ts +1 -0
- package/script/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
- package/script/src/observability/logging/ConsoleLogger.js +124 -30
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/copy.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/copy.js +0 -0
- /package/esm/deps/jsr.io/@std/fmt/{1.0.7 → 1.0.8}/colors.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/fmt/{1.0.7 → 1.0.8}/colors.js +0 -0
- /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.js +0 -0
- /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.js +0 -0
- /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/copy.d.ts +0 -0
- /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/copy.js +0 -0
- /package/script/deps/jsr.io/@std/fmt/{1.0.7 → 1.0.8}/colors.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fmt/{1.0.7 → 1.0.8}/colors.js +0 -0
package/{script/deps/jsr.io/@std/bytes/1.0.5 → esm/deps/jsr.io/@std/bytes/1.0.6}/_types.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
|
1
|
+
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.6/_types.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
package/{script/deps/jsr.io/@std/bytes/1.0.5 → esm/deps/jsr.io/@std/bytes/1.0.6}/concat.d.ts
RENAMED
|
@@ -17,5 +17,5 @@ export type { Uint8Array_ };
|
|
|
17
17
|
* assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5]));
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export declare function concat(buffers: Uint8Array[]): Uint8Array_;
|
|
20
|
+
export declare function concat(buffers: readonly Uint8Array[]): Uint8Array_;
|
|
21
21
|
//# sourceMappingURL=concat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
|
1
|
+
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.6/concat.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,GAAG,WAAW,CAalE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.6/copy.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,MAAM,CAQzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fmt/1.0.
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fmt/1.0.8/colors.ts"],"names":[],"mappings":"AAoEA,qEAAqE;AACrE,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;CACX;AAID;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,QAM7C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AA0BD;;;;;;;;;;;;G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,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAuB9D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAuBhE;AAWD;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
13
13
|
};
|
|
14
14
|
var _Buffer_instances, _Buffer_buf, _Buffer_off, _Buffer_tryGrowByReslice, _Buffer_reslice, _Buffer_grow;
|
|
15
|
-
import { copy } from "../../bytes/1.0.
|
|
15
|
+
import { copy } from "../../bytes/1.0.6/copy.js";
|
|
16
16
|
// MIN_READ is the minimum ArrayBuffer size passed to a read call by
|
|
17
17
|
// buffer.ReadFrom. As long as the Buffer has at least MIN_READ bytes beyond
|
|
18
18
|
// what is required to hold the contents of r, readFrom() will not grow the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { concat } from "../../bytes/1.0.
|
|
3
|
+
import { concat } from "../../bytes/1.0.6/concat.js";
|
|
4
4
|
import { DEFAULT_CHUNK_SIZE } from "./_constants.js";
|
|
5
5
|
/**
|
|
6
6
|
* Read {@linkcode Reader} `r` until EOF (`null`) and resolve to the content as
|
|
@@ -301,5 +301,26 @@ export declare abstract class BaseHandler {
|
|
|
301
301
|
* ```
|
|
302
302
|
*/
|
|
303
303
|
destroy(): void;
|
|
304
|
+
/**
|
|
305
|
+
* Automatically disposes of the handler when instantiated with the `using`
|
|
306
|
+
* keyword by calling the {@linkcode BaseHandler.destroy} method.
|
|
307
|
+
*
|
|
308
|
+
* @example Usage
|
|
309
|
+
* ```ts
|
|
310
|
+
* import { BaseHandler } from "@std/log/base-handler";
|
|
311
|
+
* import { LogRecord } from "@std/log/logger";
|
|
312
|
+
* import { assertInstanceOf } from "@std/assert/instance-of";
|
|
313
|
+
*
|
|
314
|
+
* class MyHandler extends BaseHandler {
|
|
315
|
+
* log(msg: string) {
|
|
316
|
+
* console.log(msg);
|
|
317
|
+
* }
|
|
318
|
+
* }
|
|
319
|
+
*
|
|
320
|
+
* using handler = new MyHandler("INFO");
|
|
321
|
+
* assertInstanceOf(handler, BaseHandler);
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
[Symbol.dispose](): void;
|
|
304
325
|
}
|
|
305
326
|
//# sourceMappingURL=base_handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base_handler.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/log/0.224.14/base_handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,QAAQ,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,SAAS,KAAK,MAAM,CAAC;AAIjE,2CAA2C;AAC3C,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,8BAAsB,WAAW;;IAG/B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH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B;IACjC,2CAA2C;IAC3C,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,8BAAsB,WAAW;;IAG/B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,SAAS,EAAE,iBAAiB,CAAC;IAE7B;;;;;OAKG;gBAED,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,kBAAkB;IAQ9B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,KAAK,IAAI,QAAQ,CAEpB;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,IAAI,KAAK,CAAC,KAAK,EAAE,QAAQ,EAGxB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,SAAS,CAAC,SAAS,EAAE,SAAS,EAGjC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,SAAS,EAAE,SAAS;IAO3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;IAIpC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,KAAK;IAEL;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO;IAEP;;;;;;;;;;;;;;;;;;;OAmBG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC;CAGjB"}
|
|
@@ -13,7 +13,7 @@ var _ConsoleHandler_useColors;
|
|
|
13
13
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
14
14
|
// This module is browser compatible.
|
|
15
15
|
import { LogLevels } from "./levels.js";
|
|
16
|
-
import { blue, bold, red, yellow } from "../../fmt/1.0.
|
|
16
|
+
import { blue, bold, red, yellow } from "../../fmt/1.0.8/colors.js";
|
|
17
17
|
import { BaseHandler } from "./base_handler.js";
|
|
18
18
|
function applyColors(msg, level) {
|
|
19
19
|
switch (level) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Activation } from '../dsl/http/types.js';
|
|
2
2
|
import { KeyValue, KeyValueProvider, KeyValueScope } from '../kv/KeyValue.js';
|
|
3
3
|
import { Logger } from '../observability/logging/Logger.js';
|
|
4
|
+
import { Credentials } from '../dsl/http/versori/contextcredentials.js';
|
|
4
5
|
export type OnSuccessFn = (ctx: Context<any>) => void;
|
|
5
6
|
export type OnErrorFn = (ctx: Context<any>) => void;
|
|
6
7
|
export type ContextOptions = {
|
|
@@ -9,43 +10,35 @@ export type ContextOptions = {
|
|
|
9
10
|
onError?: OnErrorFn;
|
|
10
11
|
};
|
|
11
12
|
export interface Context<D> {
|
|
12
|
-
log: Logger;
|
|
13
|
-
executionId: string;
|
|
14
|
-
startTime: Date;
|
|
13
|
+
readonly log: Logger;
|
|
14
|
+
readonly executionId: string;
|
|
15
|
+
readonly startTime: Date;
|
|
16
|
+
readonly data: D;
|
|
15
17
|
activation?: Activation;
|
|
16
|
-
data: D;
|
|
17
18
|
/**
|
|
18
19
|
* Opens a key value store for the given scope, defaulting to ':project:' if not provided.
|
|
19
20
|
* @param scope
|
|
20
21
|
*/
|
|
21
22
|
openKv(scope?: KeyValueScope): KeyValue;
|
|
23
|
+
credentials(): Credentials;
|
|
22
24
|
}
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
export declare class ContextImpl<D, Index = void> implements Context<D> {
|
|
26
|
+
#private;
|
|
27
|
+
readonly log: Logger;
|
|
28
|
+
readonly executionId: string;
|
|
29
|
+
readonly startTime: Date;
|
|
30
|
+
readonly data: D;
|
|
27
31
|
idx: Index;
|
|
28
|
-
readonly activation: Activation | undefined;
|
|
29
32
|
readonly kvp: KeyValueProvider;
|
|
30
33
|
readonly options: ContextOptions;
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
export declare class ContextImpl<D, Index = void> implements InternalContext<D, Index> {
|
|
34
|
-
log: Logger;
|
|
35
|
-
executionId: string;
|
|
36
|
-
startTime: Date;
|
|
37
|
-
data: D;
|
|
38
|
-
idx: Index;
|
|
39
|
-
readonly kvp: KeyValueProvider;
|
|
40
|
-
readonly options: ContextOptions;
|
|
41
|
-
constructor(log: Logger, kvp: KeyValueProvider, executionId: string, startTime: Date, data: D, options?: ContextOptions);
|
|
34
|
+
constructor(log: Logger, kvp: KeyValueProvider, creds: Credentials, executionId: string, startTime: Date, data: D, options?: ContextOptions);
|
|
42
35
|
get activation(): Activation | undefined;
|
|
43
|
-
setIndex(idx: number):
|
|
44
|
-
withActivation(activation: Activation):
|
|
45
|
-
withData<D2>(data: D2):
|
|
36
|
+
setIndex(idx: number): ContextImpl<D, number>;
|
|
37
|
+
withActivation(activation: Activation): ContextImpl<D, Index>;
|
|
38
|
+
withData<D2>(data: D2): ContextImpl<D2, Index>;
|
|
46
39
|
openKv(scope?: KeyValueScope): KeyValue;
|
|
40
|
+
credentials(): Credentials;
|
|
47
41
|
destroy(scope: KeyValueScope): Promise<void>;
|
|
48
42
|
[Symbol.toPrimitive](): Record<string, unknown>;
|
|
49
|
-
toJSON(): Record<string, unknown>;
|
|
50
43
|
}
|
|
51
44
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/src/context/Context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../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,EAAE,KAAK,CAAC;IAEX,QAAQ,CAAC,GAAG,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;gBAI7B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,gBAAgB,EACrB,KAAK,EAAE,WAAW,EAClB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,CAAC,EACP,OAAO,GAAE,cAAmB;IAmBhC,IAAI,UAAU,IAAI,UAAU,GAAG,SAAS,CAEvC;IAED,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;IAe7C,cAAc,CAAC,UAAU,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC;IAoB7D,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,WAAW,CAAC,EAAE,EAAE,KAAK,CAAC;IAY9C,MAAM,CAAC,KAAK,GAAE,aAA2B,GAAG,QAAQ;IAepD,WAAW,IAAI,WAAW;IAI1B,OAAO,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAe5C,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAQlD"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _ContextImpl_creds;
|
|
1
13
|
export class ContextImpl {
|
|
2
|
-
constructor(log, kvp, executionId, startTime, data, options = {}) {
|
|
14
|
+
constructor(log, kvp, creds, executionId, startTime, data, options = {}) {
|
|
3
15
|
Object.defineProperty(this, "log", {
|
|
4
16
|
enumerable: true,
|
|
5
17
|
configurable: true,
|
|
@@ -42,8 +54,10 @@ export class ContextImpl {
|
|
|
42
54
|
writable: true,
|
|
43
55
|
value: void 0
|
|
44
56
|
});
|
|
57
|
+
_ContextImpl_creds.set(this, void 0);
|
|
45
58
|
this.log = log;
|
|
46
59
|
this.executionId = executionId;
|
|
60
|
+
__classPrivateFieldSet(this, _ContextImpl_creds, creds, "f");
|
|
47
61
|
this.startTime = startTime;
|
|
48
62
|
this.data = data;
|
|
49
63
|
this.idx = void 0;
|
|
@@ -53,12 +67,13 @@ export class ContextImpl {
|
|
|
53
67
|
// so that destructuring the context object doesn't break the binding of the methods to the
|
|
54
68
|
// correct instance.
|
|
55
69
|
this.openKv = this.openKv.bind(this);
|
|
70
|
+
this.credentials = this.credentials.bind(this);
|
|
56
71
|
}
|
|
57
72
|
get activation() {
|
|
58
73
|
return this.options.activation;
|
|
59
74
|
}
|
|
60
75
|
setIndex(idx) {
|
|
61
|
-
const next = new ContextImpl(this.log, this.kvp, this.executionId, this.startTime, this.data, this.options);
|
|
76
|
+
const next = new ContextImpl(this.log, this.kvp, __classPrivateFieldGet(this, _ContextImpl_creds, "f"), this.executionId, this.startTime, this.data, this.options);
|
|
62
77
|
next.idx = idx;
|
|
63
78
|
return next;
|
|
64
79
|
}
|
|
@@ -67,13 +82,13 @@ export class ContextImpl {
|
|
|
67
82
|
if (this.activation) {
|
|
68
83
|
throw new Error('Activation is already set');
|
|
69
84
|
}
|
|
70
|
-
return new ContextImpl(this.log, this.kvp, this.executionId, this.startTime, this.data, {
|
|
85
|
+
return new ContextImpl(this.log, this.kvp, __classPrivateFieldGet(this, _ContextImpl_creds, "f"), this.executionId, this.startTime, this.data, {
|
|
71
86
|
...this.options,
|
|
72
87
|
activation,
|
|
73
88
|
});
|
|
74
89
|
}
|
|
75
90
|
withData(data) {
|
|
76
|
-
return new ContextImpl(this.log, this.kvp, this.executionId, this.startTime, data, this.options);
|
|
91
|
+
return new ContextImpl(this.log, this.kvp, __classPrivateFieldGet(this, _ContextImpl_creds, "f"), this.executionId, this.startTime, data, this.options);
|
|
77
92
|
}
|
|
78
93
|
openKv(scope = ':project:') {
|
|
79
94
|
if (scope === ':execution:') {
|
|
@@ -88,6 +103,9 @@ export class ContextImpl {
|
|
|
88
103
|
activationId: this.activation?.id,
|
|
89
104
|
});
|
|
90
105
|
}
|
|
106
|
+
credentials() {
|
|
107
|
+
return __classPrivateFieldGet(this, _ContextImpl_creds, "f");
|
|
108
|
+
}
|
|
91
109
|
destroy(scope) {
|
|
92
110
|
if (scope === ':execution:') {
|
|
93
111
|
return this.kvp.destroy({
|
|
@@ -101,7 +119,7 @@ export class ContextImpl {
|
|
|
101
119
|
activationId: this.activation?.id,
|
|
102
120
|
});
|
|
103
121
|
}
|
|
104
|
-
[Symbol.toPrimitive]() {
|
|
122
|
+
[(_ContextImpl_creds = new WeakMap(), Symbol.toPrimitive)]() {
|
|
105
123
|
return {
|
|
106
124
|
startTime: this.startTime,
|
|
107
125
|
executionId: this.executionId,
|
|
@@ -109,7 +127,4 @@ export class ContextImpl {
|
|
|
109
127
|
data: this.data,
|
|
110
128
|
};
|
|
111
129
|
}
|
|
112
|
-
toJSON() {
|
|
113
|
-
return this[Symbol.toPrimitive]();
|
|
114
|
-
}
|
|
115
130
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { KeyValueProvider } from '../kv/KeyValue.js';
|
|
2
2
|
import { Logger } from '../observability/logging/Logger.js';
|
|
3
|
-
import { Context,
|
|
3
|
+
import { Context, ContextImpl, ContextOptions } from './Context.js';
|
|
4
|
+
import { Credentials } from '../dsl/http/versori/contextcredentials.js';
|
|
4
5
|
export interface ContextProvider {
|
|
5
|
-
create<D>(data: D, options?: ContextOptions):
|
|
6
|
+
create<D>(data: D, options?: ContextOptions): ContextImpl<D, void>;
|
|
6
7
|
destroy(ctx: Context<any>): Promise<void>;
|
|
7
8
|
}
|
|
8
9
|
export declare class ContextProviderImpl implements ContextProvider {
|
|
9
10
|
log: Logger;
|
|
10
11
|
kvp: KeyValueProvider;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
creds: Credentials;
|
|
13
|
+
constructor(log: Logger, kvp: KeyValueProvider, creds: Credentials);
|
|
14
|
+
create<D>(data: D, options?: ContextOptions): ContextImpl<D>;
|
|
13
15
|
destroy(ctx: Context<any>): Promise<void>;
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=ContextProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextProvider.d.ts","sourceRoot":"","sources":["../../../src/src/context/ContextProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"ContextProvider.d.ts","sourceRoot":"","sources":["../../../src/src/context/ContextProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C;AAED,qBAAa,mBAAoB,YAAW,eAAe;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,gBAAgB,CAAC;IACtB,KAAK,EAAE,WAAW,CAAC;gBAEP,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE,WAAW;IAMlE,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,GAAE,cAAmB,GAAG,WAAW,CAAC,CAAC,CAAC;IAehE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAM5C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ulid } from '../../deps/jsr.io/@std/ulid/1.0.0/mod.js';
|
|
2
2
|
import { ContextImpl } from './Context.js';
|
|
3
3
|
export class ContextProviderImpl {
|
|
4
|
-
constructor(log, kvp) {
|
|
4
|
+
constructor(log, kvp, creds) {
|
|
5
5
|
Object.defineProperty(this, "log", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
configurable: true,
|
|
@@ -14,8 +14,15 @@ export class ContextProviderImpl {
|
|
|
14
14
|
writable: true,
|
|
15
15
|
value: void 0
|
|
16
16
|
});
|
|
17
|
+
Object.defineProperty(this, "creds", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: void 0
|
|
22
|
+
});
|
|
17
23
|
this.log = log;
|
|
18
24
|
this.kvp = kvp;
|
|
25
|
+
this.creds = creds;
|
|
19
26
|
}
|
|
20
27
|
create(data, options = {}) {
|
|
21
28
|
const executionId = ulid();
|
|
@@ -26,7 +33,7 @@ export class ContextProviderImpl {
|
|
|
26
33
|
externalUserId: options.activation.user.externalId,
|
|
27
34
|
});
|
|
28
35
|
}
|
|
29
|
-
return new ContextImpl(logger, this.kvp, executionId, new Date(), data, options);
|
|
36
|
+
return new ContextImpl(logger, this.kvp, this.creds, executionId, new Date(), data, options);
|
|
30
37
|
}
|
|
31
38
|
destroy(ctx) {
|
|
32
39
|
return this.kvp.destroy({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DynamicFetcher, RoundTripperFactory } from './types.js';
|
|
2
|
+
import { Credentials } from './versori/contextcredentials.js';
|
|
2
3
|
/**
|
|
3
4
|
* A factory class for creating a default round tripper.
|
|
4
5
|
* This class is used to provide a default implementation for initializing
|
|
@@ -19,5 +20,6 @@ export declare class DefaultRoundTripperFactory implements RoundTripperFactory {
|
|
|
19
20
|
*/
|
|
20
21
|
create(connName: string, fn?: typeof fetch): Promise<typeof fetch>;
|
|
21
22
|
createDynamic(templateName: string, fn: typeof fetch): Promise<DynamicFetcher>;
|
|
23
|
+
credentials(): Credentials;
|
|
22
24
|
}
|
|
23
25
|
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D;;;;GAIG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAClE;;OAEG;;IAGH;;;;;;;OAOG;IACG,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAE,OAAO,KAAa,GAAG,OAAO,CAAC,OAAO,KAAK,CAAC;IAIzE,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC;IAMpF,WAAW,IAAI,WAAW;CAU7B"}
|
|
@@ -24,4 +24,14 @@ export class DefaultRoundTripperFactory {
|
|
|
24
24
|
return fetch(input, init);
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
+
credentials() {
|
|
28
|
+
return {
|
|
29
|
+
getRaw: () => Promise.resolve(new Uint8Array(0)),
|
|
30
|
+
getAccessToken: () => Promise.resolve({
|
|
31
|
+
accessToken: '',
|
|
32
|
+
tokenType: '',
|
|
33
|
+
expiry: undefined,
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
27
37
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Token = {
|
|
2
|
+
accessToken: string;
|
|
3
|
+
tokenType: string;
|
|
4
|
+
expiry?: Date;
|
|
5
|
+
};
|
|
6
|
+
export interface Credentials {
|
|
7
|
+
getRaw(name: string): Promise<Uint8Array>;
|
|
8
|
+
getAccessToken(name: string, forceRefresh?: boolean): Promise<Token>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=contextcredentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextcredentials.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/contextcredentials.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,IAAI,CAAC;CACjB,CAAA;AAED,MAAM,WAAW,WAAW;IACxB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1C,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;CACxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { GetTokenResponse } from './tokens/v1/token_service_pb.js';
|
|
2
|
+
import { GetCredentialResponse } from './v1alpha1/credential_service_pb.js';
|
|
2
3
|
export declare class VersoriCredentialClient {
|
|
3
4
|
private TokenService;
|
|
5
|
+
private credentialsClient;
|
|
4
6
|
constructor(credsBaseUrl: string);
|
|
5
7
|
getToken(credId: string, forceRefresh?: boolean): Promise<GetTokenResponse>;
|
|
8
|
+
getRaw(credId: string): Promise<GetCredentialResponse>;
|
|
6
9
|
}
|
|
7
10
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/src/dsl/http/versori/credentials/client.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,YAAY,CAAc;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/src/dsl/http/versori/credentials/client.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,iBAAiB,CAAoB;gBAEjC,YAAY,EAAE,MAAM;IAKhC,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;CAGzD"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createTokenClient,
|
|
2
|
-
// createCredentialService,
|
|
3
|
-
} from './credentials.js';
|
|
1
|
+
import { createTokenClient, createCredentialsClient, } from './credentials.js';
|
|
4
2
|
export class VersoriCredentialClient {
|
|
5
3
|
constructor(credsBaseUrl) {
|
|
6
4
|
Object.defineProperty(this, "TokenService", {
|
|
@@ -9,9 +7,19 @@ export class VersoriCredentialClient {
|
|
|
9
7
|
writable: true,
|
|
10
8
|
value: void 0
|
|
11
9
|
});
|
|
10
|
+
Object.defineProperty(this, "credentialsClient", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: void 0
|
|
15
|
+
});
|
|
12
16
|
this.TokenService = createTokenClient(credsBaseUrl);
|
|
17
|
+
this.credentialsClient = createCredentialsClient(credsBaseUrl);
|
|
13
18
|
}
|
|
14
19
|
getToken(credId, forceRefresh = false) {
|
|
15
20
|
return this.TokenService.getToken({ credentialId: credId, forceRefresh });
|
|
16
21
|
}
|
|
22
|
+
getRaw(credId) {
|
|
23
|
+
return this.credentialsClient.get({ id: credId, showRedacted: true });
|
|
24
|
+
}
|
|
17
25
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { Client } from '@connectrpc/connect';
|
|
2
|
+
export declare function createTokenClient(baseUrl?: string): Client<import("@bufbuild/protobuf/codegenv1").GenService<{
|
|
2
3
|
getToken: {
|
|
3
4
|
methodKind: "unary";
|
|
4
5
|
input: typeof import("./tokens/v1/token_service_pb.js").GetTokenRequestSchema;
|
|
@@ -11,7 +12,7 @@ export declare function createTokenClient(baseUrl?: string): import("@connectrpc
|
|
|
11
12
|
};
|
|
12
13
|
}>>;
|
|
13
14
|
export type TokenClient = ReturnType<typeof createTokenClient>;
|
|
14
|
-
export declare function createOAuth2TokenService(baseUrl?: string):
|
|
15
|
+
export declare function createOAuth2TokenService(baseUrl?: string): Client<import("@bufbuild/protobuf/codegenv1").GenService<{
|
|
15
16
|
getAccessToken: {
|
|
16
17
|
methodKind: "unary";
|
|
17
18
|
input: typeof import("./oauth2/v1/token_service_pb.js").GetAccessTokenRequestSchema;
|
|
@@ -39,4 +40,42 @@ export declare function createOAuth2TokenService(baseUrl?: string): import("@con
|
|
|
39
40
|
};
|
|
40
41
|
}>>;
|
|
41
42
|
export type OAuth2TokenClient = ReturnType<typeof createOAuth2TokenService>;
|
|
43
|
+
export declare function createCredentialsClient(baseUrl?: string): Client<import("@bufbuild/protobuf/codegenv1").GenService<{
|
|
44
|
+
create: {
|
|
45
|
+
methodKind: "unary";
|
|
46
|
+
input: typeof import("./v1alpha1/credential_service_pb.js").CreateCredentialRequestSchema;
|
|
47
|
+
output: typeof import("./v1alpha1/credential_service_pb.js").CreateCredentialResponseSchema;
|
|
48
|
+
};
|
|
49
|
+
get: {
|
|
50
|
+
methodKind: "unary";
|
|
51
|
+
input: typeof import("./v1alpha1/credential_service_pb.js").GetCredentialRequestSchema;
|
|
52
|
+
output: typeof import("./v1alpha1/credential_service_pb.js").GetCredentialResponseSchema;
|
|
53
|
+
};
|
|
54
|
+
getMany: {
|
|
55
|
+
methodKind: "unary";
|
|
56
|
+
input: typeof import("./v1alpha1/credential_service_pb.js").GetManyCredentialsRequestSchema;
|
|
57
|
+
output: typeof import("./v1alpha1/credential_service_pb.js").GetManyCredentialsResponseSchema;
|
|
58
|
+
};
|
|
59
|
+
list: {
|
|
60
|
+
methodKind: "unary";
|
|
61
|
+
input: typeof import("./v1alpha1/credential_service_pb.js").ListCredentialsRequestSchema;
|
|
62
|
+
output: typeof import("./v1alpha1/credential_service_pb.js").ListCredentialsResponseSchema;
|
|
63
|
+
};
|
|
64
|
+
update: {
|
|
65
|
+
methodKind: "unary";
|
|
66
|
+
input: typeof import("./v1alpha1/credential_service_pb.js").UpdateCredentialRequestSchema;
|
|
67
|
+
output: typeof import("./v1alpha1/credential_service_pb.js").UpdateCredentialResponseSchema;
|
|
68
|
+
};
|
|
69
|
+
delete: {
|
|
70
|
+
methodKind: "unary";
|
|
71
|
+
input: typeof import("./v1alpha1/credential_service_pb.js").DeleteCredentialRequestSchema;
|
|
72
|
+
output: typeof import("./v1alpha1/credential_service_pb.js").DeleteCredentialResponseSchema;
|
|
73
|
+
};
|
|
74
|
+
validate: {
|
|
75
|
+
methodKind: "unary";
|
|
76
|
+
input: typeof import("./v1alpha1/credential_service_pb.js").ValidateCredentialRequestSchema;
|
|
77
|
+
output: typeof import("./v1alpha1/credential_service_pb.js").ValidateCredentialResponseSchema;
|
|
78
|
+
};
|
|
79
|
+
}>>;
|
|
80
|
+
export type CredentialsClient = ReturnType<typeof createCredentialsClient>;
|
|
42
81
|
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../../src/src/dsl/http/versori/credentials/credentials.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../../src/src/dsl/http/versori/credentials/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,qBAAqB,CAAC;AAe3D,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"}
|
|
@@ -2,8 +2,7 @@ import { createClient } from '@connectrpc/connect';
|
|
|
2
2
|
import { createGrpcTransport } from '@connectrpc/connect-node';
|
|
3
3
|
import { TokenService } from './tokens/v1/token_service_pb.js';
|
|
4
4
|
import { OAuth2TokenService } from './oauth2/v1/token_service_pb.js';
|
|
5
|
-
|
|
6
|
-
// import { CredentialService } from './v1alpha1/credential_service_pb.js';
|
|
5
|
+
import { CredentialService } from './v1alpha1/credential_service_pb.js';
|
|
7
6
|
// // @deno-types="./customauth/v1/customauth_service_pb.d.ts"
|
|
8
7
|
// import { CustomAuthenticationService } from './customauth/v1/customauth_service_pb.d.ts';
|
|
9
8
|
export function createTokenClient(baseUrl = 'http://localhost:9000') {
|
|
@@ -18,13 +17,12 @@ export function createOAuth2TokenService(baseUrl = 'http://localhost:9000') {
|
|
|
18
17
|
});
|
|
19
18
|
return createClient(OAuth2TokenService, transport);
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
// export type CredentialService = ReturnType<typeof createCredentialService>;
|
|
20
|
+
export function createCredentialsClient(baseUrl = 'http://localhost:9000') {
|
|
21
|
+
const transport = createGrpcTransport({
|
|
22
|
+
baseUrl,
|
|
23
|
+
});
|
|
24
|
+
return createClient(CredentialService, transport);
|
|
25
|
+
}
|
|
28
26
|
// export function createCustomAuthService(baseUrl: string = 'http://localhost:9000') {
|
|
29
27
|
// const transport = createGrpcTransport({
|
|
30
28
|
// baseUrl,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes the file versori/credential/v1alpha1/common.proto.
|
|
3
|
+
*/
|
|
4
|
+
export const file_versori_credential_v1alpha1_common: import("@bufbuild/protobuf").DescFile;
|
|
5
|
+
/**
|
|
6
|
+
* Describes the message versori.credential.v1alpha1.PageParams.
|
|
7
|
+
* Use `create(PageParamsSchema)` to create a new message.
|
|
8
|
+
*/
|
|
9
|
+
export const PageParamsSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message versori.credential.v1alpha1.Sort.
|
|
12
|
+
* Use `create(SortSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const SortSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
15
|
+
/**
|
|
16
|
+
* Describes the enum versori.credential.v1alpha1.Sort.Order.
|
|
17
|
+
*/
|
|
18
|
+
export const Sort_OrderSchema: import("@bufbuild/protobuf/codegenv1").GenEnum<number, import("@bufbuild/protobuf").JsonValue>;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum versori.credential.v1alpha1.Sort.Order
|
|
21
|
+
*/
|
|
22
|
+
export const Sort_Order: {
|
|
23
|
+
[key: number]: string;
|
|
24
|
+
[k: string]: string | number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message versori.credential.v1alpha1.PageInfo.
|
|
28
|
+
* Use `create(PageInfoSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const PageInfoSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
|
|
31
|
+
//# sourceMappingURL=common_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common_pb.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/dsl/http/versori/credentials/v1alpha1/common_pb.js"],"names":[],"mappings":"AAMA;;GAEG;AACH,4FACmjB;AAEnjB;;;GAGG;AACH,+JAC0D;AAE1D;;;GAGG;AACH,yJAC0D;AAE1D;;GAEG;AACH,8HAC0D;AAE1D;;GAEG;AACH;;;EAC2B;AAE3B;;;GAGG;AACH,6JAC0D"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.3
|
|
2
|
+
// @generated from file versori/credential/v1alpha1/common.proto (package versori.credential.v1alpha1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file versori/credential/v1alpha1/common.proto.
|
|
7
|
+
*/
|
|
8
|
+
export const file_versori_credential_v1alpha1_common = /*@__PURE__*/ fileDesc("Cih2ZXJzb3JpL2NyZWRlbnRpYWwvdjFhbHBoYTEvY29tbW9uLnByb3RvEht2ZXJzb3JpLmNyZWRlbnRpYWwudjFhbHBoYTEiawoKUGFnZVBhcmFtcxINCgVmaXJzdBgBIAEoBRINCgVhZnRlchgCIAEoCRIOCgZiZWZvcmUYAyABKAkSLwoEc29ydBgEIAMoCzIhLnZlcnNvcmkuY3JlZGVudGlhbC52MWFscGhhMS5Tb3J0ImoKBFNvcnQSDgoGY29sdW1uGAEgASgJEjYKBW9yZGVyGAIgASgOMicudmVyc29yaS5jcmVkZW50aWFsLnYxYWxwaGExLlNvcnQuT3JkZXIiGgoFT3JkZXISBwoDQVNDEAASCAoEREVTQxABIkkKCFBhZ2VJbmZvEhMKC3RvdGFsX2NvdW50GAEgASgDEhMKC25leHRfY3Vyc29yGAIgASgJEhMKC3ByZXZfY3Vyc29yGAMgASgJQiZaJHZlcnNvcmkuZGV2L2NyZWRlbnRpYWxzL2FwaS92MWFscGhhMWIGcHJvdG8z");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the message versori.credential.v1alpha1.PageParams.
|
|
11
|
+
* Use `create(PageParamsSchema)` to create a new message.
|
|
12
|
+
*/
|
|
13
|
+
export const PageParamsSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_common, 0);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message versori.credential.v1alpha1.Sort.
|
|
16
|
+
* Use `create(SortSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const SortSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_common, 1);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the enum versori.credential.v1alpha1.Sort.Order.
|
|
21
|
+
*/
|
|
22
|
+
export const Sort_OrderSchema = /*@__PURE__*/ enumDesc(file_versori_credential_v1alpha1_common, 1, 0);
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum versori.credential.v1alpha1.Sort.Order
|
|
25
|
+
*/
|
|
26
|
+
export const Sort_Order = /*@__PURE__*/ tsEnum(Sort_OrderSchema);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message versori.credential.v1alpha1.PageInfo.
|
|
29
|
+
* Use `create(PageInfoSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const PageInfoSchema = /*@__PURE__*/ messageDesc(file_versori_credential_v1alpha1_common, 2);
|