@gpt-platform/client 0.10.5 → 0.11.1

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 +318 -9
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +318 -9
  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":"connectors.d.ts","sourceRoot":"","sources":["../../src/namespaces/connectors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE5E,kEAAkE;AAClE,MAAM,MAAM,iCAAiC,GAAG;IAC9C,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,gFAAgF;AAChF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AA8BF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,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;;;;;;;WAoBG;+BAEY,MAAM,eACN,MAAM,mBACF,cAAc,KAC9B,OAAO,CAAC,qBAAqB,CAAC;QAejC;;;;;;;;;;;;;;;;;;;;;WAqBG;iCAEY,MAAM,eACN,MAAM,mBACF,cAAc,KAC9B,OAAO,CAAC,kBAAkB,CAAC;;EAcnC"}
@@ -0,0 +1,188 @@
1
+ import type { RequestOptions } from "../base-client";
2
+ import { RequestBuilder } from "../request-builder";
3
+ export declare function createContentNamespace(rb: RequestBuilder): {
4
+ /**
5
+ * Generate text from a prompt, optionally informed by brand identity.
6
+ * @param attributes - { prompt, workspace_id, brand_identity_id?, task? }
7
+ * @returns { text: string }
8
+ * @example
9
+ * ```typescript
10
+ * const result = await client.content.generateText({
11
+ * prompt: "Write about AI analytics",
12
+ * workspace_id: "ws_abc",
13
+ * });
14
+ * ```
15
+ */
16
+ generateText: (attributes: {
17
+ prompt: string;
18
+ workspace_id: string;
19
+ brand_identity_id?: string;
20
+ task?: string;
21
+ }, options?: RequestOptions) => Promise<unknown>;
22
+ /**
23
+ * Generate an image from a text prompt via Gemini.
24
+ * @param attributes - { prompt, workspace_id, style? }
25
+ * @returns { url: string, provider: string }
26
+ * @example
27
+ * ```typescript
28
+ * const result = await client.content.generateImage({
29
+ * prompt: "A futuristic city skyline",
30
+ * workspace_id: "ws_abc",
31
+ * });
32
+ * ```
33
+ */
34
+ generateImage: (attributes: {
35
+ prompt: string;
36
+ workspace_id: string;
37
+ style?: string;
38
+ }, options?: RequestOptions) => Promise<unknown>;
39
+ /**
40
+ * Edit an existing image using natural language instructions.
41
+ * @param attributes - { image_url, instructions, workspace_id }
42
+ * @returns { url: string, provider: string }
43
+ * @example
44
+ * ```typescript
45
+ * const result = await client.content.editImage({
46
+ * image_url: "https://example.com/photo.png",
47
+ * instructions: "Remove the background",
48
+ * workspace_id: "ws_abc",
49
+ * });
50
+ * ```
51
+ */
52
+ editImage: (attributes: {
53
+ image_url: string;
54
+ instructions: string;
55
+ workspace_id: string;
56
+ }, options?: RequestOptions) => Promise<unknown>;
57
+ /**
58
+ * Rewrite text in a different tone.
59
+ * @param attributes - { text, target_tone, workspace_id, max_length? }
60
+ * @returns { rewritten_text: string }
61
+ * @example
62
+ * ```typescript
63
+ * const result = await client.content.rewriteTone({
64
+ * text: "We are pleased to announce our new product.",
65
+ * target_tone: "casual",
66
+ * workspace_id: "ws_abc",
67
+ * });
68
+ * ```
69
+ */
70
+ rewriteTone: (attributes: {
71
+ text: string;
72
+ target_tone: string;
73
+ workspace_id: string;
74
+ max_length?: number;
75
+ }, options?: RequestOptions) => Promise<unknown>;
76
+ /**
77
+ * Shorten text to a target character count.
78
+ * @param attributes - { text, max_chars, workspace_id, platform? }
79
+ * @returns { shortened_text: string }
80
+ * @example
81
+ * ```typescript
82
+ * const result = await client.content.shorten({
83
+ * text: "This is a long piece of content that needs shortening.",
84
+ * max_chars: 280,
85
+ * workspace_id: "ws_abc",
86
+ * });
87
+ * ```
88
+ */
89
+ shorten: (attributes: {
90
+ text: string;
91
+ max_chars: number;
92
+ workspace_id: string;
93
+ platform?: string;
94
+ }, options?: RequestOptions) => Promise<unknown>;
95
+ /**
96
+ * Refine text based on freeform instructions.
97
+ * @param attributes - { text, instructions, workspace_id }
98
+ * @returns { refined_text: string }
99
+ * @example
100
+ * ```typescript
101
+ * const result = await client.content.refine({
102
+ * text: "Draft blog post content here.",
103
+ * instructions: "Make it more engaging and add a call to action",
104
+ * workspace_id: "ws_abc",
105
+ * });
106
+ * ```
107
+ */
108
+ refine: (attributes: {
109
+ text: string;
110
+ instructions: string;
111
+ workspace_id: string;
112
+ }, options?: RequestOptions) => Promise<unknown>;
113
+ /**
114
+ * Suggest content topics based on industry and audience.
115
+ * @param attributes - { workspace_id, industry?, brand_identity_id?, count? }
116
+ * @returns { suggestions: string }
117
+ * @example
118
+ * ```typescript
119
+ * const result = await client.content.suggestTopics({
120
+ * workspace_id: "ws_abc",
121
+ * industry: "fintech",
122
+ * count: 5,
123
+ * });
124
+ * ```
125
+ */
126
+ suggestTopics: (attributes: {
127
+ workspace_id: string;
128
+ industry?: string;
129
+ brand_identity_id?: string;
130
+ count?: number;
131
+ }, options?: RequestOptions) => Promise<unknown>;
132
+ /**
133
+ * Generate an image generation prompt from marketing copy.
134
+ * @param attributes - { marketing_copy, workspace_id, style? }
135
+ * @returns { image_prompt: string }
136
+ * @example
137
+ * ```typescript
138
+ * const result = await client.content.generateImagePrompt({
139
+ * marketing_copy: "Launch your brand into the future",
140
+ * workspace_id: "ws_abc",
141
+ * });
142
+ * ```
143
+ */
144
+ generateImagePrompt: (attributes: {
145
+ marketing_copy: string;
146
+ workspace_id: string;
147
+ style?: string;
148
+ }, options?: RequestOptions) => Promise<unknown>;
149
+ /**
150
+ * Generate scored hashtags for content.
151
+ * @param attributes - { text, platform, workspace_id, industry?, count? }
152
+ * @returns { hashtags: Array<{ tag: string, score: number }> }
153
+ * @example
154
+ * ```typescript
155
+ * const result = await client.content.generateHashtags({
156
+ * text: "Check out our new AI-powered analytics tool",
157
+ * platform: "instagram",
158
+ * workspace_id: "ws_abc",
159
+ * });
160
+ * ```
161
+ */
162
+ generateHashtags: (attributes: {
163
+ text: string;
164
+ platform: string;
165
+ workspace_id: string;
166
+ industry?: string;
167
+ count?: number;
168
+ }, options?: RequestOptions) => Promise<unknown>;
169
+ /**
170
+ * Analyze content for SEO optimization against target keywords.
171
+ * @param attributes - { text, target_keywords, workspace_id }
172
+ * @returns { analysis: { keyword_coverage, suggestions, seo_score } }
173
+ * @example
174
+ * ```typescript
175
+ * const result = await client.content.seoEnrich({
176
+ * text: "Our product helps businesses grow",
177
+ * target_keywords: ["growth", "business", "scale"],
178
+ * workspace_id: "ws_abc",
179
+ * });
180
+ * ```
181
+ */
182
+ seoEnrich: (attributes: {
183
+ text: string;
184
+ target_keywords: string[];
185
+ workspace_id: string;
186
+ }, options?: RequestOptions) => Promise<unknown>;
187
+ };
188
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,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ACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,YACS,cAAc;IAa1B;;;;;;;;;;;OAWG;sCAEW;QACV,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,YACS,cAAc;IAa1B;;;;;;;;;;;;OAYG;mCAEW;QACV,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,YACS,cAAc;IAa1B;;;;;;;;;;;;OAYG;4BAEW;QACV,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,YAAY,EAAE,MAAM,CAAC;KACtB,YACS,cAAc;EAa7B"}
@@ -0,0 +1,408 @@
1
+ import type { CrawlerJob, CrawlerResult, CrawlerSchedule } from "../_internal/types.gen";
2
+ /** Attributes accepted when creating a new crawl job. */
3
+ export type CreateCrawlerJobAttributes = {
4
+ workspace_id: string;
5
+ url: string;
6
+ max_depth?: number;
7
+ allowed_domains?: string[];
8
+ rate_limit_ms?: number;
9
+ [key: string]: unknown;
10
+ };
11
+ /** Attributes accepted when creating a new crawl schedule. */
12
+ export type CreateCrawlerScheduleAttributes = {
13
+ workspace_id: string;
14
+ name: string;
15
+ url: string;
16
+ cron: string;
17
+ max_depth?: number;
18
+ active?: boolean;
19
+ allowed_domains?: string[];
20
+ [key: string]: unknown;
21
+ };
22
+ /** Attributes accepted when updating a crawl schedule (PATCH semantics). */
23
+ export type UpdateCrawlerScheduleAttributes = {
24
+ name?: string;
25
+ url?: string;
26
+ cron?: string;
27
+ max_depth?: number;
28
+ active?: boolean;
29
+ allowed_domains?: string[];
30
+ [key: string]: unknown;
31
+ };
32
+ import type { RequestOptions } from "../base-client";
33
+ import { RequestBuilder } from "../request-builder";
34
+ /**
35
+ * Crawler namespace for web crawling and content extraction.
36
+ *
37
+ * Provides sub-namespaces for managing the full crawl lifecycle: one-off
38
+ * crawl jobs (kicked off on demand), recurring crawl schedules (cron-based
39
+ * automation), and crawl results (the extracted page content produced by
40
+ * completed jobs).
41
+ *
42
+ * The crawler respects `robots.txt`, enforces configurable rate limits, and
43
+ * converts fetched HTML into clean Markdown suitable for downstream LLM or
44
+ * search indexing pipelines.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
49
+ *
50
+ * // Start a crawl and wait for the first result
51
+ * const job = await client.crawler.jobs.create({
52
+ * url: 'https://docs.example.com',
53
+ * max_depth: 3,
54
+ * workspace_id: 'ws_abc123',
55
+ * });
56
+ *
57
+ * console.log('Crawl started:', job.id, job.attributes.status);
58
+ * ```
59
+ */
60
+ export declare function createCrawlerNamespace(rb: RequestBuilder): {
61
+ /**
62
+ * Jobs — on-demand crawl job management.
63
+ *
64
+ * A crawl job is a single, bounded crawl run starting from a seed URL.
65
+ * The crawler follows links up to a configurable depth, extracting page
66
+ * content as it goes. Jobs run asynchronously; poll the job record or
67
+ * listen for webhook events to detect completion. In-progress jobs can
68
+ * be cancelled at any time.
69
+ */
70
+ jobs: {
71
+ /**
72
+ * List crawl jobs with optional pagination.
73
+ *
74
+ * Returns jobs across all workspaces visible to the authenticated key,
75
+ * ordered by creation time descending.
76
+ *
77
+ * @param options - Optional pagination controls (`page`, `pageSize`) and
78
+ * request-level overrides.
79
+ * @returns A promise that resolves to an array of {@link CrawlerJob} records.
80
+ *
81
+ * @example
82
+ * ```typescript
83
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
84
+ *
85
+ * const jobs = await client.crawler.jobs.list({ pageSize: 10 });
86
+ * for (const job of jobs) {
87
+ * console.log(job.id, job.attributes.status, job.attributes.url);
88
+ * }
89
+ * ```
90
+ */
91
+ list: (options?: {
92
+ page?: number;
93
+ pageSize?: number;
94
+ } & RequestOptions) => Promise<CrawlerJob[]>;
95
+ /**
96
+ * Fetch a single crawl job by its unique ID.
97
+ *
98
+ * Use this to poll the current status of an in-progress job. The
99
+ * `status` field transitions through `pending` → `running` →
100
+ * `complete` | `failed` | `cancelled`.
101
+ *
102
+ * @param id - The unique identifier of the crawl job to retrieve.
103
+ * @param options - Optional request-level overrides.
104
+ * @returns A promise that resolves to the matching {@link CrawlerJob}.
105
+ *
106
+ * @example
107
+ * ```typescript
108
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
109
+ *
110
+ * const job = await client.crawler.jobs.get('cjob_abc123');
111
+ * console.log(job.attributes.status, job.attributes.pages_crawled);
112
+ * ```
113
+ */
114
+ get: (id: string, options?: RequestOptions) => Promise<CrawlerJob>;
115
+ /**
116
+ * Start a new crawl job.
117
+ *
118
+ * The job begins crawling the seed URL immediately (subject to queue
119
+ * capacity). Provide `max_depth` to control how many link-hops the
120
+ * crawler follows, and `allowed_domains` to restrict crawling to
121
+ * specific domains.
122
+ *
123
+ * @param attributes - Key/value map of job configuration. Must include
124
+ * `workspace_id` and `url` (the seed URL). Common optional fields:
125
+ * `max_depth` (default 1), `allowed_domains`, `excluded_paths`,
126
+ * `respect_robots_txt` (default `true`), `rate_limit_ms`.
127
+ * @param options - Optional request-level overrides.
128
+ * @returns A promise that resolves to the newly created {@link CrawlerJob}
129
+ * in `pending` status.
130
+ *
131
+ * @example
132
+ * ```typescript
133
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
134
+ *
135
+ * const job = await client.crawler.jobs.create({
136
+ * workspace_id: 'ws_abc123',
137
+ * url: 'https://docs.example.com/guide',
138
+ * max_depth: 2,
139
+ * allowed_domains: ['docs.example.com'],
140
+ * rate_limit_ms: 500,
141
+ * });
142
+ * console.log('Job started:', job.id);
143
+ * ```
144
+ */
145
+ create: (attributes: CreateCrawlerJobAttributes, options?: RequestOptions) => Promise<CrawlerJob>;
146
+ /**
147
+ * Cancel an in-progress crawl job.
148
+ *
149
+ * Sends a cancellation signal to the running job. The job transitions
150
+ * to `cancelled` status and stops fetching new pages. Any pages already
151
+ * crawled and their results remain available in the {@link results}
152
+ * namespace.
153
+ *
154
+ * @param id - The unique identifier of the crawl job to cancel.
155
+ * @param options - Optional request-level overrides.
156
+ * @returns A promise that resolves to the updated {@link CrawlerJob} with
157
+ * `status: 'cancelled'`.
158
+ *
159
+ * @example
160
+ * ```typescript
161
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
162
+ *
163
+ * const job = await client.crawler.jobs.cancel('cjob_abc123');
164
+ * console.log(job.attributes.status); // 'cancelled'
165
+ * ```
166
+ */
167
+ cancel: (id: string, options?: RequestOptions) => Promise<CrawlerJob>;
168
+ /**
169
+ * Permanently delete a crawl job and all its associated results.
170
+ *
171
+ * Only completed, failed, or cancelled jobs can be deleted. Attempting
172
+ * to delete a running job will return an error — cancel it first.
173
+ *
174
+ * @param id - The unique identifier of the crawl job to delete.
175
+ * @param options - Optional request-level overrides.
176
+ * @returns A promise that resolves to `true` on successful deletion.
177
+ *
178
+ * @example
179
+ * ```typescript
180
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
181
+ *
182
+ * await client.crawler.jobs.delete('cjob_abc123');
183
+ * ```
184
+ */
185
+ delete: (id: string, options?: RequestOptions) => Promise<true>;
186
+ };
187
+ /**
188
+ * Schedules — recurring crawl configurations driven by cron expressions.
189
+ *
190
+ * A schedule defines a crawl that runs automatically on a cron-based
191
+ * recurrence (e.g. every night at midnight, every Monday at 9 AM). Each
192
+ * time the schedule fires, a new {@link CrawlerJob} is created with the
193
+ * schedule's configuration. Schedules can be paused by setting them
194
+ * inactive, or deleted entirely.
195
+ */
196
+ schedules: {
197
+ /**
198
+ * List all crawl schedules visible to the authenticated key.
199
+ *
200
+ * @param options - Optional request-level overrides.
201
+ * @returns A promise that resolves to an array of {@link CrawlerSchedule} records.
202
+ *
203
+ * @example
204
+ * ```typescript
205
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
206
+ *
207
+ * const schedules = await client.crawler.schedules.list();
208
+ * for (const s of schedules) {
209
+ * console.log(s.attributes.name, s.attributes.cron, s.attributes.active);
210
+ * }
211
+ * ```
212
+ */
213
+ list: (options?: RequestOptions) => Promise<CrawlerSchedule[]>;
214
+ /**
215
+ * Fetch a single crawl schedule by its unique ID.
216
+ *
217
+ * @param id - The unique identifier of the schedule to retrieve.
218
+ * @param options - Optional request-level overrides.
219
+ * @returns A promise that resolves to the matching {@link CrawlerSchedule}.
220
+ *
221
+ * @example
222
+ * ```typescript
223
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
224
+ *
225
+ * const schedule = await client.crawler.schedules.get('csched_abc123');
226
+ * console.log(schedule.attributes.cron, schedule.attributes.next_run_at);
227
+ * ```
228
+ */
229
+ get: (id: string, options?: RequestOptions) => Promise<CrawlerSchedule>;
230
+ /**
231
+ * Create a new recurring crawl schedule.
232
+ *
233
+ * The `cron` attribute accepts standard 5-field cron syntax
234
+ * (`minute hour day-of-month month day-of-week`). The schedule is
235
+ * active by default; set `active: false` to create it in a paused state.
236
+ *
237
+ * @param attributes - Key/value map of schedule attributes. Must include
238
+ * `workspace_id`, `name`, `url` (seed URL), and `cron` (cron expression).
239
+ * Common optional fields: `max_depth`, `active`, `allowed_domains`.
240
+ * @param options - Optional request-level overrides.
241
+ * @returns A promise that resolves to the newly created {@link CrawlerSchedule}.
242
+ *
243
+ * @example
244
+ * ```typescript
245
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
246
+ *
247
+ * // Crawl the docs site every day at 02:00 UTC
248
+ * const schedule = await client.crawler.schedules.create({
249
+ * workspace_id: 'ws_abc123',
250
+ * name: 'Nightly docs crawl',
251
+ * url: 'https://docs.example.com',
252
+ * cron: '0 2 * * *',
253
+ * max_depth: 3,
254
+ * active: true,
255
+ * });
256
+ * console.log(schedule.id, schedule.attributes.next_run_at);
257
+ * ```
258
+ */
259
+ create: (attributes: CreateCrawlerScheduleAttributes, options?: RequestOptions) => Promise<CrawlerSchedule>;
260
+ /**
261
+ * Update an existing crawl schedule's configuration.
262
+ *
263
+ * Only the fields present in `attributes` are changed (PATCH semantics).
264
+ * You can use this to change the cron expression, pause/resume the
265
+ * schedule by toggling `active`, or update the seed URL.
266
+ *
267
+ * @param id - The unique identifier of the schedule to update.
268
+ * @param attributes - Key/value map of attributes to change.
269
+ * @param options - Optional request-level overrides.
270
+ * @returns A promise that resolves to the updated {@link CrawlerSchedule}.
271
+ *
272
+ * @example
273
+ * ```typescript
274
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
275
+ *
276
+ * // Pause a schedule temporarily
277
+ * const schedule = await client.crawler.schedules.update('csched_abc123', {
278
+ * active: false,
279
+ * });
280
+ * console.log(schedule.attributes.active); // false
281
+ *
282
+ * // Change frequency to weekly (every Monday at 03:00 UTC)
283
+ * await client.crawler.schedules.update('csched_abc123', {
284
+ * cron: '0 3 * * 1',
285
+ * active: true,
286
+ * });
287
+ * ```
288
+ */
289
+ update: (id: string, attributes: UpdateCrawlerScheduleAttributes, options?: RequestOptions) => Promise<CrawlerSchedule>;
290
+ /**
291
+ * Permanently delete a crawl schedule.
292
+ *
293
+ * Deleting a schedule does not delete the crawl jobs or results that
294
+ * were previously created by it.
295
+ *
296
+ * @param id - The unique identifier of the schedule to delete.
297
+ * @param options - Optional request-level overrides.
298
+ * @returns A promise that resolves to `true` on successful deletion.
299
+ *
300
+ * @example
301
+ * ```typescript
302
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
303
+ *
304
+ * await client.crawler.schedules.delete('csched_abc123');
305
+ * ```
306
+ */
307
+ delete: (id: string, options?: RequestOptions) => Promise<true>;
308
+ /**
309
+ * Enable a paused crawl schedule so it resumes automatic execution.
310
+ *
311
+ * @param id - The unique identifier of the schedule to enable.
312
+ * @param options - Optional request-level overrides.
313
+ * @returns A promise that resolves to the updated {@link CrawlerSchedule}.
314
+ *
315
+ * @example
316
+ * ```typescript
317
+ * const schedule = await client.crawler.schedules.enable('csched_abc123');
318
+ * console.log(schedule.attributes.enabled); // true
319
+ * ```
320
+ */
321
+ enable: (id: string, options?: RequestOptions) => Promise<CrawlerSchedule>;
322
+ /**
323
+ * Disable a crawl schedule to pause automatic execution without deleting it.
324
+ *
325
+ * @param id - The unique identifier of the schedule to disable.
326
+ * @param options - Optional request-level overrides.
327
+ * @returns A promise that resolves to the updated {@link CrawlerSchedule}.
328
+ *
329
+ * @example
330
+ * ```typescript
331
+ * const schedule = await client.crawler.schedules.disable('csched_abc123');
332
+ * console.log(schedule.attributes.enabled); // false
333
+ * ```
334
+ */
335
+ disable: (id: string, options?: RequestOptions) => Promise<CrawlerSchedule>;
336
+ /**
337
+ * Trigger a scheduled crawl immediately, creating a new crawl job.
338
+ *
339
+ * The schedule's `last_run_at` is updated. The returned object is the
340
+ * updated schedule, not the created job — poll {@link jobs.list} to find
341
+ * the triggered job.
342
+ *
343
+ * @param id - The unique identifier of the schedule to trigger.
344
+ * @param options - Optional request-level overrides.
345
+ * @returns A promise that resolves to the updated {@link CrawlerSchedule}.
346
+ *
347
+ * @example
348
+ * ```typescript
349
+ * const schedule = await client.crawler.schedules.trigger('csched_abc123');
350
+ * console.log('Triggered at:', schedule.attributes.last_run_at);
351
+ * ```
352
+ */
353
+ trigger: (id: string, options?: RequestOptions) => Promise<CrawlerSchedule>;
354
+ };
355
+ /**
356
+ * Results — crawled page content produced by completed crawl jobs.
357
+ *
358
+ * Each result record contains the extracted content of a single crawled
359
+ * page (URL, title, clean Markdown body, metadata). Results are created
360
+ * automatically as a job processes pages and remain accessible after the
361
+ * job completes.
362
+ */
363
+ results: {
364
+ /**
365
+ * List crawl results with optional pagination.
366
+ *
367
+ * Returns results across all jobs visible to the authenticated key,
368
+ * ordered by creation time descending.
369
+ *
370
+ * @param options - Optional pagination controls (`page`, `pageSize`) and
371
+ * request-level overrides.
372
+ * @returns A promise that resolves to an array of {@link CrawlerResult} records.
373
+ *
374
+ * @example
375
+ * ```typescript
376
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
377
+ *
378
+ * const results = await client.crawler.results.list({ pageSize: 50 });
379
+ * for (const r of results) {
380
+ * console.log(r.attributes.url, r.attributes.title);
381
+ * }
382
+ * ```
383
+ */
384
+ list: (options?: {
385
+ page?: number;
386
+ pageSize?: number;
387
+ } & RequestOptions) => Promise<CrawlerResult[]>;
388
+ /**
389
+ * Fetch a single crawl result by its unique ID.
390
+ *
391
+ * @param id - The unique identifier of the crawl result to retrieve.
392
+ * @param options - Optional request-level overrides.
393
+ * @returns A promise that resolves to the matching {@link CrawlerResult},
394
+ * including the full extracted page content.
395
+ *
396
+ * @example
397
+ * ```typescript
398
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
399
+ *
400
+ * const result = await client.crawler.results.get('cres_abc123');
401
+ * console.log(result.attributes.url);
402
+ * console.log(result.attributes.content_markdown); // clean Markdown body
403
+ * ```
404
+ */
405
+ get: (id: string, options?: RequestOptions) => Promise<CrawlerResult>;
406
+ };
407
+ };
408
+ //# sourceMappingURL=crawler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crawler.d.ts","sourceRoot":"","sources":["../../src/namespaces/crawler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAEhC,yDAAyD;AACzD,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,8DAA8D;AAC9D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC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,CAAC;QAQtB;;;;;;;;;;;;;;;;WAgBG;qBACgB,MAAM,YAAY,cAAc,KAAG,OAAO,CAAC,IAAI,CAAC;;IASrE;;;;;;;;OAQG;;QAED;;;;;;;;;;;;;;;WAeG;yBACoB,cAAc,KAAG,OAAO,CAAC,eAAe,EAAE,CAAC;QAIlE;;;;;;;;;;;;;;WAcG;kBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;QAQ3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4BG;6BAEW,+BAA+B,YACjC,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;QAU3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4BG;qBAEG,MAAM,cACE,+BAA+B,YACjC,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;QAW3B;;;;;;;;;;;;;;;;WAgBG;qBACgB,MAAM,YAAY,cAAc,KAAG,OAAO,CAAC,IAAI,CAAC;QAQnE;;;;;;;;;;;;WAYG;qBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;QAQ3B;;;;;;;;;;;;WAYG;sBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;QAQ3B;;;;;;;;;;;;;;;;WAgBG;sBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;;IAS7B;;;;;;;OAOG;;QAED;;;;;;;;;;;;;;;;;;;WAmBG;yBAES;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,GAAG,cAAc,KAC9D,OAAO,CAAC,aAAa,EAAE,CAAC;QAQ3B;;;;;;;;;;;;;;;;WAgBG;kBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,aAAa,CAAC;;EAS9B"}
@@ -0,0 +1,31 @@
1
+ import { RequestBuilder } from "../request-builder";
2
+ export interface ClusterMember {
3
+ id: string;
4
+ type: "contact" | "company" | "unknown";
5
+ name: string;
6
+ }
7
+ export interface CrmCluster {
8
+ cluster_id: string;
9
+ label: string;
10
+ summary: string;
11
+ members: ClusterMember[];
12
+ modularity: number;
13
+ size: number;
14
+ }
15
+ export declare function createCrmClustersNamespace(rb: RequestBuilder): {
16
+ /**
17
+ * Discovers relationship clusters in the workspace CRM using community detection.
18
+ * Each cluster is automatically labeled by AI.
19
+ *
20
+ * @param workspaceId - The workspace ID to discover clusters for
21
+ * @returns Array of discovered clusters with AI-generated labels
22
+ * @example
23
+ * ```typescript
24
+ * const { data } = await client.crmClusters.discover('workspace-uuid');
25
+ * ```
26
+ */
27
+ discover(workspaceId: string): Promise<{
28
+ data: CrmCluster[];
29
+ }>;
30
+ };
31
+ //# sourceMappingURL=crm-clusters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm-clusters.d.ts","sourceRoot":"","sources":["../../src/namespaces/crm-clusters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,cAAc;IAEzD;;;;;;;;;;OAUG;0BACyB,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC;EAMvE"}