@letta-ai/letta-client 1.6.6 → 1.6.7
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 +15 -0
- package/client.d.mts +2 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -11
- package/client.d.ts.map +1 -1
- package/client.js +0 -9
- package/client.js.map +1 -1
- package/client.mjs +0 -9
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +165 -13
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +165 -13
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +0 -8
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +0 -8
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -3
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -3
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +1 -5
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +0 -2
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +1 -2
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +1 -2
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts +2 -2
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +2 -2
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/index.d.mts +1 -1
- package/resources/conversations/index.d.mts.map +1 -1
- package/resources/conversations/index.d.ts +1 -1
- package/resources/conversations/index.d.ts.map +1 -1
- package/resources/conversations/index.js.map +1 -1
- package/resources/conversations/index.mjs.map +1 -1
- package/resources/conversations/messages.d.mts +12 -16
- package/resources/conversations/messages.d.mts.map +1 -1
- package/resources/conversations/messages.d.ts +12 -16
- package/resources/conversations/messages.d.ts.map +1 -1
- package/resources/conversations/messages.js +3 -3
- package/resources/conversations/messages.js.map +1 -1
- package/resources/conversations/messages.mjs +3 -3
- package/resources/conversations/messages.mjs.map +1 -1
- package/resources/index.d.mts +1 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -3
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +6 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +6 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +7 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +7 -0
- package/resources/messages.mjs.map +1 -1
- package/src/client.ts +2 -79
- package/src/resources/agents/agents.ts +210 -37
- package/src/resources/agents/index.ts +0 -13
- package/src/resources/agents/messages.ts +1 -3
- package/src/resources/conversations/conversations.ts +0 -2
- package/src/resources/conversations/index.ts +0 -1
- package/src/resources/conversations/messages.ts +17 -19
- package/src/resources/index.ts +1 -35
- package/src/resources/messages.ts +11 -0
- 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/agents/groups.d.mts +0 -22
- package/resources/agents/groups.d.mts.map +0 -1
- package/resources/agents/groups.d.ts +0 -22
- package/resources/agents/groups.d.ts.map +0 -1
- package/resources/agents/groups.js +0 -20
- package/resources/agents/groups.js.map +0 -1
- package/resources/agents/groups.mjs +0 -16
- package/resources/agents/groups.mjs.map +0 -1
- package/resources/agents/schedule.d.mts +0 -197
- package/resources/agents/schedule.d.mts.map +0 -1
- package/resources/agents/schedule.d.ts +0 -197
- package/resources/agents/schedule.d.ts.map +0 -1
- package/resources/agents/schedule.js +0 -40
- package/resources/agents/schedule.js.map +0 -1
- package/resources/agents/schedule.mjs +0 -36
- package/resources/agents/schedule.mjs.map +0 -1
- package/resources/batches/batches.d.mts +0 -240
- package/resources/batches/batches.d.mts.map +0 -1
- package/resources/batches/batches.d.ts +0 -240
- package/resources/batches/batches.d.ts.map +0 -1
- package/resources/batches/batches.js +0 -46
- package/resources/batches/batches.js.map +0 -1
- package/resources/batches/batches.mjs +0 -41
- package/resources/batches/batches.mjs.map +0 -1
- package/resources/batches/index.d.mts +0 -3
- package/resources/batches/index.d.mts.map +0 -1
- package/resources/batches/index.d.ts +0 -3
- package/resources/batches/index.d.ts.map +0 -1
- package/resources/batches/index.js +0 -9
- package/resources/batches/index.js.map +0 -1
- package/resources/batches/index.mjs +0 -4
- package/resources/batches/index.mjs.map +0 -1
- package/resources/batches/messages.d.mts +0 -22
- package/resources/batches/messages.d.mts.map +0 -1
- package/resources/batches/messages.d.ts +0 -22
- package/resources/batches/messages.d.ts.map +0 -1
- package/resources/batches/messages.js +0 -17
- package/resources/batches/messages.js.map +0 -1
- package/resources/batches/messages.mjs +0 -13
- package/resources/batches/messages.mjs.map +0 -1
- package/resources/batches.d.mts +0 -2
- package/resources/batches.d.mts.map +0 -1
- package/resources/batches.d.ts +0 -2
- package/resources/batches.d.ts.map +0 -1
- package/resources/batches.js +0 -6
- package/resources/batches.js.map +0 -1
- package/resources/batches.mjs +0 -3
- package/resources/batches.mjs.map +0 -1
- package/resources/groups/groups.d.mts +0 -197
- package/resources/groups/groups.d.mts.map +0 -1
- package/resources/groups/groups.d.ts +0 -197
- package/resources/groups/groups.d.ts.map +0 -1
- package/resources/groups/groups.js +0 -49
- package/resources/groups/groups.js.map +0 -1
- package/resources/groups/groups.mjs +0 -44
- package/resources/groups/groups.mjs.map +0 -1
- package/resources/groups/index.d.mts +0 -3
- package/resources/groups/index.d.mts.map +0 -1
- package/resources/groups/index.d.ts +0 -3
- package/resources/groups/index.d.ts.map +0 -1
- package/resources/groups/index.js +0 -9
- package/resources/groups/index.js.map +0 -1
- package/resources/groups/index.mjs +0 -4
- package/resources/groups/index.mjs.map +0 -1
- package/resources/groups/messages.d.mts +0 -360
- package/resources/groups/messages.d.mts.map +0 -1
- package/resources/groups/messages.d.ts +0 -360
- package/resources/groups/messages.d.ts.map +0 -1
- package/resources/groups/messages.js +0 -54
- package/resources/groups/messages.js.map +0 -1
- package/resources/groups/messages.mjs +0 -50
- package/resources/groups/messages.mjs.map +0 -1
- package/resources/groups.d.mts +0 -2
- package/resources/groups.d.mts.map +0 -1
- package/resources/groups.d.ts +0 -2
- package/resources/groups.d.ts.map +0 -1
- package/resources/groups.js +0 -6
- package/resources/groups.js.map +0 -1
- package/resources/groups.mjs +0 -3
- package/resources/groups.mjs.map +0 -1
- package/resources/identities/agents.d.mts +0 -23
- package/resources/identities/agents.d.mts.map +0 -1
- package/resources/identities/agents.d.ts +0 -23
- package/resources/identities/agents.d.ts.map +0 -1
- package/resources/identities/agents.js +0 -17
- package/resources/identities/agents.js.map +0 -1
- package/resources/identities/agents.mjs +0 -13
- package/resources/identities/agents.mjs.map +0 -1
- package/resources/identities/blocks.d.mts +0 -18
- package/resources/identities/blocks.d.mts.map +0 -1
- package/resources/identities/blocks.d.ts +0 -18
- package/resources/identities/blocks.d.ts.map +0 -1
- package/resources/identities/blocks.js +0 -17
- package/resources/identities/blocks.js.map +0 -1
- package/resources/identities/blocks.mjs +0 -13
- package/resources/identities/blocks.mjs.map +0 -1
- package/resources/identities/identities.d.mts +0 -204
- package/resources/identities/identities.d.mts.map +0 -1
- package/resources/identities/identities.d.ts +0 -204
- package/resources/identities/identities.d.ts.map +0 -1
- package/resources/identities/identities.js +0 -63
- package/resources/identities/identities.js.map +0 -1
- package/resources/identities/identities.mjs +0 -58
- package/resources/identities/identities.mjs.map +0 -1
- package/resources/identities/index.d.mts +0 -5
- package/resources/identities/index.d.mts.map +0 -1
- package/resources/identities/index.d.ts +0 -5
- package/resources/identities/index.d.ts.map +0 -1
- package/resources/identities/index.js +0 -13
- package/resources/identities/index.js.map +0 -1
- package/resources/identities/index.mjs +0 -6
- package/resources/identities/index.mjs.map +0 -1
- package/resources/identities/properties.d.mts +0 -18
- package/resources/identities/properties.d.mts.map +0 -1
- package/resources/identities/properties.d.ts +0 -18
- package/resources/identities/properties.d.ts.map +0 -1
- package/resources/identities/properties.js +0 -17
- package/resources/identities/properties.js.map +0 -1
- package/resources/identities/properties.mjs +0 -13
- package/resources/identities/properties.mjs.map +0 -1
- package/resources/identities.d.mts +0 -2
- package/resources/identities.d.mts.map +0 -1
- package/resources/identities.d.ts +0 -2
- package/resources/identities.d.ts.map +0 -1
- package/resources/identities.js +0 -6
- package/resources/identities.js.map +0 -1
- package/resources/identities.mjs +0 -3
- package/resources/identities.mjs.map +0 -1
- package/src/resources/agents/groups.ts +0 -37
- package/src/resources/agents/schedule.ts +0 -361
- package/src/resources/batches/batches.ts +0 -317
- package/src/resources/batches/index.ts +0 -11
- package/src/resources/batches/messages.ts +0 -38
- package/src/resources/batches.ts +0 -3
- package/src/resources/groups/groups.ts +0 -334
- package/src/resources/groups/index.ts +0 -27
- package/src/resources/groups/messages.ts +0 -505
- package/src/resources/groups.ts +0 -3
- package/src/resources/identities/agents.ts +0 -48
- package/src/resources/identities/blocks.ts +0 -33
- package/src/resources/identities/identities.ts +0 -286
- package/src/resources/identities/index.ts +0 -17
- package/src/resources/identities/properties.ts +0 -30
- package/src/resources/identities.ts +0 -3
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as AgentsAPI from './agents';
|
|
5
|
-
import { AgentListParams, Agents } from './agents';
|
|
6
|
-
import * as BlocksAPI from './blocks';
|
|
7
|
-
import { BlockListParams, Blocks } from './blocks';
|
|
8
|
-
import * as PropertiesAPI from './properties';
|
|
9
|
-
import { Properties, PropertyUpsertParams, PropertyUpsertResponse } from './properties';
|
|
10
|
-
import { APIPromise } from '../../core/api-promise';
|
|
11
|
-
import { ArrayPage, type ArrayPageParams, PagePromise } from '../../core/pagination';
|
|
12
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
13
|
-
import { path } from '../../internal/utils/path';
|
|
14
|
-
|
|
15
|
-
export class Identities extends APIResource {
|
|
16
|
-
properties: PropertiesAPI.Properties = new PropertiesAPI.Properties(this._client);
|
|
17
|
-
agents: AgentsAPI.Agents = new AgentsAPI.Agents(this._client);
|
|
18
|
-
blocks: BlocksAPI.Blocks = new BlocksAPI.Blocks(this._client);
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Create Identity
|
|
22
|
-
*/
|
|
23
|
-
create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity> {
|
|
24
|
-
return this._client.post('/v1/identities/', { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Retrieve Identity
|
|
29
|
-
*/
|
|
30
|
-
retrieve(identityID: string, options?: RequestOptions): APIPromise<Identity> {
|
|
31
|
-
return this._client.get(path`/v1/identities/${identityID}`, options);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Update Identity
|
|
36
|
-
*/
|
|
37
|
-
update(identityID: string, body: IdentityUpdateParams, options?: RequestOptions): APIPromise<Identity> {
|
|
38
|
-
return this._client.patch(path`/v1/identities/${identityID}`, { body, ...options });
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Get a list of all identities in the database
|
|
43
|
-
*/
|
|
44
|
-
list(
|
|
45
|
-
query: IdentityListParams | null | undefined = {},
|
|
46
|
-
options?: RequestOptions,
|
|
47
|
-
): PagePromise<IdentitiesArrayPage, Identity> {
|
|
48
|
-
return this._client.getAPIList('/v1/identities/', ArrayPage<Identity>, { query, ...options });
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Delete an identity by its identifier key
|
|
53
|
-
*/
|
|
54
|
-
delete(identityID: string, options?: RequestOptions): APIPromise<unknown> {
|
|
55
|
-
return this._client.delete(path`/v1/identities/${identityID}`, options);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Upsert Identity
|
|
60
|
-
*/
|
|
61
|
-
upsert(body: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity> {
|
|
62
|
-
return this._client.put('/v1/identities/', { body, ...options });
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export type IdentitiesArrayPage = ArrayPage<Identity>;
|
|
67
|
-
|
|
68
|
-
export interface Identity {
|
|
69
|
-
/**
|
|
70
|
-
* The human-friendly ID of the Identity
|
|
71
|
-
*/
|
|
72
|
-
id: string;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated The IDs of the agents associated with the identity.
|
|
76
|
-
*/
|
|
77
|
-
agent_ids: Array<string>;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated The IDs of the blocks associated with the identity.
|
|
81
|
-
*/
|
|
82
|
-
block_ids: Array<string>;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* External, user-generated identifier key of the identity.
|
|
86
|
-
*/
|
|
87
|
-
identifier_key: string;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* The type of the identity.
|
|
91
|
-
*/
|
|
92
|
-
identity_type: IdentityType;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* The name of the identity.
|
|
96
|
-
*/
|
|
97
|
-
name: string;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The project id of the identity, if applicable.
|
|
101
|
-
*/
|
|
102
|
-
project_id?: string | null;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* List of properties associated with the identity
|
|
106
|
-
*/
|
|
107
|
-
properties?: Array<IdentityProperty>;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* A property of an identity
|
|
112
|
-
*/
|
|
113
|
-
export interface IdentityProperty {
|
|
114
|
-
/**
|
|
115
|
-
* The key of the property
|
|
116
|
-
*/
|
|
117
|
-
key: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* The type of the property
|
|
121
|
-
*/
|
|
122
|
-
type: 'string' | 'number' | 'boolean' | 'json';
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* The value of the property
|
|
126
|
-
*/
|
|
127
|
-
value: string | number | boolean | { [key: string]: unknown };
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Enum to represent the type of the identity.
|
|
132
|
-
*/
|
|
133
|
-
export type IdentityType = 'org' | 'user' | 'other';
|
|
134
|
-
|
|
135
|
-
export type IdentityDeleteResponse = unknown;
|
|
136
|
-
|
|
137
|
-
export interface IdentityCreateParams {
|
|
138
|
-
/**
|
|
139
|
-
* External, user-generated identifier key of the identity.
|
|
140
|
-
*/
|
|
141
|
-
identifier_key: string;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* The type of the identity.
|
|
145
|
-
*/
|
|
146
|
-
identity_type: IdentityType;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* The name of the identity.
|
|
150
|
-
*/
|
|
151
|
-
name: string;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @deprecated The agent ids that are associated with the identity.
|
|
155
|
-
*/
|
|
156
|
-
agent_ids?: Array<string> | null;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @deprecated The IDs of the blocks associated with the identity.
|
|
160
|
-
*/
|
|
161
|
-
block_ids?: Array<string> | null;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* The project id of the identity, if applicable.
|
|
165
|
-
*/
|
|
166
|
-
project_id?: string | null;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* List of properties associated with the identity.
|
|
170
|
-
*/
|
|
171
|
-
properties?: Array<IdentityProperty> | null;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface IdentityUpdateParams {
|
|
175
|
-
/**
|
|
176
|
-
* @deprecated The agent ids that are associated with the identity.
|
|
177
|
-
*/
|
|
178
|
-
agent_ids?: Array<string> | null;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @deprecated The IDs of the blocks associated with the identity.
|
|
182
|
-
*/
|
|
183
|
-
block_ids?: Array<string> | null;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* External, user-generated identifier key of the identity.
|
|
187
|
-
*/
|
|
188
|
-
identifier_key?: string | null;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Enum to represent the type of the identity.
|
|
192
|
-
*/
|
|
193
|
-
identity_type?: IdentityType | null;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* The name of the identity.
|
|
197
|
-
*/
|
|
198
|
-
name?: string | null;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* List of properties associated with the identity.
|
|
202
|
-
*/
|
|
203
|
-
properties?: Array<IdentityProperty> | null;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface IdentityListParams extends ArrayPageParams {
|
|
207
|
-
identifier_key?: string | null;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Enum to represent the type of the identity.
|
|
211
|
-
*/
|
|
212
|
-
identity_type?: IdentityType | null;
|
|
213
|
-
|
|
214
|
-
name?: string | null;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @deprecated [DEPRECATED: Use X-Project-Id header instead] Filter identities by
|
|
218
|
-
* project ID
|
|
219
|
-
*/
|
|
220
|
-
project_id?: string | null;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export interface IdentityUpsertParams {
|
|
224
|
-
/**
|
|
225
|
-
* External, user-generated identifier key of the identity.
|
|
226
|
-
*/
|
|
227
|
-
identifier_key: string;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* The type of the identity.
|
|
231
|
-
*/
|
|
232
|
-
identity_type: IdentityType;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* The name of the identity.
|
|
236
|
-
*/
|
|
237
|
-
name: string;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* @deprecated The agent ids that are associated with the identity.
|
|
241
|
-
*/
|
|
242
|
-
agent_ids?: Array<string> | null;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* @deprecated The IDs of the blocks associated with the identity.
|
|
246
|
-
*/
|
|
247
|
-
block_ids?: Array<string> | null;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* The project id of the identity, if applicable.
|
|
251
|
-
*/
|
|
252
|
-
project_id?: string | null;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* List of properties associated with the identity.
|
|
256
|
-
*/
|
|
257
|
-
properties?: Array<IdentityProperty> | null;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
Identities.Properties = Properties;
|
|
261
|
-
Identities.Agents = Agents;
|
|
262
|
-
Identities.Blocks = Blocks;
|
|
263
|
-
|
|
264
|
-
export declare namespace Identities {
|
|
265
|
-
export {
|
|
266
|
-
type Identity as Identity,
|
|
267
|
-
type IdentityProperty as IdentityProperty,
|
|
268
|
-
type IdentityType as IdentityType,
|
|
269
|
-
type IdentityDeleteResponse as IdentityDeleteResponse,
|
|
270
|
-
type IdentitiesArrayPage as IdentitiesArrayPage,
|
|
271
|
-
type IdentityCreateParams as IdentityCreateParams,
|
|
272
|
-
type IdentityUpdateParams as IdentityUpdateParams,
|
|
273
|
-
type IdentityListParams as IdentityListParams,
|
|
274
|
-
type IdentityUpsertParams as IdentityUpsertParams,
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
export {
|
|
278
|
-
Properties as Properties,
|
|
279
|
-
type PropertyUpsertResponse as PropertyUpsertResponse,
|
|
280
|
-
type PropertyUpsertParams as PropertyUpsertParams,
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
export { Agents as Agents, type AgentListParams as AgentListParams };
|
|
284
|
-
|
|
285
|
-
export { Blocks as Blocks, type BlockListParams as BlockListParams };
|
|
286
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
export { Agents, type AgentListParams } from './agents';
|
|
4
|
-
export { Blocks, type BlockListParams } from './blocks';
|
|
5
|
-
export {
|
|
6
|
-
Identities,
|
|
7
|
-
type Identity,
|
|
8
|
-
type IdentityProperty,
|
|
9
|
-
type IdentityType,
|
|
10
|
-
type IdentityDeleteResponse,
|
|
11
|
-
type IdentityCreateParams,
|
|
12
|
-
type IdentityUpdateParams,
|
|
13
|
-
type IdentityListParams,
|
|
14
|
-
type IdentityUpsertParams,
|
|
15
|
-
type IdentitiesArrayPage,
|
|
16
|
-
} from './identities';
|
|
17
|
-
export { Properties, type PropertyUpsertResponse, type PropertyUpsertParams } from './properties';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as IdentitiesAPI from './identities';
|
|
5
|
-
import { APIPromise } from '../../core/api-promise';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Properties extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Upsert Properties For Identity
|
|
12
|
-
*/
|
|
13
|
-
upsert(identityID: string, params: PropertyUpsertParams, options?: RequestOptions): APIPromise<unknown> {
|
|
14
|
-
const { body } = params;
|
|
15
|
-
return this._client.put(path`/v1/identities/${identityID}/properties`, { body: body, ...options });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type PropertyUpsertResponse = unknown;
|
|
20
|
-
|
|
21
|
-
export interface PropertyUpsertParams {
|
|
22
|
-
body: Array<IdentitiesAPI.IdentityProperty>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export declare namespace Properties {
|
|
26
|
-
export {
|
|
27
|
-
type PropertyUpsertResponse as PropertyUpsertResponse,
|
|
28
|
-
type PropertyUpsertParams as PropertyUpsertParams,
|
|
29
|
-
};
|
|
30
|
-
}
|