@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.
Files changed (226) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/client.d.mts +2 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -9
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agents/agents.d.mts +165 -13
  12. package/resources/agents/agents.d.mts.map +1 -1
  13. package/resources/agents/agents.d.ts +165 -13
  14. package/resources/agents/agents.d.ts.map +1 -1
  15. package/resources/agents/agents.js +0 -8
  16. package/resources/agents/agents.js.map +1 -1
  17. package/resources/agents/agents.mjs +0 -8
  18. package/resources/agents/agents.mjs.map +1 -1
  19. package/resources/agents/index.d.mts +1 -3
  20. package/resources/agents/index.d.mts.map +1 -1
  21. package/resources/agents/index.d.ts +1 -3
  22. package/resources/agents/index.d.ts.map +1 -1
  23. package/resources/agents/index.js +1 -5
  24. package/resources/agents/index.js.map +1 -1
  25. package/resources/agents/index.mjs +0 -2
  26. package/resources/agents/index.mjs.map +1 -1
  27. package/resources/agents/messages.d.mts +1 -2
  28. package/resources/agents/messages.d.mts.map +1 -1
  29. package/resources/agents/messages.d.ts +1 -2
  30. package/resources/agents/messages.d.ts.map +1 -1
  31. package/resources/agents/messages.js.map +1 -1
  32. package/resources/agents/messages.mjs.map +1 -1
  33. package/resources/conversations/conversations.d.mts +2 -2
  34. package/resources/conversations/conversations.d.mts.map +1 -1
  35. package/resources/conversations/conversations.d.ts +2 -2
  36. package/resources/conversations/conversations.d.ts.map +1 -1
  37. package/resources/conversations/conversations.js.map +1 -1
  38. package/resources/conversations/conversations.mjs.map +1 -1
  39. package/resources/conversations/index.d.mts +1 -1
  40. package/resources/conversations/index.d.mts.map +1 -1
  41. package/resources/conversations/index.d.ts +1 -1
  42. package/resources/conversations/index.d.ts.map +1 -1
  43. package/resources/conversations/index.js.map +1 -1
  44. package/resources/conversations/index.mjs.map +1 -1
  45. package/resources/conversations/messages.d.mts +12 -16
  46. package/resources/conversations/messages.d.mts.map +1 -1
  47. package/resources/conversations/messages.d.ts +12 -16
  48. package/resources/conversations/messages.d.ts.map +1 -1
  49. package/resources/conversations/messages.js +3 -3
  50. package/resources/conversations/messages.js.map +1 -1
  51. package/resources/conversations/messages.mjs +3 -3
  52. package/resources/conversations/messages.mjs.map +1 -1
  53. package/resources/index.d.mts +1 -4
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +1 -4
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js +1 -7
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +0 -3
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/messages.d.mts +6 -1
  62. package/resources/messages.d.mts.map +1 -1
  63. package/resources/messages.d.ts +6 -1
  64. package/resources/messages.d.ts.map +1 -1
  65. package/resources/messages.js +7 -0
  66. package/resources/messages.js.map +1 -1
  67. package/resources/messages.mjs +7 -0
  68. package/resources/messages.mjs.map +1 -1
  69. package/src/client.ts +2 -79
  70. package/src/resources/agents/agents.ts +210 -37
  71. package/src/resources/agents/index.ts +0 -13
  72. package/src/resources/agents/messages.ts +1 -3
  73. package/src/resources/conversations/conversations.ts +0 -2
  74. package/src/resources/conversations/index.ts +0 -1
  75. package/src/resources/conversations/messages.ts +17 -19
  76. package/src/resources/index.ts +1 -35
  77. package/src/resources/messages.ts +11 -0
  78. package/src/version.ts +1 -1
  79. package/version.d.mts +1 -1
  80. package/version.d.ts +1 -1
  81. package/version.js +1 -1
  82. package/version.mjs +1 -1
  83. package/resources/agents/groups.d.mts +0 -22
  84. package/resources/agents/groups.d.mts.map +0 -1
  85. package/resources/agents/groups.d.ts +0 -22
  86. package/resources/agents/groups.d.ts.map +0 -1
  87. package/resources/agents/groups.js +0 -20
  88. package/resources/agents/groups.js.map +0 -1
  89. package/resources/agents/groups.mjs +0 -16
  90. package/resources/agents/groups.mjs.map +0 -1
  91. package/resources/agents/schedule.d.mts +0 -197
  92. package/resources/agents/schedule.d.mts.map +0 -1
  93. package/resources/agents/schedule.d.ts +0 -197
  94. package/resources/agents/schedule.d.ts.map +0 -1
  95. package/resources/agents/schedule.js +0 -40
  96. package/resources/agents/schedule.js.map +0 -1
  97. package/resources/agents/schedule.mjs +0 -36
  98. package/resources/agents/schedule.mjs.map +0 -1
  99. package/resources/batches/batches.d.mts +0 -240
  100. package/resources/batches/batches.d.mts.map +0 -1
  101. package/resources/batches/batches.d.ts +0 -240
  102. package/resources/batches/batches.d.ts.map +0 -1
  103. package/resources/batches/batches.js +0 -46
  104. package/resources/batches/batches.js.map +0 -1
  105. package/resources/batches/batches.mjs +0 -41
  106. package/resources/batches/batches.mjs.map +0 -1
  107. package/resources/batches/index.d.mts +0 -3
  108. package/resources/batches/index.d.mts.map +0 -1
  109. package/resources/batches/index.d.ts +0 -3
  110. package/resources/batches/index.d.ts.map +0 -1
  111. package/resources/batches/index.js +0 -9
  112. package/resources/batches/index.js.map +0 -1
  113. package/resources/batches/index.mjs +0 -4
  114. package/resources/batches/index.mjs.map +0 -1
  115. package/resources/batches/messages.d.mts +0 -22
  116. package/resources/batches/messages.d.mts.map +0 -1
  117. package/resources/batches/messages.d.ts +0 -22
  118. package/resources/batches/messages.d.ts.map +0 -1
  119. package/resources/batches/messages.js +0 -17
  120. package/resources/batches/messages.js.map +0 -1
  121. package/resources/batches/messages.mjs +0 -13
  122. package/resources/batches/messages.mjs.map +0 -1
  123. package/resources/batches.d.mts +0 -2
  124. package/resources/batches.d.mts.map +0 -1
  125. package/resources/batches.d.ts +0 -2
  126. package/resources/batches.d.ts.map +0 -1
  127. package/resources/batches.js +0 -6
  128. package/resources/batches.js.map +0 -1
  129. package/resources/batches.mjs +0 -3
  130. package/resources/batches.mjs.map +0 -1
  131. package/resources/groups/groups.d.mts +0 -197
  132. package/resources/groups/groups.d.mts.map +0 -1
  133. package/resources/groups/groups.d.ts +0 -197
  134. package/resources/groups/groups.d.ts.map +0 -1
  135. package/resources/groups/groups.js +0 -49
  136. package/resources/groups/groups.js.map +0 -1
  137. package/resources/groups/groups.mjs +0 -44
  138. package/resources/groups/groups.mjs.map +0 -1
  139. package/resources/groups/index.d.mts +0 -3
  140. package/resources/groups/index.d.mts.map +0 -1
  141. package/resources/groups/index.d.ts +0 -3
  142. package/resources/groups/index.d.ts.map +0 -1
  143. package/resources/groups/index.js +0 -9
  144. package/resources/groups/index.js.map +0 -1
  145. package/resources/groups/index.mjs +0 -4
  146. package/resources/groups/index.mjs.map +0 -1
  147. package/resources/groups/messages.d.mts +0 -360
  148. package/resources/groups/messages.d.mts.map +0 -1
  149. package/resources/groups/messages.d.ts +0 -360
  150. package/resources/groups/messages.d.ts.map +0 -1
  151. package/resources/groups/messages.js +0 -54
  152. package/resources/groups/messages.js.map +0 -1
  153. package/resources/groups/messages.mjs +0 -50
  154. package/resources/groups/messages.mjs.map +0 -1
  155. package/resources/groups.d.mts +0 -2
  156. package/resources/groups.d.mts.map +0 -1
  157. package/resources/groups.d.ts +0 -2
  158. package/resources/groups.d.ts.map +0 -1
  159. package/resources/groups.js +0 -6
  160. package/resources/groups.js.map +0 -1
  161. package/resources/groups.mjs +0 -3
  162. package/resources/groups.mjs.map +0 -1
  163. package/resources/identities/agents.d.mts +0 -23
  164. package/resources/identities/agents.d.mts.map +0 -1
  165. package/resources/identities/agents.d.ts +0 -23
  166. package/resources/identities/agents.d.ts.map +0 -1
  167. package/resources/identities/agents.js +0 -17
  168. package/resources/identities/agents.js.map +0 -1
  169. package/resources/identities/agents.mjs +0 -13
  170. package/resources/identities/agents.mjs.map +0 -1
  171. package/resources/identities/blocks.d.mts +0 -18
  172. package/resources/identities/blocks.d.mts.map +0 -1
  173. package/resources/identities/blocks.d.ts +0 -18
  174. package/resources/identities/blocks.d.ts.map +0 -1
  175. package/resources/identities/blocks.js +0 -17
  176. package/resources/identities/blocks.js.map +0 -1
  177. package/resources/identities/blocks.mjs +0 -13
  178. package/resources/identities/blocks.mjs.map +0 -1
  179. package/resources/identities/identities.d.mts +0 -204
  180. package/resources/identities/identities.d.mts.map +0 -1
  181. package/resources/identities/identities.d.ts +0 -204
  182. package/resources/identities/identities.d.ts.map +0 -1
  183. package/resources/identities/identities.js +0 -63
  184. package/resources/identities/identities.js.map +0 -1
  185. package/resources/identities/identities.mjs +0 -58
  186. package/resources/identities/identities.mjs.map +0 -1
  187. package/resources/identities/index.d.mts +0 -5
  188. package/resources/identities/index.d.mts.map +0 -1
  189. package/resources/identities/index.d.ts +0 -5
  190. package/resources/identities/index.d.ts.map +0 -1
  191. package/resources/identities/index.js +0 -13
  192. package/resources/identities/index.js.map +0 -1
  193. package/resources/identities/index.mjs +0 -6
  194. package/resources/identities/index.mjs.map +0 -1
  195. package/resources/identities/properties.d.mts +0 -18
  196. package/resources/identities/properties.d.mts.map +0 -1
  197. package/resources/identities/properties.d.ts +0 -18
  198. package/resources/identities/properties.d.ts.map +0 -1
  199. package/resources/identities/properties.js +0 -17
  200. package/resources/identities/properties.js.map +0 -1
  201. package/resources/identities/properties.mjs +0 -13
  202. package/resources/identities/properties.mjs.map +0 -1
  203. package/resources/identities.d.mts +0 -2
  204. package/resources/identities.d.mts.map +0 -1
  205. package/resources/identities.d.ts +0 -2
  206. package/resources/identities.d.ts.map +0 -1
  207. package/resources/identities.js +0 -6
  208. package/resources/identities.js.map +0 -1
  209. package/resources/identities.mjs +0 -3
  210. package/resources/identities.mjs.map +0 -1
  211. package/src/resources/agents/groups.ts +0 -37
  212. package/src/resources/agents/schedule.ts +0 -361
  213. package/src/resources/batches/batches.ts +0 -317
  214. package/src/resources/batches/index.ts +0 -11
  215. package/src/resources/batches/messages.ts +0 -38
  216. package/src/resources/batches.ts +0 -3
  217. package/src/resources/groups/groups.ts +0 -334
  218. package/src/resources/groups/index.ts +0 -27
  219. package/src/resources/groups/messages.ts +0 -505
  220. package/src/resources/groups.ts +0 -3
  221. package/src/resources/identities/agents.ts +0 -48
  222. package/src/resources/identities/blocks.ts +0 -33
  223. package/src/resources/identities/identities.ts +0 -286
  224. package/src/resources/identities/index.ts +0 -17
  225. package/src/resources/identities/properties.ts +0 -30
  226. package/src/resources/identities.ts +0 -3
