oci-ailanguage 2.81.0 → 2.82.2

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 (136) hide show
  1. package/lib/aiservicelanguage-waiter.d.ts +8 -0
  2. package/lib/aiservicelanguage-waiter.js +12 -0
  3. package/lib/aiservicelanguage-waiter.js.map +1 -1
  4. package/lib/client.d.ts +101 -36
  5. package/lib/client.js +477 -36
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/change-job-compartment-details.d.ts +30 -0
  8. package/lib/model/change-job-compartment-details.js +32 -0
  9. package/lib/model/change-job-compartment-details.js.map +1 -0
  10. package/lib/model/configuration-details.d.ts +62 -0
  11. package/lib/model/configuration-details.js +32 -0
  12. package/lib/model/configuration-details.js.map +1 -0
  13. package/lib/model/create-job-details.d.ts +47 -0
  14. package/lib/model/create-job-details.js +82 -0
  15. package/lib/model/create-job-details.js.map +1 -0
  16. package/lib/model/documents-configuration.d.ts +34 -0
  17. package/lib/model/documents-configuration.js +32 -0
  18. package/lib/model/documents-configuration.js.map +1 -0
  19. package/lib/model/index.d.ts +28 -0
  20. package/lib/model/index.js +31 -3
  21. package/lib/model/index.js.map +1 -1
  22. package/lib/model/input-configuration.d.ts +43 -0
  23. package/lib/model/input-configuration.js +61 -0
  24. package/lib/model/input-configuration.js.map +1 -0
  25. package/lib/model/input-location.d.ts +28 -0
  26. package/lib/model/input-location.js +75 -0
  27. package/lib/model/input-location.js.map +1 -0
  28. package/lib/model/job-collection.d.ts +29 -0
  29. package/lib/model/job-collection.js +64 -0
  30. package/lib/model/job-collection.js.map +1 -0
  31. package/lib/model/job-summary.d.ts +88 -0
  32. package/lib/model/job-summary.js +32 -0
  33. package/lib/model/job-summary.js.map +1 -0
  34. package/lib/model/job.d.ts +118 -0
  35. package/lib/model/job.js +98 -0
  36. package/lib/model/job.js.map +1 -0
  37. package/lib/model/model-metadata-details.d.ts +87 -0
  38. package/lib/model/model-metadata-details.js +61 -0
  39. package/lib/model/model-metadata-details.js.map +1 -0
  40. package/lib/model/object-prefix-output-location.d.ts +36 -0
  41. package/lib/model/object-prefix-output-location.js +32 -0
  42. package/lib/model/object-prefix-output-location.js.map +1 -0
  43. package/lib/model/object-storage-file-name-location.d.ts +39 -0
  44. package/lib/model/object-storage-file-name-location.js +57 -0
  45. package/lib/model/object-storage-file-name-location.js.map +1 -0
  46. package/lib/model/object-storage-prefix-location.d.ts +39 -0
  47. package/lib/model/object-storage-prefix-location.js +57 -0
  48. package/lib/model/object-storage-prefix-location.js.map +1 -0
  49. package/lib/model/translation-document-result.d.ts +67 -2
  50. package/lib/model/translation-document-result.js.map +1 -1
  51. package/lib/model/update-job-details.d.ts +32 -0
  52. package/lib/model/update-job-details.js +32 -0
  53. package/lib/model/update-job-details.js.map +1 -0
  54. package/lib/request/batch-detect-dominant-language-request.d.ts +1 -1
  55. package/lib/request/batch-detect-language-entities-request.d.ts +1 -1
  56. package/lib/request/batch-detect-language-key-phrases-request.d.ts +1 -1
  57. package/lib/request/batch-detect-language-pii-entities-request.d.ts +1 -1
  58. package/lib/request/batch-detect-language-sentiments-request.d.ts +1 -1
  59. package/lib/request/batch-detect-language-text-classification-request.d.ts +1 -1
  60. package/lib/request/batch-language-translation-request.d.ts +1 -1
  61. package/lib/request/cancel-job-request.d.ts +44 -0
  62. package/lib/request/cancel-job-request.js +15 -0
  63. package/lib/request/cancel-job-request.js.map +1 -0
  64. package/lib/request/change-endpoint-compartment-request.d.ts +1 -1
  65. package/lib/request/change-job-compartment-request.d.ts +49 -0
  66. package/lib/request/change-job-compartment-request.js +15 -0
  67. package/lib/request/change-job-compartment-request.js.map +1 -0
  68. package/lib/request/change-model-compartment-request.d.ts +1 -1
  69. package/lib/request/change-project-compartment-request.d.ts +1 -1
  70. package/lib/request/create-endpoint-request.d.ts +1 -1
  71. package/lib/request/create-job-request.d.ts +36 -0
  72. package/lib/request/create-job-request.js +15 -0
  73. package/lib/request/create-job-request.js.map +1 -0
  74. package/lib/request/create-model-request.d.ts +1 -1
  75. package/lib/request/create-project-request.d.ts +1 -1
  76. package/lib/request/delete-endpoint-request.d.ts +1 -1
  77. package/lib/request/delete-job-request.d.ts +35 -0
  78. package/lib/request/delete-job-request.js +15 -0
  79. package/lib/request/delete-job-request.js.map +1 -0
  80. package/lib/request/delete-model-request.d.ts +1 -1
  81. package/lib/request/delete-project-request.d.ts +1 -1
  82. package/lib/request/detect-dominant-language-request.d.ts +1 -1
  83. package/lib/request/detect-language-entities-request.d.ts +1 -1
  84. package/lib/request/detect-language-key-phrases-request.d.ts +1 -1
  85. package/lib/request/detect-language-sentiments-request.d.ts +1 -1
  86. package/lib/request/detect-language-text-classification-request.d.ts +1 -1
  87. package/lib/request/get-endpoint-request.d.ts +1 -1
  88. package/lib/request/get-job-request.d.ts +26 -0
  89. package/lib/request/get-job-request.js +15 -0
  90. package/lib/request/get-job-request.js.map +1 -0
  91. package/lib/request/get-model-request.d.ts +1 -1
  92. package/lib/request/get-model-type-request.d.ts +1 -1
  93. package/lib/request/get-project-request.d.ts +1 -1
  94. package/lib/request/get-work-request-request.d.ts +1 -1
  95. package/lib/request/index.d.ts +14 -0
  96. package/lib/request/index.js +3 -1
  97. package/lib/request/index.js.map +1 -1
  98. package/lib/request/list-endpoints-request.d.ts +1 -1
  99. package/lib/request/list-evaluation-results-request.d.ts +1 -1
  100. package/lib/request/list-jobs-request.d.ts +62 -0
  101. package/lib/request/list-jobs-request.js +24 -0
  102. package/lib/request/list-jobs-request.js.map +1 -0
  103. package/lib/request/list-models-request.d.ts +1 -1
  104. package/lib/request/list-projects-request.d.ts +1 -1
  105. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  106. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  107. package/lib/request/list-work-requests-request.d.ts +1 -1
  108. package/lib/request/update-endpoint-request.d.ts +1 -1
  109. package/lib/request/update-job-request.d.ts +40 -0
  110. package/lib/request/update-job-request.js +15 -0
  111. package/lib/request/update-job-request.js.map +1 -0
  112. package/lib/request/update-model-request.d.ts +1 -1
  113. package/lib/request/update-project-request.d.ts +1 -1
  114. package/lib/response/cancel-job-response.d.ts +20 -0
  115. package/lib/response/cancel-job-response.js +15 -0
  116. package/lib/response/cancel-job-response.js.map +1 -0
  117. package/lib/response/change-job-compartment-response.d.ts +20 -0
  118. package/lib/response/change-job-compartment-response.js +15 -0
  119. package/lib/response/change-job-compartment-response.js.map +1 -0
  120. package/lib/response/create-job-response.d.ts +35 -0
  121. package/lib/response/create-job-response.js +15 -0
  122. package/lib/response/create-job-response.js.map +1 -0
  123. package/lib/response/delete-job-response.d.ts +25 -0
  124. package/lib/response/delete-job-response.js +15 -0
  125. package/lib/response/delete-job-response.js.map +1 -0
  126. package/lib/response/get-job-response.d.ts +30 -0
  127. package/lib/response/get-job-response.js +15 -0
  128. package/lib/response/get-job-response.js.map +1 -0
  129. package/lib/response/index.d.ts +14 -0
  130. package/lib/response/list-jobs-response.d.ts +32 -0
  131. package/lib/response/list-jobs-response.js +15 -0
  132. package/lib/response/list-jobs-response.js.map +1 -0
  133. package/lib/response/update-job-response.d.ts +30 -0
  134. package/lib/response/update-job-response.js +15 -0
  135. package/lib/response/update-job-response.js.map +1 -0
  136. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job-collection.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/job-collection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAalC,IAAiB,aAAa,CA6B7B;AA7BD,WAAiB,aAAa;IAC5B,SAAgB,UAAU,CAAC,GAAkB;QAC3C,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC3C,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,wBAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAkB;QACvD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACvD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,oCAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA6B7B"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Language API
