@epam/ai-dial-typescript-sdk 0.1.0-dev.3 → 0.1.0-dev.5

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,108 +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<{
62
- data?: {
63
- bucket: string;
64
- appdata?: string;
65
- };
66
- error?: unknown;
67
- }>;
68
- getUserInfo: (init?: any) => Promise<unknown>;
69
- grantPerRequestPermissions: (init?: any) => Promise<unknown>;
70
- listCustomApplicationSchemas: (init?: any) => Promise<unknown>;
71
- listFilesFromCodeInterpreter: (init?: any) => Promise<unknown>;
72
- moveResource: (init?: any) => Promise<unknown>;
73
- openSession: (init?: any) => Promise<unknown>;
74
- rateDeployment: (deployment_name: string, init?: any) => Promise<unknown>;
75
- redeployApplication: (init?: any) => Promise<unknown>;
76
- rejectPublication: (init?: any) => Promise<unknown>;
77
- reloadConfig: (init?: any) => Promise<unknown>;
78
- requestUserConsent: (deployment_id: string, init?: any) => Promise<unknown>;
79
- revokePerRequestPermissions: (init?: any) => Promise<unknown>;
80
- revokeSharedResources: (init?: any) => Promise<unknown>;
81
- saveConversation: (bucket: string, conversation_path: string, init?: any) => Promise<{
82
- data?: unknown;
83
- error?: unknown;
84
- }>;
85
- saveCustomApplication: (bucket: string, application_path: string, init?: any) => Promise<{
86
- data?: unknown;
87
- error?: unknown;
88
- }>;
89
- savePrompt: (bucket: string, prompt_path: string, init?: any) => Promise<unknown>;
90
- saveToolSet: (bucket: string, toolset_path: string, init?: any) => Promise<unknown>;
91
- sendChatCompletionRequest: (deployment_name: string, init?: any) => Promise<unknown>;
92
- sendEmbeddingsRequest: (deployment_name: string, init?: any) => Promise<unknown>;
93
- shareResource: (init?: any) => Promise<unknown>;
94
- subscribeToResources: (init?: any) => Promise<unknown>;
95
- toolSetSignout: (init?: any) => Promise<unknown>;
96
- toolsetSignin: (init?: any) => Promise<unknown>;
97
- transferInputFile: (init?: any) => Promise<unknown>;
98
- transferOutputFile: (init?: any) => Promise<unknown>;
99
- undeployApplication: (init?: any) => Promise<unknown>;
100
- updatePublication: (init?: any) => Promise<unknown>;
101
- uploadFile: (bucket: string, file_path: string, init?: any) => Promise<unknown>;
102
- uploadFileToCodeInterpreter: (init?: any) => Promise<unknown>;
103
- }
104
- declare function createSDK(opts: SDKOptions): DIAL_SDK;
105
-
106
1
  /**
107
2
  * This file was auto-generated by openapi-typescript.
108
3
  * Do not make direct changes to the file.
@@ -7226,4 +7121,224 @@ interface operations {
7226
7121
  };
7227
7122
  }
7228
7123
 
7229
- 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,9 +164,15 @@ 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
177
  configurationDeployment: (deployment_name, init) => client.GET(
172
178
  configurationDeploymentUrl(deployment_name),
@@ -183,10 +189,19 @@ function createSDK(opts) {
183
189
  deleteCustomApplicationUrl(bucket, application_path),
184
190
  init
185
191
  ),
186
- deleteFile: (bucket, file_path, init) => client.DELETE(deleteFileUrl(bucket, file_path), init),
187
- deleteInvitation: (invitation_id, init) => client.DELETE(deleteInvitationUrl(invitation_id), init),
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
+ ),
188
200
  deleteNotifications: (init) => client.POST(deleteNotificationsUrl, init),
189
- 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
+ ),
190
205
  deletePublication: (init) => client.POST(deletePublicationUrl, init),
191
206
  deleteToolSet: (bucket, toolset_path, init) => client.DELETE(
192
207
  deleteToolSetUrl(bucket, toolset_path),
@@ -194,12 +209,21 @@ function createSDK(opts) {
194
209
  ),
195
210
  deployApplication: (init) => client.POST(deployApplicationUrl, init),
196
211
  discardSharedResources: (init) => client.POST(discardSharedResourcesUrl, init),
197
- 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
+ ),
198
216
  downloadFileFromCodeInterpreter: (init) => client.POST(downloadFileFromCodeInterpreterUrl, init),
199
217
  executeCode: (init) => client.POST(executeCodeUrl, init),
200
- getApplication: (application_name, init) => client.GET(getApplicationUrl(application_name), init),
218
+ getApplication: (application_name, init) => client.GET(
219
+ getApplicationUrl(application_name),
220
+ init
221
+ ),
201
222
  getApplicationLogs: (init) => client.POST(getApplicationLogsUrl, init),
202
- getApplicationMetadata: (bucket, path, init) => client.GET(getApplicationMetadataUrl(bucket, path), init),
223
+ getApplicationMetadata: (bucket, path, init) => client.GET(
224
+ getApplicationMetadataUrl(bucket, path),
225
+ init
226
+ ),
203
227
  getApplications: (init) => client.GET(getApplicationsUrl, init),
204
228
  getConversation: (bucket, conversation_path, init) => client.GET(
205
229
  getConversationUrl(bucket, conversation_path),
@@ -218,25 +242,49 @@ function createSDK(opts) {
218
242
  getCustomToolSetUrl(bucket, toolset_path),
219
243
  init
220
244
  ),
221
- getDeployment: (deployment_name, init) => client.GET(getDeploymentUrl(deployment_name), init),
222
- getDeploymentLimits: (deployment_name, init) => client.GET(getDeploymentLimitsUrl(deployment_name), init),
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
+ ),
223
253
  getDeployments: (init) => client.GET(getDeploymentsUrl, init),
224
- getFileMetadata: (bucket, path, init) => client.GET(getFileMetadataUrl(bucket, path), init),
225
- 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
+ ),
226
262
  getInvitations: (init) => client.GET(getInvitationsUrl, init),
227
- getMetaSchemaOfCustomApplicationSchema: (init) => client.GET(getMetaSchemaOfCustomApplicationSchemaUrl, init),
263
+ getMetaSchemaOfCustomApplicationSchema: (init) => client.GET(
264
+ getMetaSchemaOfCustomApplicationSchemaUrl,
265
+ init
266
+ ),
228
267
  getModel: (model_name, init) => client.GET(getModelUrl(model_name), init),
229
268
  getModels: (init) => client.GET(getModelsUrl, init),
230
269
  getNotifications: (init) => client.POST(getNotificationsUrl, init),
231
270
  getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
232
- getPrompt: (bucket, prompt_path, init) => client.GET(getPromptUrl(bucket, prompt_path), init),
233
- 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
+ ),
234
279
  getPublication: (init) => client.POST(getPublicationUrl, init),
235
280
  getPublicationRules: (init) => client.POST(getPublicationRulesUrl, init),
236
281
  getPublications: (init) => client.POST(getPublicationsUrl, init),
237
282
  getSession: (init) => client.POST(getSessionUrl, init),
238
283
  getSharedResources: (init) => client.POST(getSharedResourcesUrl, init),
239
- getToolSetMetadata: (bucket, path, init) => client.GET(getToolSetMetadataUrl(bucket, path), init),
284
+ getToolSetMetadata: (bucket, path, init) => client.GET(
285
+ getToolSetMetadataUrl(bucket, path),
286
+ init
287
+ ),
240
288
  getToolSets: (init) => client.GET(getToolSetsUrl, init),
241
289
  getToolset: (toolset_name, init) => client.GET(getToolsetUrl(toolset_name), init),
242
290
  getUserBucket: (init) => client.GET(getUserBucketUrl, init),
@@ -246,11 +294,17 @@ function createSDK(opts) {
246
294
  listFilesFromCodeInterpreter: (init) => client.POST(listFilesFromCodeInterpreterUrl, init),
247
295
  moveResource: (init) => client.POST(moveResourceUrl, init),
248
296
  openSession: (init) => client.POST(openSessionUrl, init),
249
- rateDeployment: (deployment_name, init) => client.POST(rateDeploymentUrl(deployment_name), init),
297
+ rateDeployment: (deployment_name, init) => client.POST(
298
+ rateDeploymentUrl(deployment_name),
299
+ init
300
+ ),
250
301
  redeployApplication: (init) => client.POST(redeployApplicationUrl, init),
251
302
  rejectPublication: (init) => client.POST(rejectPublicationUrl, init),
252
303
  reloadConfig: (init) => client.POST(reloadConfigUrl, init),
253
- requestUserConsent: (deployment_id, init) => client.GET(requestUserConsentUrl(deployment_id), init),
304
+ requestUserConsent: (deployment_id, init) => client.GET(
305
+ requestUserConsentUrl(deployment_id),
306
+ init
307
+ ),
254
308
  revokePerRequestPermissions: (init) => client.POST(revokePerRequestPermissionsUrl, init),
255
309
  revokeSharedResources: (init) => client.POST(revokeSharedResourcesUrl, init),
256
310
  saveConversation: (bucket, conversation_path, init) => client.PUT(
@@ -261,8 +315,14 @@ function createSDK(opts) {
261
315
  saveCustomApplicationUrl(bucket, application_path),
262
316
  init
263
317
  ),
264
- savePrompt: (bucket, prompt_path, init) => client.PUT(savePromptUrl(bucket, prompt_path), init),
265
- saveToolSet: (bucket, toolset_path, init) => client.PUT(saveToolSetUrl(bucket, toolset_path), init),
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
+ ),
266
326
  sendChatCompletionRequest: (deployment_name, init) => client.POST(
267
327
  sendChatCompletionRequestUrl(deployment_name),
268
328
  init
@@ -279,7 +339,10 @@ function createSDK(opts) {
279
339
  transferOutputFile: (init) => client.POST(transferOutputFileUrl, init),
280
340
  undeployApplication: (init) => client.POST(undeployApplicationUrl, init),
281
341
  updatePublication: (init) => client.POST(updatePublicationUrl, init),
282
- 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
+ ),
283
346
  uploadFileToCodeInterpreter: (init) => client.POST(uploadFileToCodeInterpreterUrl, init)
284
347
  };
285
348
  }