@versori/run 0.2.0-alpha.10 → 0.2.0-alpha.11

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.
Files changed (59) hide show
  1. package/esm/src/context/Context.d.ts +5 -1
  2. package/esm/src/context/Context.d.ts.map +1 -1
  3. package/esm/src/context/Context.js +15 -4
  4. package/esm/src/context/ContextProvider.d.ts +3 -1
  5. package/esm/src/context/ContextProvider.d.ts.map +1 -1
  6. package/esm/src/context/ContextProvider.js +9 -2
  7. package/esm/src/dsl/http/default.d.ts +2 -0
  8. package/esm/src/dsl/http/default.d.ts.map +1 -1
  9. package/esm/src/dsl/http/default.js +10 -0
  10. package/esm/src/dsl/http/versori/contextcredentials.d.ts +10 -0
  11. package/esm/src/dsl/http/versori/contextcredentials.d.ts.map +1 -0
  12. package/esm/src/dsl/http/versori/contextcredentials.js +1 -0
  13. package/esm/src/dsl/http/versori/credentials/client.d.ts +3 -0
  14. package/esm/src/dsl/http/versori/credentials/client.d.ts.map +1 -1
  15. package/esm/src/dsl/http/versori/credentials/client.js +11 -3
  16. package/esm/src/dsl/http/versori/credentials/credentials.d.ts +38 -0
  17. package/esm/src/dsl/http/versori/credentials/credentials.d.ts.map +1 -1
  18. package/esm/src/dsl/http/versori/credentials/credentials.js +7 -8
  19. package/esm/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts +31 -0
  20. package/esm/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts.map +1 -0
  21. package/esm/src/dsl/http/versori/credentials/v1alpha1/common_pb.js +31 -0
  22. package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts +84 -0
  23. package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts.map +1 -0
  24. package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.js +128 -0
  25. package/esm/src/dsl/http/versori/roundtripper.d.ts +8 -3
  26. package/esm/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
  27. package/esm/src/dsl/http/versori/roundtripper.js +45 -3
  28. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  29. package/esm/src/interpreter/memory/MemoryInterpreter.js +3 -3
  30. package/package.json +1 -1
  31. package/script/src/context/Context.d.ts +5 -1
  32. package/script/src/context/Context.d.ts.map +1 -1
  33. package/script/src/context/Context.js +15 -4
  34. package/script/src/context/ContextProvider.d.ts +3 -1
  35. package/script/src/context/ContextProvider.d.ts.map +1 -1
  36. package/script/src/context/ContextProvider.js +9 -2
  37. package/script/src/dsl/http/default.d.ts +2 -0
  38. package/script/src/dsl/http/default.d.ts.map +1 -1
  39. package/script/src/dsl/http/default.js +10 -0
  40. package/script/src/dsl/http/versori/contextcredentials.d.ts +10 -0
  41. package/script/src/dsl/http/versori/contextcredentials.d.ts.map +1 -0
  42. package/script/src/dsl/http/versori/contextcredentials.js +2 -0
  43. package/script/src/dsl/http/versori/credentials/client.d.ts +3 -0
  44. package/script/src/dsl/http/versori/credentials/client.d.ts.map +1 -1
  45. package/script/src/dsl/http/versori/credentials/client.js +10 -0
  46. package/script/src/dsl/http/versori/credentials/credentials.d.ts +38 -0
  47. package/script/src/dsl/http/versori/credentials/credentials.d.ts.map +1 -1
  48. package/script/src/dsl/http/versori/credentials/credentials.js +8 -8
  49. package/script/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts +31 -0
  50. package/script/src/dsl/http/versori/credentials/v1alpha1/common_pb.d.ts.map +1 -0
  51. package/script/src/dsl/http/versori/credentials/v1alpha1/common_pb.js +34 -0
  52. package/script/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts +84 -0
  53. package/script/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.d.ts.map +1 -0
  54. package/script/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.js +131 -0
  55. package/script/src/dsl/http/versori/roundtripper.d.ts +8 -3
  56. package/script/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
  57. package/script/src/dsl/http/versori/roundtripper.js +47 -5
  58. package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  59. package/script/src/interpreter/memory/MemoryInterpreter.js +2 -2
