@xyo-network/api-graphql-plugin 3.3.0 → 3.4.1

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.
@@ -1,3 +1,110 @@
1
- export { ApiGraphqlWitnessPlugin, ApiGraphqlWitnessPlugin as default } from './Plugin.ts';
2
- export * from './Witness.ts';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
+ import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
3
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
4
+ import * as _xyo_network_module_model from '@xyo-network/module-model';
5
+ import { AnyConfigSchema } from '@xyo-network/module-model';
6
+ import * as _xyo_network_payload_model from '@xyo-network/payload-model';
7
+ import { Payload, Schema } from '@xyo-network/payload-model';
8
+ import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
9
+ import { ExecutionResult } from 'graphql';
10
+ import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
11
+ import * as _store__xyo_network_account_model_virtual_3a3814c98f_package from '.store/@xyo-network-account-model-virtual-3a3814c98f/package';
12
+
13
+ declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
14
+ type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
15
+ type ApiGraphqlWitnessConfig = WitnessConfig<{
16
+ endpoint?: string;
17
+ schema: ApiGraphqlWitnessConfigSchema;
18
+ timeout?: number;
19
+ }>;
20
+ type HttpHeaderValue = string | string[] | number | boolean | null;
21
+ interface HttpHeaders {
22
+ [key: string]: HttpHeaderValue;
23
+ }
24
+ type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
25
+ endpoint?: string;
26
+ headers?: HttpHeaders;
27
+ }>;
28
+ declare const GraphqlQuerySchema = "network.xyo.graphql.query";
29
+ type GraphqlQuerySchema = typeof GraphqlQuerySchema;
30
+ type GraphqlQuery = Payload<{
31
+ query: string;
32
+ variables: Record<string, unknown>;
33
+ }, GraphqlQuerySchema>;
34
+ declare const GraphqlResultSchema = "network.xyo.graphql.result";
35
+ type GraphqlResultSchema = typeof GraphqlResultSchema;
36
+ type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
37
+ http?: {
38
+ code?: string;
39
+ ipAddress?: string;
40
+ status?: number;
41
+ };
42
+ result?: ExecutionResult<TData, TExtensions>;
43
+ }, GraphqlResultSchema>;
44
+ declare const isGraphqlQuery: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
45
+ schema: "network.xyo.graphql.query";
46
+ query: string;
47
+ variables: {
48
+ [x: string]: unknown;
49
+ };
50
+ }>;
51
+ declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
52
+ static readonly configSchemas: Schema[];
53
+ static readonly defaultConfigSchema: Schema;
54
+ get endpoint(): string;
55
+ get headers(): HttpHeaders | undefined;
56
+ get timeout(): number | undefined;
57
+ protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
58
+ }
59
+
60
+ declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
61
+ account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
62
+ addToResolvers?: boolean;
63
+ additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
64
+ allowNameResolution?: boolean;
65
+ config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
66
+ schema: _xyo_network_payload_model.Schema;
67
+ readonly archiving?: {
68
+ readonly archivists?: string[] | undefined;
69
+ readonly queries?: string[] | undefined;
70
+ } | undefined;
71
+ readonly allowedQueries?: string[] | undefined;
72
+ readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
73
+ readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
74
+ readonly labels?: {
75
+ [x: string]: string | undefined;
76
+ } | undefined;
77
+ readonly name?: _xyo_network_module_model.ModuleName | undefined;
78
+ readonly paging?: {
79
+ [x: string]: {
80
+ size?: number | undefined;
81
+ };
82
+ } | undefined;
83
+ readonly retry?: {
84
+ backoff?: number | undefined;
85
+ interval?: number | undefined;
86
+ retries?: number | undefined;
87
+ } | undefined;
88
+ readonly security?: {
89
+ readonly allowAnonymous?: boolean | undefined;
90
+ readonly allowed?: {
91
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
92
+ } | undefined;
93
+ readonly disallowed?: {
94
+ [x: string]: Lowercase<string>[];
95
+ } | undefined;
96
+ } | undefined;
97
+ readonly sign?: boolean | undefined;
98
+ readonly storeQueries?: boolean | undefined;
99
+ readonly timestamp?: boolean | undefined;
100
+ endpoint?: string | undefined;
101
+ timeout?: number | undefined;
102
+ }>;
103
+ ephemeralQueryAccountEnabled?: boolean;
104
+ moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
105
+ } & {
106
+ endpoint?: string;
107
+ headers?: HttpHeaders;
108
+ }>>;
109
+
110
+ export { ApiGraphqlWitness, type ApiGraphqlWitnessConfig, ApiGraphqlWitnessConfigSchema, type ApiGraphqlWitnessParams, ApiGraphqlWitnessPlugin, type GraphqlQuery, GraphqlQuerySchema, type GraphqlResult, GraphqlResultSchema, type HttpHeaderValue, type HttpHeaders, ApiGraphqlWitnessPlugin as default, isGraphqlQuery };
@@ -1,3 +1,110 @@
1
- export { ApiGraphqlWitnessPlugin, ApiGraphqlWitnessPlugin as default } from './Plugin.ts';
2
- export * from './Witness.ts';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
+ import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
3
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
4
+ import * as _xyo_network_module_model from '@xyo-network/module-model';
5
+ import { AnyConfigSchema } from '@xyo-network/module-model';
6
+ import * as _xyo_network_payload_model from '@xyo-network/payload-model';
7
+ import { Payload, Schema } from '@xyo-network/payload-model';
8
+ import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
9
+ import { ExecutionResult } from 'graphql';
10
+ import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
11
+ import * as _store__xyo_network_account_model_virtual_3a3814c98f_package from '.store/@xyo-network-account-model-virtual-3a3814c98f/package';
12
+
13
+ declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
14
+ type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
15
+ type ApiGraphqlWitnessConfig = WitnessConfig<{
16
+ endpoint?: string;
17
+ schema: ApiGraphqlWitnessConfigSchema;
18
+ timeout?: number;
19
+ }>;
20
+ type HttpHeaderValue = string | string[] | number | boolean | null;
21
+ interface HttpHeaders {
22
+ [key: string]: HttpHeaderValue;
23
+ }
24
+ type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
25
+ endpoint?: string;
26
+ headers?: HttpHeaders;
27
+ }>;
28
+ declare const GraphqlQuerySchema = "network.xyo.graphql.query";
29
+ type GraphqlQuerySchema = typeof GraphqlQuerySchema;
30
+ type GraphqlQuery = Payload<{
31
+ query: string;
32
+ variables: Record<string, unknown>;
33
+ }, GraphqlQuerySchema>;
34
+ declare const GraphqlResultSchema = "network.xyo.graphql.result";
35
+ type GraphqlResultSchema = typeof GraphqlResultSchema;
36
+ type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
37
+ http?: {
38
+ code?: string;
39
+ ipAddress?: string;
40
+ status?: number;
41
+ };
42
+ result?: ExecutionResult<TData, TExtensions>;
43
+ }, GraphqlResultSchema>;
44
+ declare const isGraphqlQuery: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
45
+ schema: "network.xyo.graphql.query";
46
+ query: string;
47
+ variables: {
48
+ [x: string]: unknown;
49
+ };
50
+ }>;
51
+ declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
52
+ static readonly configSchemas: Schema[];
53
+ static readonly defaultConfigSchema: Schema;
54
+ get endpoint(): string;
55
+ get headers(): HttpHeaders | undefined;
56
+ get timeout(): number | undefined;
57
+ protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
58
+ }
59
+
60
+ declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
61
+ account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
62
+ addToResolvers?: boolean;
63
+ additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
64
+ allowNameResolution?: boolean;
65
+ config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
66
+ schema: _xyo_network_payload_model.Schema;
67
+ readonly archiving?: {
68
+ readonly archivists?: string[] | undefined;
69
+ readonly queries?: string[] | undefined;
70
+ } | undefined;
71
+ readonly allowedQueries?: string[] | undefined;
72
+ readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
73
+ readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
74
+ readonly labels?: {
75
+ [x: string]: string | undefined;
76
+ } | undefined;
77
+ readonly name?: _xyo_network_module_model.ModuleName | undefined;
78
+ readonly paging?: {
79
+ [x: string]: {
80
+ size?: number | undefined;
81
+ };
82
+ } | undefined;
83
+ readonly retry?: {
84
+ backoff?: number | undefined;
85
+ interval?: number | undefined;
86
+ retries?: number | undefined;
87
+ } | undefined;
88
+ readonly security?: {
89
+ readonly allowAnonymous?: boolean | undefined;
90
+ readonly allowed?: {
91
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
92
+ } | undefined;
93
+ readonly disallowed?: {
94
+ [x: string]: Lowercase<string>[];
95
+ } | undefined;
96
+ } | undefined;
97
+ readonly sign?: boolean | undefined;
98
+ readonly storeQueries?: boolean | undefined;
99
+ readonly timestamp?: boolean | undefined;
100
+ endpoint?: string | undefined;
101
+ timeout?: number | undefined;
102
+ }>;
103
+ ephemeralQueryAccountEnabled?: boolean;
104
+ moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
105
+ } & {
106
+ endpoint?: string;
107
+ headers?: HttpHeaders;
108
+ }>>;
109
+
110
+ export { ApiGraphqlWitness, type ApiGraphqlWitnessConfig, ApiGraphqlWitnessConfigSchema, type ApiGraphqlWitnessParams, ApiGraphqlWitnessPlugin, type GraphqlQuery, GraphqlQuerySchema, type GraphqlResult, GraphqlResultSchema, type HttpHeaderValue, type HttpHeaders, ApiGraphqlWitnessPlugin as default, isGraphqlQuery };
@@ -1,3 +1,110 @@
1
- export { ApiGraphqlWitnessPlugin, ApiGraphqlWitnessPlugin as default } from './Plugin.ts';
2
- export * from './Witness.ts';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
+ import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
3
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
4
+ import * as _xyo_network_module_model from '@xyo-network/module-model';
5
+ import { AnyConfigSchema } from '@xyo-network/module-model';
6
+ import * as _xyo_network_payload_model from '@xyo-network/payload-model';
7
+ import { Payload, Schema } from '@xyo-network/payload-model';
8
+ import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
9
+ import { ExecutionResult } from 'graphql';
10
+ import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
11
+ import * as _store__xyo_network_account_model_virtual_3a3814c98f_package from '.store/@xyo-network-account-model-virtual-3a3814c98f/package';
12
+
13
+ declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
14
+ type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
15
+ type ApiGraphqlWitnessConfig = WitnessConfig<{
16
+ endpoint?: string;
17
+ schema: ApiGraphqlWitnessConfigSchema;
18
+ timeout?: number;
19
+ }>;
20
+ type HttpHeaderValue = string | string[] | number | boolean | null;
21
+ interface HttpHeaders {
22
+ [key: string]: HttpHeaderValue;
23
+ }
24
+ type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
25
+ endpoint?: string;
26
+ headers?: HttpHeaders;
27
+ }>;
28
+ declare const GraphqlQuerySchema = "network.xyo.graphql.query";
29
+ type GraphqlQuerySchema = typeof GraphqlQuerySchema;
30
+ type GraphqlQuery = Payload<{
31
+ query: string;
32
+ variables: Record<string, unknown>;
33
+ }, GraphqlQuerySchema>;
34
+ declare const GraphqlResultSchema = "network.xyo.graphql.result";
35
+ type GraphqlResultSchema = typeof GraphqlResultSchema;
36
+ type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
37
+ http?: {
38
+ code?: string;
39
+ ipAddress?: string;
40
+ status?: number;
41
+ };
42
+ result?: ExecutionResult<TData, TExtensions>;
43
+ }, GraphqlResultSchema>;
44
+ declare const isGraphqlQuery: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
45
+ schema: "network.xyo.graphql.query";
46
+ query: string;
47
+ variables: {
48
+ [x: string]: unknown;
49
+ };
50
+ }>;
51
+ declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
52
+ static readonly configSchemas: Schema[];
53
+ static readonly defaultConfigSchema: Schema;
54
+ get endpoint(): string;
55
+ get headers(): HttpHeaders | undefined;
56
+ get timeout(): number | undefined;
57
+ protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
58
+ }
59
+
60
+ declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
61
+ account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
62
+ addToResolvers?: boolean;
63
+ additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
64
+ allowNameResolution?: boolean;
65
+ config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
66
+ schema: _xyo_network_payload_model.Schema;
67
+ readonly archiving?: {
68
+ readonly archivists?: string[] | undefined;
69
+ readonly queries?: string[] | undefined;
70
+ } | undefined;
71
+ readonly allowedQueries?: string[] | undefined;
72
+ readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
73
+ readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
74
+ readonly labels?: {
75
+ [x: string]: string | undefined;
76
+ } | undefined;
77
+ readonly name?: _xyo_network_module_model.ModuleName | undefined;
78
+ readonly paging?: {
79
+ [x: string]: {
80
+ size?: number | undefined;
81
+ };
82
+ } | undefined;
83
+ readonly retry?: {
84
+ backoff?: number | undefined;
85
+ interval?: number | undefined;
86
+ retries?: number | undefined;
87
+ } | undefined;
88
+ readonly security?: {
89
+ readonly allowAnonymous?: boolean | undefined;
90
+ readonly allowed?: {
91
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
92
+ } | undefined;
93
+ readonly disallowed?: {
94
+ [x: string]: Lowercase<string>[];
95
+ } | undefined;
96
+ } | undefined;
97
+ readonly sign?: boolean | undefined;
98
+ readonly storeQueries?: boolean | undefined;
99
+ readonly timestamp?: boolean | undefined;
100
+ endpoint?: string | undefined;
101
+ timeout?: number | undefined;
102
+ }>;
103
+ ephemeralQueryAccountEnabled?: boolean;
104
+ moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
105
+ } & {
106
+ endpoint?: string;
107
+ headers?: HttpHeaders;
108
+ }>>;
109
+
110
+ export { ApiGraphqlWitness, type ApiGraphqlWitnessConfig, ApiGraphqlWitnessConfigSchema, type ApiGraphqlWitnessParams, ApiGraphqlWitnessPlugin, type GraphqlQuery, GraphqlQuerySchema, type GraphqlResult, GraphqlResultSchema, type HttpHeaderValue, type HttpHeaders, ApiGraphqlWitnessPlugin as default, isGraphqlQuery };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/api-graphql-plugin",
3
- "version": "3.3.0",
3
+ "version": "3.4.1",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -31,20 +31,20 @@
31
31
  "dependencies": {
32
32
  "@xylabs/assert": "^4.5.1",
33
33
  "@xylabs/axios": "^4.5.1",
34
- "@xyo-network/abstract-witness": "^3.7.0",
35
- "@xyo-network/module-model": "^3.7.0",
36
- "@xyo-network/payload-model": "^3.7.0",
37
- "@xyo-network/payloadset-plugin": "^3.7.0",
38
- "@xyo-network/witness-model": "^3.7.0",
34
+ "@xyo-network/abstract-witness": "^3.8.5",
35
+ "@xyo-network/module-model": "^3.8.5",
36
+ "@xyo-network/payload-model": "^3.8.5",
37
+ "@xyo-network/payloadset-plugin": "^3.8.5",
38
+ "@xyo-network/witness-model": "^3.8.5",
39
39
  "graphql": "^16.10.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "^4.2.6",
43
- "@xylabs/tsconfig": "^4.2.6",
42
+ "@xylabs/ts-scripts-yarn3": "^5.0.22",
43
+ "@xylabs/tsconfig": "^5.0.22",
44
44
  "@xylabs/vitest-extended": "^4.5.1",
45
45
  "ethers": "^6.13.5",
46
46
  "typescript": "^5.7.3",
47
- "vitest": "^3.0.4"
47
+ "vitest": "^3.0.5"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
@@ -1,51 +0,0 @@
1
- import { ApiGraphqlWitness } from './Witness.ts';
2
- export declare const ApiGraphqlWitnessPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<ApiGraphqlWitness<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
3
- account?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance | "random";
4
- addToResolvers?: boolean;
5
- additionalSigners?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance[];
6
- allowNameResolution?: boolean;
7
- config: import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").DeepRestrictToStringKeys<{
8
- schema: import("@xyo-network/payload-model").Schema;
9
- readonly archiving?: {
10
- readonly archivists?: string[] | undefined;
11
- readonly queries?: string[] | undefined;
12
- } | undefined;
13
- readonly allowedQueries?: string[] | undefined;
14
- readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
15
- readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
16
- readonly labels?: {
17
- [x: string]: string | undefined;
18
- } | undefined;
19
- readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
20
- readonly paging?: {
21
- [x: string]: {
22
- size?: number | undefined;
23
- };
24
- } | undefined;
25
- readonly retry?: {
26
- backoff?: number | undefined;
27
- interval?: number | undefined;
28
- retries?: number | undefined;
29
- } | undefined;
30
- readonly security?: {
31
- readonly allowAnonymous?: boolean | undefined;
32
- readonly allowed?: {
33
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
34
- } | undefined;
35
- readonly disallowed?: {
36
- [x: string]: Lowercase<string>[];
37
- } | undefined;
38
- } | undefined;
39
- readonly sign?: boolean | undefined;
40
- readonly storeQueries?: boolean | undefined;
41
- readonly timestamp?: boolean | undefined;
42
- endpoint?: string | undefined;
43
- timeout?: number | undefined;
44
- }>;
45
- ephemeralQueryAccountEnabled?: boolean;
46
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
47
- } & {
48
- endpoint?: string;
49
- headers?: import("./Witness.ts").HttpHeaders;
50
- }>>;
51
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAsB,MAAM,cAAc,CAAA;AAEpE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQjC,CAAA"}
@@ -1,52 +0,0 @@
1
- import { AbstractWitness } from '@xyo-network/abstract-witness';
2
- import type { AnyConfigSchema } from '@xyo-network/module-model';
3
- import type { Payload, Schema } from '@xyo-network/payload-model';
4
- import type { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
5
- import type { ExecutionResult } from 'graphql';
6
- export declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
7
- export type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
8
- export type ApiGraphqlWitnessConfig = WitnessConfig<{
9
- endpoint?: string;
10
- schema: ApiGraphqlWitnessConfigSchema;
11
- timeout?: number;
12
- }>;
13
- export type HttpHeaderValue = string | string[] | number | boolean | null;
14
- export interface HttpHeaders {
15
- [key: string]: HttpHeaderValue;
16
- }
17
- export type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
18
- endpoint?: string;
19
- headers?: HttpHeaders;
20
- }>;
21
- export declare const GraphqlQuerySchema = "network.xyo.graphql.query";
22
- export type GraphqlQuerySchema = typeof GraphqlQuerySchema;
23
- export type GraphqlQuery = Payload<{
24
- query: string;
25
- variables: Record<string, unknown>;
26
- }, GraphqlQuerySchema>;
27
- export declare const GraphqlResultSchema = "network.xyo.graphql.result";
28
- export type GraphqlResultSchema = typeof GraphqlResultSchema;
29
- export type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
30
- http?: {
31
- code?: string;
32
- ipAddress?: string;
33
- status?: number;
34
- };
35
- result?: ExecutionResult<TData, TExtensions>;
36
- }, GraphqlResultSchema>;
37
- export declare const isGraphqlQuery: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").DeepRestrictToStringKeys<{
38
- schema: "network.xyo.graphql.query";
39
- query: string;
40
- variables: {
41
- [x: string]: unknown;
42
- };
43
- }>;
44
- export declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
45
- static readonly configSchemas: Schema[];
46
- static readonly defaultConfigSchema: Schema;
47
- get endpoint(): string;
48
- get headers(): HttpHeaders | undefined;
49
- get timeout(): number | undefined;
50
- protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
51
- }
52
- //# sourceMappingURL=Witness.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,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b,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,MAAM,CAAC,EAAE,eAAe,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;CAC7C,EACD,mBAAmB,CACpB,CAAA;AAED,eAAO,MAAM,cAAc;;WArBhB,MAAM;;;;EAqBoE,CAAA;AAErF,qBAAa,iBAAiB,CAAC,OAAO,SAAS,uBAAuB,GAAG,uBAAuB,CAAE,SAAQ,eAAe,CACvH,OAAO,EACP,YAAY,EACZ,aAAa,CACd;IACC,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA0D;IAC1G,gBAAyB,mBAAmB,EAAE,MAAM,CAAgC;IAEpF,IAAI,QAAQ,WAEX;IAED,IAAI,OAAO,4BAEV;IAED,IAAI,OAAO,uBAEV;cAEwB,cAAc,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;CAiB7F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA;AACzF,cAAc,cAAc,CAAA"}
@@ -1,51 +0,0 @@
1
- import { ApiGraphqlWitness } from './Witness.ts';
2
- export declare const ApiGraphqlWitnessPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<ApiGraphqlWitness<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
3
- account?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance | "random";
4
- addToResolvers?: boolean;
5
- additionalSigners?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance[];
6
- allowNameResolution?: boolean;
7
- config: import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").DeepRestrictToStringKeys<{
8
- schema: import("@xyo-network/payload-model").Schema;
9
- readonly archiving?: {
10
- readonly archivists?: string[] | undefined;
11
- readonly queries?: string[] | undefined;
12
- } | undefined;
13
- readonly allowedQueries?: string[] | undefined;
14
- readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
15
- readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
16
- readonly labels?: {
17
- [x: string]: string | undefined;
18
- } | undefined;
19
- readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
20
- readonly paging?: {
21
- [x: string]: {
22
- size?: number | undefined;
23
- };
24
- } | undefined;
25
- readonly retry?: {
26
- backoff?: number | undefined;
27
- interval?: number | undefined;
28
- retries?: number | undefined;
29
- } | undefined;
30
- readonly security?: {
31
- readonly allowAnonymous?: boolean | undefined;
32
- readonly allowed?: {
33
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
34
- } | undefined;
35
- readonly disallowed?: {
36
- [x: string]: Lowercase<string>[];
37
- } | undefined;
38
- } | undefined;
39
- readonly sign?: boolean | undefined;
40
- readonly storeQueries?: boolean | undefined;
41
- readonly timestamp?: boolean | undefined;
42
- endpoint?: string | undefined;
43
- timeout?: number | undefined;
44
- }>;
45
- ephemeralQueryAccountEnabled?: boolean;
46
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
47
- } & {
48
- endpoint?: string;
49
- headers?: import("./Witness.ts").HttpHeaders;
50
- }>>;
51
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAsB,MAAM,cAAc,CAAA;AAEpE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQjC,CAAA"}
@@ -1,52 +0,0 @@
1
- import { AbstractWitness } from '@xyo-network/abstract-witness';
2
- import type { AnyConfigSchema } from '@xyo-network/module-model';
3
- import type { Payload, Schema } from '@xyo-network/payload-model';
4
- import type { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
5
- import type { ExecutionResult } from 'graphql';
6
- export declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
7
- export type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
8
- export type ApiGraphqlWitnessConfig = WitnessConfig<{
9
- endpoint?: string;
10
- schema: ApiGraphqlWitnessConfigSchema;
11
- timeout?: number;
12
- }>;
13
- export type HttpHeaderValue = string | string[] | number | boolean | null;
14
- export interface HttpHeaders {
15
- [key: string]: HttpHeaderValue;
16
- }
17
- export type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
18
- endpoint?: string;
19
- headers?: HttpHeaders;
20
- }>;
21
- export declare const GraphqlQuerySchema = "network.xyo.graphql.query";
22
- export type GraphqlQuerySchema = typeof GraphqlQuerySchema;
23
- export type GraphqlQuery = Payload<{
24
- query: string;
25
- variables: Record<string, unknown>;
26
- }, GraphqlQuerySchema>;
27
- export declare const GraphqlResultSchema = "network.xyo.graphql.result";
28
- export type GraphqlResultSchema = typeof GraphqlResultSchema;
29
- export type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
30
- http?: {
31
- code?: string;
32
- ipAddress?: string;
33
- status?: number;
34
- };
35
- result?: ExecutionResult<TData, TExtensions>;
36
- }, GraphqlResultSchema>;
37
- export declare const isGraphqlQuery: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").DeepRestrictToStringKeys<{
38
- schema: "network.xyo.graphql.query";
39
- query: string;
40
- variables: {
41
- [x: string]: unknown;
42
- };
43
- }>;
44
- export declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
45
- static readonly configSchemas: Schema[];
46
- static readonly defaultConfigSchema: Schema;
47
- get endpoint(): string;
48
- get headers(): HttpHeaders | undefined;
49
- get timeout(): number | undefined;
50
- protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
51
- }
52
- //# sourceMappingURL=Witness.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,eAAO,MAAM,6BAA6B,mCAAmC,CAAA;AAC7E,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,6BAA6B,CAAA;IACrC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AAEzE,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAA;CAC/B;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,CACjD,eAAe,CAAC,uBAAuB,CAAC,EACxC;IACE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB,CACF,CAAA;AAED,eAAO,MAAM,kBAAkB,8BAA8B,CAAA;AAC7D,MAAM,MAAM,kBAAkB,GAAG,OAA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O,EAAE,MAAM,aAAa,CAAA;AACzF,cAAc,cAAc,CAAA"}
@@ -1,51 +0,0 @@
1
- import { ApiGraphqlWitness } from './Witness.ts';
2
- export declare const ApiGraphqlWitnessPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<ApiGraphqlWitness<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
3
- account?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance | "random";
4
- addToResolvers?: boolean;
5
- additionalSigners?: import(".store/@xyo-network-account-model-virtual-281bb6acc0/package").AccountInstance[];
6
- allowNameResolution?: boolean;
7
- config: import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").DeepRestrictToStringKeys<{
8
- schema: import("@xyo-network/payload-model").Schema;
9
- readonly archiving?: {
10
- readonly archivists?: string[] | undefined;
11
- readonly queries?: string[] | undefined;
12
- } | undefined;
13
- readonly allowedQueries?: string[] | undefined;
14
- readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
15
- readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
16
- readonly labels?: {
17
- [x: string]: string | undefined;
18
- } | undefined;
19
- readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
20
- readonly paging?: {
21
- [x: string]: {
22
- size?: number | undefined;
23
- };
24
- } | undefined;
25
- readonly retry?: {
26
- backoff?: number | undefined;
27
- interval?: number | undefined;
28
- retries?: number | undefined;
29
- } | undefined;
30
- readonly security?: {
31
- readonly allowAnonymous?: boolean | undefined;
32
- readonly allowed?: {
33
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
34
- } | undefined;
35
- readonly disallowed?: {
36
- [x: string]: Lowercase<string>[];
37
- } | undefined;
38
- } | undefined;
39
- readonly sign?: boolean | undefined;
40
- readonly storeQueries?: boolean | undefined;
41
- readonly timestamp?: boolean | undefined;
42
- endpoint?: string | undefined;
43
- timeout?: number | undefined;
44
- }>;
45
- ephemeralQueryAccountEnabled?: boolean;
46
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
47
- } & {
48
- endpoint?: string;
49
- headers?: import("./Witness.ts").HttpHeaders;
50
- }>>;
51
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAsB,MAAM,cAAc,CAAA;AAEpE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQjC,CAAA"}
@@ -1,52 +0,0 @@
1
- import { AbstractWitness } from '@xyo-network/abstract-witness';
2
- import type { AnyConfigSchema } from '@xyo-network/module-model';
3
- import type { Payload, Schema } from '@xyo-network/payload-model';
4
- import type { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
5
- import type { ExecutionResult } from 'graphql';
6
- export declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
7
- export type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
8
- export type ApiGraphqlWitnessConfig = WitnessConfig<{
9
- endpoint?: string;
10
- schema: ApiGraphqlWitnessConfigSchema;
11
- timeout?: number;
12
- }>;
13
- export type HttpHeaderValue = string | string[] | number | boolean | null;
14
- export interface HttpHeaders {
15
- [key: string]: HttpHeaderValue;
16
- }
17
- export type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
18
- endpoint?: string;
19
- headers?: HttpHeaders;
20
- }>;
21
- export declare const GraphqlQuerySchema = "network.xyo.graphql.query";
22
- export type GraphqlQuerySchema = typeof GraphqlQuerySchema;
23
- export type GraphqlQuery = Payload<{
24
- query: string;
25
- variables: Record<string, unknown>;
26
- }, GraphqlQuerySchema>;
27
- export declare const GraphqlResultSchema = "network.xyo.graphql.result";
28
- export type GraphqlResultSchema = typeof GraphqlResultSchema;
29
- export type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
30
- http?: {
31
- code?: string;
32
- ipAddress?: string;
33
- status?: number;
34
- };
35
- result?: ExecutionResult<TData, TExtensions>;
36
- }, GraphqlResultSchema>;
37
- export declare const isGraphqlQuery: (x?: unknown | null) => x is import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").DeepRestrictToStringKeys<{
38
- schema: "network.xyo.graphql.query";
39
- query: string;
40
- variables: {
41
- [x: string]: unknown;
42
- };
43
- }>;
44
- export declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
45
- static readonly configSchemas: Schema[];
46
- static readonly defaultConfigSchema: Schema;
47
- get endpoint(): string;
48
- get headers(): HttpHeaders | undefined;
49
- get timeout(): number | undefined;
50
- protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
51
- }
52
- //# sourceMappingURL=Witness.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,eAAO,MAAM,6BAA6B,mCAAmC,CAAA;AAC7E,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,6BA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