@epam/ai-dial-typescript-sdk 0.1.0-dev.1 → 0.1.0-dev.11

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.
package/dist/index.d.ts CHANGED
@@ -1,96 +1,3 @@
1
- interface SDKOptions {
2
- baseUrl: string;
3
- apiKey?: string;
4
- token?: string;
5
- headers?: Record<string, string>;
6
- fetch?: typeof fetch;
7
- }
8
- /** Methods exposed by `createSDK` (explicit shape avoids TS emit limits on the inferred return type). */
9
- interface DIAL_SDK {
10
- acceptUserConsent: (deployment_id: string, init?: any) => Promise<unknown>;
11
- approvePublication: (init?: any) => Promise<unknown>;
12
- callToolSet: (toolset_name: string, init?: any) => Promise<unknown>;
13
- closeSession: (init?: any) => Promise<unknown>;
14
- configurationDeployment: (deployment_name: string, init?: any) => Promise<unknown>;
15
- copyResource: (init?: any) => Promise<unknown>;
16
- copySharedResources: (init?: any) => Promise<unknown>;
17
- createPublication: (init?: any) => Promise<unknown>;
18
- deleteConversation: (bucket: string, conversation_path: string, init?: any) => Promise<unknown>;
19
- deleteCustomApplication: (bucket: string, application_path: string, init?: any) => Promise<unknown>;
20
- deleteFile: (bucket: string, file_path: string, init?: any) => Promise<unknown>;
21
- deleteInvitation: (invitation_id: string, init?: any) => Promise<unknown>;
22
- deleteNotifications: (init?: any) => Promise<unknown>;
23
- deletePrompt: (bucket: string, prompt_path: string, init?: any) => Promise<unknown>;
24
- deletePublication: (init?: any) => Promise<unknown>;
25
- deleteToolSet: (bucket: string, toolset_path: string, init?: any) => Promise<unknown>;
26
- deployApplication: (init?: any) => Promise<unknown>;
27
- discardSharedResources: (init?: any) => Promise<unknown>;
28
- downloadFile: (bucket: string, file_path: string, init?: any) => Promise<unknown>;
29
- downloadFileFromCodeInterpreter: (init?: any) => Promise<unknown>;
30
- executeCode: (init?: any) => Promise<unknown>;
31
- getApplication: (application_name: string, init?: any) => Promise<unknown>;
32
- getApplicationLogs: (init?: any) => Promise<unknown>;
33
- getApplicationMetadata: (bucket: string, path: string, init?: any) => Promise<unknown>;
34
- getApplications: (init?: any) => Promise<unknown>;
35
- getConversation: (bucket: string, conversation_path: string, init?: any) => Promise<unknown>;
36
- getConversationMetadata: (bucket: string, path: string, init?: any) => Promise<unknown>;
37
- getCustomApplication: (bucket: string, application_path: string, init?: any) => Promise<unknown>;
38
- getCustomApplicationSchema: (init?: any) => Promise<unknown>;
39
- getCustomToolSet: (bucket: string, toolset_path: string, init?: any) => Promise<unknown>;
40
- getDeployment: (deployment_name: string, init?: any) => Promise<unknown>;
41
- getDeploymentLimits: (deployment_name: string, init?: any) => Promise<unknown>;
42
- getDeployments: (init?: any) => Promise<unknown>;
43
- getFileMetadata: (bucket: string, path: string, init?: any) => Promise<unknown>;
44
- getInvitation: (invitation_id: string, init?: any) => Promise<unknown>;
45
- getInvitations: (init?: any) => Promise<unknown>;
46
- getMetaSchemaOfCustomApplicationSchema: (init?: any) => Promise<unknown>;
47
- getModel: (model_name: string, init?: any) => Promise<unknown>;
48
- getModels: (init?: any) => Promise<unknown>;
49
- getNotifications: (init?: any) => Promise<unknown>;
50
- getPerRequestPermissions: (init?: any) => Promise<unknown>;
51
- getPrompt: (bucket: string, prompt_path: string, init?: any) => Promise<unknown>;
52
- getPromptMetadata: (bucket: string, path: string, init?: any) => Promise<unknown>;
53
- getPublication: (init?: any) => Promise<unknown>;
54
- getPublicationRules: (init?: any) => Promise<unknown>;
55
- getPublications: (init?: any) => Promise<unknown>;
56
- getSession: (init?: any) => Promise<unknown>;
57
- getSharedResources: (init?: any) => Promise<unknown>;
58
- getToolSetMetadata: (bucket: string, path: string, init?: any) => Promise<unknown>;
59
- getToolSets: (init?: any) => Promise<unknown>;
60
- getToolset: (toolset_name: string, init?: any) => Promise<unknown>;
61
- getUserBucket: (init?: any) => Promise<unknown>;
62
- getUserInfo: (init?: any) => Promise<unknown>;
63
- grantPerRequestPermissions: (init?: any) => Promise<unknown>;
64
- listCustomApplicationSchemas: (init?: any) => Promise<unknown>;
65
- listFilesFromCodeInterpreter: (init?: any) => Promise<unknown>;
66
- moveResource: (init?: any) => Promise<unknown>;
67
- openSession: (init?: any) => Promise<unknown>;
68
- rateDeployment: (deployment_name: string, init?: any) => Promise<unknown>;
69
- redeployApplication: (init?: any) => Promise<unknown>;
70
- rejectPublication: (init?: any) => Promise<unknown>;
71
- reloadConfig: (init?: any) => Promise<unknown>;
72
- requestUserConsent: (deployment_id: string, init?: any) => Promise<unknown>;
73
- revokePerRequestPermissions: (init?: any) => Promise<unknown>;
74
- revokeSharedResources: (init?: any) => Promise<unknown>;
75
- saveConversation: (bucket: string, conversation_path: string, init?: any) => Promise<unknown>;
76
- saveCustomApplication: (bucket: string, application_path: string, init?: any) => Promise<unknown>;
77
- savePrompt: (bucket: string, prompt_path: string, init?: any) => Promise<unknown>;
78
- saveToolSet: (bucket: string, toolset_path: string, init?: any) => Promise<unknown>;
79
- sendChatCompletionRequest: (deployment_name: string, init?: any) => Promise<unknown>;
80
- sendEmbeddingsRequest: (deployment_name: string, init?: any) => Promise<unknown>;
81
- shareResource: (init?: any) => Promise<unknown>;
82
- subscribeToResources: (init?: any) => Promise<unknown>;
83
- toolSetSignout: (init?: any) => Promise<unknown>;
84
- toolsetSignin: (init?: any) => Promise<unknown>;
85
- transferInputFile: (init?: any) => Promise<unknown>;
86
- transferOutputFile: (init?: any) => Promise<unknown>;
87
- undeployApplication: (init?: any) => Promise<unknown>;
88
- updatePublication: (init?: any) => Promise<unknown>;
89
- uploadFile: (bucket: string, file_path: string, init?: any) => Promise<unknown>;
90
- uploadFileToCodeInterpreter: (init?: any) => Promise<unknown>;
91
- }
92
- declare function createSDK(opts: SDKOptions): DIAL_SDK;
93
-
94
1
  /**
95
2
  * This file was auto-generated by openapi-typescript.
96
3
  * Do not make direct changes to the file.
@@ -7214,4 +7121,224 @@ interface operations {
7214
7121
  };
7215
7122
  }
7216
7123
 
7217
- export { type DIAL_SDK, type SDKOptions, type components, createSDK, type operations, type paths };
7124
+ type SuccessStatus = 200 | 201 | 202 | 204;
7125
+ type UnknownIfNever<T> = [T] extends [never] ? unknown : T;
7126
+ type JsonContent<T> = T extends {
7127
+ content: infer TContent;
7128
+ } ? TContent extends {
7129
+ 'application/json': infer TJson;
7130
+ } ? TJson : unknown : undefined;
7131
+ type OperationResponses<TOperation> = TOperation extends {
7132
+ responses: infer TResponses;
7133
+ } ? TResponses : never;
7134
+ type OperationSuccessData<TOperation> = UnknownIfNever<JsonContent<OperationResponses<TOperation>[Extract<keyof OperationResponses<TOperation>, SuccessStatus>]>>;
7135
+ type OperationErrorData<TOperation> = UnknownIfNever<JsonContent<OperationResponses<TOperation>[Exclude<keyof OperationResponses<TOperation>, SuccessStatus>]>>;
7136
+ type OperationBody<TOperation> = TOperation extends {
7137
+ requestBody: {
7138
+ content: infer TContent;
7139
+ };
7140
+ } ? TContent extends {
7141
+ 'application/json': infer TBody;
7142
+ } ? TBody : unknown : never;
7143
+ type OperationParameterLocation<TOperation, TLocation extends 'query' | 'header' | 'cookie'> = TOperation extends {
7144
+ parameters: infer TParameters;
7145
+ } ? TParameters extends Partial<Record<TLocation, infer TValue>> ? TValue : never : never;
7146
+ type OperationParams<TOperation> = {
7147
+ query?: OperationParameterLocation<TOperation, 'query'>;
7148
+ header?: OperationParameterLocation<TOperation, 'header'>;
7149
+ cookie?: OperationParameterLocation<TOperation, 'cookie'>;
7150
+ };
7151
+ type EmptyObject = Record<string, never>;
7152
+ type SDKOperationParams<TOperation> = OperationParams<TOperation> extends EmptyObject ? {
7153
+ params?: never;
7154
+ } : {
7155
+ params?: OperationParams<TOperation>;
7156
+ };
7157
+ type SDKOperationBody<TOperation> = OperationBody<TOperation> extends never ? {
7158
+ body?: never;
7159
+ } : TOperation extends {
7160
+ requestBody: unknown;
7161
+ } ? {
7162
+ body: OperationBody<TOperation>;
7163
+ } : {
7164
+ body?: OperationBody<TOperation>;
7165
+ };
7166
+ type SDKResponse<TData, TError = unknown> = {
7167
+ data: TData;
7168
+ error?: never;
7169
+ response: Response;
7170
+ } | {
7171
+ data?: never;
7172
+ error: TError;
7173
+ response: Response;
7174
+ };
7175
+ type SDKHeaders = Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined> | [string, string][];
7176
+ interface SDKRequestInit<TBody = unknown> {
7177
+ body?: TBody;
7178
+ headers?: SDKHeaders;
7179
+ params?: {
7180
+ query?: Record<string, unknown>;
7181
+ header?: Record<string, unknown>;
7182
+ path?: Record<string, unknown>;
7183
+ cookie?: Record<string, unknown>;
7184
+ };
7185
+ parseAs?: 'json' | 'text' | 'blob' | 'arrayBuffer' | 'stream';
7186
+ [key: string]: unknown;
7187
+ }
7188
+ type SDKOperationInit<TOperation> = Omit<SDKRequestInit, 'body' | 'params'> & SDKOperationParams<TOperation> & SDKOperationBody<TOperation>;
7189
+ type SDKOperationResponse<TOperation> = SDKResponse<OperationSuccessData<TOperation>, OperationErrorData<TOperation>>;
7190
+ type SDKOperationId = keyof operations;
7191
+ interface ConversationModelId {
7192
+ /** Application/model unique identifier. */
7193
+ id: string;
7194
+ [key: string]: unknown;
7195
+ }
7196
+ interface ConversationMessageSettings {
7197
+ prompt: string;
7198
+ temperature: number;
7199
+ [key: string]: unknown;
7200
+ }
7201
+ interface ConversationMessage {
7202
+ role: string;
7203
+ content: string;
7204
+ model?: ConversationModelId;
7205
+ settings?: ConversationMessageSettings;
7206
+ [key: string]: unknown;
7207
+ }
7208
+ interface Conversation {
7209
+ /** Conversation unique identifier. */
7210
+ id: string;
7211
+ /** Path to the folder where conversation is located according to the user's root. */
7212
+ folderId: string;
7213
+ /** Display name. */
7214
+ name: string;
7215
+ /** System prompt. */
7216
+ prompt: string;
7217
+ temperature: number;
7218
+ lastActivityDate?: number;
7219
+ model: ConversationModelId;
7220
+ messages: ConversationMessage[];
7221
+ customViewState?: Record<string, unknown>;
7222
+ [key: string]: unknown;
7223
+ }
7224
+ interface ConversationResource {
7225
+ name?: string;
7226
+ author?: string;
7227
+ parentPath?: string;
7228
+ bucket?: string;
7229
+ url?: string;
7230
+ nodeType?: string;
7231
+ resourceType?: 'CONVERSATION' | string;
7232
+ etag?: string;
7233
+ createdAt?: number;
7234
+ updatedAt?: number;
7235
+ permissions?: string[];
7236
+ [key: string]: unknown;
7237
+ }
7238
+ type DeploymentData = components['schemas']['DeploymentBase'] & components['schemas']['DeploymentWithFeatures'];
7239
+ type ModelCapabilities = components['schemas']['ModelCapabilities'];
7240
+ type ModelLimits = components['schemas']['ModelLimits'];
7241
+ type ModelPricing = components['schemas']['ModelPricing'];
7242
+ type ModelData = components['schemas']['Model'];
7243
+ interface ModelListData {
7244
+ /** An array of models. */
7245
+ data?: ModelData[];
7246
+ [key: string]: unknown;
7247
+ }
7248
+
7249
+ interface SDKOptions {
7250
+ baseUrl: string;
7251
+ apiKey?: string;
7252
+ token?: string;
7253
+ headers?: Record<string, string>;
7254
+ fetch?: typeof fetch;
7255
+ }
7256
+ /** Methods exposed by `createSDK` (explicit shape avoids TS emit limits on the inferred return type). */
7257
+ interface DIAL_SDK {
7258
+ acceptUserConsent: (deployment_id: string, init: SDKOperationInit<operations['acceptUserConsent']>) => Promise<SDKOperationResponse<operations['acceptUserConsent']>>;
7259
+ approvePublication: (init: SDKOperationInit<operations['approvePublication']>) => Promise<SDKOperationResponse<operations['approvePublication']>>;
7260
+ callToolSet: (toolset_name: string, init: SDKOperationInit<operations['callToolSet']>) => Promise<SDKOperationResponse<operations['callToolSet']>>;
7261
+ closeSession: (init: SDKOperationInit<operations['closeSession']>) => Promise<SDKOperationResponse<operations['closeSession']>>;
7262
+ configurationDeployment: (deployment_name: string, init?: SDKOperationInit<operations['configurationDeployment']>) => Promise<SDKOperationResponse<operations['configurationDeployment']>>;
7263
+ copyResource: (init: SDKOperationInit<operations['copyResource']>) => Promise<SDKOperationResponse<operations['copyResource']>>;
7264
+ copySharedResources: (init: SDKOperationInit<operations['copySharedResources']>) => Promise<SDKOperationResponse<operations['copySharedResources']>>;
7265
+ createPublication: (init?: SDKOperationInit<operations['createPublication']>) => Promise<SDKOperationResponse<operations['createPublication']>>;
7266
+ deleteConversation: (bucket: string, conversation_path: string, init?: SDKOperationInit<operations['deleteConversation']>) => Promise<SDKOperationResponse<operations['deleteConversation']>>;
7267
+ deleteCustomApplication: (bucket: string, application_path: string, init?: SDKOperationInit<operations['deleteCustomApplication']>) => Promise<SDKOperationResponse<operations['deleteCustomApplication']>>;
7268
+ deleteFile: (bucket: string, file_path: string, init?: SDKOperationInit<operations['deleteFile']>) => Promise<SDKOperationResponse<operations['deleteFile']>>;
7269
+ deleteInvitation: (invitation_id: string, init?: SDKOperationInit<operations['deleteInvitation']>) => Promise<SDKOperationResponse<operations['deleteInvitation']>>;
7270
+ deleteNotifications: (init: SDKOperationInit<operations['deleteNotifications']>) => Promise<SDKOperationResponse<operations['deleteNotifications']>>;
7271
+ deletePrompt: (bucket: string, prompt_path: string, init?: SDKOperationInit<operations['deletePrompt']>) => Promise<SDKOperationResponse<operations['deletePrompt']>>;
7272
+ deletePublication: (init: SDKOperationInit<operations['deletePublication']>) => Promise<SDKOperationResponse<operations['deletePublication']>>;
7273
+ deleteToolSet: (bucket: string, toolset_path: string, init?: SDKOperationInit<operations['deleteToolSet']>) => Promise<SDKOperationResponse<operations['deleteToolSet']>>;
7274
+ deployApplication: (init: SDKOperationInit<operations['deployApplication']>) => Promise<SDKOperationResponse<operations['deployApplication']>>;
7275
+ discardSharedResources: (init: SDKOperationInit<operations['discardSharedResources']>) => Promise<SDKOperationResponse<operations['discardSharedResources']>>;
7276
+ downloadFile: (bucket: string, file_path: string, init?: SDKOperationInit<operations['downloadFile']>) => Promise<SDKOperationResponse<operations['downloadFile']>>;
7277
+ downloadFileFromCodeInterpreter: (init: SDKOperationInit<operations['downloadFileFromCodeInterpreter']>) => Promise<SDKOperationResponse<operations['downloadFileFromCodeInterpreter']>>;
7278
+ executeCode: (init: SDKOperationInit<operations['executeCode']>) => Promise<SDKOperationResponse<operations['executeCode']>>;
7279
+ getApplication: (application_name: string, init?: SDKOperationInit<operations['getApplication']>) => Promise<SDKOperationResponse<operations['getApplication']>>;
7280
+ getApplicationLogs: (init: SDKOperationInit<operations['getApplicationLogs']>) => Promise<SDKOperationResponse<operations['getApplicationLogs']>>;
7281
+ getApplicationMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['getApplicationMetadata']>) => Promise<SDKOperationResponse<operations['getApplicationMetadata']>>;
7282
+ getApplications: (init?: SDKOperationInit<operations['getApplications']>) => Promise<SDKOperationResponse<operations['getApplications']>>;
7283
+ getConversation: (bucket: string, conversation_path: string, init?: SDKRequestInit) => Promise<SDKResponse<Conversation>>;
7284
+ getConversationMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['getConversationMetadata']>) => Promise<SDKOperationResponse<operations['getConversationMetadata']>>;
7285
+ getCustomApplication: (bucket: string, application_path: string, init?: SDKOperationInit<operations['getCustomApplication']>) => Promise<SDKOperationResponse<operations['getCustomApplication']>>;
7286
+ getCustomApplicationSchema: (init: SDKOperationInit<operations['getCustomApplicationSchema']>) => Promise<SDKOperationResponse<operations['getCustomApplicationSchema']>>;
7287
+ getCustomToolSet: (bucket: string, toolset_path: string, init?: SDKOperationInit<operations['getCustomToolSet']>) => Promise<SDKOperationResponse<operations['getCustomToolSet']>>;
7288
+ getDeployment: (deployment_name: string, init?: SDKOperationInit<operations['getDeployment']>) => Promise<SDKOperationResponse<operations['getDeployment']>>;
7289
+ getDeploymentLimits: (deployment_name: string, init?: SDKOperationInit<operations['getDeploymentLimits']>) => Promise<SDKOperationResponse<operations['getDeploymentLimits']>>;
7290
+ getDeployments: (init?: SDKOperationInit<operations['getDeployments']>) => Promise<SDKOperationResponse<operations['getDeployments']>>;
7291
+ getFileMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['getFileMetadata']>) => Promise<SDKOperationResponse<operations['getFileMetadata']>>;
7292
+ getInvitation: (invitation_id: string, init?: SDKOperationInit<operations['getInvitation']>) => Promise<SDKOperationResponse<operations['getInvitation']>>;
7293
+ getInvitations: (init?: SDKOperationInit<operations['getInvitations']>) => Promise<SDKOperationResponse<operations['getInvitations']>>;
7294
+ getMetaSchemaOfCustomApplicationSchema: (init?: SDKOperationInit<operations['getMetaSchemaOfCustomApplicationSchema']>) => Promise<SDKOperationResponse<operations['getMetaSchemaOfCustomApplicationSchema']>>;
7295
+ getModel: (model_name: string, init?: SDKOperationInit<operations['getModel']>) => Promise<SDKOperationResponse<operations['getModel']>>;
7296
+ getModels: (init?: SDKOperationInit<operations['getModels']>) => Promise<SDKOperationResponse<operations['getModels']>>;
7297
+ getNotifications: (init?: SDKOperationInit<operations['getNotifications']>) => Promise<SDKOperationResponse<operations['getNotifications']>>;
7298
+ getPerRequestPermissions: (init: SDKOperationInit<operations['getPerRequestPermissions']>) => Promise<SDKOperationResponse<operations['getPerRequestPermissions']>>;
7299
+ getPrompt: (bucket: string, prompt_path: string, init?: SDKOperationInit<operations['getPrompt']>) => Promise<SDKOperationResponse<operations['getPrompt']>>;
7300
+ getPromptMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['getPromptMetadata']>) => Promise<SDKOperationResponse<operations['getPromptMetadata']>>;
7301
+ getPublication: (init: SDKOperationInit<operations['getPublication']>) => Promise<SDKOperationResponse<operations['getPublication']>>;
7302
+ getPublicationRules: (init: SDKOperationInit<operations['getPublicationRules']>) => Promise<SDKOperationResponse<operations['getPublicationRules']>>;
7303
+ getPublications: (init: SDKOperationInit<operations['getPublications']>) => Promise<SDKOperationResponse<operations['getPublications']>>;
7304
+ getSession: (init: SDKOperationInit<operations['getSession']>) => Promise<SDKOperationResponse<operations['getSession']>>;
7305
+ getSharedResources: (init: SDKOperationInit<operations['getSharedResources']>) => Promise<SDKOperationResponse<operations['getSharedResources']>>;
7306
+ getToolSetMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['getToolSetMetadata']>) => Promise<SDKOperationResponse<operations['getToolSetMetadata']>>;
7307
+ getToolSets: (init?: SDKOperationInit<operations['getToolSets']>) => Promise<SDKOperationResponse<operations['getToolSets']>>;
7308
+ getToolset: (toolset_name: string, init?: SDKOperationInit<operations['getToolset']>) => Promise<SDKOperationResponse<operations['getToolset']>>;
7309
+ getUserBucket: (init?: SDKOperationInit<operations['getUserBucket']>) => Promise<SDKOperationResponse<operations['getUserBucket']>>;
7310
+ getUserInfo: (init?: SDKOperationInit<operations['getUserInfo']>) => Promise<SDKOperationResponse<operations['getUserInfo']>>;
7311
+ grantPerRequestPermissions: (init: SDKOperationInit<operations['grantPerRequestPermissions']>) => Promise<SDKOperationResponse<operations['grantPerRequestPermissions']>>;
7312
+ listCustomApplicationSchemas: (init?: SDKOperationInit<operations['listCustomApplicationSchemas']>) => Promise<SDKOperationResponse<operations['listCustomApplicationSchemas']>>;
7313
+ listFilesFromCodeInterpreter: (init: SDKOperationInit<operations['listFilesFromCodeInterpreter']>) => Promise<SDKOperationResponse<operations['listFilesFromCodeInterpreter']>>;
7314
+ moveResource: (init: SDKOperationInit<operations['moveResource']>) => Promise<SDKOperationResponse<operations['moveResource']>>;
7315
+ openSession: (init: SDKOperationInit<operations['openSession']>) => Promise<SDKOperationResponse<operations['openSession']>>;
7316
+ rateDeployment: (deployment_name: string, init: SDKOperationInit<operations['rateDeployment']>) => Promise<SDKOperationResponse<operations['rateDeployment']>>;
7317
+ redeployApplication: (init: SDKOperationInit<operations['redeployApplication']>) => Promise<SDKOperationResponse<operations['redeployApplication']>>;
7318
+ rejectPublication: (init: SDKOperationInit<operations['rejectPublication']>) => Promise<SDKOperationResponse<operations['rejectPublication']>>;
7319
+ reloadConfig: (init?: SDKOperationInit<operations['reloadConfig']>) => Promise<SDKOperationResponse<operations['reloadConfig']>>;
7320
+ requestUserConsent: (deployment_id: string, init?: SDKOperationInit<operations['requestUserConsent']>) => Promise<SDKOperationResponse<operations['requestUserConsent']>>;
7321
+ revokePerRequestPermissions: (init: SDKOperationInit<operations['revokePerRequestPermissions']>) => Promise<SDKOperationResponse<operations['revokePerRequestPermissions']>>;
7322
+ revokeSharedResources: (init: SDKOperationInit<operations['revokeSharedResources']>) => Promise<SDKOperationResponse<operations['revokeSharedResources']>>;
7323
+ saveConversation: (bucket: string, conversation_path: string, init: SDKRequestInit<Conversation> & {
7324
+ body: Conversation;
7325
+ }) => Promise<SDKResponse<ConversationResource>>;
7326
+ saveCustomApplication: (bucket: string, application_path: string, init: SDKOperationInit<operations['saveCustomApplication']>) => Promise<SDKOperationResponse<operations['saveCustomApplication']>>;
7327
+ savePrompt: (bucket: string, prompt_path: string, init: SDKOperationInit<operations['savePrompt']>) => Promise<SDKOperationResponse<operations['savePrompt']>>;
7328
+ saveToolSet: (bucket: string, toolset_path: string, init: SDKOperationInit<operations['saveToolSet']>) => Promise<SDKOperationResponse<operations['saveToolSet']>>;
7329
+ sendChatCompletionRequest: (deployment_name: string, init: SDKOperationInit<operations['sendChatCompletionRequest']>) => Promise<SDKOperationResponse<operations['sendChatCompletionRequest']>>;
7330
+ sendEmbeddingsRequest: (deployment_name: string, init: SDKOperationInit<operations['sendEmbeddingsRequest']>) => Promise<SDKOperationResponse<operations['sendEmbeddingsRequest']>>;
7331
+ shareResource: (init: SDKOperationInit<operations['shareResource']>) => Promise<SDKOperationResponse<operations['shareResource']>>;
7332
+ subscribeToResources: (init: SDKOperationInit<operations['subscribeToResources']>) => Promise<SDKOperationResponse<operations['subscribeToResources']>>;
7333
+ toolSetSignout: (init: SDKOperationInit<operations['toolSetSignout']>) => Promise<SDKOperationResponse<operations['toolSetSignout']>>;
7334
+ toolsetSignin: (init: SDKOperationInit<operations['toolsetSignin']>) => Promise<SDKOperationResponse<operations['toolsetSignin']>>;
7335
+ transferInputFile: (init: SDKOperationInit<operations['transferInputFile']>) => Promise<SDKOperationResponse<operations['transferInputFile']>>;
7336
+ transferOutputFile: (init: SDKOperationInit<operations['transferOutputFile']>) => Promise<SDKOperationResponse<operations['transferOutputFile']>>;
7337
+ undeployApplication: (init: SDKOperationInit<operations['undeployApplication']>) => Promise<SDKOperationResponse<operations['undeployApplication']>>;
7338
+ updatePublication: (init?: SDKOperationInit<operations['updatePublication']>) => Promise<SDKOperationResponse<operations['updatePublication']>>;
7339
+ uploadFile: (bucket: string, file_path: string, init: SDKOperationInit<operations['uploadFile']>) => Promise<SDKOperationResponse<operations['uploadFile']>>;
7340
+ uploadFileToCodeInterpreter: (init: SDKOperationInit<operations['uploadFileToCodeInterpreter']>) => Promise<SDKOperationResponse<operations['uploadFileToCodeInterpreter']>>;
7341
+ }
7342
+ declare function createSDK(opts: SDKOptions): DIAL_SDK;
7343
+
7344
+ export { type Conversation, type ConversationMessage, type ConversationMessageSettings, type ConversationModelId, type ConversationResource, type DIAL_SDK, type DeploymentData, type ModelCapabilities, type ModelData, type ModelLimits, type ModelListData, type ModelPricing, type SDKOperationId, type SDKOperationInit, type SDKOperationResponse, type SDKOptions, type SDKRequestInit, type SDKResponse, type components, createSDK, type operations, type paths };
package/dist/index.js CHANGED
@@ -164,55 +164,127 @@ function createSDK(opts) {
164
164
  fetch: opts.fetch
165
165
  });
