@hookdeck/outpost-sdk 0.8.0 → 0.9.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/README.md +35 -2
- package/bin/mcp-server.js +386 -114
- package/bin/mcp-server.js.map +33 -31
- package/dist/commonjs/funcs/attemptsList.d.ts +4 -2
- package/dist/commonjs/funcs/attemptsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/attemptsList.js +43 -7
- package/dist/commonjs/funcs/attemptsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.d.ts +1 -1
- package/dist/commonjs/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js +6 -6
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsListAttempts.d.ts +4 -2
- package/dist/commonjs/funcs/destinationsListAttempts.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsListAttempts.js +41 -7
- package/dist/commonjs/funcs/destinationsListAttempts.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js +6 -6
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +4 -2
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +42 -7
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/{tenantsListTenants.d.ts → tenantsList.d.ts} +5 -3
- package/dist/commonjs/funcs/tenantsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/{tenantsListTenants.js → tenantsList.js} +48 -19
- package/dist/commonjs/funcs/tenantsList.js.map +1 -0
- package/dist/commonjs/funcs/tenantsUpsert.d.ts +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js +6 -6
- package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/attemptsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/attemptsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsCreate.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsCreate.js +2 -2
- package/dist/commonjs/mcp-server/tools/destinationsCreate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsListAttempts.js +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsListAttempts.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.js +2 -2
- package/dist/commonjs/mcp-server/tools/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/tenantsList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{tenantsListTenants.js → tenantsList.js} +8 -12
- package/dist/commonjs/mcp-server/tools/tenantsList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.js +2 -2
- package/dist/commonjs/mcp-server/tools/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/models/components/destinationschemafield.d.ts +1 -0
- package/dist/commonjs/models/components/destinationschemafield.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationschemafield.js +1 -0
- package/dist/commonjs/models/components/destinationschemafield.js.map +1 -1
- package/dist/commonjs/models/operations/createtenantdestination.d.ts +2 -2
- package/dist/commonjs/models/operations/createtenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createtenantdestination.js +2 -2
- package/dist/commonjs/models/operations/createtenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/getattempt.d.ts +2 -2
- package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts +2 -2
- package/dist/commonjs/models/operations/listattempts.d.ts +81 -13
- package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listattempts.js +78 -7
- package/dist/commonjs/models/operations/listattempts.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +66 -5
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +64 -3
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts +43 -7
- package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinationattempts.js +50 -3
- package/dist/commonjs/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts +4 -4
- package/dist/commonjs/models/operations/listtenants.d.ts +31 -0
- package/dist/commonjs/models/operations/listtenants.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenants.js +41 -1
- package/dist/commonjs/models/operations/listtenants.js.map +1 -1
- package/dist/commonjs/models/operations/updatetenantdestination.d.ts +2 -2
- package/dist/commonjs/models/operations/updatetenantdestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatetenantdestination.js +2 -2
- package/dist/commonjs/models/operations/updatetenantdestination.js.map +1 -1
- package/dist/commonjs/models/operations/upserttenant.d.ts +2 -2
- package/dist/commonjs/models/operations/upserttenant.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upserttenant.js +2 -2
- package/dist/commonjs/models/operations/upserttenant.js.map +1 -1
- package/dist/commonjs/sdk/attempts.d.ts +4 -1
- package/dist/commonjs/sdk/attempts.d.ts.map +1 -1
- package/dist/commonjs/sdk/attempts.js +2 -1
- package/dist/commonjs/sdk/attempts.js.map +1 -1
- package/dist/commonjs/sdk/destinations.d.ts +6 -3
- package/dist/commonjs/sdk/destinations.d.ts.map +1 -1
- package/dist/commonjs/sdk/destinations.js +6 -5
- package/dist/commonjs/sdk/destinations.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +4 -1
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +2 -1
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/commonjs/sdk/tenants.d.ts +5 -2
- package/dist/commonjs/sdk/tenants.d.ts.map +1 -1
- package/dist/commonjs/sdk/tenants.js +6 -5
- package/dist/commonjs/sdk/tenants.js.map +1 -1
- package/dist/esm/funcs/attemptsList.d.ts +4 -2
- package/dist/esm/funcs/attemptsList.d.ts.map +1 -1
- package/dist/esm/funcs/attemptsList.js +43 -7
- package/dist/esm/funcs/attemptsList.js.map +1 -1
- package/dist/esm/funcs/destinationsCreate.d.ts +1 -1
- package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsCreate.js +6 -6
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsListAttempts.d.ts +4 -2
- package/dist/esm/funcs/destinationsListAttempts.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsListAttempts.js +41 -7
- package/dist/esm/funcs/destinationsListAttempts.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts +1 -1
- package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js +6 -6
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +4 -2
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +42 -7
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/{tenantsListTenants.d.ts → tenantsList.d.ts} +5 -3
- package/dist/esm/funcs/tenantsList.d.ts.map +1 -0
- package/dist/esm/funcs/{tenantsListTenants.js → tenantsList.js} +47 -18
- package/dist/esm/funcs/tenantsList.js.map +1 -0
- package/dist/esm/funcs/tenantsUpsert.d.ts +1 -1
- package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js +6 -6
- package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +3 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/attemptsList.js +1 -1
- package/dist/esm/mcp-server/tools/attemptsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsCreate.d.ts +1 -1
- package/dist/esm/mcp-server/tools/destinationsCreate.js +2 -2
- package/dist/esm/mcp-server/tools/destinationsCreate.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsListAttempts.js +1 -1
- package/dist/esm/mcp-server/tools/destinationsListAttempts.js.map +1 -1
- package/dist/esm/mcp-server/tools/destinationsUpdate.d.ts +1 -1
- package/dist/esm/mcp-server/tools/destinationsUpdate.js +2 -2
- package/dist/esm/mcp-server/tools/destinationsUpdate.js.map +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/tenantsList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/tenantsList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{tenantsListTenants.js → tenantsList.js} +7 -11
- package/dist/esm/mcp-server/tools/tenantsList.js.map +1 -0
- package/dist/esm/mcp-server/tools/tenantsUpsert.d.ts +1 -1
- package/dist/esm/mcp-server/tools/tenantsUpsert.js +2 -2
- package/dist/esm/mcp-server/tools/tenantsUpsert.js.map +1 -1
- package/dist/esm/models/components/destinationschemafield.d.ts +1 -0
- package/dist/esm/models/components/destinationschemafield.d.ts.map +1 -1
- package/dist/esm/models/components/destinationschemafield.js +1 -0
- package/dist/esm/models/components/destinationschemafield.js.map +1 -1
- package/dist/esm/models/operations/createtenantdestination.d.ts +2 -2
- package/dist/esm/models/operations/createtenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/createtenantdestination.js +2 -2
- package/dist/esm/models/operations/createtenantdestination.js.map +1 -1
- package/dist/esm/models/operations/getattempt.d.ts +2 -2
- package/dist/esm/models/operations/gettenantdestinationattempt.d.ts +2 -2
- package/dist/esm/models/operations/listattempts.d.ts +81 -13
- package/dist/esm/models/operations/listattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listattempts.js +69 -6
- package/dist/esm/models/operations/listattempts.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +66 -5
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +57 -2
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts +43 -7
- package/dist/esm/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinationattempts.js +45 -2
- package/dist/esm/models/operations/listtenantdestinationattempts.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.d.ts +4 -4
- package/dist/esm/models/operations/listtenants.d.ts +31 -0
- package/dist/esm/models/operations/listtenants.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenants.js +36 -0
- package/dist/esm/models/operations/listtenants.js.map +1 -1
- package/dist/esm/models/operations/updatetenantdestination.d.ts +2 -2
- package/dist/esm/models/operations/updatetenantdestination.d.ts.map +1 -1
- package/dist/esm/models/operations/updatetenantdestination.js +2 -2
- package/dist/esm/models/operations/updatetenantdestination.js.map +1 -1
- package/dist/esm/models/operations/upserttenant.d.ts +2 -2
- package/dist/esm/models/operations/upserttenant.d.ts.map +1 -1
- package/dist/esm/models/operations/upserttenant.js +2 -2
- package/dist/esm/models/operations/upserttenant.js.map +1 -1
- package/dist/esm/sdk/attempts.d.ts +4 -1
- package/dist/esm/sdk/attempts.d.ts.map +1 -1
- package/dist/esm/sdk/attempts.js +2 -1
- package/dist/esm/sdk/attempts.js.map +1 -1
- package/dist/esm/sdk/destinations.d.ts +6 -3
- package/dist/esm/sdk/destinations.d.ts.map +1 -1
- package/dist/esm/sdk/destinations.js +6 -5
- package/dist/esm/sdk/destinations.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +4 -1
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +2 -1
- package/dist/esm/sdk/events.js.map +1 -1
- package/dist/esm/sdk/tenants.d.ts +5 -2
- package/dist/esm/sdk/tenants.d.ts.map +1 -1
- package/dist/esm/sdk/tenants.js +6 -5
- package/dist/esm/sdk/tenants.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/attemptsList.ts +107 -33
- package/src/funcs/destinationsCreate.ts +6 -6
- package/src/funcs/destinationsListAttempts.ts +112 -35
- package/src/funcs/destinationsUpdate.ts +6 -6
- package/src/funcs/eventsList.ts +106 -33
- package/src/funcs/{tenantsListTenants.ts → tenantsList.ts} +117 -58
- package/src/funcs/tenantsUpsert.ts +6 -6
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/attemptsList.ts +1 -1
- package/src/mcp-server/tools/destinationsCreate.ts +2 -2
- package/src/mcp-server/tools/destinationsListAttempts.ts +1 -1
- package/src/mcp-server/tools/destinationsUpdate.ts +2 -2
- package/src/mcp-server/tools/eventsList.ts +1 -1
- package/src/mcp-server/tools/{tenantsListTenants.ts → tenantsList.ts} +7 -14
- package/src/mcp-server/tools/tenantsUpsert.ts +2 -2
- package/src/models/components/destinationschemafield.ts +1 -0
- package/src/models/operations/createtenantdestination.ts +4 -4
- package/src/models/operations/getattempt.ts +2 -2
- package/src/models/operations/gettenantdestinationattempt.ts +2 -2
- package/src/models/operations/listattempts.ts +209 -19
- package/src/models/operations/listevents.ts +166 -7
- package/src/models/operations/listtenantdestinationattempts.ts +127 -9
- package/src/models/operations/listtenantdestinations.ts +4 -4
- package/src/models/operations/listtenants.ts +94 -0
- package/src/models/operations/updatetenantdestination.ts +4 -4
- package/src/models/operations/upserttenant.ts +4 -4
- package/src/sdk/attempts.ts +5 -2
- package/src/sdk/destinations.ts +12 -6
- package/src/sdk/events.ts +3 -2
- package/src/sdk/tenants.ts +9 -14
- package/dist/commonjs/funcs/tenantsListTenants.d.ts.map +0 -1
- package/dist/commonjs/funcs/tenantsListTenants.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.d.ts +0 -14
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/tenantsListTenants.js.map +0 -1
- package/dist/esm/funcs/tenantsListTenants.d.ts.map +0 -1
- package/dist/esm/funcs/tenantsListTenants.js.map +0 -1
- package/dist/esm/mcp-server/tools/tenantsListTenants.d.ts +0 -14
- package/dist/esm/mcp-server/tools/tenantsListTenants.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/tenantsListTenants.js.map +0 -1
|
@@ -7,8 +7,28 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Filter attempts by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`).
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used.
|
|
18
|
+
* If not provided with API key auth, returns attempts from all tenants.
|
|
19
|
+
*/
|
|
20
|
+
export type ListAttemptsTenantId = string | Array<string>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`).
|
|
24
|
+
*/
|
|
25
|
+
export type ListAttemptsEventId = string | Array<string>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`).
|
|
29
|
+
*/
|
|
30
|
+
export type DestinationId = string | Array<string>;
|
|
31
|
+
|
|
12
32
|
/**
|
|
13
33
|
* Filter attempts by status.
|
|
14
34
|
*/
|
|
@@ -22,12 +42,12 @@ export const ListAttemptsStatus = {
|
|
|
22
42
|
export type ListAttemptsStatus = ClosedEnum<typeof ListAttemptsStatus>;
|
|
23
43
|
|
|
24
44
|
/**
|
|
25
|
-
* Filter attempts by event topic(s).
|
|
45
|
+
* Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
26
46
|
*/
|
|
27
47
|
export type ListAttemptsTopic = string | Array<string>;
|
|
28
48
|
|
|
29
49
|
/**
|
|
30
|
-
* Fields to include in the response.
|
|
50
|
+
* Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
|
|
31
51
|
*
|
|
32
52
|
* @remarks
|
|
33
53
|
* - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
|
|
@@ -61,23 +81,27 @@ export type ListAttemptsDir = ClosedEnum<typeof ListAttemptsDir>;
|
|
|
61
81
|
|
|
62
82
|
export type ListAttemptsRequest = {
|
|
63
83
|
/**
|
|
64
|
-
* Filter attempts by tenant ID.
|
|
84
|
+
* Filter attempts by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`).
|
|
85
|
+
*
|
|
86
|
+
* @remarks
|
|
87
|
+
* When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used.
|
|
88
|
+
* If not provided with API key auth, returns attempts from all tenants.
|
|
65
89
|
*/
|
|
66
|
-
tenantId?: string | undefined;
|
|
90
|
+
tenantId?: string | Array<string> | undefined;
|
|
67
91
|
/**
|
|
68
|
-
* Filter attempts by event ID.
|
|
92
|
+
* Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`).
|
|
69
93
|
*/
|
|
70
|
-
eventId?: string | undefined;
|
|
94
|
+
eventId?: string | Array<string> | undefined;
|
|
71
95
|
/**
|
|
72
|
-
* Filter attempts by destination ID.
|
|
96
|
+
* Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`).
|
|
73
97
|
*/
|
|
74
|
-
destinationId?: string | undefined;
|
|
98
|
+
destinationId?: string | Array<string> | undefined;
|
|
75
99
|
/**
|
|
76
100
|
* Filter attempts by status.
|
|
77
101
|
*/
|
|
78
102
|
status?: ListAttemptsStatus | undefined;
|
|
79
103
|
/**
|
|
80
|
-
* Filter attempts by event topic(s).
|
|
104
|
+
* Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
81
105
|
*/
|
|
82
106
|
topic?: string | Array<string> | undefined;
|
|
83
107
|
/**
|
|
@@ -88,6 +112,14 @@ export type ListAttemptsRequest = {
|
|
|
88
112
|
* Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format).
|
|
89
113
|
*/
|
|
90
114
|
timeLte?: Date | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format).
|
|
117
|
+
*/
|
|
118
|
+
timeGt?: Date | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format).
|
|
121
|
+
*/
|
|
122
|
+
timeLt?: Date | undefined;
|
|
91
123
|
/**
|
|
92
124
|
* Number of items per page (default 100, max 1000).
|
|
93
125
|
*/
|
|
@@ -101,7 +133,7 @@ export type ListAttemptsRequest = {
|
|
|
101
133
|
*/
|
|
102
134
|
prev?: string | undefined;
|
|
103
135
|
/**
|
|
104
|
-
* Fields to include in the response.
|
|
136
|
+
* Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
|
|
105
137
|
*
|
|
106
138
|
* @remarks
|
|
107
139
|
* - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
|
|
@@ -119,6 +151,105 @@ export type ListAttemptsRequest = {
|
|
|
119
151
|
dir?: ListAttemptsDir | undefined;
|
|
120
152
|
};
|
|
121
153
|
|
|
154
|
+
export type ListAttemptsResponse = {
|
|
155
|
+
result: components.AttemptPaginatedResult;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/** @internal */
|
|
159
|
+
export const ListAttemptsTenantId$inboundSchema: z.ZodType<
|
|
160
|
+
ListAttemptsTenantId,
|
|
161
|
+
z.ZodTypeDef,
|
|
162
|
+
unknown
|
|
163
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
164
|
+
/** @internal */
|
|
165
|
+
export type ListAttemptsTenantId$Outbound = string | Array<string>;
|
|
166
|
+
|
|
167
|
+
/** @internal */
|
|
168
|
+
export const ListAttemptsTenantId$outboundSchema: z.ZodType<
|
|
169
|
+
ListAttemptsTenantId$Outbound,
|
|
170
|
+
z.ZodTypeDef,
|
|
171
|
+
ListAttemptsTenantId
|
|
172
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
173
|
+
|
|
174
|
+
export function listAttemptsTenantIdToJSON(
|
|
175
|
+
listAttemptsTenantId: ListAttemptsTenantId,
|
|
176
|
+
): string {
|
|
177
|
+
return JSON.stringify(
|
|
178
|
+
ListAttemptsTenantId$outboundSchema.parse(listAttemptsTenantId),
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
export function listAttemptsTenantIdFromJSON(
|
|
182
|
+
jsonString: string,
|
|
183
|
+
): SafeParseResult<ListAttemptsTenantId, SDKValidationError> {
|
|
184
|
+
return safeParse(
|
|
185
|
+
jsonString,
|
|
186
|
+
(x) => ListAttemptsTenantId$inboundSchema.parse(JSON.parse(x)),
|
|
187
|
+
`Failed to parse 'ListAttemptsTenantId' from JSON`,
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** @internal */
|
|
192
|
+
export const ListAttemptsEventId$inboundSchema: z.ZodType<
|
|
193
|
+
ListAttemptsEventId,
|
|
194
|
+
z.ZodTypeDef,
|
|
195
|
+
unknown
|
|
196
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
197
|
+
/** @internal */
|
|
198
|
+
export type ListAttemptsEventId$Outbound = string | Array<string>;
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const ListAttemptsEventId$outboundSchema: z.ZodType<
|
|
202
|
+
ListAttemptsEventId$Outbound,
|
|
203
|
+
z.ZodTypeDef,
|
|
204
|
+
ListAttemptsEventId
|
|
205
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
206
|
+
|
|
207
|
+
export function listAttemptsEventIdToJSON(
|
|
208
|
+
listAttemptsEventId: ListAttemptsEventId,
|
|
209
|
+
): string {
|
|
210
|
+
return JSON.stringify(
|
|
211
|
+
ListAttemptsEventId$outboundSchema.parse(listAttemptsEventId),
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
export function listAttemptsEventIdFromJSON(
|
|
215
|
+
jsonString: string,
|
|
216
|
+
): SafeParseResult<ListAttemptsEventId, SDKValidationError> {
|
|
217
|
+
return safeParse(
|
|
218
|
+
jsonString,
|
|
219
|
+
(x) => ListAttemptsEventId$inboundSchema.parse(JSON.parse(x)),
|
|
220
|
+
`Failed to parse 'ListAttemptsEventId' from JSON`,
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** @internal */
|
|
225
|
+
export const DestinationId$inboundSchema: z.ZodType<
|
|
226
|
+
DestinationId,
|
|
227
|
+
z.ZodTypeDef,
|
|
228
|
+
unknown
|
|
229
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
230
|
+
/** @internal */
|
|
231
|
+
export type DestinationId$Outbound = string | Array<string>;
|
|
232
|
+
|
|
233
|
+
/** @internal */
|
|
234
|
+
export const DestinationId$outboundSchema: z.ZodType<
|
|
235
|
+
DestinationId$Outbound,
|
|
236
|
+
z.ZodTypeDef,
|
|
237
|
+
DestinationId
|
|
238
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
239
|
+
|
|
240
|
+
export function destinationIdToJSON(destinationId: DestinationId): string {
|
|
241
|
+
return JSON.stringify(DestinationId$outboundSchema.parse(destinationId));
|
|
242
|
+
}
|
|
243
|
+
export function destinationIdFromJSON(
|
|
244
|
+
jsonString: string,
|
|
245
|
+
): SafeParseResult<DestinationId, SDKValidationError> {
|
|
246
|
+
return safeParse(
|
|
247
|
+
jsonString,
|
|
248
|
+
(x) => DestinationId$inboundSchema.parse(JSON.parse(x)),
|
|
249
|
+
`Failed to parse 'DestinationId' from JSON`,
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
122
253
|
/** @internal */
|
|
123
254
|
export const ListAttemptsStatus$inboundSchema: z.ZodNativeEnum<
|
|
124
255
|
typeof ListAttemptsStatus
|
|
@@ -218,15 +349,19 @@ export const ListAttemptsRequest$inboundSchema: z.ZodType<
|
|
|
218
349
|
z.ZodTypeDef,
|
|
219
350
|
unknown
|
|
220
351
|
> = z.object({
|
|
221
|
-
tenant_id: z.string().optional(),
|
|
222
|
-
event_id: z.string().optional(),
|
|
223
|
-
destination_id: z.string().optional(),
|
|
352
|
+
tenant_id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
353
|
+
event_id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
354
|
+
destination_id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
224
355
|
status: ListAttemptsStatus$inboundSchema.optional(),
|
|
225
356
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
226
357
|
"time[gte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
227
358
|
.optional(),
|
|
228
359
|
"time[lte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
229
360
|
.optional(),
|
|
361
|
+
"time[gt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
362
|
+
.optional(),
|
|
363
|
+
"time[lt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
364
|
+
.optional(),
|
|
230
365
|
limit: z.number().int().default(100),
|
|
231
366
|
next: z.string().optional(),
|
|
232
367
|
prev: z.string().optional(),
|
|
@@ -240,18 +375,22 @@ export const ListAttemptsRequest$inboundSchema: z.ZodType<
|
|
|
240
375
|
"destination_id": "destinationId",
|
|
241
376
|
"time[gte]": "timeGte",
|
|
242
377
|
"time[lte]": "timeLte",
|
|
378
|
+
"time[gt]": "timeGt",
|
|
379
|
+
"time[lt]": "timeLt",
|
|
243
380
|
"order_by": "orderBy",
|
|
244
381
|
});
|
|
245
382
|
});
|
|
246
383
|
/** @internal */
|
|
247
384
|
export type ListAttemptsRequest$Outbound = {
|
|
248
|
-
tenant_id?: string | undefined;
|
|
249
|
-
event_id?: string | undefined;
|
|
250
|
-
destination_id?: string | undefined;
|
|
385
|
+
tenant_id?: string | Array<string> | undefined;
|
|
386
|
+
event_id?: string | Array<string> | undefined;
|
|
387
|
+
destination_id?: string | Array<string> | undefined;
|
|
251
388
|
status?: string | undefined;
|
|
252
389
|
topic?: string | Array<string> | undefined;
|
|
253
390
|
"time[gte]"?: string | undefined;
|
|
254
391
|
"time[lte]"?: string | undefined;
|
|
392
|
+
"time[gt]"?: string | undefined;
|
|
393
|
+
"time[lt]"?: string | undefined;
|
|
255
394
|
limit: number;
|
|
256
395
|
next?: string | undefined;
|
|
257
396
|
prev?: string | undefined;
|
|
@@ -266,13 +405,15 @@ export const ListAttemptsRequest$outboundSchema: z.ZodType<
|
|
|
266
405
|
z.ZodTypeDef,
|
|
267
406
|
ListAttemptsRequest
|
|
268
407
|
> = z.object({
|
|
269
|
-
tenantId: z.string().optional(),
|
|
270
|
-
eventId: z.string().optional(),
|
|
271
|
-
destinationId: z.string().optional(),
|
|
408
|
+
tenantId: z.union([z.string(), z.array(z.string())]).optional(),
|
|
409
|
+
eventId: z.union([z.string(), z.array(z.string())]).optional(),
|
|
410
|
+
destinationId: z.union([z.string(), z.array(z.string())]).optional(),
|
|
272
411
|
status: ListAttemptsStatus$outboundSchema.optional(),
|
|
273
412
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
274
413
|
timeGte: z.date().transform(v => v.toISOString()).optional(),
|
|
275
414
|
timeLte: z.date().transform(v => v.toISOString()).optional(),
|
|
415
|
+
timeGt: z.date().transform(v => v.toISOString()).optional(),
|
|
416
|
+
timeLt: z.date().transform(v => v.toISOString()).optional(),
|
|
276
417
|
limit: z.number().int().default(100),
|
|
277
418
|
next: z.string().optional(),
|
|
278
419
|
prev: z.string().optional(),
|
|
@@ -286,6 +427,8 @@ export const ListAttemptsRequest$outboundSchema: z.ZodType<
|
|
|
286
427
|
destinationId: "destination_id",
|
|
287
428
|
timeGte: "time[gte]",
|
|
288
429
|
timeLte: "time[lte]",
|
|
430
|
+
timeGt: "time[gt]",
|
|
431
|
+
timeLt: "time[lt]",
|
|
289
432
|
orderBy: "order_by",
|
|
290
433
|
});
|
|
291
434
|
});
|
|
@@ -306,3 +449,50 @@ export function listAttemptsRequestFromJSON(
|
|
|
306
449
|
`Failed to parse 'ListAttemptsRequest' from JSON`,
|
|
307
450
|
);
|
|
308
451
|
}
|
|
452
|
+
|
|
453
|
+
/** @internal */
|
|
454
|
+
export const ListAttemptsResponse$inboundSchema: z.ZodType<
|
|
455
|
+
ListAttemptsResponse,
|
|
456
|
+
z.ZodTypeDef,
|
|
457
|
+
unknown
|
|
458
|
+
> = z.object({
|
|
459
|
+
Result: components.AttemptPaginatedResult$inboundSchema,
|
|
460
|
+
}).transform((v) => {
|
|
461
|
+
return remap$(v, {
|
|
462
|
+
"Result": "result",
|
|
463
|
+
});
|
|
464
|
+
});
|
|
465
|
+
/** @internal */
|
|
466
|
+
export type ListAttemptsResponse$Outbound = {
|
|
467
|
+
Result: components.AttemptPaginatedResult$Outbound;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
/** @internal */
|
|
471
|
+
export const ListAttemptsResponse$outboundSchema: z.ZodType<
|
|
472
|
+
ListAttemptsResponse$Outbound,
|
|
473
|
+
z.ZodTypeDef,
|
|
474
|
+
ListAttemptsResponse
|
|
475
|
+
> = z.object({
|
|
476
|
+
result: components.AttemptPaginatedResult$outboundSchema,
|
|
477
|
+
}).transform((v) => {
|
|
478
|
+
return remap$(v, {
|
|
479
|
+
result: "Result",
|
|
480
|
+
});
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
export function listAttemptsResponseToJSON(
|
|
484
|
+
listAttemptsResponse: ListAttemptsResponse,
|
|
485
|
+
): string {
|
|
486
|
+
return JSON.stringify(
|
|
487
|
+
ListAttemptsResponse$outboundSchema.parse(listAttemptsResponse),
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
export function listAttemptsResponseFromJSON(
|
|
491
|
+
jsonString: string,
|
|
492
|
+
): SafeParseResult<ListAttemptsResponse, SDKValidationError> {
|
|
493
|
+
return safeParse(
|
|
494
|
+
jsonString,
|
|
495
|
+
(x) => ListAttemptsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
496
|
+
`Failed to parse 'ListAttemptsResponse' from JSON`,
|
|
497
|
+
);
|
|
498
|
+
}
|
|
@@ -7,10 +7,25 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
|
-
* Filter events by
|
|
14
|
+
* Filter events by ID(s). Use bracket notation for multiple values (e.g., `id[0]=abc&id[1]=def`).
|
|
15
|
+
*/
|
|
16
|
+
export type ListEventsId = string | Array<string>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Filter events by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`).
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used.
|
|
23
|
+
* If not provided with API key auth, returns events from all tenants.
|
|
24
|
+
*/
|
|
25
|
+
export type ListEventsTenantId = string | Array<string>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
14
29
|
*/
|
|
15
30
|
export type ListEventsTopic = string | Array<string>;
|
|
16
31
|
|
|
@@ -39,11 +54,19 @@ export type ListEventsDir = ClosedEnum<typeof ListEventsDir>;
|
|
|
39
54
|
|
|
40
55
|
export type ListEventsRequest = {
|
|
41
56
|
/**
|
|
42
|
-
* Filter events by
|
|
57
|
+
* Filter events by ID(s). Use bracket notation for multiple values (e.g., `id[0]=abc&id[1]=def`).
|
|
43
58
|
*/
|
|
44
|
-
|
|
59
|
+
id?: string | Array<string> | undefined;
|
|
45
60
|
/**
|
|
46
|
-
* Filter events by
|
|
61
|
+
* Filter events by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`).
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used.
|
|
65
|
+
* If not provided with API key auth, returns events from all tenants.
|
|
66
|
+
*/
|
|
67
|
+
tenantId?: string | Array<string> | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
47
70
|
*/
|
|
48
71
|
topic?: string | Array<string> | undefined;
|
|
49
72
|
/**
|
|
@@ -54,6 +77,14 @@ export type ListEventsRequest = {
|
|
|
54
77
|
* Filter events with time <= value (RFC3339 or YYYY-MM-DD format).
|
|
55
78
|
*/
|
|
56
79
|
timeLte?: Date | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Filter events with time > value (RFC3339 or YYYY-MM-DD format).
|
|
82
|
+
*/
|
|
83
|
+
timeGt?: Date | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Filter events with time < value (RFC3339 or YYYY-MM-DD format).
|
|
86
|
+
*/
|
|
87
|
+
timeLt?: Date | undefined;
|
|
57
88
|
/**
|
|
58
89
|
* Number of items per page (default 100, max 1000).
|
|
59
90
|
*/
|
|
@@ -76,6 +107,72 @@ export type ListEventsRequest = {
|
|
|
76
107
|
dir?: ListEventsDir | undefined;
|
|
77
108
|
};
|
|
78
109
|
|
|
110
|
+
export type ListEventsResponse = {
|
|
111
|
+
result: components.EventPaginatedResult;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const ListEventsId$inboundSchema: z.ZodType<
|
|
116
|
+
ListEventsId,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
unknown
|
|
119
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type ListEventsId$Outbound = string | Array<string>;
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const ListEventsId$outboundSchema: z.ZodType<
|
|
125
|
+
ListEventsId$Outbound,
|
|
126
|
+
z.ZodTypeDef,
|
|
127
|
+
ListEventsId
|
|
128
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
129
|
+
|
|
130
|
+
export function listEventsIdToJSON(listEventsId: ListEventsId): string {
|
|
131
|
+
return JSON.stringify(ListEventsId$outboundSchema.parse(listEventsId));
|
|
132
|
+
}
|
|
133
|
+
export function listEventsIdFromJSON(
|
|
134
|
+
jsonString: string,
|
|
135
|
+
): SafeParseResult<ListEventsId, SDKValidationError> {
|
|
136
|
+
return safeParse(
|
|
137
|
+
jsonString,
|
|
138
|
+
(x) => ListEventsId$inboundSchema.parse(JSON.parse(x)),
|
|
139
|
+
`Failed to parse 'ListEventsId' from JSON`,
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const ListEventsTenantId$inboundSchema: z.ZodType<
|
|
145
|
+
ListEventsTenantId,
|
|
146
|
+
z.ZodTypeDef,
|
|
147
|
+
unknown
|
|
148
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
149
|
+
/** @internal */
|
|
150
|
+
export type ListEventsTenantId$Outbound = string | Array<string>;
|
|
151
|
+
|
|
152
|
+
/** @internal */
|
|
153
|
+
export const ListEventsTenantId$outboundSchema: z.ZodType<
|
|
154
|
+
ListEventsTenantId$Outbound,
|
|
155
|
+
z.ZodTypeDef,
|
|
156
|
+
ListEventsTenantId
|
|
157
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
158
|
+
|
|
159
|
+
export function listEventsTenantIdToJSON(
|
|
160
|
+
listEventsTenantId: ListEventsTenantId,
|
|
161
|
+
): string {
|
|
162
|
+
return JSON.stringify(
|
|
163
|
+
ListEventsTenantId$outboundSchema.parse(listEventsTenantId),
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
export function listEventsTenantIdFromJSON(
|
|
167
|
+
jsonString: string,
|
|
168
|
+
): SafeParseResult<ListEventsTenantId, SDKValidationError> {
|
|
169
|
+
return safeParse(
|
|
170
|
+
jsonString,
|
|
171
|
+
(x) => ListEventsTenantId$inboundSchema.parse(JSON.parse(x)),
|
|
172
|
+
`Failed to parse 'ListEventsTenantId' from JSON`,
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
79
176
|
/** @internal */
|
|
80
177
|
export const ListEventsTopic$inboundSchema: z.ZodType<
|
|
81
178
|
ListEventsTopic,
|
|
@@ -131,12 +228,17 @@ export const ListEventsRequest$inboundSchema: z.ZodType<
|
|
|
131
228
|
z.ZodTypeDef,
|
|
132
229
|
unknown
|
|
133
230
|
> = z.object({
|
|
134
|
-
|
|
231
|
+
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
232
|
+
tenant_id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
135
233
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
136
234
|
"time[gte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
137
235
|
.optional(),
|
|
138
236
|
"time[lte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
237
|
.optional(),
|
|
238
|
+
"time[gt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
239
|
+
.optional(),
|
|
240
|
+
"time[lt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
241
|
+
.optional(),
|
|
140
242
|
limit: z.number().int().default(100),
|
|
141
243
|
next: z.string().optional(),
|
|
142
244
|
prev: z.string().optional(),
|
|
@@ -147,15 +249,20 @@ export const ListEventsRequest$inboundSchema: z.ZodType<
|
|
|
147
249
|
"tenant_id": "tenantId",
|
|
148
250
|
"time[gte]": "timeGte",
|
|
149
251
|
"time[lte]": "timeLte",
|
|
252
|
+
"time[gt]": "timeGt",
|
|
253
|
+
"time[lt]": "timeLt",
|
|
150
254
|
"order_by": "orderBy",
|
|
151
255
|
});
|
|
152
256
|
});
|
|
153
257
|
/** @internal */
|
|
154
258
|
export type ListEventsRequest$Outbound = {
|
|
155
|
-
|
|
259
|
+
id?: string | Array<string> | undefined;
|
|
260
|
+
tenant_id?: string | Array<string> | undefined;
|
|
156
261
|
topic?: string | Array<string> | undefined;
|
|
157
262
|
"time[gte]"?: string | undefined;
|
|
158
263
|
"time[lte]"?: string | undefined;
|
|
264
|
+
"time[gt]"?: string | undefined;
|
|
265
|
+
"time[lt]"?: string | undefined;
|
|
159
266
|
limit: number;
|
|
160
267
|
next?: string | undefined;
|
|
161
268
|
prev?: string | undefined;
|
|
@@ -169,10 +276,13 @@ export const ListEventsRequest$outboundSchema: z.ZodType<
|
|
|
169
276
|
z.ZodTypeDef,
|
|
170
277
|
ListEventsRequest
|
|
171
278
|
> = z.object({
|
|
172
|
-
|
|
279
|
+
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
280
|
+
tenantId: z.union([z.string(), z.array(z.string())]).optional(),
|
|
173
281
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
174
282
|
timeGte: z.date().transform(v => v.toISOString()).optional(),
|
|
175
283
|
timeLte: z.date().transform(v => v.toISOString()).optional(),
|
|
284
|
+
timeGt: z.date().transform(v => v.toISOString()).optional(),
|
|
285
|
+
timeLt: z.date().transform(v => v.toISOString()).optional(),
|
|
176
286
|
limit: z.number().int().default(100),
|
|
177
287
|
next: z.string().optional(),
|
|
178
288
|
prev: z.string().optional(),
|
|
@@ -183,6 +293,8 @@ export const ListEventsRequest$outboundSchema: z.ZodType<
|
|
|
183
293
|
tenantId: "tenant_id",
|
|
184
294
|
timeGte: "time[gte]",
|
|
185
295
|
timeLte: "time[lte]",
|
|
296
|
+
timeGt: "time[gt]",
|
|
297
|
+
timeLt: "time[lt]",
|
|
186
298
|
orderBy: "order_by",
|
|
187
299
|
});
|
|
188
300
|
});
|
|
@@ -203,3 +315,50 @@ export function listEventsRequestFromJSON(
|
|
|
203
315
|
`Failed to parse 'ListEventsRequest' from JSON`,
|
|
204
316
|
);
|
|
205
317
|
}
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const ListEventsResponse$inboundSchema: z.ZodType<
|
|
321
|
+
ListEventsResponse,
|
|
322
|
+
z.ZodTypeDef,
|
|
323
|
+
unknown
|
|
324
|
+
> = z.object({
|
|
325
|
+
Result: components.EventPaginatedResult$inboundSchema,
|
|
326
|
+
}).transform((v) => {
|
|
327
|
+
return remap$(v, {
|
|
328
|
+
"Result": "result",
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
/** @internal */
|
|
332
|
+
export type ListEventsResponse$Outbound = {
|
|
333
|
+
Result: components.EventPaginatedResult$Outbound;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/** @internal */
|
|
337
|
+
export const ListEventsResponse$outboundSchema: z.ZodType<
|
|
338
|
+
ListEventsResponse$Outbound,
|
|
339
|
+
z.ZodTypeDef,
|
|
340
|
+
ListEventsResponse
|
|
341
|
+
> = z.object({
|
|
342
|
+
result: components.EventPaginatedResult$outboundSchema,
|
|
343
|
+
}).transform((v) => {
|
|
344
|
+
return remap$(v, {
|
|
345
|
+
result: "Result",
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
export function listEventsResponseToJSON(
|
|
350
|
+
listEventsResponse: ListEventsResponse,
|
|
351
|
+
): string {
|
|
352
|
+
return JSON.stringify(
|
|
353
|
+
ListEventsResponse$outboundSchema.parse(listEventsResponse),
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
export function listEventsResponseFromJSON(
|
|
357
|
+
jsonString: string,
|
|
358
|
+
): SafeParseResult<ListEventsResponse, SDKValidationError> {
|
|
359
|
+
return safeParse(
|
|
360
|
+
jsonString,
|
|
361
|
+
(x) => ListEventsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
362
|
+
`Failed to parse 'ListEventsResponse' from JSON`,
|
|
363
|
+
);
|
|
364
|
+
}
|