@major-tech/resource-client 0.2.18 → 0.2.21
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/bin/generate-clients.mjs +4 -3
- package/dist/clients/bigquery.cjs +104 -0
- package/dist/clients/bigquery.cjs.map +7 -0
- package/dist/clients/bigquery.d.ts +66 -0
- package/dist/clients/bigquery.d.ts.map +1 -0
- package/dist/clients/bigquery.js +77 -0
- package/dist/clients/bigquery.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/payload-builders/bigquery.cjs +103 -0
- package/dist/payload-builders/bigquery.cjs.map +7 -0
- package/dist/payload-builders/bigquery.d.ts +55 -0
- package/dist/payload-builders/bigquery.d.ts.map +1 -0
- package/dist/payload-builders/bigquery.js +103 -0
- package/dist/payload-builders/bigquery.js.map +1 -0
- package/dist/payload-builders/from-extracted-params.cjs +47 -0
- package/dist/payload-builders/from-extracted-params.cjs.map +2 -2
- package/dist/payload-builders/from-extracted-params.d.ts +4 -0
- package/dist/payload-builders/from-extracted-params.d.ts.map +1 -1
- package/dist/payload-builders/from-extracted-params.js +53 -0
- package/dist/payload-builders/from-extracted-params.js.map +1 -1
- package/dist/payload-builders/index.cjs +8 -0
- package/dist/payload-builders/index.cjs.map +2 -2
- package/dist/payload-builders/index.d.ts +1 -0
- package/dist/payload-builders/index.d.ts.map +1 -1
- package/dist/payload-builders/index.js +2 -0
- package/dist/payload-builders/index.js.map +1 -1
- package/dist/schemas/bigquery.cjs +17 -0
- package/dist/schemas/bigquery.cjs.map +7 -0
- package/dist/schemas/bigquery.d.ts +74 -0
- package/dist/schemas/bigquery.d.ts.map +1 -0
- package/dist/schemas/bigquery.js +5 -0
- package/dist/schemas/bigquery.js.map +1 -0
- package/dist/schemas/index.cjs +1 -0
- package/dist/schemas/index.cjs.map +2 -2
- package/dist/schemas/index.d.ts +3 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/response.d.ts +6 -1
- package/dist/schemas/response.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BigQuery payload and response types
|
|
3
|
+
*/
|
|
4
|
+
export type BigQueryOperation = "query" | "listDatasets" | "listTables" | "getTable" | "insertRows" | "createTable";
|
|
5
|
+
export interface BigQueryFieldSchema {
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
mode?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
fields?: BigQueryFieldSchema[];
|
|
11
|
+
}
|
|
12
|
+
export interface BigQueryTableSchema {
|
|
13
|
+
fields: BigQueryFieldSchema[];
|
|
14
|
+
}
|
|
15
|
+
export interface DbBigQueryPayload {
|
|
16
|
+
type: "database";
|
|
17
|
+
subtype: "bigquery";
|
|
18
|
+
operation: BigQueryOperation;
|
|
19
|
+
sql?: string;
|
|
20
|
+
params?: Record<string, unknown>;
|
|
21
|
+
datasetId?: string;
|
|
22
|
+
tableId?: string;
|
|
23
|
+
rows?: Record<string, unknown>[];
|
|
24
|
+
schema?: BigQueryTableSchema;
|
|
25
|
+
timeoutMs?: number;
|
|
26
|
+
maxResults?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface BigQueryQueryResult {
|
|
29
|
+
rows: Record<string, unknown>[];
|
|
30
|
+
totalRows: number;
|
|
31
|
+
schema: BigQueryFieldSchema[];
|
|
32
|
+
}
|
|
33
|
+
export interface BigQueryListDatasetsResult {
|
|
34
|
+
datasets: Array<{
|
|
35
|
+
datasetId: string;
|
|
36
|
+
projectId: string;
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
39
|
+
export interface BigQueryListTablesResult {
|
|
40
|
+
tables: Array<{
|
|
41
|
+
tableId: string;
|
|
42
|
+
datasetId: string;
|
|
43
|
+
projectId: string;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
export interface BigQueryGetTableResult {
|
|
47
|
+
tableId: string;
|
|
48
|
+
datasetId: string;
|
|
49
|
+
schema: BigQueryFieldSchema[];
|
|
50
|
+
numRows: number;
|
|
51
|
+
numBytes: number;
|
|
52
|
+
creationTime: string;
|
|
53
|
+
lastModifiedTime: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
type: string;
|
|
56
|
+
}
|
|
57
|
+
export interface BigQueryInsertRowsResult {
|
|
58
|
+
insertedRows: number;
|
|
59
|
+
}
|
|
60
|
+
export interface BigQueryCreateTableResult {
|
|
61
|
+
tableId: string;
|
|
62
|
+
datasetId: string;
|
|
63
|
+
created: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* BigQuery result - the actual result data from the invoke
|
|
67
|
+
* This follows the pattern of other database results (DbResult, DbDynamoDBResult, etc.)
|
|
68
|
+
*/
|
|
69
|
+
export interface DbBigQueryResult {
|
|
70
|
+
kind: "bigquery";
|
|
71
|
+
operation: string;
|
|
72
|
+
data: BigQueryQueryResult | BigQueryListDatasetsResult | BigQueryListTablesResult | BigQueryGetTableResult | BigQueryInsertRowsResult | BigQueryCreateTableResult;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=bigquery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigquery.d.ts","sourceRoot":"","sources":["../../src/schemas/bigquery.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,iBAAiB,GACzB,OAAO,GACP,cAAc,GACd,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,aAAa,CAAC;AAElB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,M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IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EACA,mBAAmB,GACnB,0BAA0B,GAC1B,wBAAwB,GACxB,sBAAsB,GACtB,wBAAwB,GACxB,yBAAyB,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigquery.js","sourceRoot":"","sources":["../../src/schemas/bigquery.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
package/dist/schemas/index.cjs
CHANGED
|
@@ -27,6 +27,7 @@ __reExport(index_exports, require("./api-hubspot"), module.exports);
|
|
|
27
27
|
__reExport(index_exports, require("./api-salesforce"), module.exports);
|
|
28
28
|
__reExport(index_exports, require("./api-googlesheets"), module.exports);
|
|
29
29
|
__reExport(index_exports, require("./lambda"), module.exports);
|
|
30
|
+
__reExport(index_exports, require("./bigquery"), module.exports);
|
|
30
31
|
__reExport(index_exports, require("./request"), module.exports);
|
|
31
32
|
__reExport(index_exports, require("./response"), module.exports);
|
|
32
33
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/schemas/index.ts"],
|
|
4
|
-
"sourcesContent": ["// Re-export all types\nexport * from \"./common\";\nexport * from \"./postgres\";\nexport * from \"./mssql\";\nexport * from \"./dynamodb\";\nexport * from \"./cosmosdb\";\nexport * from \"./snowflake\";\nexport * from \"./s3\";\nexport * from \"./api-custom\";\nexport * from \"./api-hubspot\";\nexport * from \"./api-salesforce\";\nexport * from \"./api-googlesheets\";\nexport * from \"./lambda\";\nexport * from \"./request\";\nexport * from \"./response\";\n\n// Import for discriminated union\nimport type { ApiCustomPayload } from \"./api-custom\";\nimport type { ApiHubSpotPayload } from \"./api-hubspot\";\nimport type { ApiSalesforcePayload } from \"./api-salesforce\";\nimport type { ApiGoogleSheetsPayload } from \"./api-googlesheets\";\nimport type { DbPostgresPayload } from \"./postgres\";\nimport type { DbMssqlPayload } from \"./mssql\";\nimport type { DbDynamoDBPayload } from \"./dynamodb\";\nimport type { DbCosmosDBPayload } from \"./cosmosdb\";\nimport type { DbSnowflakePayload } from \"./snowflake\";\nimport type { StorageS3Payload } from \"./s3\";\nimport type { ApiLambdaPayload } from \"./lambda\";\n\n/**\n * Discriminated union of all resource payload types\n * Use the 'subtype' field to narrow the type\n */\nexport type ResourceInvokePayload =\n | ApiCustomPayload\n | DbPostgresPayload\n | DbMssqlPayload\n | DbDynamoDBPayload\n | DbCosmosDBPayload\n | DbSnowflakePayload\n | ApiHubSpotPayload\n | ApiSalesforcePayload\n | ApiGoogleSheetsPayload\n | StorageS3Payload\n | ApiLambdaPayload;\n\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;AACA,0BAAc,qBADd;AAEA,0BAAc,uBAFd;AAGA,0BAAc,oBAHd;AAIA,0BAAc,uBAJd;AAKA,0BAAc,uBALd;AAMA,0BAAc,wBANd;AAOA,0BAAc,iBAPd;AAQA,0BAAc,yBARd;AASA,0BAAc,0BATd;AAUA,0BAAc,6BAVd;AAWA,0BAAc,+BAXd;AAYA,0BAAc,qBAZd;AAaA,0BAAc,
|
|
4
|
+
"sourcesContent": ["// Re-export all types\nexport * from \"./common\";\nexport * from \"./postgres\";\nexport * from \"./mssql\";\nexport * from \"./dynamodb\";\nexport * from \"./cosmosdb\";\nexport * from \"./snowflake\";\nexport * from \"./s3\";\nexport * from \"./api-custom\";\nexport * from \"./api-hubspot\";\nexport * from \"./api-salesforce\";\nexport * from \"./api-googlesheets\";\nexport * from \"./lambda\";\nexport * from \"./bigquery\";\nexport * from \"./request\";\nexport * from \"./response\";\n\n// Import for discriminated union\nimport type { ApiCustomPayload } from \"./api-custom\";\nimport type { ApiHubSpotPayload } from \"./api-hubspot\";\nimport type { ApiSalesforcePayload } from \"./api-salesforce\";\nimport type { ApiGoogleSheetsPayload } from \"./api-googlesheets\";\nimport type { DbPostgresPayload } from \"./postgres\";\nimport type { DbMssqlPayload } from \"./mssql\";\nimport type { DbDynamoDBPayload } from \"./dynamodb\";\nimport type { DbCosmosDBPayload } from \"./cosmosdb\";\nimport type { DbSnowflakePayload } from \"./snowflake\";\nimport type { StorageS3Payload } from \"./s3\";\nimport type { ApiLambdaPayload } from \"./lambda\";\nimport type { DbBigQueryPayload } from \"./bigquery\";\n\n/**\n * Discriminated union of all resource payload types\n * Use the 'subtype' field to narrow the type\n */\nexport type ResourceInvokePayload =\n | ApiCustomPayload\n | DbPostgresPayload\n | DbMssqlPayload\n | DbDynamoDBPayload\n | DbCosmosDBPayload\n | DbSnowflakePayload\n | ApiHubSpotPayload\n | ApiSalesforcePayload\n | ApiGoogleSheetsPayload\n | StorageS3Payload\n | ApiLambdaPayload\n | DbBigQueryPayload;\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;AACA,0BAAc,qBADd;AAEA,0BAAc,uBAFd;AAGA,0BAAc,oBAHd;AAIA,0BAAc,uBAJd;AAKA,0BAAc,uBALd;AAMA,0BAAc,wBANd;AAOA,0BAAc,iBAPd;AAQA,0BAAc,yBARd;AASA,0BAAc,0BATd;AAUA,0BAAc,6BAVd;AAWA,0BAAc,+BAXd;AAYA,0BAAc,qBAZd;AAaA,0BAAc,uBAbd;AAcA,0BAAc,sBAdd;AAeA,0BAAc,uBAfd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./api-hubspot";
|
|
|
10
10
|
export * from "./api-salesforce";
|
|
11
11
|
export * from "./api-googlesheets";
|
|
12
12
|
export * from "./lambda";
|
|
13
|
+
export * from "./bigquery";
|
|
13
14
|
export * from "./request";
|
|
14
15
|
export * from "./response";
|
|
15
16
|
import type { ApiCustomPayload } from "./api-custom";
|
|
@@ -23,9 +24,10 @@ import type { DbCosmosDBPayload } from "./cosmosdb";
|
|
|
23
24
|
import type { DbSnowflakePayload } from "./snowflake";
|
|
24
25
|
import type { StorageS3Payload } from "./s3";
|
|
25
26
|
import type { ApiLambdaPayload } from "./lambda";
|
|
27
|
+
import type { DbBigQueryPayload } from "./bigquery";
|
|
26
28
|
/**
|
|
27
29
|
* Discriminated union of all resource payload types
|
|
28
30
|
* Use the 'subtype' field to narrow the type
|
|
29
31
|
*/
|
|
30
|
-
export type ResourceInvokePayload = ApiCustomPayload | DbPostgresPayload | DbMssqlPayload | DbDynamoDBPayload | DbCosmosDBPayload | DbSnowflakePayload | ApiHubSpotPayload | ApiSalesforcePayload | ApiGoogleSheetsPayload | StorageS3Payload | ApiLambdaPayload;
|
|
32
|
+
export type ResourceInvokePayload = ApiCustomPayload | DbPostgresPayload | DbMssqlPayload | DbDynamoDBPayload | DbCosmosDBPayload | DbSnowflakePayload | ApiHubSpotPayload | ApiSalesforcePayload | ApiGoogleSheetsPayload | StorageS3Payload | ApiLambdaPayload | DbBigQueryPayload;
|
|
31
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,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B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAG3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAC7B,gBAAgB,GAChB,iBAAiB,GACjB,cAAc,GACd,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,sBAAsB,GACtB,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./api-hubspot";
|
|
|
11
11
|
export * from "./api-salesforce";
|
|
12
12
|
export * from "./api-googlesheets";
|
|
13
13
|
export * from "./lambda";
|
|
14
|
+
export * from "./bigquery";
|
|
14
15
|
export * from "./request";
|
|
15
16
|
export * from "./response";
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -5,10 +5,11 @@ import type { DbDynamoDBResult } from "./dynamodb";
|
|
|
5
5
|
import type { DbCosmosDBResult, DbCosmosDBResultGeneric } from "./cosmosdb";
|
|
6
6
|
import type { DbSnowflakeResult } from "./snowflake";
|
|
7
7
|
import type { ApiLambdaResult } from "./lambda";
|
|
8
|
+
import type { DbBigQueryResult } from "./bigquery";
|
|
8
9
|
/**
|
|
9
10
|
* Union of all possible resource invocation result types
|
|
10
11
|
*/
|
|
11
|
-
export type ResourceInvokeSuccess = ApiResult | DbResult | StorageS3Result | DbDynamoDBResult | DbCosmosDBResult | DbSnowflakeResult | ApiLambdaResult;
|
|
12
|
+
export type ResourceInvokeSuccess = ApiResult | DbResult | StorageS3Result | DbDynamoDBResult | DbCosmosDBResult | DbSnowflakeResult | ApiLambdaResult | DbBigQueryResult;
|
|
12
13
|
/**
|
|
13
14
|
* Base successful invocation response - generic over result type
|
|
14
15
|
*/
|
|
@@ -68,4 +69,8 @@ export type SnowflakeInvokeResponse = BaseInvokeSuccess<DbSnowflakeResult> | Inv
|
|
|
68
69
|
* Response from Lambda resource invocation
|
|
69
70
|
*/
|
|
70
71
|
export type LambdaInvokeResponse = BaseInvokeSuccess<ApiLambdaResult> | InvokeFailure;
|
|
72
|
+
/**
|
|
73
|
+
* Response from BigQuery database resource invocation
|
|
74
|
+
*/
|
|
75
|
+
export type BigQueryInvokeResponse = BaseInvokeSuccess<DbBigQueryResult> | InvokeFailure;
|
|
71
76
|
//# sourceMappingURL=response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../src/schemas/response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../src/schemas/response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,E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