@epam/ai-dial-typescript-sdk 0.2.0-dev.1 → 0.2.0-dev.3

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
@@ -37,6 +37,40 @@ interface paths {
37
37
  patch?: never;
38
38
  trace?: never;
39
39
  };
40
+ '/anthropic/v1/models': {
41
+ parameters: {
42
+ query?: never;
43
+ header?: never;
44
+ path?: never;
45
+ cookie?: never;
46
+ };
47
+ /** /anthropic/v1/models */
48
+ get: operations['getAnthropicModels'];
49
+ put?: never;
50
+ post?: never;
51
+ delete?: never;
52
+ options?: never;
53
+ head?: never;
54
+ patch?: never;
55
+ trace?: never;
56
+ };
57
+ '/anthropic/v1/models/{model_name}': {
58
+ parameters: {
59
+ query?: never;
60
+ header?: never;
61
+ path?: never;
62
+ cookie?: never;
63
+ };
64
+ /** /anthropic/v1/models/{model_name} */
65
+ get: operations['getAnthropicModel'];
66
+ put?: never;
67
+ post?: never;
68
+ delete?: never;
69
+ options?: never;
70
+ head?: never;
71
+ patch?: never;
72
+ trace?: never;
73
+ };
40
74
  '/openai/applications': {
41
75
  parameters: {
42
76
  query?: never;
@@ -454,6 +488,23 @@ interface paths {
454
488
  patch?: never;
455
489
  trace?: never;
456
490
  };
491
+ '/v1/admin/config/file/migrate': {
492
+ parameters: {
493
+ query?: never;
494
+ header?: never;
495
+ path?: never;
496
+ cookie?: never;
497
+ };
498
+ get?: never;
499
+ put?: never;
500
+ /** /v1/admin/config/file/migrate */
501
+ post: operations['migrateFileConfig'];
502
+ delete?: never;
503
+ options?: never;
504
+ head?: never;
505
+ patch?: never;
506
+ trace?: never;
507
+ };
457
508
  '/v1/admin/config/file/models': {
458
509
  parameters: {
459
510
  query?: never;
@@ -2953,6 +3004,20 @@ interface components {
2953
3004
  AllowedToolsResponse: {
2954
3005
  tools: components['schemas']['McpTool'][];
2955
3006
  };
3007
+ AnthropicModelData: {
3008
+ created_at?: string;
3009
+ display_name?: string;
3010
+ id?: string;
3011
+ type?: string;
3012
+ max_input_tokens?: number;
3013
+ max_tokens?: number;
3014
+ };
3015
+ AnthropicModelListData: {
3016
+ data?: components['schemas']['AnthropicModelData'][];
3017
+ first_id?: string;
3018
+ has_more?: boolean;
3019
+ last_id?: string;
3020
+ };
2956
3021
  Application: {
2957
3022
  application_properties?: components['schemas']['MapStringObject'];
2958
3023
  /** Format: uri */
@@ -2994,6 +3059,8 @@ interface components {
2994
3059
  /** Format: uri */
2995
3060
  catalogSchemaId?: string;
2996
3061
  overrideName?: string;
3062
+ defaultHeaders?: components['schemas']['MapStringString'];
3063
+ baseUrl?: string;
2997
3064
  };
2998
3065
  ApplicationData: {
2999
3066
  application?: string;
@@ -3652,6 +3719,11 @@ interface components {
3652
3719
  sessionId?: string;
3653
3720
  };
3654
3721
  CollectionMetadataBase: components['schemas']['MetadataBase'][];
3722
+ Condition: {
3723
+ field?: string;
3724
+ operator?: components['schemas']['Operator'];
3725
+ value?: unknown;
3726
+ };
3655
3727
  Config: {
3656
3728
  applicationTypeSchemas?: components['schemas']['MapStringString'];
3657
3729
  applications?: components['schemas']['MapStringApplication'];
@@ -3665,7 +3737,22 @@ interface components {
3665
3737
  toolsets?: components['schemas']['MapStringToolSet'];
3666
3738
  catalogSchemas?: components['schemas']['MapStringString'];
3667
3739
  defaultLocale?: string;
3740
+ translators?: components['schemas']['MapStringTranslator'];
3741
+ };
3742
+ ConfigFileMigrateRequest: {
3743
+ dryRun?: boolean;
3744
+ types?: string[];
3745
+ };
3746
+ ConfigFileMigrateResponse: {
3747
+ results?: components['schemas']['ConfigFileMigrateResult'][];
3748
+ };
3749
+ ConfigFileMigrateResult: {
3750
+ id?: string;
3751
+ reason?: string;
3752
+ status?: components['schemas']['ConfigFileMigrateStatus'];
3668
3753
  };
3754
+ /** @enum {string} */
3755
+ ConfigFileMigrateStatus: 'migrated' | 'would_migrate' | 'skipped' | 'would_skip' | 'failed' | 'would_fail';
3669
3756
  ConfigResourceControllerConfigWriteResponse: {
3670
3757
  name?: string;
3671
3758
  };
@@ -3809,6 +3896,10 @@ interface components {
3809
3896
  DeploymentData: components['schemas']['ModelData'] | components['schemas']['ApplicationData'] | components['schemas']['ToolSetData'];
3810
3897
  DeploymentInterface: {
3811
3898
  base_url?: string;
3899
+ defaultHeaders?: components['schemas']['MapStringString'];
3900
+ mode?: components['schemas']['InterfaceMode'];
3901
+ translator?: components['schemas']['TranslatorRef'];
3902
+ defaults?: components['schemas']['MapStringObject'];
3812
3903
  };
3813
3904
  EmbeddingResponse: {
3814
3905
  /** @description Object type. Always is `list`. */
@@ -4059,7 +4150,13 @@ interface components {
4059
4150
  /** Format: uri */
4060
4151
  catalogSchemaId?: string;
4061
4152
  overrideName?: string;
4153
+ defaultHeaders?: components['schemas']['MapStringString'];
4154
+ baseUrl?: string;
4062
4155
  };
4156
+ /** @enum {string} */
4157
+ InterfaceMode: 'PASSTHROUGH' | 'TRANSLATOR';
4158
+ /** @enum {string} */
4159
+ InterfaceType: 'OPENAI_CHAT_COMPLETIONS' | 'OPENAI_EMBEDDINGS' | 'OPENAI_RESPONSES' | 'ANTHROPIC_MESSAGES';
4063
4160
  Invitation: {
4064
4161
  acceptedUserLocations?: string[];
4065
4162
  author?: string;
@@ -4205,6 +4302,12 @@ interface components {
4205
4302
  MapStringToolSet: {
4206
4303
  [key: string]: components['schemas']['ToolSet'];
4207
4304
  };
4305
+ MapStringTranslator: {
4306
+ [key: string]: components['schemas']['Translator'];
4307
+ };
4308
+ MapStringUpstreamInterface: {
4309
+ [key: string]: components['schemas']['UpstreamInterface'];
4310
+ };
4208
4311
  McpMcpApps: {
4209
4312
  domainOverride?: string;
4210
4313
  };
@@ -4262,6 +4365,8 @@ interface components {
4262
4365
  catalogProperties?: components['schemas']['MapStringObject'];
4263
4366
  /** Format: uri */
4264
4367
  catalogSchemaId?: string;
4368
+ defaultHeaders?: components['schemas']['MapStringString'];
4369
+ baseUrl?: string;
4265
4370
  };
4266
4371
  ModelData: {
4267
4372
  application?: string;
@@ -4342,6 +4447,8 @@ interface components {
4342
4447
  redirect_uri?: string;
4343
4448
  scopes?: string[];
4344
4449
  };
4450
+ /** @enum {string} */
4451
+ Operator: 'EQ' | 'NE' | 'GT' | 'LT' | 'GE' | 'LE';
4345
4452
  /**
4346
4453
  * @description Whether to enable parallel `function` calling during the `tool` use.
4347
4454
  * @default true
@@ -4359,15 +4466,21 @@ interface components {
4359
4466
  completion?: string;
4360
4467
  prompt?: string;
4361
4468
  unit?: string;
4362
- cacheRead?: string;
4363
- cacheWrite?: string;
4469
+ cacheRead?: components['schemas']['PricingRate'];
4470
+ cacheWrite?: components['schemas']['PricingRate'];
4364
4471
  };
4365
4472
  PricingData: {
4366
4473
  completion?: string;
4367
4474
  prompt?: string;
4368
4475
  unit?: string;
4369
- cache_read?: string;
4370
- cache_write?: string;
4476
+ cache_read?: components['schemas']['PricingRate'];
4477
+ cache_write?: components['schemas']['PricingRate'];
4478
+ };
4479
+ PricingRate: {
4480
+ ifFalse?: components['schemas']['PricingRate'];
4481
+ ifTrue?: components['schemas']['PricingRate'];
4482
+ rate?: string;
4483
+ test?: components['schemas']['Condition'];
4371
4484
  };
4372
4485
  Prompt: {
4373
4486
  content?: string;
@@ -4458,6 +4571,7 @@ interface components {
4458
4571
  token_endpoint_auth_method?: string;
4459
4572
  user_level_auth_status?: components['schemas']['ResourceAuthStatus'];
4460
4573
  dynamically_registered?: boolean;
4574
+ readonly client_secret_hint?: string;
4461
4575
  };
4462
4576
  ResourceAuthSettingsData: {
4463
4577
  api_key_header?: string;
@@ -4481,6 +4595,7 @@ interface components {
4481
4595
  senderPodId?: string;
4482
4596
  timestamp?: number;
4483
4597
  url?: string;
4598
+ metadata?: components['schemas']['MapStringString'];
4484
4599
  };
4485
4600
  /** @enum {string} */
4486
4601
  ResourceEventAction: 'CREATE' | 'UPDATE' | 'DELETE';
@@ -4778,6 +4893,8 @@ interface components {
4778
4893
  /** Format: uri */
4779
4894
  catalogSchemaId?: string;
4780
4895
  overrideName?: string;
4896
+ defaultHeaders?: components['schemas']['MapStringString'];
4897
+ baseUrl?: string;
4781
4898
  };
4782
4899
  ToolSetData: {
4783
4900
  allowed_tools?: string[];
@@ -4828,6 +4945,16 @@ interface components {
4828
4945
  };
4829
4946
  /** @enum {string} */
4830
4947
  ToolSetTransport: 'HTTP' | 'SSE';
4948
+ Translator: {
4949
+ baseUrl?: string;
4950
+ in?: components['schemas']['InterfaceType'];
4951
+ out?: components['schemas']['InterfaceType'];
4952
+ };
4953
+ TranslatorRef: {
4954
+ definition?: components['schemas']['Translator'];
4955
+ name?: string;
4956
+ inline?: components['schemas']['Translator'];
4957
+ };
4831
4958
  TruncatePromptError: {
4832
4959
  /**
4833
4960
  * @description discriminator enum property added by openapi-typescript
@@ -4859,6 +4986,14 @@ interface components {
4859
4986
  secretExtraData?: string;
4860
4987
  tier?: number;
4861
4988
  weight?: number;
4989
+ baseUrl?: string;
4990
+ interfaces?: components['schemas']['MapStringUpstreamInterface'];
4991
+ };
4992
+ UpstreamInterface: {
4993
+ endpoint?: string;
4994
+ extraData?: string;
4995
+ key?: string;
4996
+ secretExtraData?: string;
4862
4997
  };
4863
4998
  UserInfoResponse: {
4864
4999
  /** @description List of user or API key authorization roles */
@@ -4871,6 +5006,8 @@ interface components {
4871
5006
  userClaims?: {
4872
5007
  [key: string]: string[];
4873
5008
  };
5009
+ /** @description Human-readable caller name. For user-based session authentication it is resolved from the identity provider's configured userDisplayName claim path; for API key authentication it is the key's project name. Absent when not configured. */
5010
+ userDisplayName?: string;
4874
5011
  };
4875
5012
  UserLimitStats: {
4876
5013
  dayCostStats?: components['schemas']['CostItemLimitStats'];
@@ -5108,6 +5245,89 @@ interface operations {
5108
5245
  };
5109
5246
  };
5110
5247
  };
5248
+ getAnthropicModels: {
5249
+ parameters: {
5250
+ query?: {
5251
+ /** @description ID of the model to use as a cursor; returns the page immediately after it. */
5252
+ after_id?: string;
5253
+ /** @description ID of the model to use as a cursor; returns the page immediately before it. */
5254
+ before_id?: string;
5255
+ /** @description Number of items to return per page. Defaults to 20. Ranges from 1 to 1000. */
5256
+ limit?: number;
5257
+ };
5258
+ header?: {
5259
+ /** @description Optional beta feature opt-in header(s); DIAL accepts and ignores it for this endpoint. */
5260
+ 'anthropic-beta'?: string;
5261
+ };
5262
+ path?: never;
5263
+ cookie?: never;
5264
+ };
5265
+ requestBody?: never;
5266
+ responses: {
5267
+ /** @description Success */
5268
+ 200: {
5269
+ headers: {
5270
+ [name: string]: unknown;
5271
+ };
5272
+ content: {
5273
+ 'application/json': components['schemas']['AnthropicModelListData'];
5274
+ };
5275
+ };
5276
+ /** @description Bad request */
5277
+ 400: {
5278
+ headers: {
5279
+ [name: string]: unknown;
5280
+ };
5281
+ content: {
5282
+ 'application/json': components['schemas']['ErrorData'];
5283
+ };
5284
+ };
5285
+ };
5286
+ };
5287
+ getAnthropicModel: {
5288
+ parameters: {
5289
+ query?: never;
5290
+ header?: {
5291
+ /** @description Optional beta feature opt-in header(s); DIAL accepts and ignores it for this endpoint. */
5292
+ 'anthropic-beta'?: string;
5293
+ };
5294
+ path: {
5295
+ /** @description The name of the model. */
5296
+ model_name: string;
5297
+ };
5298
+ cookie?: never;
5299
+ };
5300
+ requestBody?: never;
5301
+ responses: {
5302
+ /** @description Success */
5303
+ 200: {
5304
+ headers: {
5305
+ [name: string]: unknown;
5306
+ };
5307
+ content: {
5308
+ 'application/json': components['schemas']['AnthropicModelData'];
5309
+ };
5310
+ };
5311
+ /** @description Forbidden */
5312
+ 403: {
5313
+ headers: {
5314
+ [name: string]: unknown;
5315
+ };
5316
+ content: {
5317
+ 'application/json': components['schemas']['ErrorData'];
5318
+ };
5319
+ };
5320
+ /** @description Not found */
5321
+ 404: {
5322
+ headers: {
5323
+ [name: string]: unknown;
5324
+ };
5325
+ content: {
5326
+ 'application/json': components['schemas']['ErrorData'];
5327
+ };
5328
+ };
5329
+ };
5330
+ };
5111
5331
  getApplications: {
5112
5332
  parameters: {
5113
5333
  query?: never;
@@ -6805,6 +7025,57 @@ interface operations {
6805
7025
  };
6806
7026
  };
6807
7027
  };
7028
+ migrateFileConfig: {
7029
+ parameters: {
7030
+ query?: never;
7031
+ header?: never;
7032
+ path?: never;
7033
+ cookie?: never;
7034
+ };
7035
+ requestBody: {
7036
+ content: {
7037
+ 'application/json': components['schemas']['ConfigFileMigrateRequest'];
7038
+ };
7039
+ };
7040
+ responses: {
7041
+ /** @description Migration report */
7042
+ 200: {
7043
+ headers: {
7044
+ [name: string]: unknown;
7045
+ };
7046
+ content: {
7047
+ 'application/json': components['schemas']['ConfigFileMigrateResponse'];
7048
+ };
7049
+ };
7050
+ /** @description Bad request */
7051
+ 400: {
7052
+ headers: {
7053
+ [name: string]: unknown;
7054
+ };
7055
+ content: {
7056
+ 'application/json': components['schemas']['ErrorData'];
7057
+ };
7058
+ };
7059
+ /** @description Forbidden */
7060
+ 403: {
7061
+ headers: {
7062
+ [name: string]: unknown;
7063
+ };
7064
+ content: {
7065
+ 'application/json': components['schemas']['ErrorData'];
7066
+ };
7067
+ };
7068
+ /** @description The server had an error while processing your request. */
7069
+ 500: {
7070
+ headers: {
7071
+ [name: string]: unknown;
7072
+ };
7073
+ content: {
7074
+ 'application/json': components['schemas']['ErrorData'];
7075
+ };
7076
+ };
7077
+ };
7078
+ };
6808
7079
  listFileConfigModels: {
6809
7080
  parameters: {
6810
7081
  query?: never;
@@ -19690,6 +19961,8 @@ interface DIAL_SDK {
19690
19961
  externalServiceGetOboCredentials: (init: SDKOperationInit<operations['externalServiceGetOboCredentials']>) => Promise<SDKOperationResponse<operations['externalServiceGetOboCredentials']>>;
19691
19962
  externalServiceSignIn: (init: SDKOperationInit<operations['externalServiceSignIn']>) => Promise<SDKOperationResponse<operations['externalServiceSignIn']>>;
19692
19963
  externalServiceSignOut: (init: SDKOperationInit<operations['externalServiceSignOut']>) => Promise<SDKOperationResponse<operations['externalServiceSignOut']>>;
19964
+ getAnthropicModel: (model_name: string, init?: SDKOperationInit<operations['getAnthropicModel']>) => Promise<SDKOperationResponse<operations['getAnthropicModel']>>;
19965
+ getAnthropicModels: (init?: SDKOperationInit<operations['getAnthropicModels']>) => Promise<SDKOperationResponse<operations['getAnthropicModels']>>;
19693
19966
  getApplication: (application_name: string, init?: SDKOperationInit<operations['getApplication']>) => Promise<SDKOperationResponse<operations['getApplication']>>;
19694
19967
  getApplicationLogs: (init: SDKOperationInit<operations['getApplicationLogs']>) => Promise<SDKOperationResponse<operations['getApplicationLogs']>>;
19695
19968
  getApplicationMcpResources: (deployment_name: string, init: SDKOperationInit<operations['getApplicationMcpResources']>) => Promise<SDKOperationResponse<operations['getApplicationMcpResources']>>;
@@ -19785,6 +20058,7 @@ interface DIAL_SDK {
19785
20058
  listPublishedResources: (init: SDKOperationInit<operations['listPublishedResources']>) => Promise<SDKOperationResponse<operations['listPublishedResources']>>;
19786
20059
  listSkillFileMetadata: (bucket: string, path: string, filepath: string, init?: SDKOperationInit<operations['listSkillFileMetadata']>) => Promise<SDKOperationResponse<operations['listSkillFileMetadata']>>;
19787
20060
  listSkillMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['listSkillMetadata']>) => Promise<SDKOperationResponse<operations['listSkillMetadata']>>;
20061
+ migrateFileConfig: (init: SDKOperationInit<operations['migrateFileConfig']>) => Promise<SDKOperationResponse<operations['migrateFileConfig']>>;
19788
20062
  moveResource: (init: SDKOperationInit<operations['moveResource']>) => Promise<SDKOperationResponse<operations['moveResource']>>;
19789
20063
  offlineCredentialsSignIn: (init: SDKOperationInit<operations['offlineCredentialsSignIn']>) => Promise<SDKOperationResponse<operations['offlineCredentialsSignIn']>>;
19790
20064
  offlineCredentialsSignOut: (init?: SDKOperationInit<operations['offlineCredentialsSignOut']>) => Promise<SDKOperationResponse<operations['offlineCredentialsSignOut']>>;
package/dist/index.js CHANGED
@@ -117,6 +117,10 @@ var externalServiceGetCredentialsUrl = "/v1/ops/external-service/credentials";
117
117
  var externalServiceGetOboCredentialsUrl = "/v1/ops/external-service/obo-credentials";
118
118
  var externalServiceSignInUrl = "/v1/ops/external-service/signin";
119
119
  var externalServiceSignOutUrl = "/v1/ops/external-service/signout";
120
+ var getAnthropicModelUrl = (model_name) => {
121
+ return `/anthropic/v1/models/${model_name}`;
122
+ };
123
+ var getAnthropicModelsUrl = "/anthropic/v1/models";
120
124
  var getApplicationUrl = (application_name) => {
121
125
  return `/openai/applications/${application_name}`;
122
126
  };
@@ -322,6 +326,7 @@ var listSkillFileMetadataUrl = (bucket, path, filepath) => {
322
326
  var listSkillMetadataUrl = (bucket, path) => {
323
327
  return `/v2/metadata/skills/${bucket}/${path}`;
324
328
  };
329
+ var migrateFileConfigUrl = "/v1/admin/config/file/migrate";
325
330
  var moveResourceUrl = "/v1/ops/resource/move";
326
331
  var offlineCredentialsSignInUrl = "/v1/user/offline-credentials/signin";
327
332
  var offlineCredentialsSignOutUrl = "/v1/user/offline-credentials/signout";
@@ -588,6 +593,11 @@ function createSDK(opts) {
588
593
  ),
589
594
  externalServiceSignIn: (init) => client.POST(externalServiceSignInUrl, init),
590
595
  externalServiceSignOut: (init) => client.POST(externalServiceSignOutUrl, init),
596
+ getAnthropicModel: (model_name, init) => client.GET(
597
+ getAnthropicModelUrl(model_name),
598
+ init
599
+ ),
600
+ getAnthropicModels: (init) => client.GET(getAnthropicModelsUrl, init),
591
601
  getApplication: (application_name, init) => client.GET(
592
602
  getApplicationUrl(application_name),
593
603
  init
@@ -815,6 +825,7 @@ function createSDK(opts) {
815
825
  listSkillMetadataUrl(bucket, path),
816
826
  init
817
827
  ),
828
+ migrateFileConfig: (init) => client.POST(migrateFileConfigUrl, init),
818
829
  moveResource: (init) => client.POST(moveResourceUrl, init),
819
830
  offlineCredentialsSignIn: (init) => client.POST(offlineCredentialsSignInUrl, init),
820
831
  offlineCredentialsSignOut: (init) => client.POST(offlineCredentialsSignOutUrl, init),