@@ -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 = {
@@ -19,6 +20,7 @@ export interface Context<D> {
19
20
  * @param scope
20
21
  */
21
22
  openKv(scope?: KeyValueScope): KeyValue;
23
+ credentials(): Credentials;
22
24
  }
23
25
  export interface InternalContext<D, Index = void> extends Context<D> {
24
26
  withData<D2>(data: D2): InternalContext<D2, Index>;
@@ -35,15 +37,17 @@ export declare class ContextImpl<D, Index = void> implements InternalContext<D,
35
37
  executionId: string;
36
38
  startTime: Date;
37
39
  data: D;
40
+ private creds;
38
41
  idx: Index;
39
42
  readonly kvp: KeyValueProvider;
40
43
  readonly options: ContextOptions;
41
- constructor(log: Logger, kvp: KeyValueProvider, executionId: string, startTime: Date, data: D, options?: ContextOptions);
44
+ constructor(log: Logger, kvp: KeyValueProvider, creds: Credentials, executionId: string, startTime: Date, data: D, options?: ContextOptions);
42
45
  get activation(): Activation | undefined;
43
46
  setIndex(idx: number): InternalContext<D, number>;
44
47
  withActivation(activation: Activation): InternalContext<D, Index>;
45
48
  withData<D2>(data: D2): InternalContext<D2, Index>;
46
49
  openKv(scope?: KeyValueScope): KeyValue;
50
+ credentials(): Credentials;
47
51
  destroy(scope: KeyValueScope): Promise<void>;
48
52
  [Symbol.toPrimitive](): Record<string, unknown>;
49
53
  toJSON(): Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/src/context/Context.ts"],"names":[],"m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AepD,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;IAS/C,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAGpC"}
@@ -1,5 +1,5 @@
1
1
  export class ContextImpl {
2
- constructor(log, kvp, executionId, startTime, data, options = {}) {
2
+ constructor(log, kvp, creds, executionId, startTime, data, options = {}) {
3
3
  Object.defineProperty(this, "log", {
4
4
  enumerable: true,
5
5
  configurable: true,
@@ -24,6 +24,12 @@ export class ContextImpl {
24
24
  writable: true,
25
25
  value: void 0
26
26
  });
27
+ Object.defineProperty(this, "creds", {
28
+ enumerable: true,
29
+ configurable: true,
30
+ writable: true,
31
+ value: void 0
32
+ });
27
33
  Object.defineProperty(this, "idx", {
28
34
  enumerable: true,
29
35
  configurable: true,
@@ -44,6 +50,7 @@ export class ContextImpl {
44
50
  });
45
51
  this.log = log;
46
52
  this.executionId = executionId;
53
+ this.creds = creds;
47
54
  this.startTime = startTime;
48
55
  this.data = data;
49
56
  this.idx = void 0;
@@ -53,12 +60,13 @@ export class ContextImpl {
53
60
  // so that destructuring the context object doesn't break the binding of the methods to the
54
61
  // correct instance.
55
62
  this.openKv = this.openKv.bind(this);
63
+ this.credentials = this.credentials.bind(this);
56
64
  }
57
65
  get activation() {
58
66
  return this.options.activation;
59
67
  }
60
68
  setIndex(idx) {
61
- const next = new ContextImpl(this.log, this.kvp, this.executionId, this.startTime, this.data, this.options);
69
+ const next = new ContextImpl(this.log, this.kvp, this.creds, this.executionId, this.startTime, this.data, this.options);
62
70
  next.idx = idx;
63
71
  return next;
64
72
  }
@@ -67,13 +75,13 @@ export class ContextImpl {
67
75
  if (this.activation) {
68
76
  throw new Error('Activation is already set');
69
77
  }
70
- return new ContextImpl(this.log, this.kvp, this.executionId, this.startTime, this.data, {
78
+ return new ContextImpl(this.log, this.kvp, this.creds, this.executionId, this.startTime, this.data, {
71
79
  ...this.options,
72
80
  activation,
73
81
  });
74
82
  }
75
83
  withData(data) {
76
- return new ContextImpl(this.log, this.kvp, this.executionId, this.startTime, data, this.options);
84
+ return new ContextImpl(this.log, this.kvp, this.creds, this.executionId, this.startTime, data, this.options);
77
85
  }
78
86
  openKv(scope = ':project:') {
79
87
  if (scope === ':execution:') {
@@ -88,6 +96,9 @@ export class ContextImpl {
88
96
  activationId: this.activation?.id,
89
97
  });
90
98
  }
99
+ credentials() {
100
+ return this.creds;
101
+ }
91
102
  destroy(scope) {
92
103
  if (scope === ':execution:') {
93
104
  return this.kvp.destroy({
@@ -1,6 +1,7 @@
1
1
  import { KeyValueProvider } from '../kv/KeyValue.js';
2
2
  import { Logger } from '../observability/logging/Logger.js';
3
3
  import { Context, ContextOptions, InternalContext } from './Context.js';
4
+ import { Credentials } from '../dsl/http/versori/contextcredentials.js';
4
5
  export interface ContextProvider {
5
6
  create<D>(data: D, options?: ContextOptions): InternalContext<D, void>;
6
7
  destroy(ctx: Context<any>): Promise<void>;
@@ -8,7 +9,8 @@ export interface ContextProvider {
8
9
  export declare class ContextProviderImpl implements ContextProvider {
9
10
  log: Logger;
10
11
  kvp: KeyValueProvider;
11
- constructor(log: Logger, kvp: KeyValueProvider);
12
+ creds: Credentials;
13
+ constructor(log: Logger, kvp: KeyValueProvider, creds: Credentials);
12
14
  create<D>(data: D, options?: ContextOptions): InternalContext<D, void>;
13
15
  destroy(ctx: Context<any>): Promise<void>;
14
16
  }
@@ -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,EAAe,cAAc,EAAE,eAAe,EAAE,MAAM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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,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC;IAe1E,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;AAE7E;;;;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;CAKvF"}
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 ArrayBuffer(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<ArrayBuffer>;
8
+ getAccessToken(name: string): 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,WAAW,CAAC,CAAC;IAC3C,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;CAChD"}
@@ -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;gBAEtB,YAAY,EAAE,MAAM;IAIhC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,GAAE,OAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGrF"}
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
  }
@@ -39,4 +39,42 @@ export declare function createOAuth2TokenService(baseUrl?: string): import("@con
39
39
  };
40
40
  }>>;
41
41
  export type OAuth2TokenClient = ReturnType<typeof createOAuth2TokenService>;
42
+ export declare function createCredentialsClient(baseUrl?: string): import("@connectrpc/connect").Client<import("@bufbuild/protobuf/codegenv1").GenService<{
43
+ create: {
44
+ methodKind: "unary";
45
+ input: typeof import("./v1alpha1/credential_service_pb.js").CreateCredentialRequestSchema;
46
+ output: typeof import("./v1alpha1/credential_service_pb.js").CreateCredentialResponseSchema;
47
+ };
48
+ get: {
49
+ methodKind: "unary";
50
+ input: typeof import("./v1alpha1/credential_service_pb.js").GetCredentialRequestSchema;
51
+ output: typeof import("./v1alpha1/credential_service_pb.js").GetCredentialResponseSchema;
52
+ };
53
+ getMany: {
54
+ methodKind: "unary";
55
+ input: typeof import("./v1alpha1/credential_service_pb.js").GetManyCredentialsRequestSchema;
56
+ output: typeof import("./v1alpha1/credential_service_pb.js").GetManyCredentialsResponseSchema;
57
+ };
58
+ list: {
59
+ methodKind: "unary";
60
+ input: typeof import("./v1alpha1/credential_service_pb.js").ListCredentialsRequestSchema;
61
+ output: typeof import("./v1alpha1/credential_service_pb.js").ListCredentialsResponseSchema;
62
+ };
63
+ update: {
64
+ methodKind: "unary";
65
+ input: typeof import("./v1alpha1/credential_service_pb.js").UpdateCredentialRequestSchema;
66
+ output: typeof import("./v1alpha1/credential_service_pb.js").UpdateCredentialResponseSchema;
67
+ };
68
+ delete: {
69
+ methodKind: "unary";
70
+ input: typeof import("./v1alpha1/credential_service_pb.js").DeleteCredentialRequestSchema;
71
+ output: typeof import("./v1alpha1/credential_service_pb.js").DeleteCredentialResponseSchema;
72
+ };
73
+ validate: {
74
+ methodKind: "unary";
75
+ input: typeof import("./v1alpha1/credential_service_pb.js").ValidateCredentialRequestSchema;
76
+ output: typeof import("./v1alpha1/credential_service_pb.js").ValidateCredentialResponseSchema;
77
+ };
78
+ }>>;
79
+ export type CredentialsClient = ReturnType<typeof createCredentialsClient>;
42
80
  //# 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":"AAeA,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"}
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../../src/src/dsl/http/versori/credentials/credentials.ts"],"names":[],"mappings":"AAeA,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"}
@@ -3,7 +3,7 @@ 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
5
  // // @deno-types="./v1alpha1/credential_service_pb.d.ts"
6
- // import { CredentialService } from './v1alpha1/credential_service_pb.js';
6
+ import { CredentialService } from './v1alpha1/credential_service_pb.js';
7
7
  // // @deno-types="./customauth/v1/customauth_service_pb.d.ts"
8
8
  // import { CustomAuthenticationService } from './customauth/v1/customauth_service_pb.d.ts';
9
9
  export function createTokenClient(baseUrl = 'http://localhost:9000') {
@@ -18,13 +18,12 @@ export function createOAuth2TokenService(baseUrl = 'http://localhost:9000') {
18
18
  });
19
19
  return createClient(OAuth2TokenService, transport);
20
20
  }
21
- // export function createCredentialService(baseUrl: string = 'http://localhost:9000') {
22
- // const transport = createGrpcTransport({
23
- // baseUrl,
24
- // });
25
- // return createClient(CredentialService, transport);
26
- // }
27
- // export type CredentialService = ReturnType<typeof createCredentialService>;
21
+ export function createCredentialsClient(baseUrl = 'http://localhost:9000') {
22
+ const transport = createGrpcTransport({
23
+ baseUrl,
24
+ });
25
+ return createClient(CredentialService, transport);
26
+ }
28
27
  // export function createCustomAuthService(baseUrl: string = 'http://localhost:9000') {
29
28
  // const transport = createGrpcTransport({
30
29
  // 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);
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Describes the file versori/credential/v1alpha1/credential_service.proto.
3
+ */
4
+ export const file_versori_credential_v1alpha1_credential_service: import("@bufbuild/protobuf").DescFile;
5
+ /**
6
+ * Describes the message versori.credential.v1alpha1.CreateCredentialRequest.
7
+ * Use `create(CreateCredentialRequestSchema)` to create a new message.
8
+ */
9
+ export const CreateCredentialRequestSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
10
+ /**
11
+ * Describes the message versori.credential.v1alpha1.CreateCredentialResponse.
12
+ * Use `create(CreateCredentialResponseSchema)` to create a new message.
13
+ */
14
+ export const CreateCredentialResponseSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
15
+ /**
16
+ * Describes the message versori.credential.v1alpha1.GetCredentialRequest.
17
+ * Use `create(GetCredentialRequestSchema)` to create a new message.
18
+ */
19
+ export const GetCredentialRequestSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
20
+ /**
21
+ * Describes the message versori.credential.v1alpha1.GetCredentialResponse.
22
+ * Use `create(GetCredentialResponseSchema)` to create a new message.
23
+ */
24
+ export const GetCredentialResponseSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
25
+ /**
26
+ * Describes the message versori.credential.v1alpha1.GetManyCredentialsRequest.
27
+ * Use `create(GetManyCredentialsRequestSchema)` to create a new message.
28
+ */
29
+ export const GetManyCredentialsRequestSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
30
+ /**
31
+ * Describes the message versori.credential.v1alpha1.GetManyCredentialsResponse.
32
+ * Use `create(GetManyCredentialsResponseSchema)` to create a new message.
33
+ */
34
+ export const GetManyCredentialsResponseSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
35
+ /**
36
+ * Describes the message versori.credential.v1alpha1.ListCredentialsRequest.
37
+ * Use `create(ListCredentialsRequestSchema)` to create a new message.
38
+ */
39
+ export const ListCredentialsRequestSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
40
+ /**
41
+ * Describes the message versori.credential.v1alpha1.ListCredentialsResponse.
42
+ * Use `create(ListCredentialsResponseSchema)` to create a new message.
43
+ */
44
+ export const ListCredentialsResponseSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
45
+ /**
46
+ * Describes the message versori.credential.v1alpha1.UpdateCredentialRequest.
47
+ * Use `create(UpdateCredentialRequestSchema)` to create a new message.
48
+ */
49
+ export const UpdateCredentialRequestSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
50
+ /**
51
+ * Describes the message versori.credential.v1alpha1.UpdateCredentialResponse.
52
+ * Use `create(UpdateCredentialResponseSchema)` to create a new message.
53
+ */
54
+ export const UpdateCredentialResponseSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
55
+ /**
56
+ * Describes the message versori.credential.v1alpha1.DeleteCredentialRequest.
57
+ * Use `create(DeleteCredentialRequestSchema)` to create a new message.
58
+ */
59
+ export const DeleteCredentialRequestSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
60
+ /**
61
+ * Describes the message versori.credential.v1alpha1.DeleteCredentialResponse.
62
+ * Use `create(DeleteCredentialResponseSchema)` to create a new message.
63
+ */
64
+ export const DeleteCredentialResponseSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
65
+ /**
66
+ * Describes the message versori.credential.v1alpha1.ValidateCredentialRequest.
67
+ * Use `create(ValidateCredentialRequestSchema)` to create a new message.
68
+ */
69
+ export const ValidateCredentialRequestSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
70
+ /**
71
+ * Describes the message versori.credential.v1alpha1.ValidateCredentialResponse.
72
+ * Use `create(ValidateCredentialResponseSchema)` to create a new message.
73
+ */
74
+ export const ValidateCredentialResponseSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
75
+ /**
76
+ * Describes the message versori.credential.v1alpha1.ValidateCredentialResponse.ValidationError.
77
+ * Use `create(ValidateCredentialResponse_ValidationErrorSchema)` to create a new message.
78
+ */
79
+ export const ValidateCredentialResponse_ValidationErrorSchema: import("@bufbuild/protobuf/codegenv1").GenMessage<import("@bufbuild/protobuf").Message, import("@bufbuild/protobuf").JsonValue>;
80
+ /**
81
+ * @generated from service versori.credential.v1alpha1.CredentialService
82
+ */
83
+ export const CredentialService: import("@bufbuild/protobuf/codegenv1").GenService<import("@bufbuild/protobuf/codegenv1").GenServiceMethods>;
84
+ //# sourceMappingURL=credential_service_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential_service_pb.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/dsl/http/versori/credentials/v1alpha1/credential_service_pb.js"],"names":[],"mappings":"AASA;;GAEG;AACH,wGASM;AAEN;;;GAGG;AACH,4KAEwE;AAExE;;;GAGG;AACH,6KAEwE;AAExE;;;GAGG;AACH,yKAEwE;AAExE;;;GAGG;AACH,0KAEwE;AAExE;;;GAGG;AACH,8KAEwE;AAExE;;;GAGG;AACH,+KAEwE;AAExE;;;GAGG;AACH,2KAEwE;AAExE;;;GAGG;AACH,4KAEwE;AAExE;;;GAGG;AACH,4KAEwE;AAExE;;;GAGG;AACH,6KAEwE;AAExE;;;GAGG;AACH,4KAEyE;AAEzE;;;GAGG;AACH,6KAEyE;AAEzE;;;GAGG;AACH,8KAEyE;AAEzE;;;GAGG;AACH,+KAEyE;AAEzE;;;GAGG;AACH,+LAE4E;AAE5E;;GAEG;AACH,4IAEwE"}