@apideck/unify 0.42.0 → 0.42.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.
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/logsfilter.d.ts +49 -0
- package/models/components/logsfilter.d.ts.map +1 -1
- package/models/components/logsfilter.js +24 -1
- package/models/components/logsfilter.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +4 -4
- package/src/models/components/logsfilter.ts +67 -0
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -38,9 +38,9 @@ export type SDKOptions = {
|
|
|
38
38
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
39
39
|
export declare const SDK_METADATA: {
|
|
40
40
|
readonly language: "typescript";
|
|
41
|
-
readonly openapiDocVersion: "10.24.
|
|
42
|
-
readonly sdkVersion: "0.42.
|
|
43
|
-
readonly genVersion: "2.
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.42.
|
|
41
|
+
readonly openapiDocVersion: "10.24.39";
|
|
42
|
+
readonly sdkVersion: "0.42.1";
|
|
43
|
+
readonly genVersion: "2.893.0";
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.42.1 2.893.0 10.24.39 @apideck/unify";
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -27,9 +27,9 @@ function serverURLFromOptions(options) {
|
|
|
27
27
|
}
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
|
-
openapiDocVersion: "10.24.
|
|
31
|
-
sdkVersion: "0.42.
|
|
32
|
-
genVersion: "2.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.42.
|
|
30
|
+
openapiDocVersion: "10.24.39",
|
|
31
|
+
sdkVersion: "0.42.1",
|
|
32
|
+
genVersion: "2.893.0",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.42.1 2.893.0 10.24.39 @apideck/unify",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor the match; EXACT requires the whole path to match. Only applied when path is set.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PathMatchMode: {
|
|
7
|
+
readonly Contains: "CONTAINS";
|
|
8
|
+
readonly StartsWith: "STARTS_WITH";
|
|
9
|
+
readonly EndsWith: "ENDS_WITH";
|
|
10
|
+
readonly Exact: "EXACT";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor the match; EXACT requires the whole path to match. Only applied when path is set.
|
|
14
|
+
*/
|
|
15
|
+
export type PathMatchMode = OpenEnum<typeof PathMatchMode>;
|
|
2
16
|
export type LogsFilter = {
|
|
17
|
+
/**
|
|
18
|
+
* Filter by connector ID. Known limitation: this field is not currently applied at the log query resolver — connector filtering is performed via the service identifier internally (see GH-10099).
|
|
19
|
+
*/
|
|
3
20
|
connectorId?: string | null | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Filter by request path. Match behavior is controlled by path_match_mode (defaults to CONTAINS).
|
|
23
|
+
*/
|
|
24
|
+
path?: string | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor the match; EXACT requires the whole path to match. Only applied when path is set.
|
|
27
|
+
*/
|
|
28
|
+
pathMatchMode?: PathMatchMode | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Filter by a single HTTP method.
|
|
31
|
+
*/
|
|
32
|
+
httpMethod?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Filter by multiple HTTP methods.
|
|
35
|
+
*/
|
|
36
|
+
httpMethods?: Array<string> | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Filter logs at or after this ISO 8601 date-time (inclusive).
|
|
39
|
+
*/
|
|
40
|
+
startDate?: Date | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date.
|
|
43
|
+
*/
|
|
44
|
+
endDate?: Date | null | undefined;
|
|
4
45
|
/**
|
|
5
46
|
* Filter by a single HTTP status code. For backward compatibility - use status_codes for multiple values.
|
|
6
47
|
*/
|
|
@@ -12,8 +53,16 @@ export type LogsFilter = {
|
|
|
12
53
|
excludeUnifiedApis?: string | null | undefined;
|
|
13
54
|
};
|
|
14
55
|
/** @internal */
|
|
56
|
+
export declare const PathMatchMode$outboundSchema: z.ZodType<string, z.ZodTypeDef, PathMatchMode>;
|
|
57
|
+
/** @internal */
|
|
15
58
|
export type LogsFilter$Outbound = {
|
|
16
59
|
connector_id?: string | null | undefined;
|
|
60
|
+
path?: string | null | undefined;
|
|
61
|
+
path_match_mode: string | null;
|
|
62
|
+
http_method?: string | null | undefined;
|
|
63
|
+
http_methods?: Array<string> | null | undefined;
|
|
64
|
+
start_date?: string | null | undefined;
|
|
65
|
+
end_date?: string | null | undefined;
|
|
17
66
|
status_code?: number | null | undefined;
|
|
18
67
|
status_codes?: Array<number> | null | undefined;
|
|
19
68
|
exclude_unified_apis?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logsfilter.d.ts","sourceRoot":"","sources":["../../src/models/components/logsfilter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAA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;IAChD,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,UAAU,CAwBV,CAAC;AAEH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D"}
|
|
@@ -36,19 +36,42 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.LogsFilter$outboundSchema = void 0;
|
|
39
|
+
exports.LogsFilter$outboundSchema = exports.PathMatchMode$outboundSchema = exports.PathMatchMode = void 0;
|
|
40
40
|
exports.logsFilterToJSON = logsFilterToJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const openEnums = __importStar(require("../../types/enums.js"));
|
|
44
|
+
/**
|
|
45
|
+
* How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor the match; EXACT requires the whole path to match. Only applied when path is set.
|
|
46
|
+
*/
|
|
47
|
+
exports.PathMatchMode = {
|
|
48
|
+
Contains: "CONTAINS",
|
|
49
|
+
StartsWith: "STARTS_WITH",
|
|
50
|
+
EndsWith: "ENDS_WITH",
|
|
51
|
+
Exact: "EXACT",
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
exports.PathMatchMode$outboundSchema = openEnums.outboundSchema(exports.PathMatchMode);
|
|
43
55
|
/** @internal */
|
|
44
56
|
exports.LogsFilter$outboundSchema = z.object({
|
|
45
57
|
connectorId: z.nullable(z.string()).optional(),
|
|
58
|
+
path: z.nullable(z.string()).optional(),
|
|
59
|
+
pathMatchMode: z.nullable(exports.PathMatchMode$outboundSchema.default("CONTAINS")),
|
|
60
|
+
httpMethod: z.nullable(z.string()).optional(),
|
|
61
|
+
httpMethods: z.nullable(z.array(z.string())).optional(),
|
|
62
|
+
startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
63
|
+
endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
46
64
|
statusCode: z.nullable(z.number()).optional(),
|
|
47
65
|
statusCodes: z.nullable(z.array(z.number())).optional(),
|
|
48
66
|
excludeUnifiedApis: z.nullable(z.string()).optional(),
|
|
49
67
|
}).transform((v) => {
|
|
50
68
|
return (0, primitives_js_1.remap)(v, {
|
|
51
69
|
connectorId: "connector_id",
|
|
70
|
+
pathMatchMode: "path_match_mode",
|
|
71
|
+
httpMethod: "http_method",
|
|
72
|
+
httpMethods: "http_methods",
|
|
73
|
+
startDate: "start_date",
|
|
74
|
+
endDate: "end_date",
|
|
52
75
|
statusCode: "status_code",
|
|
53
76
|
statusCodes: "status_codes",
|
|
54
77
|
excludeUnifiedApis: "exclude_unified_apis",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logsfilter.js","sourceRoot":"","sources":["../../src/models/components/logsfilter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"logsfilter.js","sourceRoot":"","sources":["../../src/models/components/logsfilter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHH,4CAEC;AAhHD,0CAA4B;AAC5B,2DAA0D;AAC1D,gEAAkD;AAGlD;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,OAAO;CACN,CAAC;AA8CX,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,SAAS,CAAC,cAAc,CAAC,qBAAa,CAAC,CAAC;AAgB5C,gBAA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AE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,iBAAiB;QAChC,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,UAAU;QACnB,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;QAC3B,kBAAkB,EAAE,sBAAsB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,iCAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -67,8 +67,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
67
67
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
|
-
openapiDocVersion: "10.24.
|
|
71
|
-
sdkVersion: "0.42.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 0.42.
|
|
70
|
+
openapiDocVersion: "10.24.39",
|
|
71
|
+
sdkVersion: "0.42.1",
|
|
72
|
+
genVersion: "2.893.0",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 0.42.1 2.893.0 10.24.39 @apideck/unify",
|
|
74
74
|
} as const;
|
|
@@ -4,9 +4,52 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor the match; EXACT requires the whole path to match. Only applied when path is set.
|
|
12
|
+
*/
|
|
13
|
+
export const PathMatchMode = {
|
|
14
|
+
Contains: "CONTAINS",
|
|
15
|
+
StartsWith: "STARTS_WITH",
|
|
16
|
+
EndsWith: "ENDS_WITH",
|
|
17
|
+
Exact: "EXACT",
|
|
18
|
+
} as const;
|
|
19
|
+
/**
|
|
20
|
+
* How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor the match; EXACT requires the whole path to match. Only applied when path is set.
|
|
21
|
+
*/
|
|
22
|
+
export type PathMatchMode = OpenEnum<typeof PathMatchMode>;
|
|
7
23
|
|
|
8
24
|
export type LogsFilter = {
|
|
25
|
+
/**
|
|
26
|
+
* Filter by connector ID. Known limitation: this field is not currently applied at the log query resolver — connector filtering is performed via the service identifier internally (see GH-10099).
|
|
27
|
+
*/
|
|
9
28
|
connectorId?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Filter by request path. Match behavior is controlled by path_match_mode (defaults to CONTAINS).
|
|
31
|
+
*/
|
|
32
|
+
path?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor the match; EXACT requires the whole path to match. Only applied when path is set.
|
|
35
|
+
*/
|
|
36
|
+
pathMatchMode?: PathMatchMode | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Filter by a single HTTP method.
|
|
39
|
+
*/
|
|
40
|
+
httpMethod?: string | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Filter by multiple HTTP methods.
|
|
43
|
+
*/
|
|
44
|
+
httpMethods?: Array<string> | null | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Filter logs at or after this ISO 8601 date-time (inclusive).
|
|
47
|
+
*/
|
|
48
|
+
startDate?: Date | null | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date.
|
|
51
|
+
*/
|
|
52
|
+
endDate?: Date | null | undefined;
|
|
10
53
|
/**
|
|
11
54
|
* Filter by a single HTTP status code. For backward compatibility - use status_codes for multiple values.
|
|
12
55
|
*/
|
|
@@ -18,9 +61,22 @@ export type LogsFilter = {
|
|
|
18
61
|
excludeUnifiedApis?: string | null | undefined;
|
|
19
62
|
};
|
|
20
63
|
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const PathMatchMode$outboundSchema: z.ZodType<
|
|
66
|
+
string,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
PathMatchMode
|
|
69
|
+
> = openEnums.outboundSchema(PathMatchMode);
|
|
70
|
+
|
|
21
71
|
/** @internal */
|
|
22
72
|
export type LogsFilter$Outbound = {
|
|
23
73
|
connector_id?: string | null | undefined;
|
|
74
|
+
path?: string | null | undefined;
|
|
75
|
+
path_match_mode: string | null;
|
|
76
|
+
http_method?: string | null | undefined;
|
|
77
|
+
http_methods?: Array<string> | null | undefined;
|
|
78
|
+
start_date?: string | null | undefined;
|
|
79
|
+
end_date?: string | null | undefined;
|
|
24
80
|
status_code?: number | null | undefined;
|
|
25
81
|
status_codes?: Array<number> | null | undefined;
|
|
26
82
|
exclude_unified_apis?: string | null | undefined;
|
|
@@ -33,12 +89,23 @@ export const LogsFilter$outboundSchema: z.ZodType<
|
|
|
33
89
|
LogsFilter
|
|
34
90
|
> = z.object({
|
|
35
91
|
connectorId: z.nullable(z.string()).optional(),
|
|
92
|
+
path: z.nullable(z.string()).optional(),
|
|
93
|
+
pathMatchMode: z.nullable(PathMatchMode$outboundSchema.default("CONTAINS")),
|
|
94
|
+
httpMethod: z.nullable(z.string()).optional(),
|
|
95
|
+
httpMethods: z.nullable(z.array(z.string())).optional(),
|
|
96
|
+
startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
97
|
+
endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
36
98
|
statusCode: z.nullable(z.number()).optional(),
|
|
37
99
|
statusCodes: z.nullable(z.array(z.number())).optional(),
|
|
38
100
|
excludeUnifiedApis: z.nullable(z.string()).optional(),
|
|
39
101
|
}).transform((v) => {
|
|
40
102
|
return remap$(v, {
|
|
41
103
|
connectorId: "connector_id",
|
|
104
|
+
pathMatchMode: "path_match_mode",
|
|
105
|
+
httpMethod: "http_method",
|
|
106
|
+
httpMethods: "http_methods",
|
|
107
|
+
startDate: "start_date",
|
|
108
|
+
endDate: "end_date",
|
|
42
109
|
statusCode: "status_code",
|
|
43
110
|
statusCodes: "status_codes",
|
|
44
111
|
excludeUnifiedApis: "exclude_unified_apis",
|