lemma-sdk 0.2.40 → 0.2.41

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 (114) hide show
  1. package/README.md +5 -1
  2. package/dist/browser/lemma-client.js +80 -14
  3. package/dist/index.d.ts +1 -1
  4. package/dist/namespaces/resources.d.ts +21 -5
  5. package/dist/openapi_client/index.d.ts +19 -14
  6. package/dist/openapi_client/index.js +3 -4
  7. package/dist/openapi_client/models/AgentResponse.d.ts +3 -2
  8. package/dist/openapi_client/models/BillingHistoryResponse.d.ts +8 -0
  9. package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +29 -0
  10. package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +10 -0
  11. package/dist/openapi_client/models/BillingInvoiceStatus.js +15 -0
  12. package/dist/openapi_client/models/BillingScope.d.ts +7 -0
  13. package/dist/openapi_client/models/BillingScope.js +12 -0
  14. package/dist/openapi_client/models/ConversationResponse.d.ts +1 -0
  15. package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
  16. package/dist/openapi_client/models/CreateConversationRequest.d.ts +1 -0
  17. package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
  18. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -0
  19. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +9 -4
  20. package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +7 -0
  21. package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +8 -0
  22. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +1 -0
  23. package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -0
  24. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -0
  25. package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
  26. package/dist/openapi_client/models/FileResponse.d.ts +2 -0
  27. package/dist/openapi_client/models/FlowResponse.d.ts +2 -0
  28. package/dist/openapi_client/models/FunctionResponse.d.ts +13 -2
  29. package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts → FunctionTableAccessEntry.d.ts} +1 -1
  30. package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -0
  31. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +1 -0
  32. package/dist/openapi_client/models/PodMemberResponse.d.ts +1 -0
  33. package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +2 -1
  34. package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +6 -0
  35. package/dist/openapi_client/models/PodRoleListResponse.d.ts +7 -0
  36. package/dist/openapi_client/models/PodRoleResponse.d.ts +11 -0
  37. package/dist/openapi_client/models/ScheduleResponse.d.ts +2 -0
  38. package/dist/openapi_client/models/SendMessageRequest.d.ts +1 -0
  39. package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +3 -1
  40. package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +6 -0
  41. package/dist/openapi_client/models/SubscriptionResponse.d.ts +22 -0
  42. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +4 -1
  43. package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.d.ts → TableAccessEntry.d.ts} +1 -1
  44. package/dist/openapi_client/models/TableAccessEntry.js +1 -0
  45. package/dist/openapi_client/models/TableResponse.d.ts +2 -0
  46. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +3 -2
  47. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -0
  48. package/dist/openapi_client/models/UpdateDeskRequest.d.ts +2 -0
  49. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -2
  50. package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
  51. package/dist/openapi_client/models/UpdateTableRequest.d.ts +2 -1
  52. package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +10 -0
  53. package/dist/openapi_client/models/UsageLimitScopeResponse.js +1 -0
  54. package/dist/openapi_client/models/UsageLimitsResponse.d.ts +11 -0
  55. package/dist/openapi_client/models/UsageLimitsResponse.js +1 -0
  56. package/dist/openapi_client/models/UsageListResponse.d.ts +10 -0
  57. package/dist/openapi_client/models/UsageListResponse.js +1 -0
  58. package/dist/openapi_client/models/UsageRecordResponse.d.ts +12 -4
  59. package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +12 -0
  60. package/dist/openapi_client/models/UsageStatsBucketResponse.js +1 -0
  61. package/dist/openapi_client/models/UsageStatsResponse.d.ts +12 -0
  62. package/dist/openapi_client/models/UsageStatsResponse.js +1 -0
  63. package/dist/openapi_client/models/UsageSummaryResponse.d.ts +3 -0
  64. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +1 -0
  65. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +1 -0
  66. package/dist/openapi_client/models/update.d.ts +2 -0
  67. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +80 -20
  68. package/dist/openapi_client/services/BillingSubscriptionsService.js +164 -27
  69. package/dist/openapi_client/services/BillingUsageService.d.ts +89 -5
  70. package/dist/openapi_client/services/BillingUsageService.js +186 -6
  71. package/dist/openapi_client/services/DesksService.d.ts +21 -4
  72. package/dist/openapi_client/services/DesksService.js +44 -2
  73. package/dist/openapi_client/services/FilesService.d.ts +10 -10
  74. package/dist/openapi_client/services/FilesService.js +10 -10
  75. package/dist/openapi_client/services/FunctionsService.d.ts +2 -2
  76. package/dist/openapi_client/services/FunctionsService.js +2 -2
  77. package/dist/openapi_client/services/PodMembersService.d.ts +10 -0
  78. package/dist/openapi_client/services/PodMembersService.js +24 -0
  79. package/dist/openapi_client/services/PodRolesService.d.ts +29 -0
  80. package/dist/openapi_client/services/PodRolesService.js +63 -0
  81. package/dist/react/index.d.ts +1 -1
  82. package/dist/react/useAssistantController.d.ts +8 -4
  83. package/dist/react/useAssistantController.js +9 -6
  84. package/dist/react/useAssistantSession.d.ts +3 -0
  85. package/dist/react/useAssistantSession.js +6 -2
  86. package/dist/react/useConversationMessages.d.ts +2 -1
  87. package/dist/react/useConversationMessages.js +2 -1
  88. package/package.json +1 -1
  89. package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +0 -3
  90. package/dist/openapi_client/models/FileInfo.d.ts +0 -14
  91. package/dist/openapi_client/models/FileInfo.js +0 -8
  92. package/dist/openapi_client/models/FileUploadResponse.d.ts +0 -6
  93. package/dist/openapi_client/models/GrantPermissionRequest.d.ts +0 -6
  94. package/dist/openapi_client/models/PodPermissionsResponse.d.ts +0 -4
  95. package/dist/openapi_client/models/ResourceFileListResponse.d.ts +0 -6
  96. package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +0 -4
  97. package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +0 -12
  98. package/dist/openapi_client/models/ResourceType.d.ts +0 -4
  99. package/dist/openapi_client/models/ResourceType.js +0 -9
  100. package/dist/openapi_client/models/SetVisibilityRequest.d.ts +0 -3
  101. package/dist/openapi_client/services/AgentFilesService.d.ts +0 -46
  102. package/dist/openapi_client/services/AgentFilesService.js +0 -103
  103. package/dist/openapi_client/services/AuthorizationService.d.ts +0 -58
  104. package/dist/openapi_client/services/AuthorizationService.js +0 -122
  105. /package/dist/openapi_client/models/{Body_upload_file_files__resource_type___resource_id__upload_post.js → BillingHistoryResponse.js} +0 -0
  106. /package/dist/openapi_client/models/{FileUploadResponse.js → BillingInvoiceResponse.js} +0 -0
  107. /package/dist/openapi_client/models/{GrantPermissionRequest.js → CreateInvoicePaymentUrlRequest.js} +0 -0
  108. /package/dist/openapi_client/models/{PodPermissionsResponse.js → CreateInvoicePaymentUrlResponse.js} +0 -0
  109. /package/dist/openapi_client/models/{ResourceFileListResponse.js → FunctionTableAccessEntry.js} +0 -0
  110. /package/dist/openapi_client/models/{ResourcePermissionListResponse.js → PodRoleCreateRequest.js} +0 -0
  111. /package/dist/openapi_client/models/{ResourcePermissionResponse.js → PodRoleListResponse.js} +0 -0
  112. /package/dist/openapi_client/models/{SetVisibilityRequest.js → PodRoleResponse.js} +0 -0
  113. /package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.js → StartTeamBillingRequest.js} +0 -0
  114. /package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.js → SubscriptionResponse.js} +0 -0
