@gpt-platform/client 0.10.5 → 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 -30734
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +311 -4
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +311 -4
  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 +7 -1
  154. package/package.json +286 -36
  155. package/dist/index.d.mts +0 -30734
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduling.d.ts","sourceRoot":"","sources":["../../src/namespaces/scheduling.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGzE,uDAAuD;AACvD,MAAM,MAAM,mCAAmC,GAAG;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,yEAAyE;AACzE,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,4DAA4D;AAC5D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,CA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AAG,OAAO,CAAC,IAAI,CAAC;QAQnE;;;;;;;;;;;;;;;;;WAiBG;oBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,sBAAsB,CAAC;QAQlC;;;;;;;;;;;;;;;;WAgBG;qBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,sBAAsB,CAAC;;IASpC,gGAAgG;;;;;EAGnG"}
@@ -0,0 +1,224 @@
1
+ import type { SavedSearch } from "../_internal/types.gen";
2
+ import type { RequestOptions } from "../base-client";
3
+ import { RequestBuilder } from "../request-builder";
4
+ /** Response shape for full-text and semantic search queries. */
5
+ export interface SearchResponse {
6
+ hits?: unknown[];
7
+ total?: number;
8
+ processing_time_ms?: number;
9
+ [key: string]: unknown;
10
+ }
11
+ /** Response shape for autocomplete suggestions. */
12
+ export interface SuggestResponse {
13
+ suggestions?: string[];
14
+ [key: string]: unknown;
15
+ }
16
+ /** Response shape for search index metadata. */
17
+ export interface IndexesResponse {
18
+ indexes?: unknown[];
19
+ [key: string]: unknown;
20
+ }
21
+ /** Attributes accepted when creating a saved search. */
22
+ export type CreateSavedSearchAttributes = {
23
+ name: string;
24
+ query: string;
25
+ type?: string;
26
+ [key: string]: unknown;
27
+ };
28
+ /**
29
+ * Creates the search namespace, providing full-text search, semantic (vector)
30
+ * similarity search, autocomplete suggestions, index introspection, and saved
31
+ * search management for the authenticated workspace.
32
+ *
33
+ * The platform routes search requests through Meilisearch for full-text queries
34
+ * and through the vector embeddings layer for semantic queries. Both surfaces
35
+ * operate on the same workspace-scoped document corpus.
36
+ *
37
+ * Accessed via `client.search.*`.
38
+ *
39
+ * @param rb - The internal `RequestBuilder` instance used to execute API calls.
40
+ * @returns An object containing top-level search methods (`query`, `semantic`,
41
+ * `suggest`, `indexes`) and the `saved` sub-namespace.
42
+ */
43
+ export declare function createSearchNamespace(rb: RequestBuilder): {
44
+ /**
45
+ * Executes a full-text search query against the workspace document corpus
46
+ * using Meilisearch.
47
+ *
48
+ * Full-text search is best suited for keyword-based lookups where exact or
49
+ * near-exact term matches are expected (e.g., searching for a specific
50
+ * filename, SKU, or proper noun). For meaning-based queries, use
51
+ * `semantic()` instead.
52
+ *
53
+ * @param query - The search query string to execute. Supports Meilisearch
54
+ * query syntax including phrase matching and field filters.
55
+ * @param options - Optional request options such as custom headers or an
56
+ * abort signal.
57
+ * @returns A promise resolving to a record containing the search response,
58
+ * typically including `hits`, `total`, and `processing_time_ms` fields.
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
63
+ *
64
+ * const results = await client.search.query('quarterly revenue report');
65
+ * console.log(`Found ${results.total} document(s).`);
66
+ * results.hits.forEach((hit: unknown) => console.log(hit));
67
+ * ```
68
+ */
69
+ query: (query: string, options?: RequestOptions) => Promise<SearchResponse>;
70
+ /**
71
+ * Executes a semantic (vector similarity) search query against the workspace
72
+ * document corpus.
73
+ *
74
+ * Semantic search uses dense vector embeddings to find documents that are
75
+ * conceptually related to the query, even when they do not share the same
76
+ * keywords. Use this when users phrase queries in natural language or when
77
+ * surface-level keyword matching would miss relevant results.
78
+ *
79
+ * The platform generates a query embedding on the fly and performs an
80
+ * approximate nearest-neighbour search over the workspace's indexed document
81
+ * vectors using pgvector.
82
+ *
83
+ * @param query - The natural-language query string to encode and search with.
84
+ * @param options - Optional request options such as custom headers or an
85
+ * abort signal.
86
+ * @returns A promise resolving to a record containing the semantic search
87
+ * response, typically including `hits` ranked by cosine similarity score.
88
+ *
89
+ * @example
90
+ * ```typescript
91
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
92
+ *
93
+ * const results = await client.search.semantic('what are our refund policies?');
94
+ * console.log('Top semantic match:', results.hits[0]);
95
+ * ```
96
+ */
97
+ semantic: (query: string, options?: RequestOptions) => Promise<SearchResponse>;
98
+ /**
99
+ * Returns autocomplete suggestions for a partial search query.
100
+ *
101
+ * Use this method to power a type-ahead or search-as-you-type UI component.
102
+ * The platform returns candidate completions based on indexed terms in the
103
+ * workspace corpus. Suggestions are returned quickly and are intended for
104
+ * display in dropdown menus before the user submits a full query.
105
+ *
106
+ * @param query - The partial query string to generate suggestions for.
107
+ * Typically the text the user has typed so far.
108
+ * @param options - Optional request options such as custom headers or an
109
+ * abort signal.
110
+ * @returns A promise resolving to a record containing autocomplete
111
+ * suggestions, typically including a `suggestions` array of candidate
112
+ * strings.
113
+ *
114
+ * @example
115
+ * ```typescript
116
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
117
+ *
118
+ * const suggestions = await client.search.suggest('inv');
119
+ * // Might return: ['invoice', 'inventory', 'investment report']
120
+ * console.log(suggestions.suggestions);
121
+ * ```
122
+ */
123
+ suggest: (query: string, options?: RequestOptions) => Promise<SuggestResponse>;
124
+ /**
125
+ * Retrieves metadata and statistics for the search indexes associated with
126
+ * the current workspace.
127
+ *
128
+ * Index information includes the index name, document count, field
129
+ * distribution, and last-updated timestamp. Use this for diagnostics,
130
+ * monitoring index health, or displaying index statistics in an admin UI.
131
+ *
132
+ * @param options - Optional request options such as custom headers or an
133
+ * abort signal.
134
+ * @returns A promise resolving to a record containing index metadata, which
135
+ * may include an `indexes` array with per-index stats objects.
136
+ *
137
+ * @example
138
+ * ```typescript
139
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
140
+ *
141
+ * const info = await client.search.indexes();
142
+ * console.log('Search indexes:', info.indexes);
143
+ * ```
144
+ */
145
+ indexes: (options?: RequestOptions) => Promise<IndexesResponse>;
146
+ /**
147
+ * Sub-namespace for saved search operations.
148
+ *
149
+ * Saved searches allow users to persist a named query that can be re-run
150
+ * on demand without re-entering the search terms. They are useful for
151
+ * recurring lookups such as "all documents tagged urgent" or "contracts
152
+ * expiring this month". Saved searches are scoped to the workspace.
153
+ */
154
+ saved: {
155
+ /**
156
+ * Returns all saved searches for the current workspace.
157
+ *
158
+ * @param options - Optional request options such as custom headers or an
159
+ * abort signal.
160
+ * @returns A promise resolving to an array of saved search records. Each
161
+ * record typically includes `id`, `name`, and the persisted `query`
162
+ * parameters.
163
+ *
164
+ * @example
165
+ * ```typescript
166
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
167
+ *
168
+ * const savedSearches = await client.search.saved.list();
169
+ * savedSearches.forEach(s => console.log(s.name, s.query));
170
+ * ```
171
+ */
172
+ list: (options?: RequestOptions) => Promise<SavedSearch[]>;
173
+ /**
174
+ * Creates a new saved search, persisting a named query for future
175
+ * re-use.
176
+ *
177
+ * @param attributes - A record of saved search attributes, including at
178
+ * minimum `name` (a human-readable label) and `query` (the search
179
+ * expression or parameter set to persist). Optionally include `type`
180
+ * to differentiate full-text vs. semantic saved searches.
181
+ * @param options - Optional request options such as custom headers or an
182
+ * abort signal.
183
+ * @returns A promise resolving to the newly created saved search record.
184
+ *
185
+ * @example
186
+ * ```typescript
187
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
188
+ *
189
+ * const saved = await client.search.saved.create({
190
+ * name: 'Urgent contracts',
191
+ * query: 'tag:urgent type:contract',
192
+ * });
193
+ * console.log(`Saved search created with ID: ${saved.id}`);
194
+ * ```
195
+ */
196
+ create: (attributes: CreateSavedSearchAttributes, options?: RequestOptions) => Promise<SavedSearch>;
197
+ /**
198
+ * Executes a previously saved search by its unique identifier, returning
199
+ * fresh results against the current workspace corpus.
200
+ *
201
+ * This is equivalent to retrieving the saved search's query parameters
202
+ * and submitting them as a new search, but in a single API call. Use this
203
+ * in dashboard widgets or scheduled reporting workflows where the same
204
+ * query needs to be re-run periodically.
205
+ *
206
+ * @param id - The UUID of the saved search to execute.
207
+ * @param options - Optional request options such as custom headers or an
208
+ * abort signal.
209
+ * @returns A promise resolving to a record containing the search results,
210
+ * using the same shape as `query()` or `semantic()` depending on the
211
+ * saved search type.
212
+ *
213
+ * @example
214
+ * ```typescript
215
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
216
+ *
217
+ * const results = await client.search.saved.run('ss_01HXYZ...');
218
+ * console.log(`Saved search returned ${results.total} hit(s).`);
219
+ * ```
220
+ */
221
+ run: (id: string, options?: RequestOptions) => Promise<SearchResponse>;
222
+ };
223
+ };
224
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/namespaces/search.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,gEAAgE;AAChE,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,mDAAmD;AACnD,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,wDAAwD;AACxD,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,cAAc;IAEpD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;mBAEM,MAAM,YACH,cAAc,KACvB,OAAO,CAAC,cAAc,CAAC;IAQ1B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;sBAEM,MAAM,YACH,cAAc,KACvB,OAAO,CAAC,cAAc,CAAC;IAQ1B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;qBAEM,MAAM,YACH,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;IAQ3B;;;;;;;;;;;;;;;;;;;;OAoBG;wBACuB,cAAc,KAAG,OAAO,CAAC,eAAe,CAAC;IAInE;;;;;;;OAOG;;QAED;;;;;;;;;;;;;;;;WAgBG;yBACoB,cAAc,KAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAI9D;;;;;;;;;;;;;;;;;;;;;;WAsBG;6BAEW,2BAA2B,YAC7B,cAAc,KACvB,OAAO,CAAC,WAAW,CAAC;QAQvB;;;;;;;;;;;;;;;;;;;;;;;WAuBG;kBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,cAAc,CAAC;;EAS/B"}
@@ -0,0 +1,67 @@
1
+ import type { DataStoreRecord } from "../_internal/types.gen";
2
+ import type { RequestOptions } from "../base-client";
3
+ import { RequestBuilder } from "../request-builder";
4
+ /** Session note types supported in Chartless clinical workflows. */
5
+ export type SessionNoteType = "adime" | "soap" | "goals" | "email";
6
+ /** Value shape for session notes stored in DataStore. */
7
+ export interface SessionNoteValue {
8
+ content: string;
9
+ client_summary?: string;
10
+ reviewed_by_user_id?: string;
11
+ reviewed_at?: string;
12
+ pipeline_execution_id?: string | null;
13
+ }
14
+ /**
15
+ * Create the sessionNotes sub-namespace for use within scheduling.
16
+ *
17
+ * Notes are keyed by `{eventId}:{noteType}` under the `sessions` namespace.
18
+ * Each event supports up to 4 note types: `adime`, `soap`, `goals`, `email`.
19
+ *
20
+ * Notes are versioned automatically by DataStore — each `upsert` increments
21
+ * the version counter.
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
26
+ *
27
+ * // Read an ADIME note
28
+ * const note = await client.scheduling.sessionNotes.get(sessionId, 'adime', workspaceId);
29
+ * console.log(note?.attributes?.value?.content);
30
+ *
31
+ * // Write/update a SOAP note
32
+ * await client.scheduling.sessionNotes.upsert(sessionId, 'soap', workspaceId, {
33
+ * content: 'S: Patient reports...',
34
+ * reviewed_by_user_id: currentUserId,
35
+ * reviewed_at: new Date().toISOString(),
36
+ * });
37
+ * ```
38
+ */
39
+ export declare function createSessionNotesNamespace(rb: RequestBuilder): {
40
+ /**
41
+ * Get the current version of a session note.
42
+ *
43
+ * Returns `null` if no note of this type exists for the event yet.
44
+ *
45
+ * @param eventId - The UUID of the scheduling event (session).
46
+ * @param noteType - The note type: `"adime"`, `"soap"`, `"goals"`, or `"email"`.
47
+ * @param workspaceId - The workspace UUID. Required for application-scoped API keys.
48
+ * @param options - Optional request options.
49
+ * @returns The `DataStoreRecord`, or `null` if not found.
50
+ */
51
+ get: (eventId: string, noteType: SessionNoteType, workspaceId: string, options?: RequestOptions) => Promise<DataStoreRecord | null>;
52
+ /**
53
+ * Create or update a session note (auto-versions on update).
54
+ *
55
+ * If the note does not exist, it is created. If it exists, its value
56
+ * is replaced and the version counter is incremented.
57
+ *
58
+ * @param eventId - The UUID of the scheduling event (session).
59
+ * @param noteType - The note type: `"adime"`, `"soap"`, `"goals"`, or `"email"`.
60
+ * @param workspaceId - The workspace UUID. Required for application-scoped API keys.
61
+ * @param value - The note content and optional metadata.
62
+ * @param options - Optional request options.
63
+ * @returns The upserted `DataStoreRecord`.
64
+ */
65
+ upsert: (eventId: string, noteType: SessionNoteType, workspaceId: string, value: SessionNoteValue, options?: RequestOptions) => Promise<DataStoreRecord>;
66
+ };
67
+ //# sourceMappingURL=session-notes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-notes.d.ts","sourceRoot":"","sources":["../../src/namespaces/session-notes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAK9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,oEAAoE;AACpE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnE,yDAAyD;AACzD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,cAAc;IAE1D;;;;;;;;;;OAUG;mBAEQ,MAAM,YACL,eAAe,eACZ,MAAM,YACT,cAAc,KACvB,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAelC;;;;;;;;;;;;OAYG;sBAEQ,MAAM,YACL,eAAe,eACZ,MAAM,SACZ,gBAAgB,YACb,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;EAoB9B"}
@@ -0,0 +1,330 @@
1
+ import type { RequestOptions } from "../base-client";
2
+ import { RequestBuilder } from "../request-builder";
3
+ /** Attributes accepted by `POST /social/accounts` (create action). */
4
+ export interface SocialAccountCreateAttributes {
5
+ platform: string;
6
+ platform_user_id?: string;
7
+ display_name?: string;
8
+ avatar_url?: string;
9
+ account_type?: string;
10
+ is_active?: boolean;
11
+ posting_enabled?: boolean;
12
+ metadata?: Record<string, unknown>;
13
+ }
14
+ /** Attributes accepted by `PATCH /social/accounts/:id` (update action). */
15
+ export interface SocialAccountUpdateAttributes {
16
+ display_name?: string;
17
+ avatar_url?: string;
18
+ metadata?: Record<string, unknown>;
19
+ last_verified_at?: string;
20
+ }
21
+ /** Attributes accepted by `POST /social/posts` (create action). */
22
+ export interface SocialPostCreateAttributes {
23
+ platform: string;
24
+ content: string;
25
+ media_urls?: string[];
26
+ hashtags?: string[];
27
+ link_url?: string;
28
+ link_metadata?: Record<string, unknown>;
29
+ max_retries?: number;
30
+ social_account_id: string;
31
+ social_campaign_id?: string;
32
+ }
33
+ /** Attributes accepted by `PATCH /social/posts/:id` (update action). */
34
+ export interface SocialPostUpdateAttributes {
35
+ content?: string;
36
+ media_urls?: string[];
37
+ hashtags?: string[];
38
+ link_url?: string;
39
+ link_metadata?: Record<string, unknown>;
40
+ platform_metadata?: Record<string, unknown>;
41
+ }
42
+ /**
43
+ * Attributes accepted by `POST /social/campaigns` (create action).
44
+ * workspace_id is resolved from the authenticated user's context — do NOT pass it here.
45
+ */
46
+ export interface SocialCampaignCreateAttributes {
47
+ /** Required. Campaign name. */
48
+ name: string;
49
+ /** Content brief that the AI will use to generate master copy. */
50
+ content_brief?: string;
51
+ /** Target platforms, e.g. ["twitter", "linkedin", "instagram"]. */
52
+ target_platforms?: string[];
53
+ /** Media URLs to include in generated posts. */
54
+ media_urls?: string[];
55
+ /** SEO keywords for content optimization. */
56
+ seo_keywords?: string[];
57
+ /** Optional brand identity UUID for tone/style guidance. */
58
+ brand_identity_id?: string;
59
+ }
60
+ /** Attributes accepted by `PATCH /social/campaigns/:id` (update action). */
61
+ export interface SocialCampaignUpdateAttributes {
62
+ name?: string;
63
+ content_brief?: string;
64
+ target_platforms?: string[];
65
+ media_urls?: string[];
66
+ seo_keywords?: string[];
67
+ brand_identity_id?: string;
68
+ }
69
+ /**
70
+ * Social media management namespace — accounts, posts, metrics, and campaigns.
71
+ *
72
+ * Covers the full social publishing lifecycle: connect accounts, create and
73
+ * schedule posts, collect engagement metrics, and run AI-powered social campaigns.
74
+ *
75
+ * @example
76
+ * ```typescript
77
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
78
+ *
79
+ * // List connected accounts
80
+ * const accounts = await client.social.accounts.listByWorkspace('ws_abc');
81
+ *
82
+ * // Create and schedule a post
83
+ * const post = await client.social.posts.create({ ... });
84
+ * await client.social.posts.schedule(post.id, '2026-03-10T12:00:00Z');
85
+ *
86
+ * // Get latest metrics
87
+ * const metrics = await client.social.metrics.latestForPost(post.id);
88
+ * ```
89
+ */
90
+ export declare function createSocialNamespace(rb: RequestBuilder): {
91
+ /** Social account management — connect, enable/disable, and deactivate accounts. */
92
+ accounts: {
93
+ /** List social accounts for a workspace. */
94
+ listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
95
+ /** List social accounts by platform (e.g. "twitter", "instagram"). */
96
+ listByPlatform: (platform: string, options?: RequestOptions) => Promise<unknown>;
97
+ /** Get a single social account by ID. */
98
+ get: (id: string, options?: RequestOptions) => Promise<unknown>;
99
+ /** Connect a new social account. */
100
+ create: (attributes: SocialAccountCreateAttributes, options?: RequestOptions) => Promise<unknown>;
101
+ /** Update a social account. */
102
+ update: (id: string, attributes: SocialAccountUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
103
+ /** Delete a social account. */
104
+ delete: (id: string, options?: RequestOptions) => Promise<unknown>;
105
+ /** Enable posting on an account. */
106
+ enablePosting: (id: string, options?: RequestOptions) => Promise<unknown>;
107
+ /** Disable posting on an account. */
108
+ disablePosting: (id: string, options?: RequestOptions) => Promise<unknown>;
109
+ /** Deactivate (disconnect) an account. */
110
+ deactivate: (id: string, options?: RequestOptions) => Promise<unknown>;
111
+ };
112
+ /** Social post management — create, schedule, publish, cancel, and retry posts. */
113
+ posts: {
114
+ /** Create a new social post draft. */
115
+ create: (attributes: SocialPostCreateAttributes, options?: RequestOptions) => Promise<unknown>;
116
+ /** Get a single post by ID. */
117
+ get: (id: string, options?: RequestOptions) => Promise<unknown>;
118
+ /** Update a draft post. */
119
+ update: (id: string, attributes: SocialPostUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
120
+ /** Delete a post. */
121
+ delete: (id: string, options?: RequestOptions) => Promise<unknown>;
122
+ /** Schedule a post for future publishing. */
123
+ schedule: (id: string, scheduledAt: string, options?: RequestOptions) => Promise<unknown>;
124
+ /** Publish a post immediately. */
125
+ publishNow: (id: string, options?: RequestOptions) => Promise<unknown>;
126
+ /** Cancel a scheduled or draft post. */
127
+ cancel: (id: string, options?: RequestOptions) => Promise<unknown>;
128
+ /** Retry a failed post. */
129
+ retry: (id: string, options?: RequestOptions) => Promise<unknown>;
130
+ /** Update SEO metadata on a post. */
131
+ updateSeo: (id: string, attributes: {
132
+ seo_score?: number;
133
+ seo_analysis?: Record<string, unknown>;
134
+ }, options?: RequestOptions) => Promise<unknown>;
135
+ /** List scheduled posts. */
136
+ listScheduled: (options?: RequestOptions) => Promise<unknown>;
137
+ /** List posts by account. */
138
+ listByAccount: (socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
139
+ /** List posts by campaign. */
140
+ listByCampaign: (socialCampaignId: string, options?: RequestOptions) => Promise<unknown>;
141
+ /** List all posts for a workspace. */
142
+ listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
143
+ };
144
+ /** Post engagement metrics — impressions, reach, likes, comments, and more. */
145
+ metrics: {
146
+ /** Get a single metric record by ID. */
147
+ get: (id: string, options?: RequestOptions) => Promise<unknown>;
148
+ /** List all metrics for a post. */
149
+ listByPost: (socialPostId: string, options?: RequestOptions) => Promise<unknown>;
150
+ /** Get the latest metric per collection window for a post. */
151
+ latestForPost: (socialPostId: string, options?: RequestOptions) => Promise<unknown>;
152
+ /** Aggregate metrics across all posts for a social account. */
153
+ byAccount: (socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
154
+ /** Aggregate metrics across all posts in a social campaign. */
155
+ byCampaign: (socialCampaignId: string, options?: RequestOptions) => Promise<unknown>;
156
+ };
157
+ /** AI-powered social campaigns — generate master copy and adapt for platforms. */
158
+ campaigns: {
159
+ /** List all social campaigns. */
160
+ list: (options?: RequestOptions) => Promise<unknown>;
161
+ /** Get a single campaign by ID. */
162
+ get: (id: string, options?: RequestOptions) => Promise<unknown>;
163
+ /**
164
+ * Create a new social campaign.
165
+ *
166
+ * @param workspaceId - Workspace ID (passed as query parameter for tenant resolution).
167
+ * @param attributes - Campaign attributes (name, content_brief, etc.).
168
+ * @param options - Optional request-level overrides.
169
+ */
170
+ create: (workspaceId: string, attributes: SocialCampaignCreateAttributes, options?: RequestOptions) => Promise<unknown>;
171
+ /** Update a campaign. */
172
+ update: (id: string, attributes: SocialCampaignUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
173
+ /** Delete a campaign. */
174
+ delete: (id: string, options?: RequestOptions) => Promise<unknown>;
175
+ /** Schedule a campaign for a future date. */
176
+ schedule: (id: string, scheduledAt: string, options?: RequestOptions) => Promise<unknown>;
177
+ /** Cancel a campaign. */
178
+ cancel: (id: string, options?: RequestOptions) => Promise<unknown>;
179
+ /** Generate AI master copy from the campaign's content brief. */
180
+ generateMasterCopy: (id: string, workspaceId: string, options?: RequestOptions) => Promise<unknown>;
181
+ /** Adapt master copy for target platforms and create SocialPost drafts. */
182
+ adaptForPlatforms: (id: string, workspaceId: string, socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
183
+ /**
184
+ * Preview adapted copy per platform without creating SocialPost records.
185
+ *
186
+ * Returns the AI-adapted text for each target platform so the user can
187
+ * review before committing via `adaptForPlatforms`.
188
+ *
189
+ * @param id - Campaign UUID.
190
+ * @param workspaceId - Workspace UUID.
191
+ * @param options - Optional request options.
192
+ * @returns `{ adaptations: [{ platform: string, content: string }] }`
193
+ */
194
+ previewAdaptations: (id: string, workspaceId: string, options?: RequestOptions) => Promise<unknown>;
195
+ };
196
+ /** Trending content discovery — snapshots, items, and watch alerts. */
197
+ trending: {
198
+ /**
199
+ * Get a trending snapshot by ID.
200
+ * @param id - Snapshot UUID
201
+ * @returns TrendingSnapshot with metadata (query, enrichment level, item count)
202
+ * @example
203
+ * ```typescript
204
+ * const snapshot = await client.social.trending.get('snap_abc');
205
+ * ```
206
+ */
207
+ get: (id: string, options?: RequestOptions) => Promise<unknown>;
208
+ /**
209
+ * List trending snapshots for a workspace.
210
+ * @param workspaceId - Workspace UUID
211
+ * @returns Array of TrendingSnapshot records
212
+ * @example
213
+ * ```typescript
214
+ * const snapshots = await client.social.trending.listByWorkspace('ws_abc');
215
+ * ```
216
+ */
217
+ listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
218
+ /**
219
+ * Create a trending snapshot (trigger on-demand collection).
220
+ * @param attributes - Snapshot attributes (workspace_id, enrichment_level, etc.)
221
+ * @returns Created TrendingSnapshot
222
+ * @example
223
+ * ```typescript
224
+ * const snapshot = await client.social.trending.create({
225
+ * workspace_id: 'ws_abc',
226
+ * enrichment_level: 'scored',
227
+ * fetched_at: new Date().toISOString(),
228
+ * });
229
+ * ```
230
+ */
231
+ create: (attributes: {
232
+ workspace_id: string;
233
+ enrichment_level?: "raw" | "scored" | "summarized" | "full";
234
+ query?: string;
235
+ source_breakdown?: Record<string, unknown>;
236
+ item_count?: number;
237
+ fetched_at?: string;
238
+ }, options?: RequestOptions) => Promise<unknown>;
239
+ /** Delete a trending snapshot by ID. */
240
+ delete: (id: string, options?: RequestOptions) => Promise<unknown>;
241
+ /**
242
+ * List trending snapshots within a date range.
243
+ * @param from - Start date (ISO 8601 string)
244
+ * @param to - End date (ISO 8601 string)
245
+ * @returns Array of TrendingSnapshot records in the range
246
+ * @example
247
+ * ```typescript
248
+ * const snapshots = await client.social.trending.listByDateRange(
249
+ * '2026-03-01T00:00:00Z',
250
+ * '2026-03-21T23:59:59Z',
251
+ * );
252
+ * ```
253
+ */
254
+ listByDateRange: (from: string, to: string, options?: RequestOptions) => Promise<unknown>;
255
+ /** Trending snapshot items — individual content pieces within a snapshot. */
256
+ items: {
257
+ /** Get a single trending item by ID. */
258
+ get: (id: string, options?: RequestOptions) => Promise<unknown>;
259
+ /**
260
+ * List trending items for a snapshot.
261
+ * @param snapshotId - Parent snapshot UUID
262
+ * @returns Array of TrendingSnapshotItem records
263
+ * @example
264
+ * ```typescript
265
+ * const items = await client.social.trending.items.listBySnapshot('snap_abc');
266
+ * ```
267
+ */
268
+ listBySnapshot: (snapshotId: string, options?: RequestOptions) => Promise<unknown>;
269
+ };
270
+ };
271
+ /** Trending watch alerts — monitor topics and get notified on matches. */
272
+ watches: {
273
+ /**
274
+ * Get a trending watch by ID.
275
+ * @param id - Watch UUID
276
+ * @returns TrendingWatch with conditions and notification config
277
+ */
278
+ get: (id: string, options?: RequestOptions) => Promise<unknown>;
279
+ /**
280
+ * List trending watches for a workspace.
281
+ * @param workspaceId - Workspace UUID
282
+ * @returns Array of TrendingWatch records
283
+ * @example
284
+ * ```typescript
285
+ * const watches = await client.social.watches.listByWorkspace('ws_abc');
286
+ * ```
287
+ */
288
+ listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
289
+ /**
290
+ * Create a new trending watch alert.
291
+ * @param attributes - Watch attributes (name, query, conditions, notification_config)
292
+ * @returns Created TrendingWatch
293
+ * @example
294
+ * ```typescript
295
+ * const watch = await client.social.watches.create({
296
+ * workspace_id: 'ws_abc',
297
+ * name: 'AI Industry News',
298
+ * query: 'artificial intelligence',
299
+ * conditions: { min_score: 0.7 },
300
+ * notification_config: { channel: 'webhook', url: 'https://...' },
301
+ * });
302
+ * ```
303
+ */
304
+ create: (attributes: {
305
+ workspace_id: string;
306
+ name: string;
307
+ query: string;
308
+ sources?: string[];
309
+ conditions?: Record<string, unknown>;
310
+ notification_config?: Record<string, unknown>;
311
+ enabled?: boolean;
312
+ }, options?: RequestOptions) => Promise<unknown>;
313
+ /**
314
+ * Update a trending watch.
315
+ * @param id - Watch UUID
316
+ * @param attributes - Fields to update (name, query, conditions, enabled, etc.)
317
+ */
318
+ update: (id: string, attributes: {
319
+ name?: string;
320
+ query?: string;
321
+ sources?: string[];
322
+ conditions?: Record<string, unknown>;
323
+ notification_config?: Record<string, unknown>;
324
+ enabled?: boolean;
325
+ }, options?: RequestOptions) => Promise<unknown>;
326
+ /** Delete a trending watch by ID. */
327
+ delete: (id: string, options?: RequestOptions) => Promise<unknown>;
328
+ };
329
+ };
330
+ //# sourceMappingURL=social.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.d.ts","sourceRoot":"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