@@ -1,18 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as BlocksAPI from "../blocks/blocks.js";
3
- import { BlockResponsesArrayPage } from "../blocks/blocks.js";
4
- import { type ArrayPageParams, PagePromise } from "../../core/pagination.js";
5
- import { RequestOptions } from "../../internal/request-options.js";
6
- export declare class Blocks extends APIResource {
7
- /**
8
- * Get all blocks associated with the specified identity.
9
- */
10
- list(identityID: string, query?: BlockListParams | null | undefined, options?: RequestOptions): PagePromise<BlockResponsesArrayPage, BlocksAPI.BlockResponse>;
11
- }
12
- export interface BlockListParams extends ArrayPageParams {
13
- }
14
- export declare namespace Blocks {
15
- export { type BlockListParams as BlockListParams };
16
- }
17
- export { type BlockResponsesArrayPage };
18
- //# sourceMappingURL=blocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/resources/identities/blocks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,uBAAuB,EAAE;OAC3B,EAAa,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uBAAuB,EAAE,SAAS,CAAC,aAAa,CAAC;CAOjE;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;CAAG;AAE3D,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD;AAED,OAAO,EAAE,KAAK,uBAAuB,EAAE,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Blocks = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const pagination_1 = require("../../core/pagination.js");
7
- const path_1 = require("../../internal/utils/path.js");
8
- class Blocks extends resource_1.APIResource {
9
- /**
10
- * Get all blocks associated with the specified identity.
11
- */
12
- list(identityID, query = {}, options) {
13
- return this._client.getAPIList((0, path_1.path) `/v1/identities/${identityID}/blocks`, (pagination_1.ArrayPage), { query, ...options });
14
- }
15
- }
16
- exports.Blocks = Blocks;
17
- //# sourceMappingURL=blocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blocks.js","sourceRoot":"","sources":["../../src/resources/identities/blocks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAqF;AAErF,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,IAAI,CACF,UAAkB,EAClB,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,kBAAkB,UAAU,SAAS,EACzC,CAAA,sBAAkC,CAAA,EAClC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAfD,wBAeC"}
@@ -1,13 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { ArrayPage } from "../../core/pagination.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
- export class Blocks extends APIResource {
6
- /**
7
- * Get all blocks associated with the specified identity.
8
- */
9
- list(identityID, query = {}, options) {
10
- return this._client.getAPIList(path `/v1/identities/${identityID}/blocks`, (ArrayPage), { query, ...options });
11
- }
12
- }
13
- //# sourceMappingURL=blocks.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blocks.mjs","sourceRoot":"","sources":["../../src/resources/identities/blocks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,UAAkB,EAClB,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,kBAAkB,UAAU,SAAS,EACzC,CAAA,SAAkC,CAAA,EAClC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
@@ -1,204 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as AgentsAPI from "./agents.mjs";
3
- import { AgentListParams, Agents } from "./agents.mjs";
4
- import * as BlocksAPI from "./blocks.mjs";
5
- import { BlockListParams, Blocks } from "./blocks.mjs";
6
- import * as PropertiesAPI from "./properties.mjs";
7
- import { Properties, PropertyUpsertParams, PropertyUpsertResponse } from "./properties.mjs";
8
- import { APIPromise } from "../../core/api-promise.mjs";
9
- import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
10
- import { RequestOptions } from "../../internal/request-options.mjs";
11
- export declare class Identities extends APIResource {
12
- properties: PropertiesAPI.Properties;
13
- agents: AgentsAPI.Agents;
14
- blocks: BlocksAPI.Blocks;
15
- /**
16
- * Create Identity
17
- */
18
- create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
19
- /**
20
- * Retrieve Identity
21
- */
22
- retrieve(identityID: string, options?: RequestOptions): APIPromise<Identity>;
23
- /**
24
- * Update Identity
25
- */
26
- update(identityID: string, body: IdentityUpdateParams, options?: RequestOptions): APIPromise<Identity>;
27
- /**
28
- * Get a list of all identities in the database
29
- */
30
- list(query?: IdentityListParams | null | undefined, options?: RequestOptions): PagePromise<IdentitiesArrayPage, Identity>;
31
- /**
32
- * Delete an identity by its identifier key
33
- */
34
- delete(identityID: string, options?: RequestOptions): APIPromise<unknown>;
35
- /**
36
- * Upsert Identity
37
- */
38
- upsert(body: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity>;
39
- }
40
- export type IdentitiesArrayPage = ArrayPage<Identity>;
41
- export interface Identity {
42
- /**
43
- * The human-friendly ID of the Identity
44
- */
45
- id: string;
46
- /**
47
- * @deprecated The IDs of the agents associated with the identity.
48
- */
49
- agent_ids: Array<string>;
50
- /**
51
- * @deprecated The IDs of the blocks associated with the identity.
52
- */
53
- block_ids: Array<string>;
54
- /**
55
- * External, user-generated identifier key of the identity.
56
- */
57
- identifier_key: string;
58
- /**
59
- * The type of the identity.
60
- */
61
- identity_type: IdentityType;
62
- /**
63
- * The name of the identity.
64
- */
65
- name: string;
66
- /**
67
- * The project id of the identity, if applicable.
68
- */
69
- project_id?: string | null;
70
- /**
71
- * List of properties associated with the identity
72
- */
73
- properties?: Array<IdentityProperty>;
74
- }
75
- /**
76
- * A property of an identity
77
- */
78
- export interface IdentityProperty {
79
- /**
80
- * The key of the property
81
- */
82
- key: string;
83
- /**
84
- * The type of the property
85
- */
86
- type: 'string' | 'number' | 'boolean' | 'json';
87
- /**
88
- * The value of the property
89
- */
90
- value: string | number | boolean | {
91
- [key: string]: unknown;
92
- };
93
- }
94
- /**
95
- * Enum to represent the type of the identity.
96
- */
97
- export type IdentityType = 'org' | 'user' | 'other';
98
- export type IdentityDeleteResponse = unknown;
99
- export interface IdentityCreateParams {
100
- /**
101
- * External, user-generated identifier key of the identity.
102
- */
103
- identifier_key: string;
104
- /**
105
- * The type of the identity.
106
- */
107
- identity_type: IdentityType;
108
- /**
109
- * The name of the identity.
110
- */
111
- name: string;
112
- /**
113
- * @deprecated The agent ids that are associated with the identity.
114
- */
115
- agent_ids?: Array<string> | null;
116
- /**
117
- * @deprecated The IDs of the blocks associated with the identity.
118
- */
119
- block_ids?: Array<string> | null;
120
- /**
121
- * The project id of the identity, if applicable.
122
- */
123
- project_id?: string | null;
124
- /**
125
- * List of properties associated with the identity.
126
- */
127
- properties?: Array<IdentityProperty> | null;
128
- }
129
- export interface IdentityUpdateParams {
130
- /**
131
- * @deprecated The agent ids that are associated with the identity.
132
- */
133
- agent_ids?: Array<string> | null;
134
- /**
135
- * @deprecated The IDs of the blocks associated with the identity.
136
- */
137
- block_ids?: Array<string> | null;
138
- /**
139
- * External, user-generated identifier key of the identity.
140
- */
141
- identifier_key?: string | null;
142
- /**
143
- * Enum to represent the type of the identity.
144
- */
145
- identity_type?: IdentityType | null;
146
- /**
147
- * The name of the identity.
148
- */
149
- name?: string | null;
150
- /**
151
- * List of properties associated with the identity.
152
- */
153
- properties?: Array<IdentityProperty> | null;
154
- }
155
- export interface IdentityListParams extends ArrayPageParams {
156
- identifier_key?: string | null;
157
- /**
158
- * Enum to represent the type of the identity.
159
- */
160
- identity_type?: IdentityType | null;
161
- name?: string | null;
162
- /**
163
- * @deprecated [DEPRECATED: Use X-Project-Id header instead] Filter identities by
164
- * project ID
165
- */
166
- project_id?: string | null;
167
- }
168
- export interface IdentityUpsertParams {
169
- /**
170
- * External, user-generated identifier key of the identity.
171
- */
172
- identifier_key: string;
173
- /**
174
- * The type of the identity.
175
- */
176
- identity_type: IdentityType;
177
- /**
178
- * The name of the identity.
179
- */
180
- name: string;
181
- /**
182
- * @deprecated The agent ids that are associated with the identity.
183
- */
184
- agent_ids?: Array<string> | null;
185
- /**
186
- * @deprecated The IDs of the blocks associated with the identity.
187
- */
188
- block_ids?: Array<string> | null;
189
- /**
190
- * The project id of the identity, if applicable.
191
- */
192
- project_id?: string | null;
193
- /**
194
- * List of properties associated with the identity.
195
- */
196
- properties?: Array<IdentityProperty> | null;
197
- }
198
- export declare namespace Identities {
199
- export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type IdentityDeleteResponse as IdentityDeleteResponse, type IdentitiesArrayPage as IdentitiesArrayPage, type IdentityCreateParams as IdentityCreateParams, type IdentityUpdateParams as IdentityUpdateParams, type IdentityListParams as IdentityListParams, type IdentityUpsertParams as IdentityUpsertParams, };
200
- export { Properties as Properties, type PropertyUpsertResponse as PropertyUpsertResponse, type PropertyUpsertParams as PropertyUpsertParams, };
201
- export { Agents as Agents, type AgentListParams as AgentListParams };
202
- export { Blocks as Blocks, type BlockListParams as BlockListParams };
203
- }
204
- //# sourceMappingURL=identities.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identities.d.mts","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,MAAM,EAAE;OAC3B,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,MAAM,EAAE;OAC3B,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,oBAAoB,EAAE,sBAAsB,EAAE;OAC5D,EAAE,UAAU,EAAE;OACd,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAIlF;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EA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 -1,204 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as AgentsAPI from "./agents.js";
3
- import { AgentListParams, Agents } from "./agents.js";
4
- import * as BlocksAPI from "./blocks.js";
5
- import { BlockListParams, Blocks } from "./blocks.js";
6
- import * as PropertiesAPI from "./properties.js";
7
- import { Properties, PropertyUpsertParams, PropertyUpsertResponse } from "./properties.js";
8
- import { APIPromise } from "../../core/api-promise.js";
9
- import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.js";
10
- import { RequestOptions } from "../../internal/request-options.js";
11
- export declare class Identities extends APIResource {
12
- properties: PropertiesAPI.Properties;
13
- agents: AgentsAPI.Agents;
14
- blocks: BlocksAPI.Blocks;
15
- /**
16
- * Create Identity
17
- */
18
- create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
19
- /**
20
- * Retrieve Identity
21
- */
22
- retrieve(identityID: string, options?: RequestOptions): APIPromise<Identity>;
23
- /**
24
- * Update Identity
25
- */
26
- update(identityID: string, body: IdentityUpdateParams, options?: RequestOptions): APIPromise<Identity>;
27
- /**
28
- * Get a list of all identities in the database
29
- */
30
- list(query?: IdentityListParams | null | undefined, options?: RequestOptions): PagePromise<IdentitiesArrayPage, Identity>;
31
- /**
32
- * Delete an identity by its identifier key
33
- */
34
- delete(identityID: string, options?: RequestOptions): APIPromise<unknown>;
35
- /**
36
- * Upsert Identity
37
- */
38
- upsert(body: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity>;
39
- }
40
- export type IdentitiesArrayPage = ArrayPage<Identity>;
41
- export interface Identity {
42
- /**
43
- * The human-friendly ID of the Identity
44
- */
45
- id: string;
46
- /**
47
- * @deprecated The IDs of the agents associated with the identity.
48
- */
49
- agent_ids: Array<string>;
50
- /**
51
- * @deprecated The IDs of the blocks associated with the identity.
52
- */
53
- block_ids: Array<string>;
54
- /**
55
- * External, user-generated identifier key of the identity.
56
- */
57
- identifier_key: string;
58
- /**
59
- * The type of the identity.
60
- */
61
- identity_type: IdentityType;
62
- /**
63
- * The name of the identity.
64
- */
65
- name: string;
66
- /**
67
- * The project id of the identity, if applicable.
68
- */
69
- project_id?: string | null;
70
- /**
71
- * List of properties associated with the identity
72
- */
73
- properties?: Array<IdentityProperty>;
74
- }
75
- /**
76
- * A property of an identity
77
- */
78
- export interface IdentityProperty {
79
- /**
80
- * The key of the property
81
- */
82
- key: string;
83
- /**
84
- * The type of the property
85
- */
86
- type: 'string' | 'number' | 'boolean' | 'json';
87
- /**
88
- * The value of the property
89
- */
90
- value: string | number | boolean | {
91
- [key: string]: unknown;
92
- };
93
- }
94
- /**
95
- * Enum to represent the type of the identity.
96
- */
97
- export type IdentityType = 'org' | 'user' | 'other';
98
- export type IdentityDeleteResponse = unknown;
99
- export interface IdentityCreateParams {
100
- /**
101
- * External, user-generated identifier key of the identity.
102
- */
103
- identifier_key: string;
104
- /**
105
- * The type of the identity.
106
- */
107
- identity_type: IdentityType;
108
- /**
109
- * The name of the identity.
110
- */
111
- name: string;
112
- /**
113
- * @deprecated The agent ids that are associated with the identity.
114
- */
115
- agent_ids?: Array<string> | null;
116
- /**
117
- * @deprecated The IDs of the blocks associated with the identity.
118
- */
119
- block_ids?: Array<string> | null;
120
- /**
121
- * The project id of the identity, if applicable.
122
- */
123
- project_id?: string | null;
124
- /**
125
- * List of properties associated with the identity.
126
- */
127
- properties?: Array<IdentityProperty> | null;
128
- }
129
- export interface IdentityUpdateParams {
130
- /**
131
- * @deprecated The agent ids that are associated with the identity.
132
- */
133
- agent_ids?: Array<string> | null;
134
- /**
135
- * @deprecated The IDs of the blocks associated with the identity.
136
- */
137
- block_ids?: Array<string> | null;
138
- /**
139
- * External, user-generated identifier key of the identity.
140
- */
141
- identifier_key?: string | null;
142
- /**
143
- * Enum to represent the type of the identity.
144
- */
145
- identity_type?: IdentityType | null;
146
- /**
147
- * The name of the identity.
148
- */
149
- name?: string | null;
150
- /**
151
- * List of properties associated with the identity.
152
- */
153
- properties?: Array<IdentityProperty> | null;
154
- }
155
- export interface IdentityListParams extends ArrayPageParams {
156
- identifier_key?: string | null;
157
- /**
158
- * Enum to represent the type of the identity.
159
- */
160
- identity_type?: IdentityType | null;
161
- name?: string | null;
162
- /**
163
- * @deprecated [DEPRECATED: Use X-Project-Id header instead] Filter identities by
164
- * project ID
165
- */
166
- project_id?: string | null;
167
- }
168
- export interface IdentityUpsertParams {
169
- /**
170
- * External, user-generated identifier key of the identity.
171
- */
172
- identifier_key: string;
173
- /**
174
- * The type of the identity.
175
- */
176
- identity_type: IdentityType;
177
- /**
178
- * The name of the identity.
179
- */
180
- name: string;
181
- /**
182
- * @deprecated The agent ids that are associated with the identity.
183
- */
184
- agent_ids?: Array<string> | null;
185
- /**
186
- * @deprecated The IDs of the blocks associated with the identity.
187
- */
188
- block_ids?: Array<string> | null;
189
- /**
190
- * The project id of the identity, if applicable.
191
- */
192
- project_id?: string | null;
193
- /**
194
- * List of properties associated with the identity.
195
- */
196
- properties?: Array<IdentityProperty> | null;
197
- }
198
- export declare namespace Identities {
199
- export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type IdentityDeleteResponse as IdentityDeleteResponse, type IdentitiesArrayPage as IdentitiesArrayPage, type IdentityCreateParams as IdentityCreateParams, type IdentityUpdateParams as IdentityUpdateParams, type IdentityListParams as IdentityListParams, type IdentityUpsertParams as IdentityUpsertParams, };
200
- export { Properties as Properties, type PropertyUpsertResponse as PropertyUpsertResponse, type PropertyUpsertParams as PropertyUpsertParams, };
201
- export { Agents as Agents, type AgentListParams as AgentListParams };
202
- export { Blocks as Blocks, type BlockListParams as BlockListParams };
203
- }
204
- //# sourceMappingURL=identities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identities.d.ts","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,MAAM,EAAE;OAC3B,KAAK,SAAS;OACd,EAAE,eAAe,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CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAErE,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACtE"}
@@ -1,63 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Identities = void 0;
5
- const tslib_1 = require("../../internal/tslib.js");
6
- const resource_1 = require("../../core/resource.js");
7
- const AgentsAPI = tslib_1.__importStar(require("./agents.js"));
8
- const agents_1 = require("./agents.js");
9
- const BlocksAPI = tslib_1.__importStar(require("./blocks.js"));
10
- const blocks_1 = require("./blocks.js");
11
- const PropertiesAPI = tslib_1.__importStar(require("./properties.js"));
12
- const properties_1 = require("./properties.js");
13
- const pagination_1 = require("../../core/pagination.js");
14
- const path_1 = require("../../internal/utils/path.js");
15
- class Identities extends resource_1.APIResource {
16
- constructor() {
17
- super(...arguments);
18
- this.properties = new PropertiesAPI.Properties(this._client);
19
- this.agents = new AgentsAPI.Agents(this._client);
20
- this.blocks = new BlocksAPI.Blocks(this._client);
21
- }
22
- /**
23
- * Create Identity
24
- */
25
- create(body, options) {
26
- return this._client.post('/v1/identities/', { body, ...options });
27
- }
28
- /**
29
- * Retrieve Identity
30
- */
31
- retrieve(identityID, options) {
32
- return this._client.get((0, path_1.path) `/v1/identities/${identityID}`, options);
33
- }
34
- /**
35
- * Update Identity
36
- */
37
- update(identityID, body, options) {
38
- return this._client.patch((0, path_1.path) `/v1/identities/${identityID}`, { body, ...options });
39
- }
40
- /**
41
- * Get a list of all identities in the database
42
- */
43
- list(query = {}, options) {
44
- return this._client.getAPIList('/v1/identities/', (pagination_1.ArrayPage), { query, ...options });
45
- }
46
- /**
47
- * Delete an identity by its identifier key
48
- */
49
- delete(identityID, options) {
50
- return this._client.delete((0, path_1.path) `/v1/identities/${identityID}`, options);
51
- }
52
- /**
53
- * Upsert Identity
54
- */
55
- upsert(body, options) {
56
- return this._client.put('/v1/identities/', { body, ...options });
57
- }
58
- }
59
- exports.Identities = Identities;
60
- Identities.Properties = properties_1.Properties;
61
- Identities.Agents = agents_1.Agents;
62
- Identities.Blocks = blocks_1.Blocks;
63
- //# sourceMappingURL=identities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identities.js","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAmD;AACnD,+DAAsC;AACtC,wCAAmD;AACnD,uEAA8C;AAC9C,gDAAwF;AAExF,yDAAqF;AAErF,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8ChE,CAAC;IA5CC;;O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AM,GAAG,eAAM,CAAC"}
@@ -1,58 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import * as AgentsAPI from "./agents.mjs";
4
- import { Agents } from "./agents.mjs";
5
- import * as BlocksAPI from "./blocks.mjs";
6
- import { Blocks } from "./blocks.mjs";
7
- import * as PropertiesAPI from "./properties.mjs";
8
- import { Properties } from "./properties.mjs";
9
- import { ArrayPage } from "../../core/pagination.mjs";
10
- import { path } from "../../internal/utils/path.mjs";
11
- export class Identities extends APIResource {
12
- constructor() {
13
- super(...arguments);
14
- this.properties = new PropertiesAPI.Properties(this._client);
15
- this.agents = new AgentsAPI.Agents(this._client);
16
- this.blocks = new BlocksAPI.Blocks(this._client);
17
- }
18
- /**
19
- * Create Identity
20
- */
21
- create(body, options) {
22
- return this._client.post('/v1/identities/', { body, ...options });
23
- }
24
- /**
25
- * Retrieve Identity
26
- */
27
- retrieve(identityID, options) {
28
- return this._client.get(path `/v1/identities/${identityID}`, options);
29
- }
30
- /**
31
- * Update Identity
32
- */
33
- update(identityID, body, options) {
34
- return this._client.patch(path `/v1/identities/${identityID}`, { body, ...options });
35
- }
36
- /**
37
- * Get a list of all identities in the database
38
- */
39
- list(query = {}, options) {
40
- return this._client.getAPIList('/v1/identities/', (ArrayPage), { query, ...options });
41
- }
42
- /**
43
- * Delete an identity by its identifier key
44
- */
45
- delete(identityID, options) {
46
- return this._client.delete(path `/v1/identities/${identityID}`, options);
47
- }
48
- /**
49
- * Upsert Identity
50
- */
51
- upsert(body, options) {
52
- return this._client.put('/v1/identities/', { body, ...options });
53
- }
54
- }
55
- Identities.Properties = Properties;
56
- Identities.Agents = Agents;
57
- Identities.Blocks = Blocks;
58
- //# sourceMappingURL=identities.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identities.mjs","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE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C;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAoMD,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC;AACnC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;AAC3B,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -1,5 +0,0 @@
1
- export { Agents, type AgentListParams } from "./agents.mjs";
2
- export { Blocks, type BlockListParams } from "./blocks.mjs";
3
- export { Identities, type Identity, type IdentityProperty, type IdentityType, type IdentityDeleteResponse, type IdentityCreateParams, type IdentityUpdateParams, type IdentityListParams, type IdentityUpsertParams, type IdentitiesArrayPage, } from "./identities.mjs";
4
- export { Properties, type PropertyUpsertResponse, type PropertyUpsertParams } from "./properties.mjs";
5
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/identities/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;OACM,EAAE,UAAU,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
@@ -1,5 +0,0 @@
1
- export { Agents, type AgentListParams } from "./agents.js";
2
- export { Blocks, type BlockListParams } from "./blocks.js";
3
- export { Identities, type Identity, type IdentityProperty, type IdentityType, type IdentityDeleteResponse, type IdentityCreateParams, type IdentityUpdateParams, type IdentityListParams, type IdentityUpsertParams, type IdentitiesArrayPage, } from "./identities.js";
4
- export { Properties, type PropertyUpsertResponse, type PropertyUpsertParams } from "./properties.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/identities/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;OACM,EAAE,UAAU,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Properties = exports.Identities = exports.Blocks = exports.Agents = void 0;
5
- var agents_1 = require("./agents.js");
6
- Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
7
- var blocks_1 = require("./blocks.js");
8
- Object.defineProperty(exports, "Blocks", { enumerable: true, get: function () { return blocks_1.Blocks; } });
9
- var identities_1 = require("./identities.js");
10
- Object.defineProperty(exports, "Identities", { enumerable: true, get: function () { return identities_1.Identities; } });
11
- var properties_1 = require("./properties.js");
12
- Object.defineProperty(exports, "Properties", { enumerable: true, get: function () { return properties_1.Properties; } });
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/identities/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAwD;AAA/C,gGAAA,MAAM,OAAA;AACf,sCAAwD;AAA/C,gGAAA,MAAM,OAAA;AACf,8CAWsB;AAVpB,wGAAA,UAAU,OAAA;AAWZ,8CAAkG;AAAzF,wGAAA,UAAU,OAAA"}