@@ -8,11 +8,17 @@ export class BillingUsageService {
8
8
  * @param start
9
9
  * @param end
10
10
  * @param modelName
11
+ * @param podId
12
+ * @param userId
13
+ * @param agentId
14
+ * @param usageKind
15
+ * @param status
11
16
  * @param days
17
+ * @param limit
12
18
  * @returns UsageSummaryResponse Successful Response
13
19
  * @throws ApiError
14
20
  */
15
- static billingUsageOrganizationSummaryGet(organizationId, start, end, modelName, days = 30) {
21
+ static billingUsageOrganizationSummaryGet(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
16
22
  return __request(OpenAPI, {
17
23
  method: 'GET',
18
24
  url: '/billing/usage/organizations/{organization_id}',
@@ -23,7 +29,73 @@ export class BillingUsageService {
23
29
  'start': start,
24
30
  'end': end,
25
31
  'model_name': modelName,
32
+ 'pod_id': podId,
33
+ 'user_id': userId,
34
+ 'agent_id': agentId,
35
+ 'usage_kind': usageKind,
36
+ 'status': status,
26
37
  'days': days,
38
+ 'limit': limit,
39
+ },
40
+ errors: {
41
+ 422: `Validation Error`,
42
+ },
43
+ });
44
+ }
45
+ /**
46
+ * List Organization Usage Events
47
+ * List usage events with optional filters.
48
+ * @param organizationId
49
+ * @param start
50
+ * @param end
51
+ * @param modelName
52
+ * @param podId
53
+ * @param userId
54
+ * @param agentId
55
+ * @param usageKind
56
+ * @param status
57
+ * @param days
58
+ * @param limit
59
+ * @returns UsageListResponse Successful Response
60
+ * @throws ApiError
61
+ */
62
+ static billingUsageOrganizationEventsList(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
63
+ return __request(OpenAPI, {
64
+ method: 'GET',
65
+ url: '/billing/usage/organizations/{organization_id}/events',
66
+ path: {
67
+ 'organization_id': organizationId,
68
+ },
69
+ query: {
70
+ 'start': start,
71
+ 'end': end,
72
+ 'model_name': modelName,
73
+ 'pod_id': podId,
74
+ 'user_id': userId,
75
+ 'agent_id': agentId,
76
+ 'usage_kind': usageKind,
77
+ 'status': status,
78
+ 'days': days,
79
+ 'limit': limit,
80
+ },
81
+ errors: {
82
+ 422: `Validation Error`,
83
+ },
84
+ });
85
+ }
86
+ /**
87
+ * Get Current Usage Limits
88
+ * Get current usage limits for the requesting user in an organization.
89
+ * @param organizationId
90
+ * @returns UsageLimitsResponse Successful Response
91
+ * @throws ApiError
92
+ */
93
+ static billingUsageOrganizationLimitsGet(organizationId) {
94
+ return __request(OpenAPI, {
95
+ method: 'GET',
96
+ url: '/billing/usage/organizations/{organization_id}/limits',
97
+ path: {
98
+ 'organization_id': organizationId,
27
99
  },
28
100
  errors: {
29
101
  422: `Validation Error`,
@@ -37,11 +109,17 @@ export class BillingUsageService {
37
109
  * @param start
38
110
  * @param end
39
111
  * @param modelName
112
+ * @param podId
113
+ * @param userId
114
+ * @param agentId
115
+ * @param usageKind
116
+ * @param status
40
117
  * @param days
118
+ * @param limit
41
119
  * @returns UsageSummaryResponse Successful Response
42
120
  * @throws ApiError
43
121
  */
44
- static billingUsageOrganizationMeSummaryGet(organizationId, start, end, modelName, days = 30) {
122
+ static billingUsageOrganizationMeSummaryGet(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
45
123
  return __request(OpenAPI, {
46
124
  method: 'GET',
47
125
  url: '/billing/usage/organizations/{organization_id}/me',
@@ -52,7 +130,13 @@ export class BillingUsageService {
52
130
  'start': start,
53
131
  'end': end,
54
132
  'model_name': modelName,
133
+ 'pod_id': podId,
134
+ 'user_id': userId,
135
+ 'agent_id': agentId,
136
+ 'usage_kind': usageKind,
137
+ 'status': status,
55
138
  'days': days,
139
+ 'limit': limit,
56
140
  },
57
141
  errors: {
58
142
  422: `Validation Error`,
@@ -66,12 +150,11 @@ export class BillingUsageService {
66
150
  * @param podId
67
151
  * @param start
68
152
  * @param end
69
- * @param modelName
70
153
  * @param days
71
154
  * @returns UsageSummaryResponse Successful Response
72
155
  * @throws ApiError
73
156
  */
74
- static billingUsageOrganizationPodSummaryGet(organizationId, podId, start, end, modelName, days = 30) {
157
+ static billingUsageOrganizationPodSummaryGet(organizationId, podId, start, end, days = 30) {
75
158
  return __request(OpenAPI, {
76
159
  method: 'GET',
77
160
  url: '/billing/usage/organizations/{organization_id}/pods/{pod_id}',
@@ -82,7 +165,6 @@ export class BillingUsageService {
82
165
  query: {
83
166
  'start': start,
84
167
  'end': end,
85
- 'model_name': modelName,
86
168
  'days': days,
87
169
  },
88
170
  errors: {
@@ -97,11 +179,17 @@ export class BillingUsageService {
97
179
  * @param start
98
180
  * @param end
99
181
  * @param modelName
182
+ * @param podId
183
+ * @param userId
184
+ * @param agentId
185
+ * @param usageKind
186
+ * @param status
100
187
  * @param days
188
+ * @param limit
101
189
  * @returns RecentUsageResponse Successful Response
102
190
  * @throws ApiError
103
191
  */
104
- static billingUsageOrganizationRecentGet(organizationId, start, end, modelName, days = 30) {
192
+ static billingUsageOrganizationRecentGet(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
105
193
  return __request(OpenAPI, {
106
194
  method: 'GET',
107
195
  url: '/billing/usage/organizations/{organization_id}/recent',
@@ -112,7 +200,99 @@ export class BillingUsageService {
112
200
  'start': start,
113
201
  'end': end,
114
202
  'model_name': modelName,
203
+ 'pod_id': podId,
204
+ 'user_id': userId,
205
+ 'agent_id': agentId,
206
+ 'usage_kind': usageKind,
207
+ 'status': status,
208
+ 'days': days,
209
+ 'limit': limit,
210
+ },
211
+ errors: {
212
+ 422: `Validation Error`,
213
+ },
214
+ });
215
+ }
216
+ /**
217
+ * Get Organization Usage Stats
218
+ * Get bucketed usage stats with optional filters.
219
+ * @param organizationId
220
+ * @param start
221
+ * @param end
222
+ * @param modelName
223
+ * @param podId
224
+ * @param userId
225
+ * @param agentId
226
+ * @param usageKind
227
+ * @param status
228
+ * @param days
229
+ * @param limit
230
+ * @param granularity
231
+ * @param groupBy
232
+ * @returns UsageStatsResponse Successful Response
233
+ * @throws ApiError
234
+ */
235
+ static billingUsageOrganizationStatsGet(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100, granularity = 'day', groupBy) {
236
+ return __request(OpenAPI, {
237
+ method: 'GET',
238
+ url: '/billing/usage/organizations/{organization_id}/stats',
239
+ path: {
240
+ 'organization_id': organizationId,
241
+ },
242
+ query: {
243
+ 'start': start,
244
+ 'end': end,
245
+ 'model_name': modelName,
246
+ 'pod_id': podId,
247
+ 'user_id': userId,
248
+ 'agent_id': agentId,
249
+ 'usage_kind': usageKind,
250
+ 'status': status,
251
+ 'days': days,
252
+ 'limit': limit,
253
+ 'granularity': granularity,
254
+ 'group_by': groupBy,
255
+ },
256
+ errors: {
257
+ 422: `Validation Error`,
258
+ },
259
+ });
260
+ }
261
+ /**
262
+ * Get Organization Usage Summary
263
+ * Get usage summary with optional filters.
264
+ * @param organizationId
265
+ * @param start
266
+ * @param end
267
+ * @param modelName
268
+ * @param podId
269
+ * @param userId
270
+ * @param agentId
271
+ * @param usageKind
272
+ * @param status
273
+ * @param days
274
+ * @param limit
275
+ * @returns UsageSummaryResponse Successful Response
276
+ * @throws ApiError
277
+ */
278
+ static billingUsageOrganizationSummaryQuery(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
279
+ return __request(OpenAPI, {
280
+ method: 'GET',
281
+ url: '/billing/usage/organizations/{organization_id}/summary',
282
+ path: {
283
+ 'organization_id': organizationId,
284
+ },
285
+ query: {
286
+ 'start': start,
287
+ 'end': end,
288
+ 'model_name': modelName,
289
+ 'pod_id': podId,
290
+ 'user_id': userId,
291
+ 'agent_id': agentId,
292
+ 'usage_kind': usageKind,
293
+ 'status': status,
115
294
  'days': days,
295
+ 'limit': limit,
116
296
  },
117
297
  errors: {
118
298
  422: `Validation Error`,
@@ -49,6 +49,23 @@ export declare class DesksService {
49
49
  * @throws ApiError
50
50
  */
51
51
  static deskUpdate(podId: string, deskName: string, requestBody: UpdateDeskRequest): CancelablePromise<DeskResponse>;
52
+ /**
53
+ * Get Desk Root Asset
54
+ * @param podId
55
+ * @param deskName
56
+ * @returns any Successful Response
57
+ * @throws ApiError
58
+ */
59
+ static deskAssetRootGet(podId: string, deskName: string): CancelablePromise<any>;
60
+ /**
61
+ * Get Desk Asset
62
+ * @param podId
63
+ * @param deskName
64
+ * @param assetPath
65
+ * @returns any Successful Response
66
+ * @throws ApiError
67
+ */
68
+ static deskAssetGet(podId: string, deskName: string, assetPath: string): CancelablePromise<any>;
52
69
  /**
53
70
  * Upload Desk Bundle
54
71
  * @param podId
@@ -62,16 +79,16 @@ export declare class DesksService {
62
79
  * Download Desk Dist Archive
63
80
  * @param podId
64
81
  * @param deskName
65
- * @returns any Successful Response
82
+ * @returns binary Zip archive bytes
66
83
  * @throws ApiError
67
84
  */
68
- static deskDistArchiveGet(podId: string, deskName: string): CancelablePromise<any>;
85
+ static deskDistArchiveGet(podId: string, deskName: string): CancelablePromise<Blob>;
69
86
  /**
70
87
  * Download Desk Source Archive
71
88
  * @param podId
72
89
  * @param deskName
73
- * @returns any Successful Response
90
+ * @returns binary Zip archive bytes
74
91
  * @throws ApiError
75
92
  */
76
- static deskSourceArchiveGet(podId: string, deskName: string): CancelablePromise<any>;
93
+ static deskSourceArchiveGet(podId: string, deskName: string): CancelablePromise<Blob>;
77
94
  }
@@ -109,6 +109,48 @@ export class DesksService {
109
109
  },
110
110
  });
111
111
  }
112
+ /**
113
+ * Get Desk Root Asset
114
+ * @param podId
115
+ * @param deskName
116
+ * @returns any Successful Response
117
+ * @throws ApiError
118
+ */
119
+ static deskAssetRootGet(podId, deskName) {
120
+ return __request(OpenAPI, {
121
+ method: 'GET',
122
+ url: '/pods/{pod_id}/desks/{desk_name}/assets',
123
+ path: {
124
+ 'pod_id': podId,
125
+ 'desk_name': deskName,
126
+ },
127
+ errors: {
128
+ 422: `Validation Error`,
129
+ },
130
+ });
131
+ }
132
+ /**
133
+ * Get Desk Asset
134
+ * @param podId
135
+ * @param deskName
136
+ * @param assetPath
137
+ * @returns any Successful Response
138
+ * @throws ApiError
139
+ */
140
+ static deskAssetGet(podId, deskName, assetPath) {
141
+ return __request(OpenAPI, {
142
+ method: 'GET',
143
+ url: '/pods/{pod_id}/desks/{desk_name}/assets/{asset_path}',
144
+ path: {
145
+ 'pod_id': podId,
146
+ 'desk_name': deskName,
147
+ 'asset_path': assetPath,
148
+ },
149
+ errors: {
150
+ 422: `Validation Error`,
151
+ },
152
+ });
153
+ }
112
154
  /**
113
155
  * Upload Desk Bundle
114
156
  * @param podId
@@ -136,7 +178,7 @@ export class DesksService {
136
178
  * Download Desk Dist Archive
137
179
  * @param podId
138
180
  * @param deskName
139
- * @returns any Successful Response
181
+ * @returns binary Zip archive bytes
140
182
  * @throws ApiError
141
183
  */
142
184
  static deskDistArchiveGet(podId, deskName) {
@@ -156,7 +198,7 @@ export class DesksService {
156
198
  * Download Desk Source Archive
157
199
  * @param podId
158
200
  * @param deskName
159
- * @returns any Successful Response
201
+ * @returns binary Zip archive bytes
160
202
  * @throws ApiError
161
203
  */
162
204
  static deskSourceArchiveGet(podId, deskName) {
@@ -21,7 +21,7 @@ export declare class FilesService {
21
21
  * @returns FileListResponse Successful Response
22
22
  * @throws ApiError
23
23
  */
24
- static fileList(podId: string, directoryPath?: string, namespace?: FileNamespace, limit?: number, pageToken?: (string | null)): CancelablePromise<FileListResponse>;
24
+ static fileList(podId: string, directoryPath?: string, namespace?: (FileNamespace | null), limit?: number, pageToken?: (string | null)): CancelablePromise<FileListResponse>;
25
25
  /**
26
26
  * Upload File
27
27
  * @param podId
@@ -38,7 +38,7 @@ export declare class FilesService {
38
38
  * @returns DatastoreMessageResponse Successful Response
39
39
  * @throws ApiError
40
40
  */
41
- static fileDelete(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<DatastoreMessageResponse>;
41
+ static fileDelete(podId: string, path: string, namespace?: (FileNamespace | null)): CancelablePromise<DatastoreMessageResponse>;
42
42
  /**
43
43
  * Get File
44
44
  * @param podId
@@ -47,7 +47,7 @@ export declare class FilesService {
47
47
  * @returns FileResponse Successful Response
48
48
  * @throws ApiError
49
49
  */
50
- static fileGet(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<FileResponse>;
50
+ static fileGet(podId: string, path: string, namespace?: (FileNamespace | null)): CancelablePromise<FileResponse>;
51
51
  /**
52
52
  * Update File
53
53
  * @param podId
@@ -64,35 +64,35 @@ export declare class FilesService {
64
64
  * @returns ConvertedFileResponse Successful Response
65
65
  * @throws ApiError
66
66
  */
67
- static fileConvertedGet(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<ConvertedFileResponse>;
67
+ static fileConvertedGet(podId: string, path: string, namespace?: (FileNamespace | null)): CancelablePromise<ConvertedFileResponse>;
68
68
  /**
69
69
  * Download Converted File Artifact
70
70
  * @param podId
71
71
  * @param path
72
72
  * @param artifact
73
73
  * @param namespace
74
- * @returns any Successful Response
74
+ * @returns binary File bytes
75
75
  * @throws ApiError
76
76
  */
77
- static fileConvertedDownload(podId: string, path: string, artifact?: string, namespace?: FileNamespace): CancelablePromise<any>;
77
+ static fileConvertedDownload(podId: string, path: string, artifact?: string, namespace?: (FileNamespace | null)): CancelablePromise<Blob>;
78
78
  /**
79
79
  * Render Converted File As HTML
80
80
  * @param podId
81
81
  * @param path
82
82
  * @param namespace
83
- * @returns any Successful Response
83
+ * @returns string Rendered HTML
84
84
  * @throws ApiError
85
85
  */
86
- static fileConvertedRender(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<any>;
86
+ static fileConvertedRender(podId: string, path: string, namespace?: (FileNamespace | null)): CancelablePromise<string>;
87
87
  /**
88
88
  * Download File
89
89
  * @param podId
90
90
  * @param path
91
91
  * @param namespace
92
- * @returns any Successful Response
92
+ * @returns binary File bytes
93
93
  * @throws ApiError
94
94
  */
95
- static fileDownload(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<any>;
95
+ static fileDownload(podId: string, path: string, namespace?: (FileNamespace | null)): CancelablePromise<Blob>;
96
96
  /**
97
97
  * Create Folder
98
98
  * @param podId
@@ -12,7 +12,7 @@ export class FilesService {
12
12
  * @returns FileListResponse Successful Response
13
13
  * @throws ApiError
14
14
  */
15
- static fileList(podId, directoryPath = '/', namespace = FileNamespace.PERSONAL, limit = 100, pageToken) {
15
+ static fileList(podId, directoryPath = '/', namespace, limit = 100, pageToken) {
16
16
  return __request(OpenAPI, {
17
17
  method: 'GET',
18
18
  url: '/pods/{pod_id}/datastore/files',
@@ -59,7 +59,7 @@ export class FilesService {
59
59
  * @returns DatastoreMessageResponse Successful Response
60
60
  * @throws ApiError
61
61
  */
62
- static fileDelete(podId, path, namespace = FileNamespace.PERSONAL) {
62
+ static fileDelete(podId, path, namespace) {
63
63
  return __request(OpenAPI, {
64
64
  method: 'DELETE',
65
65
  url: '/pods/{pod_id}/datastore/files/by-path',
@@ -83,7 +83,7 @@ export class FilesService {
83
83
  * @returns FileResponse Successful Response
84
84
  * @throws ApiError
85
85
  */
86
- static fileGet(podId, path, namespace = FileNamespace.PERSONAL) {
86
+ static fileGet(podId, path, namespace) {
87
87
  return __request(OpenAPI, {
88
88
  method: 'GET',
89
89
  url: '/pods/{pod_id}/datastore/files/by-path',
@@ -128,7 +128,7 @@ export class FilesService {
128
128
  * @returns ConvertedFileResponse Successful Response
129
129
  * @throws ApiError
130
130
  */
131
- static fileConvertedGet(podId, path, namespace = FileNamespace.PERSONAL) {
131
+ static fileConvertedGet(podId, path, namespace) {
132
132
  return __request(OpenAPI, {
133
133
  method: 'GET',
134
134
  url: '/pods/{pod_id}/datastore/files/converted/by-path',
@@ -150,10 +150,10 @@ export class FilesService {
150
150
  * @param path
151
151
  * @param artifact
152
152
  * @param namespace
153
- * @returns any Successful Response
153
+ * @returns binary File bytes
154
154
  * @throws ApiError
155
155
  */
156
- static fileConvertedDownload(podId, path, artifact = 'document.md', namespace = FileNamespace.PERSONAL) {
156
+ static fileConvertedDownload(podId, path, artifact = 'document.md', namespace) {
157
157
  return __request(OpenAPI, {
158
158
  method: 'GET',
159
159
  url: '/pods/{pod_id}/datastore/files/converted/download',
@@ -175,10 +175,10 @@ export class FilesService {
175
175
  * @param podId
176
176
  * @param path
177
177
  * @param namespace
178
- * @returns any Successful Response
178
+ * @returns string Rendered HTML
179
179
  * @throws ApiError
180
180
  */
181
- static fileConvertedRender(podId, path, namespace = FileNamespace.PERSONAL) {
181
+ static fileConvertedRender(podId, path, namespace) {
182
182
  return __request(OpenAPI, {
183
183
  method: 'GET',
184
184
  url: '/pods/{pod_id}/datastore/files/converted/render',
@@ -199,10 +199,10 @@ export class FilesService {
199
199
  * @param podId
200
200
  * @param path
201
201
  * @param namespace
202
- * @returns any Successful Response
202
+ * @returns binary File bytes
203
203
  * @throws ApiError
204
204
  */
205
- static fileDownload(podId, path, namespace = FileNamespace.PERSONAL) {
205
+ static fileDownload(podId, path, namespace) {
206
206
  return __request(OpenAPI, {
207
207
  method: 'GET',
208
208
  url: '/pods/{pod_id}/datastore/files/download',
@@ -20,7 +20,7 @@ export declare class FunctionsService {
20
20
  static functionList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<FunctionListResponse>;
21
21
  /**
22
22
  * Create Function
23
- * Create a new function in a pod
23
+ * Create a new function in a pod. Do not send input_schema or output_schema; the platform derives those schemas from the function code and returns them in the response.
24
24
  * @param podId
25
25
  * @param requestBody
26
26
  * @returns FunctionResponse Successful Response
@@ -47,7 +47,7 @@ export declare class FunctionsService {
47
47
  static functionGet(podId: string, functionName: string): CancelablePromise<FunctionResponse>;
48
48
  /**
49
49
  * Update Function
50
- * Update a function
50
+ * Update a function. When code is supplied, the platform re-derives the function input_schema and output_schema and returns the refreshed function.
51
51
  * @param podId
52
52
  * @param functionName
53
53
  * @param requestBody
@@ -28,7 +28,7 @@ export class FunctionsService {
28
28
  }
29
29
  /**
30
30
  * Create Function
31
- * Create a new function in a pod
31
+ * Create a new function in a pod. Do not send input_schema or output_schema; the platform derives those schemas from the function code and returns them in the response.
32
32
  * @param podId
33
33
  * @param requestBody
34
34
  * @returns FunctionResponse Successful Response
@@ -92,7 +92,7 @@ export class FunctionsService {
92
92
  }
93
93
  /**
94
94
  * Update Function
95
- * Update a function
95
+ * Update a function. When code is supplied, the platform re-derives the function input_schema and output_schema and returns the refreshed function.
96
96
  * @param podId
97
97
  * @param functionName
98
98
  * @param requestBody
@@ -70,4 +70,14 @@ export declare class PodMembersService {
70
70
  * @throws ApiError
71
71
  */
72
72
  static podMemberUpdateRole(podId: string, podMemberId: string, requestBody: PodMemberUpdateRoleRequest): CancelablePromise<PodMemberResponse>;
73
+ /**
74
+ * Update Member Roles
75
+ * Update a pod member's roles
76
+ * @param podId
77
+ * @param podMemberId
78
+ * @param requestBody
79
+ * @returns PodMemberResponse Successful Response
80
+ * @throws ApiError
81
+ */
82
+ static podMemberUpdateRoles(podId: string, podMemberId: string, requestBody: PodMemberUpdateRoleRequest): CancelablePromise<PodMemberResponse>;
73
83
  }
@@ -158,4 +158,28 @@ export class PodMembersService {
158
158
  },
159
159
  });
160
160
  }
161
+ /**
162
+ * Update Member Roles
163
+ * Update a pod member's roles
164
+ * @param podId
165
+ * @param podMemberId
166
+ * @param requestBody
167
+ * @returns PodMemberResponse Successful Response
168
+ * @throws ApiError
169
+ */
170
+ static podMemberUpdateRoles(podId, podMemberId, requestBody) {
171
+ return __request(OpenAPI, {
172
+ method: 'PATCH',
173
+ url: '/pods/{pod_id}/members/{pod_member_id}/roles',
174
+ path: {
175
+ 'pod_id': podId,
176
+ 'pod_member_id': podMemberId,
177
+ },
178
+ body: requestBody,
179
+ mediaType: 'application/json',
180
+ errors: {
181
+ 422: `Validation Error`,
182
+ },
183
+ });
184
+ }
161
185
  }
@@ -0,0 +1,29 @@
1
+ import type { PodRoleCreateRequest } from '../models/PodRoleCreateRequest.js';
2
+ import type { PodRoleListResponse } from '../models/PodRoleListResponse.js';
3
+ import type { PodRoleResponse } from '../models/PodRoleResponse.js';
4
+ import type { CancelablePromise } from '../core/CancelablePromise.js';
5
+ export declare class PodRolesService {
6
+ /**
7
+ * List Pod Roles
8
+ * @param podId
9
+ * @returns PodRoleListResponse Successful Response
10
+ * @throws ApiError
11
+ */
12
+ static podRolesList(podId: string): CancelablePromise<PodRoleListResponse>;
13
+ /**
14
+ * Create Pod Role
15
+ * @param podId
16
+ * @param requestBody
17
+ * @returns PodRoleResponse Successful Response
18
+ * @throws ApiError
19
+ */
20
+ static podRolesCreate(podId: string, requestBody: PodRoleCreateRequest): CancelablePromise<PodRoleResponse>;
21
+ /**
22
+ * Delete Pod Role
23
+ * @param podId
24
+ * @param roleName
25
+ * @returns void
26
+ * @throws ApiError
27
+ */
28
+ static podRolesDelete(podId: string, roleName: string): CancelablePromise<void>;
29
+ }