@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,14 @@ 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 event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`).
|
|
15
|
+
*/
|
|
16
|
+
export type ListTenantDestinationAttemptsEventId = string | Array<string>;
|
|
17
|
+
|
|
12
18
|
/**
|
|
13
19
|
* Filter attempts by status.
|
|
14
20
|
*/
|
|
@@ -24,12 +30,12 @@ export type ListTenantDestinationAttemptsStatus = ClosedEnum<
|
|
|
24
30
|
>;
|
|
25
31
|
|
|
26
32
|
/**
|
|
27
|
-
* Filter attempts by event topic(s).
|
|
33
|
+
* Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
28
34
|
*/
|
|
29
35
|
export type ListTenantDestinationAttemptsTopic = string | Array<string>;
|
|
30
36
|
|
|
31
37
|
/**
|
|
32
|
-
* Fields to include in the response.
|
|
38
|
+
* Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
|
|
33
39
|
*
|
|
34
40
|
* @remarks
|
|
35
41
|
* - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
|
|
@@ -75,15 +81,15 @@ export type ListTenantDestinationAttemptsRequest = {
|
|
|
75
81
|
*/
|
|
76
82
|
destinationId: string;
|
|
77
83
|
/**
|
|
78
|
-
* Filter attempts by event ID.
|
|
84
|
+
* Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`).
|
|
79
85
|
*/
|
|
80
|
-
eventId?: string | undefined;
|
|
86
|
+
eventId?: string | Array<string> | undefined;
|
|
81
87
|
/**
|
|
82
88
|
* Filter attempts by status.
|
|
83
89
|
*/
|
|
84
90
|
status?: ListTenantDestinationAttemptsStatus | undefined;
|
|
85
91
|
/**
|
|
86
|
-
* Filter attempts by event topic(s).
|
|
92
|
+
* Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
87
93
|
*/
|
|
88
94
|
topic?: string | Array<string> | undefined;
|
|
89
95
|
/**
|
|
@@ -94,6 +100,14 @@ export type ListTenantDestinationAttemptsRequest = {
|
|
|
94
100
|
* Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format).
|
|
95
101
|
*/
|
|
96
102
|
timeLte?: Date | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format).
|
|
105
|
+
*/
|
|
106
|
+
timeGt?: Date | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format).
|
|
109
|
+
*/
|
|
110
|
+
timeLt?: Date | undefined;
|
|
97
111
|
/**
|
|
98
112
|
* Number of items per page (default 100, max 1000).
|
|
99
113
|
*/
|
|
@@ -107,7 +121,7 @@ export type ListTenantDestinationAttemptsRequest = {
|
|
|
107
121
|
*/
|
|
108
122
|
prev?: string | undefined;
|
|
109
123
|
/**
|
|
110
|
-
* Fields to include in the response.
|
|
124
|
+
* Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
|
|
111
125
|
*
|
|
112
126
|
* @remarks
|
|
113
127
|
* - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
|
|
@@ -125,6 +139,48 @@ export type ListTenantDestinationAttemptsRequest = {
|
|
|
125
139
|
dir?: ListTenantDestinationAttemptsDir | undefined;
|
|
126
140
|
};
|
|
127
141
|
|
|
142
|
+
export type ListTenantDestinationAttemptsResponse = {
|
|
143
|
+
result: components.AttemptPaginatedResult;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/** @internal */
|
|
147
|
+
export const ListTenantDestinationAttemptsEventId$inboundSchema: z.ZodType<
|
|
148
|
+
ListTenantDestinationAttemptsEventId,
|
|
149
|
+
z.ZodTypeDef,
|
|
150
|
+
unknown
|
|
151
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
152
|
+
/** @internal */
|
|
153
|
+
export type ListTenantDestinationAttemptsEventId$Outbound =
|
|
154
|
+
| string
|
|
155
|
+
| Array<string>;
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const ListTenantDestinationAttemptsEventId$outboundSchema: z.ZodType<
|
|
159
|
+
ListTenantDestinationAttemptsEventId$Outbound,
|
|
160
|
+
z.ZodTypeDef,
|
|
161
|
+
ListTenantDestinationAttemptsEventId
|
|
162
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
163
|
+
|
|
164
|
+
export function listTenantDestinationAttemptsEventIdToJSON(
|
|
165
|
+
listTenantDestinationAttemptsEventId: ListTenantDestinationAttemptsEventId,
|
|
166
|
+
): string {
|
|
167
|
+
return JSON.stringify(
|
|
168
|
+
ListTenantDestinationAttemptsEventId$outboundSchema.parse(
|
|
169
|
+
listTenantDestinationAttemptsEventId,
|
|
170
|
+
),
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
export function listTenantDestinationAttemptsEventIdFromJSON(
|
|
174
|
+
jsonString: string,
|
|
175
|
+
): SafeParseResult<ListTenantDestinationAttemptsEventId, SDKValidationError> {
|
|
176
|
+
return safeParse(
|
|
177
|
+
jsonString,
|
|
178
|
+
(x) =>
|
|
179
|
+
ListTenantDestinationAttemptsEventId$inboundSchema.parse(JSON.parse(x)),
|
|
180
|
+
`Failed to parse 'ListTenantDestinationAttemptsEventId' from JSON`,
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
128
184
|
/** @internal */
|
|
129
185
|
export const ListTenantDestinationAttemptsStatus$inboundSchema: z.ZodNativeEnum<
|
|
130
186
|
typeof ListTenantDestinationAttemptsStatus
|
|
@@ -237,13 +293,17 @@ export const ListTenantDestinationAttemptsRequest$inboundSchema: z.ZodType<
|
|
|
237
293
|
> = z.object({
|
|
238
294
|
tenant_id: z.string(),
|
|
239
295
|
destination_id: z.string(),
|
|
240
|
-
event_id: z.string().optional(),
|
|
296
|
+
event_id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
241
297
|
status: ListTenantDestinationAttemptsStatus$inboundSchema.optional(),
|
|
242
298
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
243
299
|
"time[gte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
244
300
|
.optional(),
|
|
245
301
|
"time[lte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
246
302
|
.optional(),
|
|
303
|
+
"time[gt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
304
|
+
.optional(),
|
|
305
|
+
"time[lt]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
306
|
+
.optional(),
|
|
247
307
|
limit: z.number().int().default(100),
|
|
248
308
|
next: z.string().optional(),
|
|
249
309
|
prev: z.string().optional(),
|
|
@@ -257,6 +317,8 @@ export const ListTenantDestinationAttemptsRequest$inboundSchema: z.ZodType<
|
|
|
257
317
|
"event_id": "eventId",
|
|
258
318
|
"time[gte]": "timeGte",
|
|
259
319
|
"time[lte]": "timeLte",
|
|
320
|
+
"time[gt]": "timeGt",
|
|
321
|
+
"time[lt]": "timeLt",
|
|
260
322
|
"order_by": "orderBy",
|
|
261
323
|
});
|
|
262
324
|
});
|
|
@@ -264,11 +326,13 @@ export const ListTenantDestinationAttemptsRequest$inboundSchema: z.ZodType<
|
|
|
264
326
|
export type ListTenantDestinationAttemptsRequest$Outbound = {
|
|
265
327
|
tenant_id: string;
|
|
266
328
|
destination_id: string;
|
|
267
|
-
event_id?: string | undefined;
|
|
329
|
+
event_id?: string | Array<string> | undefined;
|
|
268
330
|
status?: string | undefined;
|
|
269
331
|
topic?: string | Array<string> | undefined;
|
|
270
332
|
"time[gte]"?: string | undefined;
|
|
271
333
|
"time[lte]"?: string | undefined;
|
|
334
|
+
"time[gt]"?: string | undefined;
|
|
335
|
+
"time[lt]"?: string | undefined;
|
|
272
336
|
limit: number;
|
|
273
337
|
next?: string | undefined;
|
|
274
338
|
prev?: string | undefined;
|
|
@@ -285,11 +349,13 @@ export const ListTenantDestinationAttemptsRequest$outboundSchema: z.ZodType<
|
|
|
285
349
|
> = z.object({
|
|
286
350
|
tenantId: z.string(),
|
|
287
351
|
destinationId: z.string(),
|
|
288
|
-
eventId: z.string().optional(),
|
|
352
|
+
eventId: z.union([z.string(), z.array(z.string())]).optional(),
|
|
289
353
|
status: ListTenantDestinationAttemptsStatus$outboundSchema.optional(),
|
|
290
354
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
291
355
|
timeGte: z.date().transform(v => v.toISOString()).optional(),
|
|
292
356
|
timeLte: z.date().transform(v => v.toISOString()).optional(),
|
|
357
|
+
timeGt: z.date().transform(v => v.toISOString()).optional(),
|
|
358
|
+
timeLt: z.date().transform(v => v.toISOString()).optional(),
|
|
293
359
|
limit: z.number().int().default(100),
|
|
294
360
|
next: z.string().optional(),
|
|
295
361
|
prev: z.string().optional(),
|
|
@@ -303,6 +369,8 @@ export const ListTenantDestinationAttemptsRequest$outboundSchema: z.ZodType<
|
|
|
303
369
|
eventId: "event_id",
|
|
304
370
|
timeGte: "time[gte]",
|
|
305
371
|
timeLte: "time[lte]",
|
|
372
|
+
timeGt: "time[gt]",
|
|
373
|
+
timeLt: "time[lt]",
|
|
306
374
|
orderBy: "order_by",
|
|
307
375
|
});
|
|
308
376
|
});
|
|
@@ -326,3 +394,53 @@ export function listTenantDestinationAttemptsRequestFromJSON(
|
|
|
326
394
|
`Failed to parse 'ListTenantDestinationAttemptsRequest' from JSON`,
|
|
327
395
|
);
|
|
328
396
|
}
|
|
397
|
+
|
|
398
|
+
/** @internal */
|
|
399
|
+
export const ListTenantDestinationAttemptsResponse$inboundSchema: z.ZodType<
|
|
400
|
+
ListTenantDestinationAttemptsResponse,
|
|
401
|
+
z.ZodTypeDef,
|
|
402
|
+
unknown
|
|
403
|
+
> = z.object({
|
|
404
|
+
Result: components.AttemptPaginatedResult$inboundSchema,
|
|
405
|
+
}).transform((v) => {
|
|
406
|
+
return remap$(v, {
|
|
407
|
+
"Result": "result",
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
/** @internal */
|
|
411
|
+
export type ListTenantDestinationAttemptsResponse$Outbound = {
|
|
412
|
+
Result: components.AttemptPaginatedResult$Outbound;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
/** @internal */
|
|
416
|
+
export const ListTenantDestinationAttemptsResponse$outboundSchema: z.ZodType<
|
|
417
|
+
ListTenantDestinationAttemptsResponse$Outbound,
|
|
418
|
+
z.ZodTypeDef,
|
|
419
|
+
ListTenantDestinationAttemptsResponse
|
|
420
|
+
> = z.object({
|
|
421
|
+
result: components.AttemptPaginatedResult$outboundSchema,
|
|
422
|
+
}).transform((v) => {
|
|
423
|
+
return remap$(v, {
|
|
424
|
+
result: "Result",
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
export function listTenantDestinationAttemptsResponseToJSON(
|
|
429
|
+
listTenantDestinationAttemptsResponse: ListTenantDestinationAttemptsResponse,
|
|
430
|
+
): string {
|
|
431
|
+
return JSON.stringify(
|
|
432
|
+
ListTenantDestinationAttemptsResponse$outboundSchema.parse(
|
|
433
|
+
listTenantDestinationAttemptsResponse,
|
|
434
|
+
),
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
export function listTenantDestinationAttemptsResponseFromJSON(
|
|
438
|
+
jsonString: string,
|
|
439
|
+
): SafeParseResult<ListTenantDestinationAttemptsResponse, SDKValidationError> {
|
|
440
|
+
return safeParse(
|
|
441
|
+
jsonString,
|
|
442
|
+
(x) =>
|
|
443
|
+
ListTenantDestinationAttemptsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
444
|
+
`Failed to parse 'ListTenantDestinationAttemptsResponse' from JSON`,
|
|
445
|
+
);
|
|
446
|
+
}
|
|
@@ -10,14 +10,14 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Filter destinations by type(s).
|
|
13
|
+
* Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`).
|
|
14
14
|
*/
|
|
15
15
|
export type ListTenantDestinationsType =
|
|
16
16
|
| components.DestinationType
|
|
17
17
|
| Array<components.DestinationType>;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Filter destinations by supported topic(s).
|
|
20
|
+
* Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`).
|
|
21
21
|
*/
|
|
22
22
|
export type Topics = string | Array<string>;
|
|
23
23
|
|
|
@@ -27,14 +27,14 @@ export type ListTenantDestinationsRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
tenantId: string;
|
|
29
29
|
/**
|
|
30
|
-
* Filter destinations by type(s).
|
|
30
|
+
* Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`).
|
|
31
31
|
*/
|
|
32
32
|
type?:
|
|
33
33
|
| components.DestinationType
|
|
34
34
|
| Array<components.DestinationType>
|
|
35
35
|
| undefined;
|
|
36
36
|
/**
|
|
37
|
-
* Filter destinations by supported topic(s).
|
|
37
|
+
* Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`).
|
|
38
38
|
*/
|
|
39
39
|
topics?: string | Array<string> | undefined;
|
|
40
40
|
};
|
|
@@ -3,11 +3,18 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
9
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Filter tenants by ID(s). Use bracket notation for multiple values (e.g., `id[0]=t1&id[1]=t2` or `id[]=t1&id[]=t2`).
|
|
15
|
+
*/
|
|
16
|
+
export type ListTenantsId = string | Array<string>;
|
|
17
|
+
|
|
11
18
|
/**
|
|
12
19
|
* Sort direction.
|
|
13
20
|
*/
|
|
@@ -21,6 +28,10 @@ export const ListTenantsDir = {
|
|
|
21
28
|
export type ListTenantsDir = ClosedEnum<typeof ListTenantsDir>;
|
|
22
29
|
|
|
23
30
|
export type ListTenantsRequest = {
|
|
31
|
+
/**
|
|
32
|
+
* Filter tenants by ID(s). Use bracket notation for multiple values (e.g., `id[0]=t1&id[1]=t2` or `id[]=t1&id[]=t2`).
|
|
33
|
+
*/
|
|
34
|
+
id?: string | Array<string> | undefined;
|
|
24
35
|
/**
|
|
25
36
|
* Number of tenants to return per page (1-100, default 20).
|
|
26
37
|
*/
|
|
@@ -39,6 +50,39 @@ export type ListTenantsRequest = {
|
|
|
39
50
|
prev?: string | undefined;
|
|
40
51
|
};
|
|
41
52
|
|
|
53
|
+
export type ListTenantsResponse = {
|
|
54
|
+
result: components.TenantPaginatedResult;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const ListTenantsId$inboundSchema: z.ZodType<
|
|
59
|
+
ListTenantsId,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type ListTenantsId$Outbound = string | Array<string>;
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const ListTenantsId$outboundSchema: z.ZodType<
|
|
68
|
+
ListTenantsId$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
ListTenantsId
|
|
71
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
72
|
+
|
|
73
|
+
export function listTenantsIdToJSON(listTenantsId: ListTenantsId): string {
|
|
74
|
+
return JSON.stringify(ListTenantsId$outboundSchema.parse(listTenantsId));
|
|
75
|
+
}
|
|
76
|
+
export function listTenantsIdFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<ListTenantsId, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => ListTenantsId$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'ListTenantsId' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
42
86
|
/** @internal */
|
|
43
87
|
export const ListTenantsDir$inboundSchema: z.ZodNativeEnum<
|
|
44
88
|
typeof ListTenantsDir
|
|
@@ -54,6 +98,7 @@ export const ListTenantsRequest$inboundSchema: z.ZodType<
|
|
|
54
98
|
z.ZodTypeDef,
|
|
55
99
|
unknown
|
|
56
100
|
> = z.object({
|
|
101
|
+
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
57
102
|
limit: z.number().int().default(20),
|
|
58
103
|
dir: ListTenantsDir$inboundSchema.default("desc"),
|
|
59
104
|
next: z.string().optional(),
|
|
@@ -61,6 +106,7 @@ export const ListTenantsRequest$inboundSchema: z.ZodType<
|
|
|
61
106
|
});
|
|
62
107
|
/** @internal */
|
|
63
108
|
export type ListTenantsRequest$Outbound = {
|
|
109
|
+
id?: string | Array<string> | undefined;
|
|
64
110
|
limit: number;
|
|
65
111
|
dir: string;
|
|
66
112
|
next?: string | undefined;
|
|
@@ -73,6 +119,7 @@ export const ListTenantsRequest$outboundSchema: z.ZodType<
|
|
|
73
119
|
z.ZodTypeDef,
|
|
74
120
|
ListTenantsRequest
|
|
75
121
|
> = z.object({
|
|
122
|
+
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
76
123
|
limit: z.number().int().default(20),
|
|
77
124
|
dir: ListTenantsDir$outboundSchema.default("desc"),
|
|
78
125
|
next: z.string().optional(),
|
|
@@ -95,3 +142,50 @@ export function listTenantsRequestFromJSON(
|
|
|
95
142
|
`Failed to parse 'ListTenantsRequest' from JSON`,
|
|
96
143
|
);
|
|
97
144
|
}
|
|
145
|
+
|
|
146
|
+
/** @internal */
|
|
147
|
+
export const ListTenantsResponse$inboundSchema: z.ZodType<
|
|
148
|
+
ListTenantsResponse,
|
|
149
|
+
z.ZodTypeDef,
|
|
150
|
+
unknown
|
|
151
|
+
> = z.object({
|
|
152
|
+
Result: components.TenantPaginatedResult$inboundSchema,
|
|
153
|
+
}).transform((v) => {
|
|
154
|
+
return remap$(v, {
|
|
155
|
+
"Result": "result",
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
/** @internal */
|
|
159
|
+
export type ListTenantsResponse$Outbound = {
|
|
160
|
+
Result: components.TenantPaginatedResult$Outbound;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const ListTenantsResponse$outboundSchema: z.ZodType<
|
|
165
|
+
ListTenantsResponse$Outbound,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
ListTenantsResponse
|
|
168
|
+
> = z.object({
|
|
169
|
+
result: components.TenantPaginatedResult$outboundSchema,
|
|
170
|
+
}).transform((v) => {
|
|
171
|
+
return remap$(v, {
|
|
172
|
+
result: "Result",
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
export function listTenantsResponseToJSON(
|
|
177
|
+
listTenantsResponse: ListTenantsResponse,
|
|
178
|
+
): string {
|
|
179
|
+
return JSON.stringify(
|
|
180
|
+
ListTenantsResponse$outboundSchema.parse(listTenantsResponse),
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
export function listTenantsResponseFromJSON(
|
|
184
|
+
jsonString: string,
|
|
185
|
+
): SafeParseResult<ListTenantsResponse, SDKValidationError> {
|
|
186
|
+
return safeParse(
|
|
187
|
+
jsonString,
|
|
188
|
+
(x) => ListTenantsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'ListTenantsResponse' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
@@ -18,7 +18,7 @@ export type UpdateTenantDestinationRequest = {
|
|
|
18
18
|
* The ID of the destination.
|
|
19
19
|
*/
|
|
20
20
|
destinationId: string;
|
|
21
|
-
|
|
21
|
+
body: components.DestinationUpdate;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -34,7 +34,7 @@ export const UpdateTenantDestinationRequest$inboundSchema: z.ZodType<
|
|
|
34
34
|
> = z.object({
|
|
35
35
|
tenant_id: z.string(),
|
|
36
36
|
destination_id: z.string(),
|
|
37
|
-
|
|
37
|
+
body: components.DestinationUpdate$inboundSchema,
|
|
38
38
|
}).transform((v) => {
|
|
39
39
|
return remap$(v, {
|
|
40
40
|
"tenant_id": "tenantId",
|
|
@@ -45,7 +45,7 @@ export const UpdateTenantDestinationRequest$inboundSchema: z.ZodType<
|
|
|
45
45
|
export type UpdateTenantDestinationRequest$Outbound = {
|
|
46
46
|
tenant_id: string;
|
|
47
47
|
destination_id: string;
|
|
48
|
-
|
|
48
|
+
body: components.DestinationUpdate$Outbound;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
/** @internal */
|
|
@@ -56,7 +56,7 @@ export const UpdateTenantDestinationRequest$outboundSchema: z.ZodType<
|
|
|
56
56
|
> = z.object({
|
|
57
57
|
tenantId: z.string(),
|
|
58
58
|
destinationId: z.string(),
|
|
59
|
-
|
|
59
|
+
body: components.DestinationUpdate$outboundSchema,
|
|
60
60
|
}).transform((v) => {
|
|
61
61
|
return remap$(v, {
|
|
62
62
|
tenantId: "tenant_id",
|
|
@@ -17,7 +17,7 @@ export type UpsertTenantRequest = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Optional tenant metadata
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
body?: components.TenantUpsert | undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
/** @internal */
|
|
@@ -27,7 +27,7 @@ export const UpsertTenantRequest$inboundSchema: z.ZodType<
|
|
|
27
27
|
unknown
|
|
28
28
|
> = z.object({
|
|
29
29
|
tenant_id: z.string(),
|
|
30
|
-
|
|
30
|
+
body: components.TenantUpsert$inboundSchema.optional(),
|
|
31
31
|
}).transform((v) => {
|
|
32
32
|
return remap$(v, {
|
|
33
33
|
"tenant_id": "tenantId",
|
|
@@ -36,7 +36,7 @@ export const UpsertTenantRequest$inboundSchema: z.ZodType<
|
|
|
36
36
|
/** @internal */
|
|
37
37
|
export type UpsertTenantRequest$Outbound = {
|
|
38
38
|
tenant_id: string;
|
|
39
|
-
|
|
39
|
+
body?: components.TenantUpsert$Outbound | undefined;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
@@ -46,7 +46,7 @@ export const UpsertTenantRequest$outboundSchema: z.ZodType<
|
|
|
46
46
|
UpsertTenantRequest
|
|
47
47
|
> = z.object({
|
|
48
48
|
tenantId: z.string(),
|
|
49
|
-
|
|
49
|
+
body: components.TenantUpsert$outboundSchema.optional(),
|
|
50
50
|
}).transform((v) => {
|
|
51
51
|
return remap$(v, {
|
|
52
52
|
tenantId: "tenant_id",
|
package/src/sdk/attempts.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
9
9
|
import * as components from "../models/components/index.js";
|
|
10
10
|
import * as operations from "../models/operations/index.js";
|
|
11
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
12
13
|
|
|
13
14
|
export class Attempts extends ClientSDK {
|
|
14
15
|
/**
|
|
@@ -23,8 +24,10 @@ export class Attempts extends ClientSDK {
|
|
|
23
24
|
async list(
|
|
24
25
|
request: operations.ListAttemptsRequest,
|
|
25
26
|
options?: RequestOptions,
|
|
26
|
-
): Promise<
|
|
27
|
-
|
|
27
|
+
): Promise<
|
|
28
|
+
PageIterator<operations.ListAttemptsResponse, { cursor: string }>
|
|
29
|
+
> {
|
|
30
|
+
return unwrapResultIterator(attemptsList(
|
|
28
31
|
this,
|
|
29
32
|
request,
|
|
30
33
|
options,
|
package/src/sdk/destinations.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
15
15
|
import * as components from "../models/components/index.js";
|
|
16
16
|
import * as operations from "../models/operations/index.js";
|
|
17
17
|
import { unwrapAsync } from "../types/fp.js";
|
|
18
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
18
19
|
|
|
19
20
|
export class Destinations extends ClientSDK {
|
|
20
21
|
/**
|
|
@@ -46,13 +47,13 @@ export class Destinations extends ClientSDK {
|
|
|
46
47
|
*/
|
|
47
48
|
async create(
|
|
48
49
|
tenantId: string,
|
|
49
|
-
|
|
50
|
+
body: components.DestinationCreate,
|
|
50
51
|
options?: RequestOptions,
|
|
51
52
|
): Promise<components.Destination> {
|
|
52
53
|
return unwrapAsync(destinationsCreate(
|
|
53
54
|
this,
|
|
54
55
|
tenantId,
|
|
55
|
-
|
|
56
|
+
body,
|
|
56
57
|
options,
|
|
57
58
|
));
|
|
58
59
|
}
|
|
@@ -85,14 +86,14 @@ export class Destinations extends ClientSDK {
|
|
|
85
86
|
async update(
|
|
86
87
|
tenantId: string,
|
|
87
88
|
destinationId: string,
|
|
88
|
-
|
|
89
|
+
body: components.DestinationUpdate,
|
|
89
90
|
options?: RequestOptions,
|
|
90
91
|
): Promise<operations.UpdateTenantDestinationResponse> {
|
|
91
92
|
return unwrapAsync(destinationsUpdate(
|
|
92
93
|
this,
|
|
93
94
|
tenantId,
|
|
94
95
|
destinationId,
|
|
95
|
-
|
|
96
|
+
body,
|
|
96
97
|
options,
|
|
97
98
|
));
|
|
98
99
|
}
|
|
@@ -163,8 +164,13 @@ export class Destinations extends ClientSDK {
|
|
|
163
164
|
async listAttempts(
|
|
164
165
|
request: operations.ListTenantDestinationAttemptsRequest,
|
|
165
166
|
options?: RequestOptions,
|
|
166
|
-
): Promise<
|
|
167
|
-
|
|
167
|
+
): Promise<
|
|
168
|
+
PageIterator<
|
|
169
|
+
operations.ListTenantDestinationAttemptsResponse,
|
|
170
|
+
{ cursor: string }
|
|
171
|
+
>
|
|
172
|
+
> {
|
|
173
|
+
return unwrapResultIterator(destinationsListAttempts(
|
|
168
174
|
this,
|
|
169
175
|
request,
|
|
170
176
|
options,
|
package/src/sdk/events.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
8
8
|
import * as components from "../models/components/index.js";
|
|
9
9
|
import * as operations from "../models/operations/index.js";
|
|
10
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
11
12
|
|
|
12
13
|
export class Events extends ClientSDK {
|
|
13
14
|
/**
|
|
@@ -22,8 +23,8 @@ export class Events extends ClientSDK {
|
|
|
22
23
|
async list(
|
|
23
24
|
request: operations.ListEventsRequest,
|
|
24
25
|
options?: RequestOptions,
|
|
25
|
-
): Promise<
|
|
26
|
-
return
|
|
26
|
+
): Promise<PageIterator<operations.ListEventsResponse, { cursor: string }>> {
|
|
27
|
+
return unwrapResultIterator(eventsList(
|
|
27
28
|
this,
|
|
28
29
|
request,
|
|
29
30
|
options,
|
package/src/sdk/tenants.ts
CHANGED
|
@@ -6,12 +6,13 @@ import { tenantsDelete } from "../funcs/tenantsDelete.js";
|
|
|
6
6
|
import { tenantsGet } from "../funcs/tenantsGet.js";
|
|
7
7
|
import { tenantsGetPortalUrl } from "../funcs/tenantsGetPortalUrl.js";
|
|
8
8
|
import { tenantsGetToken } from "../funcs/tenantsGetToken.js";
|
|
9
|
-
import {
|
|
9
|
+
import { tenantsList } from "../funcs/tenantsList.js";
|
|
10
10
|
import { tenantsUpsert } from "../funcs/tenantsUpsert.js";
|
|
11
11
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import * as components from "../models/components/index.js";
|
|
13
13
|
import * as operations from "../models/operations/index.js";
|
|
14
14
|
import { unwrapAsync } from "../types/fp.js";
|
|
15
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
15
16
|
|
|
16
17
|
export class Tenants extends ClientSDK {
|
|
17
18
|
/**
|
|
@@ -25,19 +26,13 @@ export class Tenants extends ClientSDK {
|
|
|
25
26
|
*
|
|
26
27
|
* When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case.
|
|
27
28
|
*/
|
|
28
|
-
async
|
|
29
|
-
|
|
30
|
-
dir?: operations.ListTenantsDir | undefined,
|
|
31
|
-
next?: string | undefined,
|
|
32
|
-
prev?: string | undefined,
|
|
29
|
+
async list(
|
|
30
|
+
request: operations.ListTenantsRequest,
|
|
33
31
|
options?: RequestOptions,
|
|
34
|
-
): Promise<
|
|
35
|
-
return
|
|
32
|
+
): Promise<PageIterator<operations.ListTenantsResponse, { cursor: string }>> {
|
|
33
|
+
return unwrapResultIterator(tenantsList(
|
|
36
34
|
this,
|
|
37
|
-
|
|
38
|
-
dir,
|
|
39
|
-
next,
|
|
40
|
-
prev,
|
|
35
|
+
request,
|
|
41
36
|
options,
|
|
42
37
|
));
|
|
43
38
|
}
|
|
@@ -50,13 +45,13 @@ export class Tenants extends ClientSDK {
|
|
|
50
45
|
*/
|
|
51
46
|
async upsert(
|
|
52
47
|
tenantId: string,
|
|
53
|
-
|
|
48
|
+
body?: components.TenantUpsert | undefined,
|
|
54
49
|
options?: RequestOptions,
|
|
55
50
|
): Promise<components.Tenant> {
|
|
56
51
|
return unwrapAsync(tenantsUpsert(
|
|
57
52
|
this,
|
|
58
53
|
tenantId,
|
|
59
|
-
|
|
54
|
+
body,
|
|
60
55
|
options,
|
|
61
56
|
));
|
|
62
57
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenantsListTenants.d.ts","sourceRoot":"","sources":["../../../src/funcs/tenantsListTenants.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MA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AAC,EACxD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
5
|
-
dir: z.ZodDefault<z.ZodNativeEnum<{
|
|
6
|
-
readonly Asc: "asc";
|
|
7
|
-
readonly Desc: "desc";
|
|
8
|
-
}>>;
|
|
9
|
-
next: z.ZodOptional<z.ZodString>;
|
|
10
|
-
prev: z.ZodOptional<z.ZodString>;
|
|
11
|
-
};
|
|
12
|
-
export declare const tool$tenantsListTenants: ToolDefinition<typeof args>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=tenantsListTenants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenantsListTenants.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/tenantsListTenants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;;;;;;;CAKT,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAAC,OAAO,IAAI,CAiC/D,CAAC"}
|