166
166
  return {
167
- acceptUserConsent: (deployment_id, init) => client.POST(acceptUserConsentUrl(deployment_id), init),
167
+ acceptUserConsent: (deployment_id, init) => client.POST(
168
+ acceptUserConsentUrl(deployment_id),
169
+ init
170
+ ),
168
171
  approvePublication: (init) => client.POST(approvePublicationUrl, init),
169
- callToolSet: (toolset_name, init) => client.POST(callToolSetUrl(toolset_name), init),
172
+ callToolSet: (toolset_name, init) => client.POST(
173
+ callToolSetUrl(toolset_name),
174
+ init
175
+ ),
170
176
  closeSession: (init) => client.POST(closeSessionUrl, init),
171
- configurationDeployment: (deployment_name, init) => client.GET(configurationDeploymentUrl(deployment_name), init),
177
+ configurationDeployment: (deployment_name, init) => client.GET(
178
+ configurationDeploymentUrl(deployment_name),
179
+ init
180
+ ),
172
181
  copyResource: (init) => client.POST(copyResourceUrl, init),
173
182
  copySharedResources: (init) => client.POST(copySharedResourcesUrl, init),
174
183
  createPublication: (init) => client.POST(createPublicationUrl, init),
175
- deleteConversation: (bucket, conversation_path, init) => client.DELETE(deleteConversationUrl(bucket, conversation_path), init),
176
- deleteCustomApplication: (bucket, application_path, init) => client.DELETE(deleteCustomApplicationUrl(bucket, application_path), init),
177
- deleteFile: (bucket, file_path, init) => client.DELETE(deleteFileUrl(bucket, file_path), init),
178
- deleteInvitation: (invitation_id, init) => client.DELETE(deleteInvitationUrl(invitation_id), init),
184
+ deleteConversation: (bucket, conversation_path, init) => client.DELETE(
185
+ deleteConversationUrl(bucket, conversation_path),
186
+ init
187
+ ),
188
+ deleteCustomApplication: (bucket, application_path, init) => client.DELETE(
189
+ deleteCustomApplicationUrl(bucket, application_path),
190
+ init
191
+ ),
192
+ deleteFile: (bucket, file_path, init) => client.DELETE(
193
+ deleteFileUrl(bucket, file_path),
194
+ init
195
+ ),
196
+ deleteInvitation: (invitation_id, init) => client.DELETE(
197
+ deleteInvitationUrl(invitation_id),
198
+ init
199
+ ),
179
200
  deleteNotifications: (init) => client.POST(deleteNotificationsUrl, init),
180
- deletePrompt: (bucket, prompt_path, init) => client.DELETE(deletePromptUrl(bucket, prompt_path), init),
201
+ deletePrompt: (bucket, prompt_path, init) => client.DELETE(
202
+ deletePromptUrl(bucket, prompt_path),
203
+ init
204
+ ),
181
205
  deletePublication: (init) => client.POST(deletePublicationUrl, init),
182
- deleteToolSet: (bucket, toolset_path, init) => client.DELETE(deleteToolSetUrl(bucket, toolset_path), init),
206
+ deleteToolSet: (bucket, toolset_path, init) => client.DELETE(
207
+ deleteToolSetUrl(bucket, toolset_path),
208
+ init
209
+ ),
183
210
  deployApplication: (init) => client.POST(deployApplicationUrl, init),
184
211
  discardSharedResources: (init) => client.POST(discardSharedResourcesUrl, init),
185
- downloadFile: (bucket, file_path, init) => client.GET(downloadFileUrl(bucket, file_path), init),
212
+ downloadFile: (bucket, file_path, init) => client.GET(
213
+ downloadFileUrl(bucket, file_path),
214
+ init
215
+ ),
186
216
  downloadFileFromCodeInterpreter: (init) => client.POST(downloadFileFromCodeInterpreterUrl, init),
187
217
  executeCode: (init) => client.POST(executeCodeUrl, init),
188
- getApplication: (application_name, init) => client.GET(getApplicationUrl(application_name), init),
218
+ getApplication: (application_name, init) => client.GET(
219
+ getApplicationUrl(application_name),
220
+ init
221
+ ),
189
222
  getApplicationLogs: (init) => client.POST(getApplicationLogsUrl, init),
190
- getApplicationMetadata: (bucket, path, init) => client.GET(getApplicationMetadataUrl(bucket, path), init),
223
+ getApplicationMetadata: (bucket, path, init) => client.GET(
224
+ getApplicationMetadataUrl(bucket, path),
225
+ init
226
+ ),
191
227
  getApplications: (init) => client.GET(getApplicationsUrl, init),
192
- getConversation: (bucket, conversation_path, init) => client.GET(getConversationUrl(bucket, conversation_path), init),
193
- getConversationMetadata: (bucket, path, init) => client.GET(getConversationMetadataUrl(bucket, path), init),
194
- getCustomApplication: (bucket, application_path, init) => client.GET(getCustomApplicationUrl(bucket, application_path), init),
228
+ getConversation: (bucket, conversation_path, init) => client.GET(
229
+ getConversationUrl(bucket, conversation_path),
230
+ init
231
+ ),
232
+ getConversationMetadata: (bucket, path, init) => client.GET(
233
+ getConversationMetadataUrl(bucket, path),
234
+ init
235
+ ),
236
+ getCustomApplication: (bucket, application_path, init) => client.GET(
237
+ getCustomApplicationUrl(bucket, application_path),
238
+ init
239
+ ),
195
240
  getCustomApplicationSchema: (init) => client.GET(getCustomApplicationSchemaUrl, init),
196
- getCustomToolSet: (bucket, toolset_path, init) => client.GET(getCustomToolSetUrl(bucket, toolset_path), init),
197
- getDeployment: (deployment_name, init) => client.GET(getDeploymentUrl(deployment_name), init),
198
- getDeploymentLimits: (deployment_name, init) => client.GET(getDeploymentLimitsUrl(deployment_name), init),
241
+ getCustomToolSet: (bucket, toolset_path, init) => client.GET(
242
+ getCustomToolSetUrl(bucket, toolset_path),
243
+ init
244
+ ),
245
+ getDeployment: (deployment_name, init) => client.GET(
246
+ getDeploymentUrl(deployment_name),
247
+ init
248
+ ),
249
+ getDeploymentLimits: (deployment_name, init) => client.GET(
250
+ getDeploymentLimitsUrl(deployment_name),
251
+ init
252
+ ),
199
253
  getDeployments: (init) => client.GET(getDeploymentsUrl, init),
200
- getFileMetadata: (bucket, path, init) => client.GET(getFileMetadataUrl(bucket, path), init),
201
- getInvitation: (invitation_id, init) => client.GET(getInvitationUrl(invitation_id), init),
254
+ getFileMetadata: (bucket, path, init) => client.GET(
255
+ getFileMetadataUrl(bucket, path),
256
+ init
257
+ ),
258
+ getInvitation: (invitation_id, init) => client.GET(
259
+ getInvitationUrl(invitation_id),
260
+ init
261
+ ),
202
262
  getInvitations: (init) => client.GET(getInvitationsUrl, init),
203
- getMetaSchemaOfCustomApplicationSchema: (init) => client.GET(getMetaSchemaOfCustomApplicationSchemaUrl, init),
263
+ getMetaSchemaOfCustomApplicationSchema: (init) => client.GET(
264
+ getMetaSchemaOfCustomApplicationSchemaUrl,
265
+ init
266
+ ),
204
267
  getModel: (model_name, init) => client.GET(getModelUrl(model_name), init),
205
268
  getModels: (init) => client.GET(getModelsUrl, init),
206
269
  getNotifications: (init) => client.POST(getNotificationsUrl, init),
207
270
  getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
208
- getPrompt: (bucket, prompt_path, init) => client.GET(getPromptUrl(bucket, prompt_path), init),
209
- getPromptMetadata: (bucket, path, init) => client.GET(getPromptMetadataUrl(bucket, path), init),
271
+ getPrompt: (bucket, prompt_path, init) => client.GET(
272
+ getPromptUrl(bucket, prompt_path),
273
+ init
274
+ ),
275
+ getPromptMetadata: (bucket, path, init) => client.GET(
276
+ getPromptMetadataUrl(bucket, path),
277
+ init
278
+ ),
210
279
  getPublication: (init) => client.POST(getPublicationUrl, init),
211
280
  getPublicationRules: (init) => client.POST(getPublicationRulesUrl, init),
212
281
  getPublications: (init) => client.POST(getPublicationsUrl, init),
213
282
  getSession: (init) => client.POST(getSessionUrl, init),
214
283
  getSharedResources: (init) => client.POST(getSharedResourcesUrl, init),
215
- getToolSetMetadata: (bucket, path, init) => client.GET(getToolSetMetadataUrl(bucket, path), init),
284
+ getToolSetMetadata: (bucket, path, init) => client.GET(
285
+ getToolSetMetadataUrl(bucket, path),
286
+ init
287
+ ),
216
288
  getToolSets: (init) => client.GET(getToolSetsUrl, init),
217
289
  getToolset: (toolset_name, init) => client.GET(getToolsetUrl(toolset_name), init),
218
290
  getUserBucket: (init) => client.GET(getUserBucketUrl, init),
@@ -222,19 +294,43 @@ function createSDK(opts) {
222
294
  listFilesFromCodeInterpreter: (init) => client.POST(listFilesFromCodeInterpreterUrl, init),
223
295
  moveResource: (init) => client.POST(moveResourceUrl, init),
224
296
  openSession: (init) => client.POST(openSessionUrl, init),
225
- rateDeployment: (deployment_name, init) => client.POST(rateDeploymentUrl(deployment_name), init),
297
+ rateDeployment: (deployment_name, init) => client.POST(
298
+ rateDeploymentUrl(deployment_name),
299
+ init
300
+ ),
226
301
  redeployApplication: (init) => client.POST(redeployApplicationUrl, init),
227
302
  rejectPublication: (init) => client.POST(rejectPublicationUrl, init),
228
303
  reloadConfig: (init) => client.POST(reloadConfigUrl, init),
229
- requestUserConsent: (deployment_id, init) => client.GET(requestUserConsentUrl(deployment_id), init),
304
+ requestUserConsent: (deployment_id, init) => client.GET(
305
+ requestUserConsentUrl(deployment_id),
306
+ init
307
+ ),
230
308
  revokePerRequestPermissions: (init) => client.POST(revokePerRequestPermissionsUrl, init),
231
309
  revokeSharedResources: (init) => client.POST(revokeSharedResourcesUrl, init),
232
- saveConversation: (bucket, conversation_path, init) => client.PUT(saveConversationUrl(bucket, conversation_path), init),
233
- saveCustomApplication: (bucket, application_path, init) => client.PUT(saveCustomApplicationUrl(bucket, application_path), init),
234
- savePrompt: (bucket, prompt_path, init) => client.PUT(savePromptUrl(bucket, prompt_path), init),
235
- saveToolSet: (bucket, toolset_path, init) => client.PUT(saveToolSetUrl(bucket, toolset_path), init),
236
- sendChatCompletionRequest: (deployment_name, init) => client.POST(sendChatCompletionRequestUrl(deployment_name), init),
237
- sendEmbeddingsRequest: (deployment_name, init) => client.POST(sendEmbeddingsRequestUrl(deployment_name), init),
310
+ saveConversation: (bucket, conversation_path, init) => client.PUT(
311
+ saveConversationUrl(bucket, conversation_path),
312
+ init
313
+ ),
314
+ saveCustomApplication: (bucket, application_path, init) => client.PUT(
315
+ saveCustomApplicationUrl(bucket, application_path),
316
+ init
317
+ ),
318
+ savePrompt: (bucket, prompt_path, init) => client.PUT(
319
+ savePromptUrl(bucket, prompt_path),
320
+ init
321
+ ),
322
+ saveToolSet: (bucket, toolset_path, init) => client.PUT(
323
+ saveToolSetUrl(bucket, toolset_path),
324
+ init
325
+ ),
326
+ sendChatCompletionRequest: (deployment_name, init) => client.POST(
327
+ sendChatCompletionRequestUrl(deployment_name),
328
+ init
329
+ ),
330
+ sendEmbeddingsRequest: (deployment_name, init) => client.POST(
331
+ sendEmbeddingsRequestUrl(deployment_name),
332
+ init
333
+ ),
238
334
  shareResource: (init) => client.POST(shareResourceUrl, init),
239
335
  subscribeToResources: (init) => client.POST(subscribeToResourcesUrl, init),
240
336
  toolSetSignout: (init) => client.POST(toolSetSignoutUrl, init),
@@ -243,7 +339,10 @@ function createSDK(opts) {
243
339
  transferOutputFile: (init) => client.POST(transferOutputFileUrl, init),
244
340
  undeployApplication: (init) => client.POST(undeployApplicationUrl, init),
245
341
  updatePublication: (init) => client.POST(updatePublicationUrl, init),
246
- uploadFile: (bucket, file_path, init) => client.PUT(uploadFileUrl(bucket, file_path), init),
342
+ uploadFile: (bucket, file_path, init) => client.PUT(
343
+ uploadFileUrl(bucket, file_path),
344
+ init
345
+ ),
247
346
  uploadFileToCodeInterpreter: (init) => client.POST(uploadFileToCodeInterpreterUrl, init)
248
347
  };
249
348
  }