@gpt-platform/client 0.10.4 → 0.11.0

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 (155) hide show
  1. package/dist/_internal/client/client.gen.d.ts +3 -0
  2. package/dist/_internal/client/client.gen.d.ts.map +1 -0
  3. package/dist/_internal/client/index.d.ts +9 -0
  4. package/dist/_internal/client/index.d.ts.map +1 -0
  5. package/dist/_internal/client/types.gen.d.ts +118 -0
  6. package/dist/_internal/client/types.gen.d.ts.map +1 -0
  7. package/dist/_internal/client/utils.gen.d.ts +34 -0
  8. package/dist/_internal/client/utils.gen.d.ts.map +1 -0
  9. package/dist/_internal/client.gen.d.ts +13 -0
  10. package/dist/_internal/client.gen.d.ts.map +1 -0
  11. package/dist/_internal/core/auth.gen.d.ts +19 -0
  12. package/dist/_internal/core/auth.gen.d.ts.map +1 -0
  13. package/dist/_internal/core/bodySerializer.gen.d.ts +26 -0
  14. package/dist/_internal/core/bodySerializer.gen.d.ts.map +1 -0
  15. package/dist/_internal/core/params.gen.d.ts +44 -0
  16. package/dist/_internal/core/params.gen.d.ts.map +1 -0
  17. package/dist/_internal/core/pathSerializer.gen.d.ts +34 -0
  18. package/dist/_internal/core/pathSerializer.gen.d.ts.map +1 -0
  19. package/dist/_internal/core/queryKeySerializer.gen.d.ts +19 -0
  20. package/dist/_internal/core/queryKeySerializer.gen.d.ts.map +1 -0
  21. package/dist/_internal/core/serverSentEvents.gen.d.ts +72 -0
  22. package/dist/_internal/core/serverSentEvents.gen.d.ts.map +1 -0
  23. package/dist/_internal/core/types.gen.d.ts +79 -0
  24. package/dist/_internal/core/types.gen.d.ts.map +1 -0
  25. package/dist/_internal/core/utils.gen.d.ts +20 -0
  26. package/dist/_internal/core/utils.gen.d.ts.map +1 -0
  27. package/dist/_internal/index.d.ts +3 -0
  28. package/dist/_internal/index.d.ts.map +1 -0
  29. package/dist/_internal/sdk.gen.d.ts +7053 -0
  30. package/dist/_internal/sdk.gen.d.ts.map +1 -0
  31. package/dist/_internal/types.gen.d.ts +146633 -0
  32. package/dist/_internal/types.gen.d.ts.map +1 -0
  33. package/dist/base-client.d.ts +199 -0
  34. package/dist/base-client.d.ts.map +1 -0
  35. package/dist/errors/index.d.ts +128 -0
  36. package/dist/errors/index.d.ts.map +1 -0
  37. package/dist/events.d.ts +69 -0
  38. package/dist/events.d.ts.map +1 -0
  39. package/dist/execution-events.d.ts +95 -0
  40. package/dist/execution-events.d.ts.map +1 -0
  41. package/dist/gpt-client.d.ts +2175 -0
  42. package/dist/gpt-client.d.ts.map +1 -0
  43. package/dist/index.d.ts +51 -30308
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +775 -14
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +775 -14
  48. package/dist/index.mjs.map +1 -1
  49. package/dist/json-api.d.ts +26 -0
  50. package/dist/json-api.d.ts.map +1 -0
  51. package/dist/logging.d.ts +22 -0
  52. package/dist/logging.d.ts.map +1 -0
  53. package/dist/namespace-types.d.ts +79 -0
  54. package/dist/namespace-types.d.ts.map +1 -0
  55. package/dist/namespaces/access-grants.d.ts +71 -0
  56. package/dist/namespaces/access-grants.d.ts.map +1 -0
  57. package/dist/namespaces/agents.d.ts +1406 -0
  58. package/dist/namespaces/agents.d.ts.map +1 -0
  59. package/dist/namespaces/ai.d.ts +407 -0
  60. package/dist/namespaces/ai.d.ts.map +1 -0
  61. package/dist/namespaces/audit.d.ts +83 -0
  62. package/dist/namespaces/audit.d.ts.map +1 -0
  63. package/dist/namespaces/billing.d.ts +854 -0
  64. package/dist/namespaces/billing.d.ts.map +1 -0
  65. package/dist/namespaces/campaigns.d.ts +973 -0
  66. package/dist/namespaces/campaigns.d.ts.map +1 -0
  67. package/dist/namespaces/catalog.d.ts +964 -0
  68. package/dist/namespaces/catalog.d.ts.map +1 -0
  69. package/dist/namespaces/channels.d.ts +162 -0
  70. package/dist/namespaces/channels.d.ts.map +1 -0
  71. package/dist/namespaces/clinical.d.ts +2443 -0
  72. package/dist/namespaces/clinical.d.ts.map +1 -0
  73. package/dist/namespaces/communication.d.ts +439 -0
  74. package/dist/namespaces/communication.d.ts.map +1 -0
  75. package/dist/namespaces/compliance.d.ts +2310 -0
  76. package/dist/namespaces/compliance.d.ts.map +1 -0
  77. package/dist/namespaces/connectors.d.ts +1368 -0
  78. package/dist/namespaces/connectors.d.ts.map +1 -0
  79. package/dist/namespaces/content.d.ts +188 -0
  80. package/dist/namespaces/content.d.ts.map +1 -0
  81. package/dist/namespaces/crawler.d.ts +408 -0
  82. package/dist/namespaces/crawler.d.ts.map +1 -0
  83. package/dist/namespaces/crm-clusters.d.ts +31 -0
  84. package/dist/namespaces/crm-clusters.d.ts.map +1 -0
  85. package/dist/namespaces/crm.d.ts +1539 -0
  86. package/dist/namespaces/crm.d.ts.map +1 -0
  87. package/dist/namespaces/documents.d.ts +136 -0
  88. package/dist/namespaces/documents.d.ts.map +1 -0
  89. package/dist/namespaces/email.d.ts +550 -0
  90. package/dist/namespaces/email.d.ts.map +1 -0
  91. package/dist/namespaces/extraction.d.ts +1249 -0
  92. package/dist/namespaces/extraction.d.ts.map +1 -0
  93. package/dist/namespaces/identity.d.ts +411 -0
  94. package/dist/namespaces/identity.d.ts.map +1 -0
  95. package/dist/namespaces/imports.d.ts +177 -0
  96. package/dist/namespaces/imports.d.ts.map +1 -0
  97. package/dist/namespaces/index.d.ts +119 -0
  98. package/dist/namespaces/index.d.ts.map +1 -0
  99. package/dist/namespaces/memory.d.ts +105 -0
  100. package/dist/namespaces/memory.d.ts.map +1 -0
  101. package/dist/namespaces/models.d.ts +75 -0
  102. package/dist/namespaces/models.d.ts.map +1 -0
  103. package/dist/namespaces/permissions.d.ts +75 -0
  104. package/dist/namespaces/permissions.d.ts.map +1 -0
  105. package/dist/namespaces/pipeline-executions.d.ts +130 -0
  106. package/dist/namespaces/pipeline-executions.d.ts.map +1 -0
  107. package/dist/namespaces/pipelines.d.ts +120 -0
  108. package/dist/namespaces/pipelines.d.ts.map +1 -0
  109. package/dist/namespaces/platform.d.ts +1430 -0
  110. package/dist/namespaces/platform.d.ts.map +1 -0
  111. package/dist/namespaces/portal.d.ts +198 -0
  112. package/dist/namespaces/portal.d.ts.map +1 -0
  113. package/dist/namespaces/projects.d.ts +553 -0
  114. package/dist/namespaces/projects.d.ts.map +1 -0
  115. package/dist/namespaces/roles.d.ts +65 -0
  116. package/dist/namespaces/roles.d.ts.map +1 -0
  117. package/dist/namespaces/scheduling.d.ts +944 -0
  118. package/dist/namespaces/scheduling.d.ts.map +1 -0
  119. package/dist/namespaces/search.d.ts +224 -0
  120. package/dist/namespaces/search.d.ts.map +1 -0
  121. package/dist/namespaces/session-notes.d.ts +67 -0
  122. package/dist/namespaces/session-notes.d.ts.map +1 -0
  123. package/dist/namespaces/social.d.ts +330 -0
  124. package/dist/namespaces/social.d.ts.map +1 -0
  125. package/dist/namespaces/storage.d.ts +378 -0
  126. package/dist/namespaces/storage.d.ts.map +1 -0
  127. package/dist/namespaces/support.d.ts +427 -0
  128. package/dist/namespaces/support.d.ts.map +1 -0
  129. package/dist/namespaces/threads.d.ts +596 -0
  130. package/dist/namespaces/threads.d.ts.map +1 -0
  131. package/dist/namespaces/training.d.ts +358 -0
  132. package/dist/namespaces/training.d.ts.map +1 -0
  133. package/dist/namespaces/voice.d.ts +752 -0
  134. package/dist/namespaces/voice.d.ts.map +1 -0
  135. package/dist/namespaces/watcher.d.ts +425 -0
  136. package/dist/namespaces/watcher.d.ts.map +1 -0
  137. package/dist/namespaces/webhooks-ns.d.ts +3 -0
  138. package/dist/namespaces/webhooks-ns.d.ts.map +1 -0
  139. package/dist/pagination.d.ts +57 -0
  140. package/dist/pagination.d.ts.map +1 -0
  141. package/dist/request-builder.d.ts +95 -0
  142. package/dist/request-builder.d.ts.map +1 -0
  143. package/dist/security.d.ts +32 -0
  144. package/dist/security.d.ts.map +1 -0
  145. package/dist/streaming.d.ts +135 -0
  146. package/dist/streaming.d.ts.map +1 -0
  147. package/dist/utils/retry.d.ts +63 -0
  148. package/dist/utils/retry.d.ts.map +1 -0
  149. package/dist/version.d.ts +5 -0
  150. package/dist/version.d.ts.map +1 -0
  151. package/dist/webhook-signature.d.ts +109 -0
  152. package/dist/webhook-signature.d.ts.map +1 -0
  153. package/llms.txt +40 -1
  154. package/package.json +286 -36
  155. package/dist/index.d.mts +0 -30308
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../../src/namespaces/extraction.ts"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AASpD,6CAA6C;AAC7C,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,gDAAgD;AAChD,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,8CAA8C;AAC9C,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,8DAA8D;AAC9D,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM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ACtB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;SACxB,YACS,cAAc,KACvB,OAAO,CAAC,OAAO,CAAC;;IAarB,wEAAwE;;QAEtE;;;;;;;;;;;;;WAaG;oCAEY,MAAM,YACT,cAAc,KACvB,OAAO,CAAC,iBAAiB,CAAC;;EASlC"}
@@ -0,0 +1,411 @@
1
+ import type { ApiKey, Tenant, Token, User, UserProfile } from "../_internal/types.gen";
2
+ /** Generic auth operation response (confirm, magic link, password reset, etc.). */
3
+ export interface AuthResponse {
4
+ success?: boolean;
5
+ message?: string;
6
+ token?: string;
7
+ [key: string]: unknown;
8
+ }
9
+ /** Response from the session refresh endpoint. */
10
+ export interface RefreshResponse {
11
+ /** New JWT access token. */
12
+ token: string;
13
+ /** New refresh token (rotated — previous token is revoked). */
14
+ refresh_token: string;
15
+ /** The user's UUID. */
16
+ user_id: string;
17
+ }
18
+ /** Dashboard summary data for the current user. */
19
+ export interface DashboardResponse {
20
+ [key: string]: unknown;
21
+ }
22
+ /** User statistics. */
23
+ export interface UserStatsResponse {
24
+ [key: string]: unknown;
25
+ }
26
+ /** Registration extra attributes (beyond email/password/tenant). */
27
+ export type RegisterExtraAttributes = {
28
+ first_name?: string;
29
+ last_name?: string;
30
+ [key: string]: unknown;
31
+ };
32
+ /** Attributes accepted when creating a user (admin/system). */
33
+ export type CreateUserAttributes = {
34
+ email: string;
35
+ password?: string;
36
+ [key: string]: unknown;
37
+ };
38
+ /** Attributes accepted when creating a token. */
39
+ export type CreateTokenAttributes = {
40
+ purpose: string;
41
+ [key: string]: unknown;
42
+ };
43
+ /** Attributes accepted when creating a user profile. */
44
+ export type CreateUserProfileAttributes = {
45
+ display_name?: string;
46
+ avatar_url?: string;
47
+ [key: string]: unknown;
48
+ };
49
+ /** Attributes accepted when updating a user profile (PATCH semantics). */
50
+ export type UpdateUserProfileAttributes = {
51
+ display_name?: string;
52
+ avatar_url?: string;
53
+ bio?: string;
54
+ [key: string]: unknown;
55
+ };
56
+ /** API key usage statistics entry. */
57
+ export interface ApiKeyUsageStat {
58
+ api_key_id?: string;
59
+ request_count?: number;
60
+ date?: string;
61
+ [key: string]: unknown;
62
+ }
63
+ /** Attributes accepted when updating an API key (PATCH semantics). */
64
+ export type UpdateApiKeyAttributes = {
65
+ name?: string;
66
+ scopes?: string[];
67
+ rate_limit_per_minute?: number;
68
+ [key: string]: unknown;
69
+ };
70
+ import type { RequestOptions } from "../base-client";
71
+ import { RequestBuilder } from "../request-builder";
72
+ export type OAuthProvider = "google" | "github" | "microsoft";
73
+ export interface OAuthSignInOptions {
74
+ /** Application ID (app_id) — required to scope the OAuth flow to your ISV application */
75
+ appId: string;
76
+ /**
77
+ * URL to redirect to after OAuth completes. Must be in your application's
78
+ * allowed callback URLs. If omitted, uses the application's default callback URL.
79
+ */
80
+ redirectUrl?: string;
81
+ }
82
+ export declare function createIdentityNamespace(rb: RequestBuilder, baseUrl?: string): {
83
+ /**
84
+ * Login with email and password — returns the authenticated user.
85
+ * The session token is available as `result.token` (flattened from `data.attributes.token`).
86
+ */
87
+ login: (email: string, password: string, options?: RequestOptions) => Promise<User>;
88
+ /**
89
+ * Exchange a refresh token for a new JWT + refresh token pair.
90
+ *
91
+ * The old refresh token is revoked on success (token rotation).
92
+ * Use the new refresh token for subsequent refresh calls.
93
+ *
94
+ * @param refreshToken - The refresh token (srt_ prefix) from login or a previous refresh
95
+ * @returns New token pair with rotated refresh token
96
+ *
97
+ * @example
98
+ * ```typescript
99
+ * const { token, refresh_token } = await client.identity.refresh(storedRefreshToken);
100
+ * // Store the new refresh_token for next refresh
101
+ * // Use token as the new Bearer token
102
+ * ```
103
+ */
104
+ refresh: (refreshToken: string, options?: RequestOptions) => Promise<RefreshResponse>;
105
+ /**
106
+ * Register a new user account — returns the newly created user.
107
+ * The session token is available as `result.token` (flattened from `data.attributes.token`).
108
+ *
109
+ * Pass additional registration fields (e.g. `first_name`, `last_name`,
110
+ * `legal_documents_accepted`) via `attrs`. They are merged into the
111
+ * request body's `attributes` object alongside the required fields.
112
+ *
113
+ * ## Legal Document Acceptance
114
+ *
115
+ * Most applications require users to accept terms of service and/or a privacy
116
+ * policy at registration. Pass each accepted document as an entry in
117
+ * `legal_documents_accepted`:
118
+ *
119
+ * ```typescript
120
+ * await client.identity.register(email, password, passwordConfirmation, tenantName, {
121
+ * first_name: "Jane",
122
+ * last_name: "Doe",
123
+ * legal_documents_accepted: [
124
+ * { document_id: "uuid-of-terms-doc", document_type: "terms-of-service", version: "2025-01-01" },
125
+ * { document_id: "uuid-of-privacy-doc", document_type: "privacy-policy", version: "2025-01-01" },
126
+ * ],
127
+ * });
128
+ * ```
129
+ *
130
+ * Each entry requires three fields:
131
+ * - `document_id` — UUID of the `LegalDocument` record (fetch via `GET /legal-documents`)
132
+ * - `document_type` — `"terms_of_service"` or `"privacy_policy"`
133
+ * - `version` — the document's current version string (must match exactly)
134
+ *
135
+ * The server validates that each referenced document exists, is active, its type
136
+ * and version match, and that all platform-required documents are covered.
137
+ * Validation failure returns a 422 with field `legal_documents_accepted`.
138
+ *
139
+ * **What happens server-side:**
140
+ * An immutable `LegalAcceptance` record is created per document, timestamped
141
+ * server-side with `context: :registration`. These records are the source of
142
+ * truth for compliance audits.
143
+ *
144
+ * **If omitted at registration:**
145
+ * The `RequireLegalAcceptance` plug blocks subsequent authenticated API calls
146
+ * until the user completes acceptance out-of-band. Omitting is only valid for
147
+ * invite-flow or SSO registrations where acceptance is handled separately.
148
+ */
149
+ register: (email: string, password: string, passwordConfirmation: string, tenantName: string, attrs?: RegisterExtraAttributes, options?: RequestOptions) => Promise<User>;
150
+ /**
151
+ * Register a new user via invitation — skips personal tenant creation.
152
+ *
153
+ * Creates the user account, accepts the invitation (creating tenant/workspace
154
+ * memberships), and returns the authenticated user with a session token.
155
+ * The email must match the invitation's recipient email.
156
+ *
157
+ * @param email - Must match the invitation recipient email
158
+ * @param password - Minimum 8 characters
159
+ * @param passwordConfirmation - Must match password
160
+ * @param invitationToken - Raw token from the invitation email link
161
+ * @param attrs - Optional extra attributes (first_name, last_name)
162
+ * @param options - Optional request options
163
+ * @returns The newly created `User` with session token
164
+ *
165
+ * @example
166
+ * ```typescript
167
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
168
+ * const user = await client.identity.registerViaInvitation(
169
+ * 'invited@example.com', 'securepass', 'securepass', 'raw-token-from-email',
170
+ * { first_name: 'Jane', last_name: 'Doe' },
171
+ * );
172
+ * console.log(user.token); // JWT session token
173
+ * ```
174
+ */
175
+ registerViaInvitation: (email: string, password: string, passwordConfirmation: string, invitationToken: string, attrs?: RegisterExtraAttributes, options?: RequestOptions) => Promise<User>;
176
+ /** Get the currently authenticated user */
177
+ me: (options?: RequestOptions) => Promise<User>;
178
+ /** Get the current user profile (alias for me()) */
179
+ profile: (options?: RequestOptions) => Promise<User>;
180
+ /** List all users (paginated). */
181
+ list: (options?: {
182
+ page?: number;
183
+ pageSize?: number;
184
+ } & RequestOptions) => Promise<User[]>;
185
+ /** List all users (fetches all pages automatically). */
186
+ listAll: (options?: RequestOptions) => Promise<User[]>;
187
+ /** Get a user by ID. */
188
+ get: (id: string, options?: RequestOptions) => Promise<User>;
189
+ /** Create a new user (admin/system use). */
190
+ create: (attributes: CreateUserAttributes, options?: RequestOptions) => Promise<User>;
191
+ /** Resend confirmation email to an unconfirmed user */
192
+ resendConfirmation: (email: string, options?: RequestOptions) => Promise<User>;
193
+ /** Confirm an email address using the token from the confirmation email */
194
+ confirmEmail: (email: string, confirmationToken: string, options?: RequestOptions) => Promise<AuthResponse>;
195
+ /** Request a magic link sign-in email */
196
+ requestMagicLink: (email: string, options?: RequestOptions) => Promise<AuthResponse>;
197
+ /**
198
+ * Request a password reset email — always returns success to prevent email enumeration.
199
+ * The user will receive an email with a reset token if the account exists.
200
+ */
201
+ requestPasswordReset: (email: string, options?: RequestOptions) => Promise<AuthResponse>;
202
+ /** Sign in using a token from a magic link email */
203
+ signInWithMagicLink: (token: string, options?: RequestOptions) => Promise<AuthResponse>;
204
+ /** Reset a password using the token from a password reset email */
205
+ resetPasswordWithToken: (token: string, password: string, passwordConfirmation: string, options?: RequestOptions) => Promise<AuthResponse>;
206
+ /** Change password for the currently authenticated user */
207
+ changePassword: (currentPassword: string, password: string, passwordConfirmation: string, options?: RequestOptions) => Promise<AuthResponse>;
208
+ /** Delete a user by ID (admin only). */
209
+ delete: (id: string, options?: RequestOptions) => Promise<true>;
210
+ /**
211
+ * List tenants the current user belongs to, including roles and workspace counts.
212
+ * @returns Array of tenant membership objects with role and workspace_count
213
+ * @example
214
+ * ```typescript
215
+ * const tenants = await client.identity.myTenants();
216
+ * tenants.forEach(t => console.log(t.tenant_name, t.user_role));
217
+ * ```
218
+ */
219
+ myTenants: (options?: RequestOptions) => Promise<Tenant[]>;
220
+ /**
221
+ * Get aggregated dashboard data for the current user's tenant.
222
+ * Includes document counts, storage usage, credit balance, and recent activity.
223
+ * @returns Dashboard data object
224
+ * @example
225
+ * ```typescript
226
+ * const dashboard = await client.identity.myDashboard();
227
+ * console.log(dashboard.document_count, dashboard.credit_balance);
228
+ * ```
229
+ */
230
+ myDashboard: (options?: RequestOptions) => Promise<DashboardResponse>;
231
+ /**
232
+ * Get usage statistics for the current user's tenant.
233
+ * @returns Stats data with document, storage, credit, and agent metrics
234
+ * @example
235
+ * ```typescript
236
+ * const stats = await client.identity.myStats();
237
+ * console.log(stats.documents, stats.storage);
238
+ * ```
239
+ */
240
+ myStats: (options?: RequestOptions) => Promise<UserStatsResponse>;
241
+ /**
242
+ * Get recent activity feed for the current user.
243
+ * @returns Array of activity items with timestamps and descriptions
244
+ * @example
245
+ * ```typescript
246
+ * const activity = await client.identity.myActivity();
247
+ * activity.forEach(a => console.log(a.action, a.timestamp));
248
+ * ```
249
+ */
250
+ myActivity: (options?: RequestOptions) => Promise<AuthResponse[]>;
251
+ tokens: {
252
+ create: (attributes: CreateTokenAttributes, options?: RequestOptions) => Promise<Token>;
253
+ };
254
+ profiles: {
255
+ /** Delete a user profile. */
256
+ delete: (id: string, options?: RequestOptions) => Promise<true>;
257
+ /** List user profiles (paginated). */
258
+ list: (options?: {
259
+ page?: number;
260
+ pageSize?: number;
261
+ } & RequestOptions) => Promise<UserProfile[]>;
262
+ /** List all user profiles (fetches all pages). */
263
+ listAll: (options?: RequestOptions) => Promise<UserProfile[]>;
264
+ /** Get a user profile by ID. */
265
+ get: (id: string, options?: RequestOptions) => Promise<UserProfile>;
266
+ /** Create a user profile. */
267
+ create: (attributes: CreateUserProfileAttributes, options?: RequestOptions) => Promise<UserProfile>;
268
+ /** Update a user profile's display fields. */
269
+ update: (id: string, attributes: UpdateUserProfileAttributes, options?: RequestOptions) => Promise<UserProfile>;
270
+ /**
271
+ * Get the current user's profile.
272
+ * @returns The authenticated user's profile
273
+ * @example
274
+ * ```typescript
275
+ * const profile = await client.identity.profiles.me();
276
+ * console.log(profile.first_name, profile.last_name);
277
+ * ```
278
+ */
279
+ me: (options?: RequestOptions) => Promise<UserProfile>;
280
+ /**
281
+ * Accept Terms of Service. Creates a legal acceptance record and
282
+ * auto-grants AI processing consent.
283
+ * @param id - Profile ID
284
+ * @param tosVersion - Version string of the ToS being accepted
285
+ * @param privacyPolicyVersion - Optional privacy policy version
286
+ * @returns Updated profile
287
+ * @example
288
+ * ```typescript
289
+ * const profile = await client.identity.profiles.acceptTos(profileId, "2026-01-15");
290
+ * ```
291
+ */
292
+ acceptTos: (id: string, tosVersion: string, privacyPolicyVersion?: string, options?: RequestOptions) => Promise<UserProfile>;
293
+ /**
294
+ * Dismiss the welcome message for this profile.
295
+ * @param id - Profile ID
296
+ * @returns Updated profile
297
+ */
298
+ dismissWelcome: (id: string, options?: RequestOptions) => Promise<UserProfile>;
299
+ /**
300
+ * Dismiss the current announcement for this profile.
301
+ * @param id - Profile ID
302
+ * @returns Updated profile
303
+ */
304
+ dismissAnnouncement: (id: string, options?: RequestOptions) => Promise<UserProfile>;
305
+ };
306
+ /**
307
+ * Social OAuth sign-in (Google, GitHub, Microsoft).
308
+ *
309
+ * This is a browser-redirect flow — the backend redirects the user's browser
310
+ * to the provider, then back to your `redirectUrl` with `?token=JWT` appended.
311
+ *
312
+ * @example
313
+ * ```typescript
314
+ * // Get the URL and redirect manually
315
+ * const url = client.identity.oauth.getAuthorizationUrl('google', {
316
+ * appId: 'your-app-id',
317
+ * redirectUrl: 'https://yourapp.com/auth/callback',
318
+ * });
319
+ * window.location.href = url;
320
+ *
321
+ * // Or use the convenience helper (browser only)
322
+ * client.identity.oauth.signIn('google', {
323
+ * appId: 'your-app-id',
324
+ * redirectUrl: 'https://yourapp.com/auth/callback',
325
+ * });
326
+ *
327
+ * // On your callback page, extract the token:
328
+ * const token = new URLSearchParams(window.location.search).get('token');
329
+ * ```
330
+ */
331
+ oauth: {
332
+ /**
333
+ * Build the authorization URL for the given OAuth provider.
334
+ * Navigate the user's browser to this URL to begin the sign-in flow.
335
+ */
336
+ getAuthorizationUrl(provider: OAuthProvider, options: OAuthSignInOptions): string;
337
+ /**
338
+ * Redirect the browser to the OAuth sign-in page for the given provider.
339
+ * Only works in browser environments (sets `window.location.href`).
340
+ *
341
+ * After the user authenticates, they are redirected back to `redirectUrl`
342
+ * with a `?token=JWT` query parameter containing their session token.
343
+ */
344
+ signIn(provider: OAuthProvider, options: OAuthSignInOptions): void;
345
+ };
346
+ apiKeys: {
347
+ /** List API keys (paginated). Scoped to the actor's visible keys. */
348
+ list: (options?: {
349
+ page?: number;
350
+ pageSize?: number;
351
+ } & RequestOptions) => Promise<ApiKey[]>;
352
+ /** List all API keys (fetches all pages). */
353
+ listAll: (options?: RequestOptions) => Promise<ApiKey[]>;
354
+ /** Delete an API key permanently. */
355
+ delete: (id: string, options?: RequestOptions) => Promise<true>;
356
+ /** Update an API key's name, scopes, or rate limits. */
357
+ update: (id: string, attributes: UpdateApiKeyAttributes, options?: RequestOptions) => Promise<ApiKey>;
358
+ /** Create a new API key with the given name. */
359
+ create: (name: string, options?: RequestOptions) => Promise<ApiKey>;
360
+ /** Get an API key by ID. */
361
+ get: (id: string, options?: RequestOptions) => Promise<ApiKey>;
362
+ /** Revoke an API key (permanently disables it) */
363
+ revoke: (id: string, options?: RequestOptions) => Promise<ApiKey>;
364
+ /** Rotate an API key (generates a new secret) */
365
+ rotate: (id: string, options?: RequestOptions) => Promise<ApiKey>;
366
+ /**
367
+ * Set or remove a credit budget for this API key.
368
+ * Pass null for both parameters to remove the budget limit.
369
+ * @param id - API key ID
370
+ * @param creditLimit - Maximum credits per period (null to remove)
371
+ * @param creditLimitPeriod - Budget period: "daily", "weekly", "monthly", "yearly", "lifetime" (null to remove)
372
+ * @returns Updated API key
373
+ * @example
374
+ * ```typescript
375
+ * // Set monthly budget
376
+ * await client.identity.apiKeys.setBudget(keyId, 10000, "monthly");
377
+ * // Remove budget
378
+ * await client.identity.apiKeys.setBudget(keyId, null, null);
379
+ * ```
380
+ */
381
+ setBudget: (id: string, creditLimit: number | null, creditLimitPeriod: string | null, options?: RequestOptions) => Promise<ApiKey>;
382
+ /**
383
+ * Get usage statistics for API keys, grouped by key type.
384
+ * @returns Array of usage stat records
385
+ * @example
386
+ * ```typescript
387
+ * const stats = await client.identity.apiKeys.usageStats();
388
+ * ```
389
+ */
390
+ usageStats: (options?: RequestOptions) => Promise<ApiKeyUsageStat[]>;
391
+ /**
392
+ * List only active (non-revoked) API keys.
393
+ * @returns Array of active API keys
394
+ * @example
395
+ * ```typescript
396
+ * const active = await client.identity.apiKeys.active();
397
+ * ```
398
+ */
399
+ active: (options?: {
400
+ page?: number;
401
+ pageSize?: number;
402
+ } & RequestOptions) => Promise<ApiKey[]>;
403
+ /**
404
+ * Reset the budget period for an API key (resets period_credits_used to 0).
405
+ * @param id - API key ID
406
+ * @returns Updated API key
407
+ */
408
+ resetBudgetPeriod: (id: string, options?: RequestOptions) => Promise<ApiKey>;
409
+ };
410
+ };
411
+ //# sourceMappingURL=identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.d.ts","s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AAE,CAAC;QAI7B;;;;;;;WAOG;2BAES;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,GAAG,cAAc,KAC9D,OAAO,CAAC,MAAM,EAAE,CAAC;QAQpB;;;;WAIG;gCAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,MAAM,CAAC;;EAYvB"}
@@ -0,0 +1,177 @@
1
+ import type { RequestBuilder } from "../request-builder";
2
+ import type { RequestOptions } from "../base-client";
3
+ /** Import adapter metadata returned by listAdapters. */
4
+ export interface ImportAdapter {
5
+ key: string;
6
+ display_name: string;
7
+ domain: string;
8
+ required_capability: string;
9
+ commit_strategy: "atomic" | "chunked";
10
+ required_fields: string[];
11
+ optional_fields: string[];
12
+ }
13
+ /** Import job record. */
14
+ export interface Import {
15
+ id: string;
16
+ adapter_key: string;
17
+ status: "pending" | "parsing" | "validated" | "validation_failed" | "committing" | "completed" | "commit_failed" | "cancelled";
18
+ source_type: "csv" | "url" | "api_batch";
19
+ source_ref: string | null;
20
+ column_mapping: Record<string, string> | null;
21
+ metadata: Record<string, unknown>;
22
+ row_count: number;
23
+ created_count: number;
24
+ failed_count: number;
25
+ error_report: Array<{
26
+ row: number;
27
+ errors: string[];
28
+ }> | null;
29
+ commit_strategy: "atomic" | "chunked";
30
+ workspace_id: string;
31
+ inserted_at: string;
32
+ updated_at: string;
33
+ }
34
+ /** Per-row outcome for chunked imports. */
35
+ export interface ImportRow {
36
+ id: string;
37
+ import_id: string;
38
+ workspace_id: string;
39
+ row_index: number;
40
+ status: "pending" | "committed" | "failed";
41
+ error_messages: string[] | null;
42
+ created_resource_id: string | null;
43
+ created_resource_type: string | null;
44
+ inserted_at: string;
45
+ updated_at: string;
46
+ }
47
+ export declare function createImportsNamespace(rb: RequestBuilder): {
48
+ /**
49
+ * List available import adapter types for the current application.
50
+ * @returns Array of adapter metadata objects
51
+ * @example
52
+ * const adapters = await sdk.imports.listAdapters();
53
+ * // [{ key: "clinical:goal", display_name: "Clinical Goals", ... }]
54
+ */
55
+ listAdapters: (options?: RequestOptions) => Promise<ImportAdapter[]>;
56
+ /**
57
+ * Submit a JSON batch import.
58
+ * @param params - adapter key, workspace_id, and rows array
59
+ * @returns Import job with id and initial status
60
+ * @example
61
+ * const result = await sdk.imports.batch({
62
+ * adapter: "clinical:goal",
63
+ * workspace_id: "ws_123",
64
+ * rows: [{ contact_id: "...", title: "Increase water intake", goal_type: "hydration" }]
65
+ * });
66
+ */
67
+ batch: (params: {
68
+ adapter: string;
69
+ workspace_id: string;
70
+ rows: Record<string, unknown>[];
71
+ metadata?: Record<string, unknown>;
72
+ }, options?: RequestOptions) => Promise<{
73
+ data: {
74
+ import_id: string;
75
+ status: string;
76
+ };
77
+ }>;
78
+ /**
79
+ * Upload a CSV file for import.
80
+ * @param file - CSV file (File or Blob)
81
+ * @param params - adapter key and workspace_id
82
+ * @returns Import job with id and initial status
83
+ * @example
84
+ * const result = await sdk.imports.upload(csvFile, {
85
+ * adapter: "clinical:patient_bundle",
86
+ * workspace_id: "ws_123"
87
+ * });
88
+ */
89
+ upload: (file: File | Blob, params: {
90
+ adapter: string;
91
+ workspace_id: string;
92
+ column_mapping?: Record<string, string>;
93
+ metadata?: Record<string, unknown>;
94
+ }, options?: RequestOptions) => Promise<{
95
+ data: {
96
+ import_id: string;
97
+ status: string;
98
+ };
99
+ }>;
100
+ /**
101
+ * List imports for a workspace with optional filters.
102
+ * @param params - workspace_id required, adapter and status optional
103
+ * @returns Paginated list of imports
104
+ * @example
105
+ * const imports = await sdk.imports.list({ workspace_id: "ws_123", adapter: "crm:contact" });
106
+ */
107
+ list: (params: {
108
+ workspace_id: string;
109
+ adapter?: string;
110
+ status?: string;
111
+ offset?: number;
112
+ limit?: number;
113
+ }, options?: RequestOptions) => Promise<{
114
+ data: Import[];
115
+ meta: {
116
+ count: number;
117
+ };
118
+ }>;
119
+ /**
120
+ * Get a single import by ID.
121
+ * @param id - Import UUID
122
+ * @returns Full import record including error_report
123
+ * @example
124
+ * const imp = await sdk.imports.get("uuid-here");
125
+ */
126
+ get: (id: string, options?: RequestOptions) => Promise<Import>;
127
+ /**
128
+ * Get per-row outcomes for a chunked import.
129
+ * @param importId - Import UUID
130
+ * @param params - Pagination options
131
+ * @returns Paginated list of row outcomes
132
+ * @example
133
+ * const rows = await sdk.imports.rows("uuid-here", { offset: 0, limit: 50 });
134
+ */
135
+ rows: (importId: string, params?: {
136
+ offset?: number;
137
+ limit?: number;
138
+ }, options?: RequestOptions) => Promise<{
139
+ data: ImportRow[];
140
+ meta: {
141
+ count: number;
142
+ };
143
+ }>;
144
+ /**
145
+ * Confirm a validated import for commit.
146
+ * @param id - Import UUID
147
+ * @param params - workspace_id for authorization
148
+ * @returns Updated import with status "committing"
149
+ * @example
150
+ * await sdk.imports.confirm("uuid-here", { workspace_id: "ws_123" });
151
+ */
152
+ confirm: (id: string, params: {
153
+ workspace_id: string;
154
+ }, options?: RequestOptions) => Promise<{
155
+ data: {
156
+ import_id: string;
157
+ status: string;
158
+ };
159
+ }>;
160
+ /**
161
+ * Cancel a validated import.
162
+ * @param id - Import UUID
163
+ * @param params - workspace_id for authorization
164
+ * @returns Updated import with status "cancelled"
165
+ * @example
166
+ * await sdk.imports.cancel("uuid-here", { workspace_id: "ws_123" });
167
+ */
168
+ cancel: (id: string, params: {
169
+ workspace_id: string;
170
+ }, options?: RequestOptions) => Promise<{
171
+ data: {
172
+ import_id: string;
173
+ status: string;
174
+ };
175
+ }>;
176
+ };
177
+ //# sourceMappingURL=imports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/namespaces/imports.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIrD,wDAAwD;AACxD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE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