3
+ * OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
4
+ pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5
+ This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
6
+
7
+ * OpenAPI spec version: 20221001
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OracleSDKGenerator.
11
+ * Do not edit the class manually.
12
+ *
13
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
14
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
15
+ */
16
+ /**
17
+ * sub set of Job details data which need returns in list API
18
+ */
19
+ export interface JobSummary {
20
+ /**
21
+ * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the job.
22
+ */
23
+ "id": string;
24
+ /**
25
+ * A user-friendly display name for the job.
26
+ */
27
+ "displayName": string;
28
+ /**
29
+ * A short description of the job.
30
+ */
31
+ "description"?: string;
32
+ /**
33
+ * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the job.
34
+ */
35
+ "compartmentId": string;
36
+ /**
37
+ * The current state of the Speech Job.
38
+ */
39
+ "lifecycleState"?: string;
40
+ /**
41
+ * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
42
+ */
43
+ "lifecycleDetails"?: string;
44
+ /**
45
+ * How much progress the operation has made, vs the total amount of work that must be performed. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
46
+ */
47
+ "percentComplete"?: number;
48
+ /**
49
+ * Total number of documents given as input for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
50
+ */
51
+ "totalDocuments"?: number;
52
+ /**
53
+ * Number of documents still to process. For CSV this signifies number of rows and for TXT this signifies number of files. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
54
+ */
55
+ "pendingDocuments"?: number;
56
+ /**
57
+ * Number of documents processed for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
58
+ */
59
+ "completedDocuments"?: number;
60
+ /**
61
+ * Number of documents failed for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
62
+ */
63
+ "failedDocuments"?: number;
64
+ /**
65
+ * warnings count Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
66
+ */
67
+ "warningsCount"?: number;
68
+ /**
69
+ * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the job.
70
+ */
71
+ "createdBy"?: string;
72
+ /**
73
+ * Job accepted time.
74
+ */
75
+ "timeAccepted"?: Date;
76
+ /**
77
+ * Job started time.
78
+ */
79
+ "timeStarted"?: Date;
80
+ /**
81
+ * Job finished time.
82
+ */
83
+ "timeCompleted"?: Date;
84
+ }
85
+ export declare namespace JobSummary {
86
+ function getJsonObj(obj: JobSummary): object;
87
+ function getDeserializedJsonObj(obj: JobSummary): object;
88
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /**
3
+ * Language API
4
+ * OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
5
+ pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
6
+ This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
7
+
8
+ * OpenAPI spec version: 20221001
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OracleSDKGenerator.
12
+ * Do not edit the class manually.
13
+ *
14
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
15
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.JobSummary = void 0;
19
+ var JobSummary;
20
+ (function (JobSummary) {
21
+ function getJsonObj(obj) {
22
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
23
+ return jsonObj;
24
+ }
25
+ JobSummary.getJsonObj = getJsonObj;
26
+ function getDeserializedJsonObj(obj) {
27
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
28
+ return jsonObj;
29
+ }
30
+ JobSummary.getDeserializedJsonObj = getDeserializedJsonObj;
31
+ })(JobSummary = exports.JobSummary || (exports.JobSummary = {}));
32
+ //# sourceMappingURL=job-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job-summary.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/job-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AA2EH,IAAiB,UAAU,CAW1B;AAXD,WAAiB,UAAU;IACzB,SAAgB,UAAU,CAAC,GAAe;QACxC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,qBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAe;QACpD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,iCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAW1B"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Language API
3
+ * OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
4
+ pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5
+ This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
6
+
7
+ * OpenAPI spec version: 20221001
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OracleSDKGenerator.
11
+ * Do not edit the class manually.
12
+ *
13
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
14
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
15
+ */
16
+ import * as model from "../model";
17
+ /**
18
+ * Job details which contain input document details on which prediction need to run, features (which and all language services ) need to run and where to store results
19
+ */
20
+ export interface Job {
21
+ /**
22
+ * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the job.
23
+ */
24
+ "id": string;
25
+ /**
26
+ * A user-friendly display name for the job.
27
+ */
28
+ "displayName"?: string;
29
+ /**
30
+ * A short description of the job.
31
+ */
32
+ "description"?: string;
33
+ "inputLocation": model.ObjectStoragePrefixLocation | model.ObjectStorageFileNameLocation;
34
+ "inputConfiguration"?: model.InputConfiguration;
35
+ /**
36
+ * training model details
37
+ * For this release only one model is allowed to be input here.
38
+ * One of the three modelType, ModelId, endpointId should be given other wise error will be thrown from API
39
+ *
40
+ */
41
+ "modelMetadataDetails": Array<model.ModelMetadataDetails>;
42
+ /**
43
+ * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the job.
44
+ */
45
+ "compartmentId": string;
46
+ /**
47
+ * The current state of the Job.
48
+ */
49
+ "lifecycleState"?: Job.LifecycleState;
50
+ /**
51
+ * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
52
+ */
53
+ "lifecycleDetails"?: string;
54
+ /**
55
+ * How much progress the operation has made, vs the total amount of work that must be performed. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
56
+ */
57
+ "percentComplete"?: number;
58
+ /**
59
+ * Total number of documents given as input for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
60
+ */
61
+ "totalDocuments"?: number;
62
+ /**
63
+ * Number of documents still to process. For CSV this signifies number of rows and for TXT this signifies number of files. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
64
+ */
65
+ "pendingDocuments"?: number;
66
+ /**
67
+ * Number of documents processed for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
68
+ */
69
+ "completedDocuments"?: number;
70
+ /**
71
+ * Number of documents failed for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
72
+ */
73
+ "failedDocuments"?: number;
74
+ /**
75
+ * warnings count Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
76
+ */
77
+ "warningsCount"?: number;
78
+ "outputLocation": model.ObjectPrefixOutputLocation;
79
+ /**
80
+ * Time to live duration in days for Job. Job will be available till max 90 days. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
81
+ */
82
+ "ttlInDays"?: number;
83
+ /**
84
+ * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the job.
85
+ */
86
+ "createdBy"?: string;
87
+ /**
88
+ * Job accepted time.
89
+ */
90
+ "timeAccepted"?: Date;
91
+ /**
92
+ * Job started time.
93
+ */
94
+ "timeStarted"?: Date;
95
+ /**
96
+ * Job finished time.
97
+ */
98
+ "timeCompleted"?: Date;
99
+ }
100
+ export declare namespace Job {
101
+ enum LifecycleState {
102
+ Accepted = "ACCEPTED",
103
+ InProgress = "IN_PROGRESS",
104
+ Succeeded = "SUCCEEDED",
105
+ Failed = "FAILED",
106
+ Canceling = "CANCELING",
107
+ Canceled = "CANCELED",
108
+ Deleting = "DELETING",
109
+ Deleted = "DELETED",
110
+ /**
111
+ * This value is used if a service returns a value for this enum that is not recognized by this
112
+ * version of the SDK.
113
+ */
114
+ UnknownValue = "UNKNOWN_VALUE"
115
+ }
116
+ function getJsonObj(obj: Job): object;
117
+ function getDeserializedJsonObj(obj: Job): object;
118
+ }
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ /**
3
+ * Language API
4
+ * OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
5
+ pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
6
+ This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
7
+
8
+ * OpenAPI spec version: 20221001
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OracleSDKGenerator.
12
+ * Do not edit the class manually.
13
+ *
14
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
15
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
16
+ */
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.Job = void 0;
38
+ const model = __importStar(require("../model"));
39
+ var Job;
40
+ (function (Job) {
41
+ let LifecycleState;
42
+ (function (LifecycleState) {
43
+ LifecycleState["Accepted"] = "ACCEPTED";
44
+ LifecycleState["InProgress"] = "IN_PROGRESS";
45
+ LifecycleState["Succeeded"] = "SUCCEEDED";
46
+ LifecycleState["Failed"] = "FAILED";
47
+ LifecycleState["Canceling"] = "CANCELING";
48
+ LifecycleState["Canceled"] = "CANCELED";
49
+ LifecycleState["Deleting"] = "DELETING";
50
+ LifecycleState["Deleted"] = "DELETED";
51
+ /**
52
+ * This value is used if a service returns a value for this enum that is not recognized by this
53
+ * version of the SDK.
54
+ */
55
+ LifecycleState["UnknownValue"] = "UNKNOWN_VALUE";
56
+ })(LifecycleState = Job.LifecycleState || (Job.LifecycleState = {}));
57
+ function getJsonObj(obj) {
58
+ const jsonObj = Object.assign(Object.assign({}, obj), {
59
+ "inputLocation": obj.inputLocation
60
+ ? model.InputLocation.getJsonObj(obj.inputLocation)
61
+ : undefined,
62
+ "inputConfiguration": obj.inputConfiguration
63
+ ? model.InputConfiguration.getJsonObj(obj.inputConfiguration)
64
+ : undefined,
65
+ "modelMetadataDetails": obj.modelMetadataDetails
66
+ ? obj.modelMetadataDetails.map(item => {
67
+ return model.ModelMetadataDetails.getJsonObj(item);
68
+ })
69
+ : undefined,
70
+ "outputLocation": obj.outputLocation
71
+ ? model.ObjectPrefixOutputLocation.getJsonObj(obj.outputLocation)
72
+ : undefined
73
+ });
74
+ return jsonObj;
75
+ }
76
+ Job.getJsonObj = getJsonObj;
77
+ function getDeserializedJsonObj(obj) {
78
+ const jsonObj = Object.assign(Object.assign({}, obj), {
79
+ "inputLocation": obj.inputLocation
80
+ ? model.InputLocation.getDeserializedJsonObj(obj.inputLocation)
81
+ : undefined,
82
+ "inputConfiguration": obj.inputConfiguration
83
+ ? model.InputConfiguration.getDeserializedJsonObj(obj.inputConfiguration)
84
+ : undefined,
85
+ "modelMetadataDetails": obj.modelMetadataDetails
86
+ ? obj.modelMetadataDetails.map(item => {
87
+ return model.ModelMetadataDetails.getDeserializedJsonObj(item);
88
+ })
89
+ : undefined,
90
+ "outputLocation": obj.outputLocation
91
+ ? model.ObjectPrefixOutputLocation.getDeserializedJsonObj(obj.outputLocation)
92
+ : undefined
93
+ });
94
+ return jsonObj;
95
+ }
96
+ Job.getDeserializedJsonObj = getDeserializedJsonObj;
97
+ })(Job = exports.Job || (exports.Job = {}));
98
+ //# sourceMappingURL=job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/job.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAuFlC,IAAiB,GAAG,CAiEnB;AAjED,WAAiB,GAAG;IAClB,IAAY,cAcX;IAdD,WAAY,cAAc;QACxB,uCAAqB,CAAA;QACrB,4CAA0B,CAAA;QAC1B,yCAAuB,CAAA;QACvB,mCAAiB,CAAA;QACjB,yCAAuB,CAAA;QACvB,uCAAqB,CAAA;QACrB,uCAAqB,CAAA;QACrB,qCAAmB,CAAA;QACnB;;;WAGG;QACH,gDAA8B,CAAA;IAChC,CAAC,EAdW,cAAc,GAAd,kBAAc,KAAd,kBAAc,QAczB;IAED,SAAgB,UAAU,CAAC,GAAQ;QACjC,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC;gBACnD,CAAC,CAAC,SAAS;YACb,oBAAoB,EAAE,GAAG,CAAC,kBAAkB;gBAC1C,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,CAAC,kBAAkB,CAAC;gBAC7D,CAAC,CAAC,SAAS;YACb,sBAAsB,EAAE,GAAG,CAAC,oBAAoB;gBAC9C,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAClC,OAAO,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACrD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YAEb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC;gBACjE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAvBe,cAAU,aAuBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAQ;QAC7C,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,CAAC,aAAa,CAAC;gBAC/D,CAAC,CAAC,SAAS;YACb,oBAAoB,EAAE,GAAG,CAAC,kBAAkB;gBAC1C,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,GAAG,CAAC,kBAAkB,CAAC;gBACzE,CAAC,CAAC,SAAS;YACb,sBAAsB,EAAE,GAAG,CAAC,oBAAoB;gBAC9C,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAClC,OAAO,KAAK,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACjE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YAEb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC;gBAC7E,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAvBe,0BAAsB,yBAuBrC,CAAA;AACH,CAAC,EAjEgB,GAAG,GAAH,WAAG,KAAH,WAAG,QAiEnB"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Language API
3
+ * OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
4
+ pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5
+ This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
6
+
7
+ * OpenAPI spec version: 20221001
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OracleSDKGenerator.
11
+ * Do not edit the class manually.
12
+ *
13
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
14
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
15
+ */
16
+ import * as model from "../model";
17
+ /**
18
+ * training model details
19
+ * For this release only one model is allowed to be input here.
20
+ * One of the three modelType, ModelId, endpointId should be given other wise error will be thrown from API
21
+ *
22
+ */
23
+ export interface ModelMetadataDetails {
24
+ /**
25
+ * model type to used for inference allowed values are
26
+ * - LANGUAGE_SENTIMENT_ANALYSIS
27
+ * - LANGUAGE_DETECTION
28
+ * - TEXT_CLASSIFICATION
29
+ * - NAMED_ENTITY_RECOGNITION
30
+ * - KEY_PHRASE_EXTRACTION
31
+ * - LANGUAGE_PII_ENTITIES
32
+ * - LANGUAGE_TRANSLATION
33
+ *
34
+ */
35
+ "modelType"?: string;
36
+ /**
37
+ * Unique identifier model OCID that should be used for inference
38
+ */
39
+ "modelId"?: string;
40
+ /**
41
+ * Unique identifier endpoint OCID that should be used for inference
42
+ */
43
+ "endpointId"?: string;
44
+ /**
45
+ * Language code supported
46
+ * - auto : Automatically detect language
47
+ * - ar : Arabic
48
+ * - pt-BR : Brazilian Portuguese
49
+ * - cs : Czech
50
+ * - da : Danish
51
+ * - nl : Dutch
52
+ * - en : English
53
+ * - fi : Finnish
54
+ * - fr : French
55
+ * - fr-CA : Canadian French
56
+ * - de : German
57
+ * - it : Italian
58
+ * - ja : Japanese
59
+ * - ko : Korean
60
+ * - no : Norwegian
61
+ * - pl : Polish
62
+ * - ro : Romanian
63
+ * - zh-CN : Simplified Chinese
64
+ * - es : Spanish
65
+ * - sv : Swedish
66
+ * - zh-TW : Traditional Chinese
67
+ * - tr : Turkish
68
+ * - el : Greek
69
+ * - he : Hebrew
70
+ *
71
+ */
72
+ "languageCode"?: string;
73
+ /**
74
+ * model configuration details
75
+ * For PII : < ENTITY_TYPE , ConfigurationDetails>
76
+ * ex.\"ORACLE\":{ \"mode\" : \"MASK\",\"maskingCharacter\" : \"&\",\"leaveCharactersUnmasked\": 3,\"isUnmaskedFromEnd\" : true }
77
+ * For language translation : { \"targetLanguageCodes\" : ConfigurationDetails}
78
+ *
79
+ */
80
+ "configuration"?: {
81
+ [key: string]: model.ConfigurationDetails;
82
+ };
83
+ }
84
+ export declare namespace ModelMetadataDetails {
85
+ function getJsonObj(obj: ModelMetadataDetails): object;
86
+ function getDeserializedJsonObj(obj: ModelMetadataDetails): object;
87
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * Language API
4
+ * OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
5
+ pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
6
+ This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
7
+
8
+ * OpenAPI spec version: 20221001
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OracleSDKGenerator.
12
+ * Do not edit the class manually.
13
+ *
14
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
15
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
16
+ */
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ModelMetadataDetails = void 0;
38
+ const model = __importStar(require("../model"));
39
+ const common = require("oci-common");
40
+ var ModelMetadataDetails;
41
+ (function (ModelMetadataDetails) {
42
+ function getJsonObj(obj) {
43
+ const jsonObj = Object.assign(Object.assign({}, obj), {
44
+ "configuration": obj.configuration
45
+ ? common.mapContainer(obj.configuration, model.ConfigurationDetails.getJsonObj)
46
+ : undefined
47
+ });
48
+ return jsonObj;
49
+ }
50
+ ModelMetadataDetails.getJsonObj = getJsonObj;
51
+ function getDeserializedJsonObj(obj) {
52
+ const jsonObj = Object.assign(Object.assign({}, obj), {
53
+ "configuration": obj.configuration
54
+ ? common.mapContainer(obj.configuration, model.ConfigurationDetails.getDeserializedJsonObj)
55
+ : undefined
56
+ });
57
+ return jsonObj;
58
+ }
59
+ ModelMetadataDetails.getDeserializedJsonObj = getDeserializedJsonObj;
60
+ })(ModelMetadataDetails = exports.ModelMetadataDetails || (exports.ModelMetadataDetails = {}));
61
+ //# sourceMappingURL=model-metadata-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-metadata-details.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/model-metadata-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAoEtC,IAAiB,oBAAoB,CA4BpC;AA5BD,WAAiB,oBAAoB;IACnC,SAAgB,UAAU,CAAC,GAAyB;QAClD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC;gBAC/E,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,+BAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAyB;QAC9D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,MAAM,CAAC,YAAY,CACjB,GAAG,CAAC,aAAa,EACjB,KAAK,CAAC,oBAAoB,CAAC,sBAAsB,CAClD;gBACH,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,2CAAsB,yBAcrC,CAAA;AACH,CAAC,EA5BgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QA4BpC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Language API
3
+ * OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
4
+ pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5
+ This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
6
+
7
+ * OpenAPI spec version: 20221001
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OracleSDKGenerator.
11
+ * Do not edit the class manually.
12
+ *
13
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
14
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
15
+ */
16
+ /**
17
+ * Object storage output location to write inference results
18
+ */
19
+ export interface ObjectPrefixOutputLocation {
20
+ /**
21
+ * Object Storage namespace name.
22
+ */
23
+ "namespaceName": string;
24
+ /**
25
+ * Object Storage bucket name.
26
+ */
27
+ "bucketName": string;
28
+ /**
29
+ * The prefix (directory) in an Object Storage bucket.
30
+ */
31
+ "prefix"?: string;
32
+ }
33
+ export declare namespace ObjectPrefixOutputLocation {
34
+ function getJsonObj(obj: ObjectPrefixOutputLocation): object;
35
+ function getDeserializedJsonObj(obj: ObjectPrefixOutputLocation): object;
36
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /**
3
+ * Language API
4
+ * OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
5
+ pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
6
+ This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
7
+
8
+ * OpenAPI spec version: 20221001
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OracleSDKGenerator.
12
+ * Do not edit the class manually.
13
+ *
14
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
15
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ObjectPrefixOutputLocation = void 0;
19
+ var ObjectPrefixOutputLocation;
20
+ (function (ObjectPrefixOutputLocation) {
21
+ function getJsonObj(obj) {
22
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
23
+ return jsonObj;
24
+ }
25
+ ObjectPrefixOutputLocation.getJsonObj = getJsonObj;
26
+ function getDeserializedJsonObj(obj) {
27
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
28
+ return jsonObj;
29
+ }
30
+ ObjectPrefixOutputLocation.getDeserializedJsonObj = getDeserializedJsonObj;
31
+ })(ObjectPrefixOutputLocation = exports.ObjectPrefixOutputLocation || (exports.ObjectPrefixOutputLocation = {}));
32
+ //# sourceMappingURL=object-prefix-output-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-prefix-output-location.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/object-prefix-output-location.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAuBH,IAAiB,0BAA0B,CAW1C;AAXD,WAAiB,0BAA0B;IACzC,SAAgB,UAAU,CAAC,GAA+B;QACxD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,qCAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA+B;QACpE,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,iDAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAW1C"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Language API
3
+ * OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
4
+ pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5
+ This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
6
+
7
+ * OpenAPI spec version: 20221001
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OracleSDKGenerator.
11
+ * Do not edit the class manually.
12
+ *
13
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
14
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
15
+ */
16
+ import * as model from "../model";
17
+ /**
18
+ * list of text files need to be used for prediction
19
+ */
20
+ export interface ObjectStorageFileNameLocation extends model.InputLocation {
21
+ /**
22
+ * Object Storage namespace name.
23
+ */
24
+ "namespaceName": string;
25
+ /**
26
+ * Object Storage bucket name.
27
+ */
28
+ "bucketName": string;
29
+ /**
30
+ * List of objects to be processed
31
+ */
32
+ "objectNames": Array<string>;
33
+ "locationType": string;
34
+ }
35
+ export declare namespace ObjectStorageFileNameLocation {
36
+ function getJsonObj(obj: ObjectStorageFileNameLocation, isParentJsonObj?: boolean): object;
37
+ const locationType = "OBJECT_STORAGE_FILE_LIST";
38
+ function getDeserializedJsonObj(obj: ObjectStorageFileNameLocation, isParentJsonObj?: boolean): object;
39
+ }