@composio/client 0.1.0-alpha.11 → 0.1.0-alpha.13
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/CHANGELOG.md +24 -0
- package/README.md +7 -7
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/auth.d.mts +10 -0
- package/resources/auth/auth.d.mts.map +1 -0
- package/resources/auth/auth.d.ts +10 -0
- package/resources/auth/auth.d.ts.map +1 -0
- package/resources/auth/auth.js +17 -0
- package/resources/auth/auth.js.map +1 -0
- package/resources/auth/auth.mjs +12 -0
- package/resources/auth/auth.mjs.map +1 -0
- package/resources/auth/index.d.mts +3 -0
- package/resources/auth/index.d.mts.map +1 -0
- package/resources/auth/index.d.ts +3 -0
- package/resources/auth/index.d.ts.map +1 -0
- package/resources/auth/index.js +9 -0
- package/resources/auth/index.js.map +1 -0
- package/resources/auth/index.mjs +4 -0
- package/resources/auth/index.mjs.map +1 -0
- package/resources/auth/session.d.mts +240 -0
- package/resources/auth/session.d.mts.map +1 -0
- package/resources/auth/session.d.ts +240 -0
- package/resources/auth/session.d.ts.map +1 -0
- package/resources/auth/session.js +19 -0
- package/resources/auth/session.js.map +1 -0
- package/resources/auth/session.mjs +15 -0
- package/resources/auth/session.mjs.map +1 -0
- package/resources/auth-configs.d.mts +5 -5
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +5 -5
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth.d.mts +2 -0
- package/resources/auth.d.mts.map +1 -0
- package/resources/auth.d.ts +2 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +6 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +3 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/files.d.mts +16 -0
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +16 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/custom.d.mts +87 -0
- package/resources/mcp/custom.d.mts.map +1 -0
- package/resources/mcp/custom.d.ts +87 -0
- package/resources/mcp/custom.d.ts.map +1 -0
- package/resources/mcp/custom.js +26 -0
- package/resources/mcp/custom.js.map +1 -0
- package/resources/mcp/custom.mjs +22 -0
- package/resources/mcp/custom.mjs.map +1 -0
- package/resources/mcp/index.d.mts +2 -2
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +2 -2
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js +3 -3
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +193 -85
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +193 -85
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +37 -26
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +37 -26
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/org/project/api-keys.d.mts +17 -2
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +17 -2
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/team-members.d.mts +7 -7
- package/resources/team-members.d.mts.map +1 -1
- package/resources/team-members.d.ts +7 -7
- package/resources/team-members.d.ts.map +1 -1
- package/resources/tools.d.mts +6 -6
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -6
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +6 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +6 -6
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +1 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +77 -7
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +77 -7
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +7 -0
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +7 -0
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/src/client.ts +19 -4
- package/src/resources/auth/auth.ts +15 -0
- package/src/resources/auth/index.ts +4 -0
- package/src/resources/auth/session.ts +292 -0
- package/src/resources/auth-configs.ts +5 -5
- package/src/resources/auth.ts +3 -0
- package/src/resources/files.ts +19 -0
- package/src/resources/index.ts +8 -2
- package/src/resources/mcp/custom.ts +103 -0
- package/src/resources/mcp/index.ts +5 -3
- package/src/resources/mcp/mcp.ts +228 -102
- package/src/resources/org/project/api-keys.ts +20 -2
- package/src/resources/team-members.ts +7 -7
- package/src/resources/tools.ts +8 -8
- package/src/resources/trigger-instances/index.ts +3 -0
- package/src/resources/trigger-instances/trigger-instances.ts +103 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/mcp/command.d.mts +0 -4
- package/resources/mcp/command.d.mts.map +0 -1
- package/resources/mcp/command.d.ts +0 -4
- package/resources/mcp/command.d.ts.map +0 -1
- package/resources/mcp/command.js +0 -9
- package/resources/mcp/command.js.map +0 -1
- package/resources/mcp/command.mjs +0 -5
- package/resources/mcp/command.mjs.map +0 -1
- package/src/resources/mcp/command.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-instances.d.mts","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,EACN,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D,UAAU,CACR,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;CAG7C;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;IAErD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,iCAAiC,CAAC;IACjD,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE/B;;WAEG;QACH,
|
|
1
|
+
{"version":3,"file":"trigger-instances.d.mts","sourceRoot":"","sources":["../../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M,EAAE,OAAO,CAAC,CAAC;CACzC;AAID,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -5,9 +5,17 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
5
5
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
6
|
export declare class TriggerInstances extends APIResource {
|
|
7
7
|
handle: HandleAPI.Handle;
|
|
8
|
+
delete(triggerID: string, options?: RequestOptions): APIPromise<TriggerInstanceDeleteResponse>;
|
|
8
9
|
listActive(query?: TriggerInstanceListActiveParams | null | undefined, options?: RequestOptions): APIPromise<TriggerInstanceListActiveResponse>;
|
|
10
|
+
updateStatus(status: 'enable' | 'disable', params: TriggerInstanceUpdateStatusParams, options?: RequestOptions): APIPromise<TriggerInstanceUpdateStatusResponse>;
|
|
9
11
|
upsert(slug: string, body?: TriggerInstanceUpsertParams | null | undefined, options?: RequestOptions): APIPromise<TriggerInstanceUpsertResponse>;
|
|
10
12
|
}
|
|
13
|
+
export interface TriggerInstanceDeleteResponse {
|
|
14
|
+
/**
|
|
15
|
+
* The ID of the deleted trigger instance
|
|
16
|
+
*/
|
|
17
|
+
triggerId: string;
|
|
18
|
+
}
|
|
11
19
|
export interface TriggerInstanceListActiveResponse {
|
|
12
20
|
items: Array<TriggerInstanceListActiveResponse.Item>;
|
|
13
21
|
next_cursor: string | null;
|
|
@@ -22,10 +30,19 @@ export declare namespace TriggerInstanceListActiveResponse {
|
|
|
22
30
|
/**
|
|
23
31
|
* ID of the connected account this trigger is associated with
|
|
24
32
|
*/
|
|
33
|
+
connected_account_id: string;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
36
|
+
* Please use connected_account_id instead.
|
|
37
|
+
*/
|
|
25
38
|
connectedAccountId: string;
|
|
26
39
|
/**
|
|
27
40
|
* ISO 8601 timestamp when the trigger instance was disabled, if applicable
|
|
28
41
|
*/
|
|
42
|
+
disabled_at: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the user who disabled the trigger instance, if applicable
|
|
45
|
+
*/
|
|
29
46
|
disabledAt: string | null;
|
|
30
47
|
/**
|
|
31
48
|
* State of the trigger instance
|
|
@@ -34,14 +51,29 @@ export declare namespace TriggerInstanceListActiveResponse {
|
|
|
34
51
|
/**
|
|
35
52
|
* Configuration for the trigger
|
|
36
53
|
*/
|
|
37
|
-
|
|
54
|
+
trigger_config: Record<string, unknown>;
|
|
38
55
|
/**
|
|
39
56
|
* Name of the trigger
|
|
40
57
|
*/
|
|
58
|
+
trigger_name: string;
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
61
|
+
* Please use trigger_config instead.
|
|
62
|
+
*/
|
|
63
|
+
triggerConfig: Record<string, unknown>;
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
66
|
+
* Please use trigger_name instead.
|
|
67
|
+
*/
|
|
41
68
|
triggerName: string;
|
|
42
69
|
/**
|
|
43
70
|
* ISO 8601 timestamp when the trigger instance was updated
|
|
44
71
|
*/
|
|
72
|
+
updated_at: string;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
75
|
+
* Please use updated_at instead.
|
|
76
|
+
*/
|
|
45
77
|
updatedAt: string;
|
|
46
78
|
/**
|
|
47
79
|
* Deprecated fields for the trigger instance
|
|
@@ -50,7 +82,7 @@ export declare namespace TriggerInstanceListActiveResponse {
|
|
|
50
82
|
/**
|
|
51
83
|
* Additional data associated with the trigger instance
|
|
52
84
|
*/
|
|
53
|
-
|
|
85
|
+
trigger_data?: string;
|
|
54
86
|
/**
|
|
55
87
|
* Unique identifier of the trigger instance
|
|
56
88
|
*/
|
|
@@ -62,12 +94,18 @@ export declare namespace TriggerInstanceListActiveResponse {
|
|
|
62
94
|
*/
|
|
63
95
|
interface Deprecated {
|
|
64
96
|
/**
|
|
65
|
-
* Deprecated
|
|
97
|
+
* Deprecated created_at for the trigger instance
|
|
66
98
|
*/
|
|
67
99
|
createdAt: string;
|
|
68
100
|
}
|
|
69
101
|
}
|
|
70
102
|
}
|
|
103
|
+
export interface TriggerInstanceUpdateStatusResponse {
|
|
104
|
+
/**
|
|
105
|
+
* Status of the operation
|
|
106
|
+
*/
|
|
107
|
+
status: 'success';
|
|
108
|
+
}
|
|
71
109
|
export interface TriggerInstanceUpsertResponse {
|
|
72
110
|
deprecated: TriggerInstanceUpsertResponse.Deprecated;
|
|
73
111
|
/**
|
|
@@ -87,10 +125,20 @@ export interface TriggerInstanceListActiveParams {
|
|
|
87
125
|
/**
|
|
88
126
|
* Array of auth config IDs to filter triggers by
|
|
89
127
|
*/
|
|
128
|
+
auth_config_ids?: Array<string> | null;
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
131
|
+
* Please use auth_config_ids instead.
|
|
132
|
+
*/
|
|
90
133
|
authConfigIds?: Array<string> | null;
|
|
91
134
|
/**
|
|
92
135
|
* Array of connected account IDs to filter triggers by
|
|
93
136
|
*/
|
|
137
|
+
connected_account_ids?: Array<string> | null;
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
140
|
+
* Please use connected_account_ids instead.
|
|
141
|
+
*/
|
|
94
142
|
connectedAccountIds?: Array<string> | null;
|
|
95
143
|
/**
|
|
96
144
|
* Array of auth config UUIDs to filter triggers by
|
|
@@ -111,23 +159,45 @@ export interface TriggerInstanceListActiveParams {
|
|
|
111
159
|
/**
|
|
112
160
|
* When set to true, includes disabled triggers in the response.
|
|
113
161
|
*/
|
|
114
|
-
|
|
162
|
+
show_disabled?: boolean | null;
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
165
|
+
* Please use show_disabled instead.
|
|
166
|
+
*/
|
|
167
|
+
showDisabled?: boolean | null;
|
|
115
168
|
/**
|
|
116
169
|
* Array of trigger IDs to filter triggers by
|
|
117
170
|
*/
|
|
118
|
-
|
|
171
|
+
trigger_ids?: Array<string> | null;
|
|
119
172
|
/**
|
|
120
173
|
* Array of trigger names to filter triggers by
|
|
121
174
|
*/
|
|
175
|
+
trigger_names?: Array<string> | null;
|
|
176
|
+
/**
|
|
177
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
178
|
+
* Please use trigger_ids instead.
|
|
179
|
+
*/
|
|
180
|
+
triggerIds?: Array<string> | null;
|
|
181
|
+
/**
|
|
182
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
183
|
+
* Please use trigger_names instead.
|
|
184
|
+
*/
|
|
122
185
|
triggerNames?: Array<string> | null;
|
|
123
186
|
}
|
|
187
|
+
export interface TriggerInstanceUpdateStatusParams {
|
|
188
|
+
/**
|
|
189
|
+
* The ID of the trigger instance to update
|
|
190
|
+
*/
|
|
191
|
+
triggerId: string;
|
|
192
|
+
}
|
|
124
193
|
export interface TriggerInstanceUpsertParams {
|
|
125
194
|
/**
|
|
126
195
|
* Connected account nanoid
|
|
127
196
|
*/
|
|
128
197
|
connected_account_id?: string;
|
|
129
198
|
/**
|
|
130
|
-
*
|
|
199
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
200
|
+
* Please use connected_account_id instead.
|
|
131
201
|
*/
|
|
132
202
|
connectedAuthId?: string;
|
|
133
203
|
/**
|
|
@@ -140,7 +210,7 @@ export interface TriggerInstanceUpsertParams {
|
|
|
140
210
|
triggerConfig?: Record<string, unknown>;
|
|
141
211
|
}
|
|
142
212
|
export declare namespace TriggerInstances {
|
|
143
|
-
export { type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse, type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams, type TriggerInstanceUpsertParams as TriggerInstanceUpsertParams, };
|
|
213
|
+
export { type TriggerInstanceDeleteResponse as TriggerInstanceDeleteResponse, type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse, type TriggerInstanceUpdateStatusResponse as TriggerInstanceUpdateStatusResponse, type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams, type TriggerInstanceUpdateStatusParams as TriggerInstanceUpdateStatusParams, type TriggerInstanceUpsertParams as TriggerInstanceUpsertParams, };
|
|
144
214
|
export { Handle as Handle, type HandleRetrieveResponse as HandleRetrieveResponse, type HandleExecuteResponse as HandleExecuteResponse, type HandleRetrieveParams as HandleRetrieveParams, type HandleExecuteParams as HandleExecuteParams, };
|
|
145
215
|
}
|
|
146
216
|
//# sourceMappingURL=trigger-instances.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-instances.d.ts","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,EACN,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D,UAAU,CACR,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;CAG7C;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;IAErD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,iCAAiC,CAAC;IACjD,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE/B;;WAEG;QACH,
|
|
1
|
+
{"version":3,"file":"trigger-instances.d.ts","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,EACN,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAI9F,UAAU,CACR,KAAK,GAAE,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EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -12,9 +12,16 @@ class TriggerInstances extends resource_1.APIResource {
|
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.handle = new HandleAPI.Handle(this._client);
|
|
14
14
|
}
|
|
15
|
+
delete(triggerID, options) {
|
|
16
|
+
return this._client.delete((0, path_1.path) `/api/v3/trigger_instances/delete/${triggerID}`, options);
|
|
17
|
+
}
|
|
15
18
|
listActive(query = {}, options) {
|
|
16
19
|
return this._client.get('/api/v3/trigger_instances/active', { query, ...options });
|
|
17
20
|
}
|
|
21
|
+
updateStatus(status, params, options) {
|
|
22
|
+
const { triggerId } = params;
|
|
23
|
+
return this._client.patch((0, path_1.path) `/api/v3/trigger_instances/id/${triggerId}/${status}`, options);
|
|
24
|
+
}
|
|
18
25
|
upsert(slug, body = {}, options) {
|
|
19
26
|
return this._client.post((0, path_1.path) `/api/v3/trigger_instances/${slug}/upsert`, { body, ...options });
|
|
20
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-instances.js","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAMkB;AAGlB,uDAAiD;AAEjD,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"trigger-instances.js","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAMkB;AAGlB,uDAAiD;AAEjD,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6BhE,CAAC;IA3BC,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oCAAoC,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;IAED,UAAU,CACR,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,YAAY,CACV,MAA4B,EAC5B,MAAyC,EACzC,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,gCAAgC,SAAS,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED,MAAM,CACJ,IAAY,EACZ,OAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,6BAA6B,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AA9BD,4CA8BC;AAoPD,gBAAgB,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -8,9 +8,16 @@ export class TriggerInstances extends APIResource {
|
|
|
8
8
|
super(...arguments);
|
|
9
9
|
this.handle = new HandleAPI.Handle(this._client);
|
|
10
10
|
}
|
|
11
|
+
delete(triggerID, options) {
|
|
12
|
+
return this._client.delete(path `/api/v3/trigger_instances/delete/${triggerID}`, options);
|
|
13
|
+
}
|
|
11
14
|
listActive(query = {}, options) {
|
|
12
15
|
return this._client.get('/api/v3/trigger_instances/active', { query, ...options });
|
|
13
16
|
}
|
|
17
|
+
updateStatus(status, params, options) {
|
|
18
|
+
const { triggerId } = params;
|
|
19
|
+
return this._client.patch(path `/api/v3/trigger_instances/id/${triggerId}/${status}`, options);
|
|
20
|
+
}
|
|
14
21
|
upsert(slug, body = {}, options) {
|
|
15
22
|
return this._client.post(path `/api/v3/trigger_instances/${slug}/upsert`, { body, ...options });
|
|
16
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-instances.mjs","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,GAKP;OAGM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"trigger-instances.mjs","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,GAKP;OAGM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6BhE,CAAC;IA3BC,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAoC,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;IAED,UAAU,CACR,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,YAAY,CACV,MAA4B,EAC5B,MAAyC,EACzC,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,gCAAgC,SAAS,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED,MAAM,CACJ,IAAY,EACZ,OAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,6BAA6B,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AAoPD,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -98,21 +98,27 @@ import {
|
|
|
98
98
|
import { readEnv } from './internal/utils/env';
|
|
99
99
|
import { formatRequestDetails, loggerFor } from './internal/utils/log';
|
|
100
100
|
import { isEmptyObj } from './internal/utils/values';
|
|
101
|
+
import { Auth } from './resources/auth/auth';
|
|
101
102
|
import {
|
|
102
103
|
Mcp,
|
|
104
|
+
McpCreateParams,
|
|
105
|
+
McpCreateResponse,
|
|
103
106
|
McpDeleteResponse,
|
|
107
|
+
McpListParams,
|
|
108
|
+
McpListResponse,
|
|
104
109
|
McpRetrieveAppParams,
|
|
105
110
|
McpRetrieveAppResponse,
|
|
106
111
|
McpRetrieveResponse,
|
|
107
112
|
McpUpdateParams,
|
|
108
113
|
McpUpdateResponse,
|
|
109
|
-
McpValidateParams,
|
|
110
|
-
McpValidateResponse,
|
|
111
114
|
} from './resources/mcp/mcp';
|
|
112
115
|
import { Org } from './resources/org/org';
|
|
113
116
|
import {
|
|
117
|
+
TriggerInstanceDeleteResponse,
|
|
114
118
|
TriggerInstanceListActiveParams,
|
|
115
119
|
TriggerInstanceListActiveResponse,
|
|
120
|
+
TriggerInstanceUpdateStatusParams,
|
|
121
|
+
TriggerInstanceUpdateStatusResponse,
|
|
116
122
|
TriggerInstanceUpsertParams,
|
|
117
123
|
TriggerInstanceUpsertResponse,
|
|
118
124
|
TriggerInstances,
|
|
@@ -800,6 +806,7 @@ export class Composio {
|
|
|
800
806
|
|
|
801
807
|
static toFile = Uploads.toFile;
|
|
802
808
|
|
|
809
|
+
auth: API.Auth = new API.Auth(this);
|
|
803
810
|
authConfigs: API.AuthConfigs = new API.AuthConfigs(this);
|
|
804
811
|
connectedAccounts: API.ConnectedAccounts = new API.ConnectedAccounts(this);
|
|
805
812
|
org: API.Org = new API.Org(this);
|
|
@@ -812,6 +819,7 @@ export class Composio {
|
|
|
812
819
|
files: API.Files = new API.Files(this);
|
|
813
820
|
migration: API.Migration = new API.Migration(this);
|
|
814
821
|
}
|
|
822
|
+
Composio.Auth = Auth;
|
|
815
823
|
Composio.AuthConfigs = AuthConfigs;
|
|
816
824
|
Composio.ConnectedAccounts = ConnectedAccounts;
|
|
817
825
|
Composio.Org = Org;
|
|
@@ -826,6 +834,8 @@ Composio.Migration = Migration;
|
|
|
826
834
|
export declare namespace Composio {
|
|
827
835
|
export type RequestOptions = Opts.RequestOptions;
|
|
828
836
|
|
|
837
|
+
export { Auth as Auth };
|
|
838
|
+
|
|
829
839
|
export {
|
|
830
840
|
AuthConfigs as AuthConfigs,
|
|
831
841
|
type AuthConfigCreateResponse as AuthConfigCreateResponse,
|
|
@@ -890,9 +900,12 @@ export declare namespace Composio {
|
|
|
890
900
|
|
|
891
901
|
export {
|
|
892
902
|
TriggerInstances as TriggerInstances,
|
|
903
|
+
type TriggerInstanceDeleteResponse as TriggerInstanceDeleteResponse,
|
|
893
904
|
type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse,
|
|
905
|
+
type TriggerInstanceUpdateStatusResponse as TriggerInstanceUpdateStatusResponse,
|
|
894
906
|
type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse,
|
|
895
907
|
type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams,
|
|
908
|
+
type TriggerInstanceUpdateStatusParams as TriggerInstanceUpdateStatusParams,
|
|
896
909
|
type TriggerInstanceUpsertParams as TriggerInstanceUpsertParams,
|
|
897
910
|
};
|
|
898
911
|
|
|
@@ -906,14 +919,16 @@ export declare namespace Composio {
|
|
|
906
919
|
|
|
907
920
|
export {
|
|
908
921
|
Mcp as Mcp,
|
|
922
|
+
type McpCreateResponse as McpCreateResponse,
|
|
909
923
|
type McpRetrieveResponse as McpRetrieveResponse,
|
|
910
924
|
type McpUpdateResponse as McpUpdateResponse,
|
|
925
|
+
type McpListResponse as McpListResponse,
|
|
911
926
|
type McpDeleteResponse as McpDeleteResponse,
|
|
912
927
|
type McpRetrieveAppResponse as McpRetrieveAppResponse,
|
|
913
|
-
type
|
|
928
|
+
type McpCreateParams as McpCreateParams,
|
|
914
929
|
type McpUpdateParams as McpUpdateParams,
|
|
930
|
+
type McpListParams as McpListParams,
|
|
915
931
|
type McpRetrieveAppParams as McpRetrieveAppParams,
|
|
916
|
-
type McpValidateParams as McpValidateParams,
|
|
917
932
|
};
|
|
918
933
|
|
|
919
934
|
export {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as SessionAPI from './session';
|
|
5
|
+
import { Session, SessionInfoResponse } from './session';
|
|
6
|
+
|
|
7
|
+
export class Auth extends APIResource {
|
|
8
|
+
session: SessionAPI.Session = new SessionAPI.Session(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Auth.Session = Session;
|
|
12
|
+
|
|
13
|
+
export declare namespace Auth {
|
|
14
|
+
export { Session as Session, type SessionInfoResponse as SessionInfoResponse };
|
|
15
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Session extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves detailed information about the current authenticated user session,
|
|
10
|
+
* including project details, organization membership, and API key information if
|
|
11
|
+
* applicable. This endpoint is useful for verifying authentication status and
|
|
12
|
+
* retrieving contextual information about the authenticated user and their access
|
|
13
|
+
* privileges.
|
|
14
|
+
*/
|
|
15
|
+
info(options?: RequestOptions): APIPromise<SessionInfoResponse> {
|
|
16
|
+
return this._client.get('/api/v3/auth/session/info', options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Response containing user session information
|
|
22
|
+
*/
|
|
23
|
+
export interface SessionInfoResponse {
|
|
24
|
+
/**
|
|
25
|
+
* Details of the API key used for authentication (null if using session auth)
|
|
26
|
+
*/
|
|
27
|
+
api_key: SessionInfoResponse.APIKey | null;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Information about the authenticated user
|
|
31
|
+
*/
|
|
32
|
+
org_member: SessionInfoResponse.OrgMember;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Details of the current active project (null if accessing with org-level
|
|
36
|
+
* credentials)
|
|
37
|
+
*/
|
|
38
|
+
project: SessionInfoResponse.Project | null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export namespace SessionInfoResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Details of the API key used for authentication (null if using session auth)
|
|
44
|
+
*/
|
|
45
|
+
export interface APIKey {
|
|
46
|
+
/**
|
|
47
|
+
* UUID identifier for the API key
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Internal auto-incrementing ID for the API key
|
|
53
|
+
*/
|
|
54
|
+
auto_id: number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Date and time when the API key was created
|
|
58
|
+
*/
|
|
59
|
+
created_at: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Flag indicating if the API key has been deleted
|
|
63
|
+
*/
|
|
64
|
+
deleted: boolean;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Date and time when the API key was deleted (if applicable)
|
|
68
|
+
*/
|
|
69
|
+
deleted_at: string | null;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The actual API key value (usually only shown once during creation)
|
|
73
|
+
*/
|
|
74
|
+
key: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* User-defined name for the API key
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* UUID identifier for the organization member who owns this API key
|
|
83
|
+
*/
|
|
84
|
+
org_member_id: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Short, URL-friendly unique identifier for the associated project
|
|
88
|
+
*/
|
|
89
|
+
project_id: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Date and time when the API key was last modified
|
|
93
|
+
*/
|
|
94
|
+
updated_at: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Information about the authenticated user
|
|
99
|
+
*/
|
|
100
|
+
export interface OrgMember {
|
|
101
|
+
/**
|
|
102
|
+
* UUID identifier for the organization member
|
|
103
|
+
*/
|
|
104
|
+
id: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Email address of the authenticated user
|
|
108
|
+
*/
|
|
109
|
+
email: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Display name of the authenticated user
|
|
113
|
+
*/
|
|
114
|
+
name: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Access role of the authenticated user within the organization
|
|
118
|
+
*/
|
|
119
|
+
role: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Details of the current active project (null if accessing with org-level
|
|
124
|
+
* credentials)
|
|
125
|
+
*/
|
|
126
|
+
export interface Project {
|
|
127
|
+
/**
|
|
128
|
+
* UUID identifier for the project
|
|
129
|
+
*/
|
|
130
|
+
id: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Internal auto-incrementing ID for the project
|
|
134
|
+
*/
|
|
135
|
+
auto_id: number;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Date and time when the project was created
|
|
139
|
+
*/
|
|
140
|
+
created_at: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Flag indicating if the project has been deleted
|
|
144
|
+
*/
|
|
145
|
+
deleted: boolean;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Email address used for project notifications
|
|
149
|
+
*/
|
|
150
|
+
email: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Endpoint URL for event webhook notifications
|
|
154
|
+
*/
|
|
155
|
+
event_webhook_url: string | null;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Flag indicating if the project uses the new webhook format
|
|
159
|
+
*/
|
|
160
|
+
is_new_webhook: boolean;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Date and time when the project last subscribed to updates
|
|
164
|
+
*/
|
|
165
|
+
last_subscribed_at: string | null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* User-defined name for the project
|
|
169
|
+
*/
|
|
170
|
+
name: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Short, URL-friendly unique identifier for the project
|
|
174
|
+
*/
|
|
175
|
+
nano_id: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Organization details including members
|
|
179
|
+
*/
|
|
180
|
+
org: Project.Org;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Organization UUID that this project belongs to
|
|
184
|
+
*/
|
|
185
|
+
org_id: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Flag indicating if triggers are enabled for this project
|
|
189
|
+
*/
|
|
190
|
+
triggers_enabled: boolean;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Date and time when the project was last modified
|
|
194
|
+
*/
|
|
195
|
+
updated_at: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Secret used to verify webhook signatures
|
|
199
|
+
*/
|
|
200
|
+
webhook_secret: string | null;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Endpoint URL for trigger webhook notifications
|
|
204
|
+
*/
|
|
205
|
+
webhook_url: string | null;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export namespace Project {
|
|
209
|
+
/**
|
|
210
|
+
* Organization details including members
|
|
211
|
+
*/
|
|
212
|
+
export interface Org {
|
|
213
|
+
/**
|
|
214
|
+
* Short, URL-friendly unique identifier for the organization
|
|
215
|
+
*/
|
|
216
|
+
id: string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* User-defined name for the organization
|
|
220
|
+
*/
|
|
221
|
+
name: string;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Array of members belonging to this organization
|
|
225
|
+
*/
|
|
226
|
+
org_members: Array<Org.OrgMember>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Current subscription plan level
|
|
230
|
+
*/
|
|
231
|
+
plan: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export namespace Org {
|
|
235
|
+
export interface OrgMember {
|
|
236
|
+
/**
|
|
237
|
+
* UUID identifier for the organization member
|
|
238
|
+
*/
|
|
239
|
+
id: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Internal auto-incrementing ID for the organization member
|
|
243
|
+
*/
|
|
244
|
+
auto_id: number;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Date and time when the member was added to the organization
|
|
248
|
+
*/
|
|
249
|
+
created_at: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Date and time when the member was removed from the organization (if applicable)
|
|
253
|
+
*/
|
|
254
|
+
deleted_at: string | null;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Email address of the organization member
|
|
258
|
+
*/
|
|
259
|
+
email: string;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* User-defined name for the organization member
|
|
263
|
+
*/
|
|
264
|
+
name: string;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Organization UUID that this member belongs to
|
|
268
|
+
*/
|
|
269
|
+
org_id: string;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Access role of the member within the organization
|
|
273
|
+
*/
|
|
274
|
+
role: string;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Date and time when the member was last modified
|
|
278
|
+
*/
|
|
279
|
+
updated_at: string;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Optional custom metadata for the organization member
|
|
283
|
+
*/
|
|
284
|
+
metadata?: unknown;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export declare namespace Session {
|
|
291
|
+
export { type SessionInfoResponse as SessionInfoResponse };
|
|
292
|
+
}
|