@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,119 @@
1
+ export { createThreadsNamespace } from "./threads";
2
+ export { createSearchNamespace } from "./search";
3
+ export { createIdentityNamespace } from "./identity";
4
+ export type { RefreshResponse } from "./identity";
5
+ export { createExtractionNamespace } from "./extraction";
6
+ export { createBillingNamespace } from "./billing";
7
+ export type { WalletPaymentMethod, UsageHistoryEntry, BillingAccount, } from "./billing";
8
+ export { createCatalogNamespace } from "./catalog";
9
+ export { createContentNamespace } from "./content";
10
+ export { createComplianceNamespace } from "./compliance";
11
+ export { createClinicalNamespace } from "./clinical";
12
+ export type { ClinicalClientGoal, ClinicalClientResourceAssignment, ClinicalClientMedication, ClinicalClientSupplement, ClinicalDelivery, ClinicalHealthMetric, ClinicalMealPlan, ClinicalNote, ClinicalNoteVersion, ClinicalPatient, ClinicalPracticeResource, ClinicalPracticeTool, ClinicalSession, ClinicalSupplementRecCache, CreateClinicalPatientAttributes, CreateClinicalSessionAttributes, CreateClinicalNoteAttributes, CreateHealthMetricAttributes, CreateMealPlanAttributes, CreateClientGoalAttributes, CreateClientMedicationAttributes, CreateClientSupplementAttributes, CreateDeliveryAttributes, CreatePracticeResourceAttributes, CreatePracticeToolAttributes, CreateClientResourceAssignmentAttributes, GenerateSupplementRecsResponse, PatientAdherenceResponse, RecipeSearchParams, TriggerPipelineResponse, UpdateClinicalPatientAttributes, UpdateClinicalSessionAttributes, UpdateClinicalNoteAttributes, UpdateHealthMetricAttributes, UpdateMealPlanAttributes, UpdateClientGoalAttributes, UpdateClientMedicationAttributes, UpdateClientSupplementAttributes, UpdateDeliveryAttributes, UpdatePracticeResourceAttributes, UpdatePracticeToolAttributes, UpdateClientResourceAssignmentAttributes, ReorderGoalItem, ReorderGoalsResponse, ClinicalSearchResult, } from "./clinical";
13
+ export { createCommunicationNamespace } from "./communication";
14
+ export { createConnectorsNamespace } from "./connectors";
15
+ export type { FullscriptTreatmentPlan, FullscriptProduct, FullscriptOrder, HealthiePatient, HealthieAppointment, HealthieSyncStatus, HealthieSyncResult, HealthieSyncAllResult, HealthieListOptions, } from "./connectors";
16
+ export { createCrawlerNamespace } from "./crawler";
17
+ export { createCrmNamespace } from "./crm";
18
+ export { createCampaignsNamespace } from "./campaigns";
19
+ export { createEmailNamespace } from "./email";
20
+ export { createSupportNamespace } from "./support";
21
+ export { createAgentsNamespace } from "./agents";
22
+ export type { UpdateAgentAttributes, CreateAgentAttributes, CreateAgentVersionAttributes, UpdateAgentVersionAttributes, CreateTestResultAttributes, CreateAgentTrainingExampleAttributes, UpdateAgentTrainingExampleAttributes, CreateFieldTemplateAttributes, } from "./agents";
23
+ export { createTrainingNamespace } from "./training";
24
+ export { createStorageNamespace, type DownloadUrlResponse, type RequestDownloadUrlParams, } from "./storage";
25
+ export { createDocumentsNamespace } from "./documents";
26
+ export type { GeneratePdfParams, GeneratePdfResponse, GeneratePdfStoredResponse, EmailReportParams, EmailReportResponse, } from "./documents";
27
+ export { createAiNamespace } from "./ai";
28
+ export { createPlatformNamespace } from "./platform";
29
+ export { createWatcherNamespace } from "./watcher";
30
+ export { createSchedulingNamespace } from "./scheduling";
31
+ export { createVoiceNamespace } from "./voice";
32
+ export type { VoiceTranscribeResult, VoiceSessionStart, VoiceStartOptions, VoiceFinalizeOptions, VoiceTranscribeOptions, TranscriptionJobCreateOptions, TranscriptionChunkResult, TranscriptionJobFinalizeOptions, TranscriptionJobFinalizeResult, } from "./voice";
33
+ export { createSocialNamespace } from "./social";
34
+ export { createPortalNamespace } from "./portal";
35
+ export type { PortalAuthResponse, PortalProfile, PortalForm, PortalFormSubmissionResult, PortalNotification, PortalChangeRequest, PortalThread, PortalMessageResponse, } from "./portal";
36
+ export { createProjectsNamespace } from "./projects";
37
+ export { createModelsNamespace } from "./models";
38
+ export type { ModelTier, ModelInfo, ListModelsOptions } from "./models";
39
+ export { createCrmClustersNamespace } from "./crm-clusters";
40
+ export type { ClusterMember, CrmCluster } from "./crm-clusters";
41
+ export type { ProjectsNamespace, Project, Milestone, Task, ProjectMember, ProjectRisk, ProjectActivity, ProjectUpdate, ProjectTemplate, TimeEntry, TaskLabel, DecomposedPlan, AssigneeSuggestion, CompletionEstimate, CreateProjectInput, UpdateProjectInput, CreateMilestoneInput, CreateTaskInput, CreateTimeEntryInput, AddMemberInput, UpdateMemberInput, CreateLabelInput, } from "./projects";
42
+ import type { createThreadsNamespace as _ThreadsFn } from "./threads";
43
+ import type { createSearchNamespace as _SearchFn } from "./search";
44
+ import type { createIdentityNamespace as _IdentityFn } from "./identity";
45
+ import type { createExtractionNamespace as _ExtractionFn } from "./extraction";
46
+ import type { createBillingNamespace as _BillingFn } from "./billing";
47
+ import type { createCatalogNamespace as _CatalogFn } from "./catalog";
48
+ import type { createClinicalNamespace as _ClinicalFn } from "./clinical";
49
+ import type { createContentNamespace as _ContentFn } from "./content";
50
+ import type { createComplianceNamespace as _ComplianceFn } from "./compliance";
51
+ import type { createCommunicationNamespace as _CommunicationFn } from "./communication";
52
+ import type { createConnectorsNamespace as _ConnectorsFn } from "./connectors";
53
+ import type { createCrawlerNamespace as _CrawlerFn } from "./crawler";
54
+ import type { createCrmNamespace as _CrmFn } from "./crm";
55
+ import type { createCampaignsNamespace as _CampaignsFn } from "./campaigns";
56
+ import type { createEmailNamespace as _EmailFn } from "./email";
57
+ import type { createSupportNamespace as _SupportFn } from "./support";
58
+ import type { createAgentsNamespace as _AgentsFn } from "./agents";
59
+ import type { createTrainingNamespace as _TrainingFn } from "./training";
60
+ import type { createStorageNamespace as _StorageFn } from "./storage";
61
+ import type { createAiNamespace as _AiFn } from "./ai";
62
+ import type { createPlatformNamespace as _PlatformFn } from "./platform";
63
+ import type { createWatcherNamespace as _WatcherFn } from "./watcher";
64
+ import type { createSchedulingNamespace as _SchedulingFn } from "./scheduling";
65
+ import type { createVoiceNamespace as _VoiceFn } from "./voice";
66
+ import type { createSocialNamespace as _SocialFn } from "./social";
67
+ import type { createPortalNamespace as _PortalFn } from "./portal";
68
+ import type { createProjectsNamespace as _ProjectsFn } from "./projects";
69
+ import type { createModelsNamespace as _ModelsFn } from "./models";
70
+ import type { createCrmClustersNamespace as _CrmClustersFn } from "./crm-clusters";
71
+ import type { createMemoryNamespace as _MemoryFn } from "./memory";
72
+ export type ThreadsAPI = ReturnType<typeof _ThreadsFn>;
73
+ export type SearchAPI = ReturnType<typeof _SearchFn>;
74
+ export type IdentityAPI = ReturnType<typeof _IdentityFn>;
75
+ export type ExtractionAPI = ReturnType<typeof _ExtractionFn>;
76
+ export type BillingAPI = ReturnType<typeof _BillingFn>;
77
+ export type CatalogAPI = ReturnType<typeof _CatalogFn>;
78
+ export type ClinicalAPI = ReturnType<typeof _ClinicalFn>;
79
+ export type ContentAPI = ReturnType<typeof _ContentFn>;
80
+ export type ComplianceAPI = ReturnType<typeof _ComplianceFn>;
81
+ export type CommunicationAPI = ReturnType<typeof _CommunicationFn>;
82
+ export type ConnectorsAPI = ReturnType<typeof _ConnectorsFn>;
83
+ export type CrawlerAPI = ReturnType<typeof _CrawlerFn>;
84
+ export type CrmAPI = ReturnType<typeof _CrmFn>;
85
+ export type CampaignsAPI = ReturnType<typeof _CampaignsFn>;
86
+ export type EmailAPI = ReturnType<typeof _EmailFn>;
87
+ export type SupportAPI = ReturnType<typeof _SupportFn>;
88
+ export type AgentsAPI = ReturnType<typeof _AgentsFn>;
89
+ export type TrainingAPI = ReturnType<typeof _TrainingFn>;
90
+ export type StorageAPI = ReturnType<typeof _StorageFn>;
91
+ import type { createDocumentsNamespace as _DocumentsFn } from "./documents";
92
+ export type DocumentsAPI = ReturnType<typeof _DocumentsFn>;
93
+ export type AiAPI = ReturnType<typeof _AiFn>;
94
+ export type PlatformAPI = ReturnType<typeof _PlatformFn>;
95
+ export type WatcherAPI = ReturnType<typeof _WatcherFn>;
96
+ export type SchedulingAPI = ReturnType<typeof _SchedulingFn>;
97
+ export type VoiceAPI = ReturnType<typeof _VoiceFn>;
98
+ export type SocialAPI = ReturnType<typeof _SocialFn>;
99
+ export type PortalAPI = ReturnType<typeof _PortalFn>;
100
+ export type ProjectsAPI = ReturnType<typeof _ProjectsFn>;
101
+ export type ModelsAPI = ReturnType<typeof _ModelsFn>;
102
+ export type CrmClustersAPI = ReturnType<typeof _CrmClustersFn>;
103
+ export type MemoryAPI = ReturnType<typeof _MemoryFn>;
104
+ export { createMemoryNamespace } from "./memory";
105
+ export { createAccessGrantsNamespace } from "./access-grants";
106
+ export type { AccessGrant, AccessGrantListResult, AccessGrantResult, } from "./access-grants";
107
+ export { createRolesNamespace } from "./roles";
108
+ export type { Role, RoleListResult, RoleResult } from "./roles";
109
+ export { createPermissionsNamespace } from "./permissions";
110
+ export type { Permission, PermissionMeta, PermissionPreset, PermissionListResult, PermissionResult, PermissionMetaResult, PermissionPresetListResult, PermissionPresetResult, } from "./permissions";
111
+ export { createChannelsNamespace } from "./channels";
112
+ export type { ChannelTokenRequest, ChannelTokenResponse, SocketManager, SocketManagerOptions, } from "./channels";
113
+ import type { createChannelsNamespace as _ChannelsFn } from "./channels";
114
+ export type ChannelsAPI = ReturnType<typeof _ChannelsFn>;
115
+ export { createImportsNamespace } from "./imports";
116
+ export type { Import, ImportAdapter, ImportRow } from "./imports";
117
+ import type { createImportsNamespace as _ImportsFn } from "./imports";
118
+ export type ImportsAPI = ReturnType<typeof _ImportsFn>;
119
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/namespaces/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACj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AW,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -0,0 +1,105 @@
1
+ import type { DocumentSection, SectionDocument } from "../_internal/types.gen";
2
+ import type { RequestOptions } from "../base-client";
3
+ import { RequestBuilder } from "../request-builder";
4
+ /**
5
+ * Creates the memory namespace for structured document section navigation.
6
+ *
7
+ * Provides access to indexed document structures and their heading-delimited
8
+ * sections. Documents are indexed from extraction results, crawler output,
9
+ * knowledge files, or direct uploads. Sections support full-text search
10
+ * and byte-range content retrieval.
11
+ *
12
+ * Accessed via `client.memory.*`.
13
+ *
14
+ * @param rb - The internal `RequestBuilder` instance used to execute API calls.
15
+ * @returns An object containing `sectionDocuments` and `documentSections`
16
+ * sub-namespaces.
17
+ */
18
+ export declare function createMemoryNamespace(rb: RequestBuilder): {
19
+ /**
20
+ * Sub-namespace for section document operations.
21
+ *
22
+ * A section document represents an indexed source (extraction document,
23
+ * crawler page, knowledge file, or direct upload). Each section document
24
+ * contains metadata about the source and links to its document sections.
25
+ */
26
+ sectionDocuments: {
27
+ /**
28
+ * Lists section documents in the current workspace.
29
+ *
30
+ * Returns paginated results sorted by creation date (newest first).
31
+ *
32
+ * @param params - Optional pagination parameters (`page[offset]`, `page[limit]`).
33
+ * @param options - Optional request options such as custom headers or abort signal.
34
+ * @returns A promise resolving to an array of section document records.
35
+ *
36
+ * @example
37
+ * ```typescript
38
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
39
+ * const docs = await client.memory.sectionDocuments.list();
40
+ * docs.forEach(d => console.log(d.attributes?.doc_path));
41
+ * ```
42
+ */
43
+ list: (params?: {
44
+ page?: number;
45
+ pageSize?: number;
46
+ }, options?: RequestOptions) => Promise<SectionDocument[]>;
47
+ /**
48
+ * Retrieves a single section document by its unique identifier.
49
+ *
50
+ * @param id - The UUID of the section document.
51
+ * @param options - Optional request options.
52
+ * @returns A promise resolving to the section document record.
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * const doc = await client.memory.sectionDocuments.get('sd_01HXYZ...');
57
+ * console.log(doc.attributes?.source_type, doc.attributes?.section_count);
58
+ * ```
59
+ */
60
+ get: (id: string, options?: RequestOptions) => Promise<SectionDocument>;
61
+ };
62
+ /**
63
+ * Sub-namespace for document section operations.
64
+ *
65
+ * A document section represents one heading-delimited portion of an
66
+ * indexed document. Sections have stable IDs that survive re-indexing,
67
+ * enabling persistent cross-document references.
68
+ */
69
+ documentSections: {
70
+ /**
71
+ * Lists document sections in the current workspace.
72
+ *
73
+ * Returns paginated results sorted by position within their documents.
74
+ *
75
+ * @param params - Optional pagination parameters.
76
+ * @param options - Optional request options.
77
+ * @returns A promise resolving to an array of document section records.
78
+ *
79
+ * @example
80
+ * ```typescript
81
+ * const sections = await client.memory.documentSections.list();
82
+ * sections.forEach(s => console.log(s.attributes?.title, s.attributes?.level));
83
+ * ```
84
+ */
85
+ list: (params?: {
86
+ page?: number;
87
+ pageSize?: number;
88
+ }, options?: RequestOptions) => Promise<DocumentSection[]>;
89
+ /**
90
+ * Retrieves a single document section by its unique identifier.
91
+ *
92
+ * @param id - The UUID of the document section.
93
+ * @param options - Optional request options.
94
+ * @returns A promise resolving to the document section record.
95
+ *
96
+ * @example
97
+ * ```typescript
98
+ * const section = await client.memory.documentSections.get('ds_01HXYZ...');
99
+ * console.log(section.attributes?.title, section.attributes?.content_preview);
100
+ * ```
101
+ */
102
+ get: (id: string, options?: RequestOptions) => Promise<DocumentSection>;
103
+ };
104
+ };
105
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/namespaces/memory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAO/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,cAAc;IAEpD;;;;;;OAMG;;QAED;;;;;;;;;;;;;;;WAeG;wBAEQ;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,YACnC,cAAc,KACvB,OAAO,CAAC,eAAe,EAAE,CAAC;QAQ7B;;;;;;;;;;;;WAYG;kBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;;IAS7B;;;;;;OAMG;;QAED;;;;;;;;;;;;;;WAcG;wBAEQ;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,YACnC,cAAc,KACvB,OAAO,CAAC,eAAe,EAAE,CAAC;QAQ7B;;;;;;;;;;;;WAYG;kBAEG,MAAM,YACA,cAAc,KACvB,OAAO,CAAC,eAAe,CAAC;;EAShC"}
@@ -0,0 +1,75 @@
1
+ import type { RequestOptions } from "../base-client";
2
+ import type { RequestBuilder } from "../request-builder";
3
+ /** Performance tier classification based on model pricing. */
4
+ export type ModelTier = "high_performance" | "standard" | "economy";
5
+ /** Model information returned by the catalog API. */
6
+ export interface ModelInfo {
7
+ /** OpenRouter model ID (e.g., "anthropic/claude-sonnet-4"). */
8
+ id: string;
9
+ /** Human-readable model name. */
10
+ name: string;
11
+ /** Maximum context window size in tokens. */
12
+ context_length: number;
13
+ /** Performance tier classification. */
14
+ tier: ModelTier;
15
+ /** Model capabilities (e.g., "vision", "long_context"). */
16
+ capabilities: string[];
17
+ /** Model categories (e.g., "general", "reasoning", "coding"). */
18
+ categories: string[];
19
+ }
20
+ /** Options for filtering the model catalog listing. */
21
+ export interface ListModelsOptions {
22
+ /** Filter by performance tier. */
23
+ tier?: ModelTier;
24
+ /** Filter by category (e.g., "reasoning", "coding"). */
25
+ category?: string;
26
+ }
27
+ /**
28
+ * Models namespace factory (client surface).
29
+ *
30
+ * Provides read-only access to the platform model catalog with tier
31
+ * classification. Pricing data is intentionally excluded.
32
+ *
33
+ * @param rb - The request builder used for API communication.
34
+ * @returns Models namespace with `list` and `get`.
35
+ */
36
+ export declare function createModelsNamespace(rb: RequestBuilder): {
37
+ /**
38
+ * List available models with tier classification.
39
+ *
40
+ * @param options - Optional filters for tier and category.
41
+ * @param reqOptions - Optional request options.
42
+ * @returns Array of available models.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
47
+ *
48
+ * // All models
49
+ * const models = await client.models.list();
50
+ *
51
+ * // Filter by tier
52
+ * const standard = await client.models.list({ tier: "standard" });
53
+ *
54
+ * // Filter by category
55
+ * const reasoning = await client.models.list({ category: "reasoning" });
56
+ * ```
57
+ */
58
+ list(options?: ListModelsOptions, reqOptions?: RequestOptions): Promise<ModelInfo[]>;
59
+ /**
60
+ * Get a single model by ID.
61
+ *
62
+ * @param modelId - The model ID (e.g., "anthropic/claude-sonnet-4").
63
+ * Do NOT URL-encode — model IDs contain literal slashes.
64
+ * @param reqOptions - Optional request options.
65
+ * @returns Model details with tier classification.
66
+ *
67
+ * @example
68
+ * ```typescript
69
+ * const model = await client.models.get("anthropic/claude-sonnet-4");
70
+ * console.log(model.tier); // "high_performance"
71
+ * ```
72
+ */
73
+ get(modelId: string, reqOptions?: RequestOptions): Promise<ModelInfo>;
74
+ };
75
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/namespaces/models.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,8DAA8D;AAC9D,MAAM,MAAM,SAAS,GAAG,kBAAkB,GAAG,UAAU,GAAG,SAAS,CAAC;AAEpE,qDAAqD;AACrD,MAAM,WAAW,SAAS;IACxB,+DAA+D;IAC/D,EAAE,EAAE,MAAM,CAAC;IACX,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,cAAc,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,IAAI,EAAE,SAAS,CAAC;IAChB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,iEAAiE;IACjE,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,uDAAuD;AACvD,MAAM,WAAW,iBAAiB;IAChC,kCAAkC;IAClC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,cAAc;IAEpD;;;;;;;;;;;;;;;;;;;;OAoBG;mBAES,iBAAiB,eACd,cAAc,GAC1B,OAAO,CAAC,SAAS,EAAE,CAAC;IASvB;;;;;;;;;;;;;OAaG;iBAEQ,MAAM,eACF,cAAc,GAC1B,OAAO,CAAC,SAAS,CAAC;EAOxB"}
@@ -0,0 +1,75 @@
1
+ import { RequestBuilder } from "../request-builder";
2
+ import type { Permission, PermissionMeta, PermissionPreset } from "../_internal/types.gen";
3
+ export type { Permission, PermissionMeta, PermissionPreset };
4
+ export interface PermissionListResult {
5
+ data: Permission[];
6
+ meta?: {
7
+ total?: number;
8
+ };
9
+ }
10
+ export interface PermissionResult {
11
+ data: Permission;
12
+ }
13
+ export interface PermissionMetaResult {
14
+ data: PermissionMeta;
15
+ }
16
+ export interface PermissionPresetListResult {
17
+ data: PermissionPreset[];
18
+ meta?: {
19
+ total?: number;
20
+ };
21
+ }
22
+ export interface PermissionPresetResult {
23
+ data: PermissionPreset;
24
+ }
25
+ export declare function createPermissionsNamespace(rb: RequestBuilder): {
26
+ /**
27
+ * List all registered platform permissions.
28
+ *
29
+ * Optionally filter by `app`, `context`, or `category` query params.
30
+ *
31
+ * @param params - Optional filter parameters (app, context, category)
32
+ * @returns List of permissions
33
+ * @example
34
+ * const perms = await client.permissions.list({ context: "workspace" });
35
+ */
36
+ list(params?: Record<string, string>): Promise<PermissionListResult>;
37
+ /**
38
+ * Get a single permission by its ID string (e.g., "extract:document:read:all").
39
+ *
40
+ * @param id - Permission ID string
41
+ * @returns The permission record
42
+ * @example
43
+ * const perm = await client.permissions.get("extract:document:read:all");
44
+ */
45
+ get(id: string): Promise<PermissionResult>;
46
+ /**
47
+ * Get permission system metadata (version, apps, scopes, categories, cache TTL).
48
+ *
49
+ * @returns Permission system metadata
50
+ * @example
51
+ * const meta = await client.permissions.meta();
52
+ */
53
+ meta(): Promise<PermissionMetaResult>;
54
+ /**
55
+ * List permission presets (pre-defined role bundles).
56
+ *
57
+ * Optionally filter by `context` (tenant, workspace) or `app`.
58
+ *
59
+ * @param params - Optional filter parameters (context, app)
60
+ * @returns List of permission presets
61
+ * @example
62
+ * const presets = await client.permissions.listPresets({ context: "workspace" });
63
+ */
64
+ listPresets(params?: Record<string, string>): Promise<PermissionPresetListResult>;
65
+ /**
66
+ * Get a single permission preset by its composite ID (e.g., "workspace:org:admin").
67
+ *
68
+ * @param id - Preset composite ID
69
+ * @returns The permission preset
70
+ * @example
71
+ * const preset = await client.permissions.getPreset("workspace:org:admin");
72
+ */
73
+ getPreset(id: string): Promise<PermissionPresetResult>;
74
+ };
75
+ //# sourceMappingURL=permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/namespaces/permissions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,cAAc;IAEzD;;;;;;;;;OASG;kBACiB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAK1E;;;;;;;OAOG;YACW,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAMhD;;;;;;OAMG;YACW,OAAO,CAAC,oBAAoB,CAAC;IAI3C;;;;;;;;;OASG;yBAEQ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;;;;OAOG;kBACiB,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;EAM/D"}
@@ -0,0 +1,130 @@
1
+ import type { RequestOptions } from "../base-client";
2
+ import type { RequestBuilder } from "../request-builder";
3
+ /** Status of a pipeline execution. */
4
+ export type PipelineExecutionStatus = "running" | "awaiting_approval" | "approved" | "rejected" | "completed" | "failed" | "expired";
5
+ /** A pipeline execution resource. */
6
+ export interface PipelineExecution {
7
+ id: string;
8
+ pipeline_id: string;
9
+ workspace_id: string | null;
10
+ status: PipelineExecutionStatus;
11
+ input: Record<string, unknown>;
12
+ node_outputs: Record<string, unknown>;
13
+ checkpoint_node: string | null;
14
+ checkpoint_data: Record<string, unknown> | null;
15
+ checkpoint_notes: string | null;
16
+ checkpoint_refinements: Array<{
17
+ node_id: string;
18
+ instruction: string;
19
+ timestamp: string;
20
+ }>;
21
+ checkpoint_session_id: string | null;
22
+ started_at: string;
23
+ completed_at: string | null;
24
+ }
25
+ /** Attributes for editing checkpoint data before approval. */
26
+ export interface UpdateCheckpointAttributes {
27
+ /** RD-edited output data. Corrected values flow into downstream nodes. */
28
+ checkpoint_data?: Record<string, unknown>;
29
+ }
30
+ /**
31
+ * Creates the pipelineExecutions namespace for polling and HITL checkpoint management.
32
+ *
33
+ * @param rb - The request builder used for API communication.
34
+ * @returns Pipeline executions namespace.
35
+ *
36
+ * @example
37
+ * ```typescript
38
+ * // Poll execution status after triggering
39
+ * const execution = await client.pipelineExecutions.get(executionId);
40
+ * if (execution.status === "awaiting_approval") {
41
+ * await client.pipelineExecutions.updateCheckpoint(executionId, {
42
+ * checkpoint_data: { ...correctedValues },
43
+ * });
44
+ * await client.pipelineExecutions.addNote(executionId, "Corrected HbA1c");
45
+ * await client.pipelineExecutions.approve(executionId);
46
+ * }
47
+ * ```
48
+ */
49
+ export declare function createPipelineExecutionsNamespace(rb: RequestBuilder): {
50
+ /**
51
+ * Get a pipeline execution by ID.
52
+ *
53
+ * @param id - Execution UUID.
54
+ * @param options - Optional request options.
55
+ * @returns PipelineExecution resource.
56
+ */
57
+ get(id: string, options?: RequestOptions): Promise<PipelineExecution>;
58
+ /**
59
+ * List pipeline executions for a workspace.
60
+ *
61
+ * @param workspaceId - Workspace UUID to filter by.
62
+ * @param filters - Optional filters (status, pipeline_id).
63
+ * @param options - Optional request options.
64
+ * @returns Array of PipelineExecution resources.
65
+ */
66
+ list(workspaceId: string, filters?: {
67
+ status?: PipelineExecutionStatus;
68
+ pipeline_id?: string;
69
+ }, options?: RequestOptions): Promise<PipelineExecution[]>;
70
+ /**
71
+ * List pipeline executions for a specific pipeline.
72
+ *
73
+ * @param pipelineId - Pipeline UUID to filter by.
74
+ * @param options - Optional request options.
75
+ * @returns Array of PipelineExecution resources for this pipeline.
76
+ */
77
+ listByPipeline(pipelineId: string, options?: RequestOptions): Promise<PipelineExecution[]>;
78
+ /**
79
+ * Approve the current HITL checkpoint. Pipeline resumes execution.
80
+ * Only valid when status === "awaiting_approval".
81
+ *
82
+ * @param id - Execution UUID.
83
+ * @param options - Optional request options.
84
+ * @returns Updated PipelineExecution resource.
85
+ */
86
+ approve(id: string, options?: RequestOptions): Promise<PipelineExecution>;
87
+ /**
88
+ * Reject the current HITL checkpoint. Pipeline halts permanently.
89
+ * Only valid when status === "awaiting_approval".
90
+ *
91
+ * @param id - Execution UUID.
92
+ * @param options - Optional request options.
93
+ * @returns Updated PipelineExecution resource.
94
+ */
95
+ reject(id: string, options?: RequestOptions): Promise<PipelineExecution>;
96
+ /**
97
+ * Edit checkpoint data before approving.
98
+ * Corrected values flow into downstream pipeline nodes.
99
+ * Only valid when status === "awaiting_approval".
100
+ *
101
+ * @param id - Execution UUID.
102
+ * @param attributes - Checkpoint data updates.
103
+ * @param options - Optional request options.
104
+ * @returns Updated PipelineExecution resource.
105
+ */
106
+ updateCheckpoint(id: string, attributes: UpdateCheckpointAttributes, options?: RequestOptions): Promise<PipelineExecution>;
107
+ /**
108
+ * Set the checkpoint note. Replaces any existing note.
109
+ * Only valid when status === "awaiting_approval".
110
+ *
111
+ * @param id - Execution UUID.
112
+ * @param note - Note text.
113
+ * @param options - Optional request options.
114
+ * @returns Updated PipelineExecution resource.
115
+ */
116
+ addNote(id: string, note: string, options?: RequestOptions): Promise<PipelineExecution>;
117
+ /**
118
+ * Request AI refinement of a specific checkpoint node.
119
+ * The AI re-runs the node with the given instruction and updates checkpoint_data.
120
+ * Only valid when status === "awaiting_approval".
121
+ *
122
+ * @param id - Execution UUID.
123
+ * @param nodeId - The pipeline node ID to refine.
124
+ * @param instruction - Natural language instruction for refinement.
125
+ * @param options - Optional request options.
126
+ * @returns Updated PipelineExecution resource.
127
+ */
128
+ aiRefine(id: string, nodeId: string, instruction: string, options?: RequestOptions): Promise<PipelineExecution>;
129
+ };
130
+ //# sourceMappingURL=pipeline-executions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-executions.d.ts","sourceRoot":"","sources":["../../src/namespaces/pipeline-executions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,sCAAsC;AACtC,MAAM,MAAM,uBAAuB,GAC/B,SAAS,GACT,mBAAmB,GACnB,UAAU,GACV,UAAU,GACV,WAAW,GACX,QAAQ,GACR,SAAS,CAAC;AAEd,qCAAqC;AACrC,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,uBAAuB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAChD,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,sBAAsB,EAAE,KAAK,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,8DAA8D;AAC9D,MAAM,WAAW,0BAA0B;IACzC,0EAA0E;IAC1E,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO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