instill-sdk 0.0.1

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 (226) hide show
  1. package/README.md +369 -0
  2. package/dist/chunk-2VZRNT6D.mjs +0 -0
  3. package/dist/chunk-3VVR3XHW.mjs +56 -0
  4. package/dist/chunk-42SCMPQP.mjs +0 -0
  5. package/dist/chunk-4KLHN5HK.mjs +0 -0
  6. package/dist/chunk-4TKUHGUZ.mjs +244 -0
  7. package/dist/chunk-4VWYH26Q.mjs +145 -0
  8. package/dist/chunk-6M57XUNI.mjs +64 -0
  9. package/dist/chunk-6NTCWRRC.mjs +0 -0
  10. package/dist/chunk-6ZXT6X3H.mjs +0 -0
  11. package/dist/chunk-73EPIL2R.mjs +0 -0
  12. package/dist/chunk-7KV3Y36U.mjs +17 -0
  13. package/dist/chunk-D5OKZ665.mjs +32 -0
  14. package/dist/chunk-DXEIDDIA.mjs +32 -0
  15. package/dist/chunk-EBWGEVUX.mjs +33 -0
  16. package/dist/chunk-ECC5KF6S.mjs +150 -0
  17. package/dist/chunk-EHG2FVLQ.mjs +0 -0
  18. package/dist/chunk-EXJ4UK7Q.mjs +49 -0
  19. package/dist/chunk-FAXYADOP.mjs +0 -0
  20. package/dist/chunk-FNCXOA62.mjs +0 -0
  21. package/dist/chunk-GPM5FDRS.mjs +154 -0
  22. package/dist/chunk-IB43VC55.mjs +41 -0
  23. package/dist/chunk-IPW3WQCQ.mjs +35 -0
  24. package/dist/chunk-IWAQMUMR.mjs +42 -0
  25. package/dist/chunk-JONZWFL5.mjs +168 -0
  26. package/dist/chunk-JTTE7IZY.mjs +14 -0
  27. package/dist/chunk-JY37AKV6.mjs +0 -0
  28. package/dist/chunk-KCKTAMXW.mjs +0 -0
  29. package/dist/chunk-KHFNAMT4.mjs +160 -0
  30. package/dist/chunk-NRP5M7FG.mjs +128 -0
  31. package/dist/chunk-QLWRKSUE.mjs +104 -0
  32. package/dist/chunk-QV7PYP7E.mjs +0 -0
  33. package/dist/chunk-QZOKJQTL.mjs +102 -0
  34. package/dist/chunk-RVRM4NPL.mjs +29 -0
  35. package/dist/chunk-VASX6R4R.mjs +0 -0
  36. package/dist/chunk-VIPORJ6H.mjs +77 -0
  37. package/dist/chunk-WBQAMGXK.mjs +0 -0
  38. package/dist/chunk-WL54JNC6.mjs +64 -0
  39. package/dist/chunk-WLPBUHMI.mjs +0 -0
  40. package/dist/chunk-YT6ZGA4J.mjs +46 -0
  41. package/dist/chunk-YXNMG2RZ.mjs +98 -0
  42. package/dist/chunk-ZRC43MN3.mjs +111 -0
  43. package/dist/chunk-magic-string.3a794426-OWTMMGNR.mjs +1253 -0
  44. package/dist/connector/ConnectorClient.d.ts +54 -0
  45. package/dist/connector/ConnectorClient.js +457 -0
  46. package/dist/connector/ConnectorClient.mjs +16 -0
  47. package/dist/connector/action.d.ts +13 -0
  48. package/dist/connector/action.js +72 -0
  49. package/dist/connector/action.mjs +11 -0
  50. package/dist/connector/index.d.ts +2 -0
  51. package/dist/connector/index.js +37 -0
  52. package/dist/connector/index.mjs +13 -0
  53. package/dist/connector/mutation.d.ts +19 -0
  54. package/dist/connector/mutation.js +91 -0
  55. package/dist/connector/mutation.mjs +13 -0
  56. package/dist/connector/queries.d.ts +34 -0
  57. package/dist/connector/queries.js +227 -0
  58. package/dist/connector/queries.mjs +23 -0
  59. package/dist/connector/types.d.ts +102 -0
  60. package/dist/connector/types.js +18 -0
  61. package/dist/connector/types.mjs +1 -0
  62. package/dist/helper/axiosInstance.d.ts +3 -0
  63. package/dist/helper/axiosInstance.js +44 -0
  64. package/dist/helper/axiosInstance.mjs +7 -0
  65. package/dist/helper/config.d.ts +1 -0
  66. package/dist/helper/config.js +53 -0
  67. package/dist/helper/config.mjs +7 -0
  68. package/dist/helper/createClient.d.ts +2 -0
  69. package/dist/helper/createClient.js +90 -0
  70. package/dist/helper/createClient.mjs +8 -0
  71. package/dist/helper/getInstillApiErrorMessage.d.ts +2 -0
  72. package/dist/helper/getInstillApiErrorMessage.js +41 -0
  73. package/dist/helper/getInstillApiErrorMessage.mjs +7 -0
  74. package/dist/helper/getQueryString.d.ts +7 -0
  75. package/dist/helper/getQueryString.js +57 -0
  76. package/dist/helper/getQueryString.mjs +7 -0
  77. package/dist/helper/getQueryString.test.d.ts +1 -0
  78. package/dist/helper/getQueryString.test.js +15769 -0
  79. package/dist/helper/getQueryString.test.mjs +14458 -0
  80. package/dist/helper/index.d.ts +5 -0
  81. package/dist/helper/index.js +145 -0
  82. package/dist/helper/index.mjs +21 -0
  83. package/dist/index.d.ts +24 -0
  84. package/dist/index.js +1978 -0
  85. package/dist/index.mjs +87 -0
  86. package/dist/metric/MetricClient.d.ts +21 -0
  87. package/dist/metric/MetricClient.js +215 -0
  88. package/dist/metric/MetricClient.mjs +14 -0
  89. package/dist/metric/index.d.ts +1 -0
  90. package/dist/metric/index.js +18 -0
  91. package/dist/metric/index.mjs +3 -0
  92. package/dist/metric/pipeline/index.d.ts +1 -0
  93. package/dist/metric/pipeline/index.js +18 -0
  94. package/dist/metric/pipeline/index.mjs +2 -0
  95. package/dist/metric/pipeline/queries.d.ts +21 -0
  96. package/dist/metric/pipeline/queries.js +168 -0
  97. package/dist/metric/pipeline/queries.mjs +17 -0
  98. package/dist/metric/pipeline/types.d.ts +63 -0
  99. package/dist/metric/pipeline/types.js +18 -0
  100. package/dist/metric/pipeline/types.mjs +1 -0
  101. package/dist/mgmt/AuthClient.d.ts +35 -0
  102. package/dist/mgmt/AuthClient.js +308 -0
  103. package/dist/mgmt/AuthClient.mjs +16 -0
  104. package/dist/mgmt/action.d.ts +8 -0
  105. package/dist/mgmt/action.js +61 -0
  106. package/dist/mgmt/action.mjs +11 -0
  107. package/dist/mgmt/index.d.ts +2 -0
  108. package/dist/mgmt/index.js +37 -0
  109. package/dist/mgmt/index.mjs +13 -0
  110. package/dist/mgmt/mutation.d.ts +18 -0
  111. package/dist/mgmt/mutation.js +83 -0
  112. package/dist/mgmt/mutation.mjs +13 -0
  113. package/dist/mgmt/queries.d.ts +17 -0
  114. package/dist/mgmt/queries.js +148 -0
  115. package/dist/mgmt/queries.mjs +19 -0
  116. package/dist/mgmt/types.d.ts +62 -0
  117. package/dist/mgmt/types.js +18 -0
  118. package/dist/mgmt/types.mjs +1 -0
  119. package/dist/model/ModelClient.d.ts +48 -0
  120. package/dist/model/ModelClient.js +466 -0
  121. package/dist/model/ModelClient.mjs +16 -0
  122. package/dist/model/action.d.ts +9 -0
  123. package/dist/model/action.js +57 -0
  124. package/dist/model/action.mjs +9 -0
  125. package/dist/model/index.d.ts +2 -0
  126. package/dist/model/index.js +37 -0
  127. package/dist/model/index.mjs +13 -0
  128. package/dist/model/mutation.d.ts +15 -0
  129. package/dist/model/mutation.js +128 -0
  130. package/dist/model/mutation.mjs +11 -0
  131. package/dist/model/queries.d.ts +35 -0
  132. package/dist/model/queries.js +234 -0
  133. package/dist/model/queries.mjs +25 -0
  134. package/dist/model/types.d.ts +141 -0
  135. package/dist/model/types.js +18 -0
  136. package/dist/model/types.mjs +1 -0
  137. package/dist/operation/OperationClient.d.ts +11 -0
  138. package/dist/operation/OperationClient.js +106 -0
  139. package/dist/operation/OperationClient.mjs +8 -0
  140. package/dist/operation/index.d.ts +2 -0
  141. package/dist/operation/index.js +31 -0
  142. package/dist/operation/index.mjs +5 -0
  143. package/dist/operation/queries.d.ts +9 -0
  144. package/dist/operation/queries.js +67 -0
  145. package/dist/operation/queries.mjs +9 -0
  146. package/dist/operation/types.d.ts +9 -0
  147. package/dist/operation/types.js +18 -0
  148. package/dist/operation/types.mjs +1 -0
  149. package/dist/pipeline/PipelineClient.d.ts +80 -0
  150. package/dist/pipeline/PipelineClient.js +639 -0
  151. package/dist/pipeline/PipelineClient.mjs +16 -0
  152. package/dist/pipeline/action.d.ts +34 -0
  153. package/dist/pipeline/action.js +157 -0
  154. package/dist/pipeline/action.mjs +17 -0
  155. package/dist/pipeline/index.d.ts +2 -0
  156. package/dist/pipeline/index.js +37 -0
  157. package/dist/pipeline/index.mjs +13 -0
  158. package/dist/pipeline/mutation.d.ts +33 -0
  159. package/dist/pipeline/mutation.js +134 -0
  160. package/dist/pipeline/mutation.mjs +19 -0
  161. package/dist/pipeline/queries.d.ts +32 -0
  162. package/dist/pipeline/queries.js +223 -0
  163. package/dist/pipeline/queries.mjs +23 -0
  164. package/dist/pipeline/types.d.ts +204 -0
  165. package/dist/pipeline/types.js +18 -0
  166. package/dist/pipeline/types.mjs +1 -0
  167. package/dist/protogen-ts/base/metric/v1alpha/metric.ts +4522 -0
  168. package/dist/protogen-ts/base/metric/v1alpha/metric_service.ts +314 -0
  169. package/dist/protogen-ts/base/mgmt/v1alpha/metric.ts +2486 -0
  170. package/dist/protogen-ts/base/mgmt/v1alpha/mgmt.ts +3787 -0
  171. package/dist/protogen-ts/base/mgmt/v1alpha/mgmt_private_service.ts +107 -0
  172. package/dist/protogen-ts/base/mgmt/v1alpha/mgmt_public_service.ts +326 -0
  173. package/dist/protogen-ts/base/usage/v1alpha/usage.ts +2185 -0
  174. package/dist/protogen-ts/base/usage/v1alpha/usage_service.ts +81 -0
  175. package/dist/protogen-ts/common/healthcheck/v1alpha/healthcheck.ts +188 -0
  176. package/dist/protogen-ts/common/task/v1alpha/task.ts +109 -0
  177. package/dist/protogen-ts/google/api/annotations.ts +3 -0
  178. package/dist/protogen-ts/google/api/client.ts +2073 -0
  179. package/dist/protogen-ts/google/api/field_behavior.ts +119 -0
  180. package/dist/protogen-ts/google/api/http.ts +745 -0
  181. package/dist/protogen-ts/google/api/launch_stage.ts +115 -0
  182. package/dist/protogen-ts/google/api/resource.ts +529 -0
  183. package/dist/protogen-ts/google/longrunning/operations.ts +890 -0
  184. package/dist/protogen-ts/google/protobuf/any.ts +259 -0
  185. package/dist/protogen-ts/google/protobuf/descriptor.ts +4831 -0
  186. package/dist/protogen-ts/google/protobuf/duration.ts +203 -0
  187. package/dist/protogen-ts/google/protobuf/empty.ts +70 -0
  188. package/dist/protogen-ts/google/protobuf/field_mask.ts +289 -0
  189. package/dist/protogen-ts/google/protobuf/struct.ts +543 -0
  190. package/dist/protogen-ts/google/protobuf/timestamp.ts +232 -0
  191. package/dist/protogen-ts/google/rpc/status.ts +138 -0
  192. package/dist/protogen-ts/model/controller/v1alpha/controller.ts +823 -0
  193. package/dist/protogen-ts/model/controller/v1alpha/controller_service.ts +95 -0
  194. package/dist/protogen-ts/model/model/v1alpha/common.ts +135 -0
  195. package/dist/protogen-ts/model/model/v1alpha/model.ts +5682 -0
  196. package/dist/protogen-ts/model/model/v1alpha/model_definition.ts +775 -0
  197. package/dist/protogen-ts/model/model/v1alpha/model_private_service.ts +87 -0
  198. package/dist/protogen-ts/model/model/v1alpha/model_public_service.ts +383 -0
  199. package/dist/protogen-ts/model/model/v1alpha/task_classification.ts +326 -0
  200. package/dist/protogen-ts/model/model/v1alpha/task_detection.ts +411 -0
  201. package/dist/protogen-ts/model/model/v1alpha/task_instance_segmentation.ts +435 -0
  202. package/dist/protogen-ts/model/model/v1alpha/task_keypoint.ts +510 -0
  203. package/dist/protogen-ts/model/model/v1alpha/task_ocr.ts +406 -0
  204. package/dist/protogen-ts/model/model/v1alpha/task_semantic_segmentation.ts +396 -0
  205. package/dist/protogen-ts/model/model/v1alpha/task_text_generation.ts +247 -0
  206. package/dist/protogen-ts/model/model/v1alpha/task_text_to_image.ts +221 -0
  207. package/dist/protogen-ts/model/model/v1alpha/task_unspecified.ts +142 -0
  208. package/dist/protogen-ts/protoc-gen-openapiv2/options/annotations.ts +3 -0
  209. package/dist/protogen-ts/protoc-gen-openapiv2/options/openapiv2.ts +5095 -0
  210. package/dist/protogen-ts/vdp/connector/v1alpha/connector.ts +3637 -0
  211. package/dist/protogen-ts/vdp/connector/v1alpha/connector_definition.ts +1043 -0
  212. package/dist/protogen-ts/vdp/connector/v1alpha/connector_private_service.ts +92 -0
  213. package/dist/protogen-ts/vdp/connector/v1alpha/connector_public_service.ts +310 -0
  214. package/dist/protogen-ts/vdp/connector/v1alpha/spec.ts +126 -0
  215. package/dist/protogen-ts/vdp/controller/v1alpha/controller.ts +853 -0
  216. package/dist/protogen-ts/vdp/controller/v1alpha/controller_service.ts +95 -0
  217. package/dist/protogen-ts/vdp/pipeline/v1alpha/common.ts +498 -0
  218. package/dist/protogen-ts/vdp/pipeline/v1alpha/operator_definition.ts +948 -0
  219. package/dist/protogen-ts/vdp/pipeline/v1alpha/pipeline.ts +6006 -0
  220. package/dist/protogen-ts/vdp/pipeline/v1alpha/pipeline_private_service.ts +83 -0
  221. package/dist/protogen-ts/vdp/pipeline/v1alpha/pipeline_public_service.ts +413 -0
  222. package/dist/tsconfig.tsbuildinfo +1 -0
  223. package/dist/types.d.ts +23 -0
  224. package/dist/types.js +18 -0
  225. package/dist/types.mjs +1 -0
  226. package/package.json +50 -0
@@ -0,0 +1,119 @@
1
+ /* eslint-disable */
2
+
3
+ export const protobufPackage = "google.api";
4
+
5
+ /**
6
+ * An indicator of the behavior of a given field (for example, that a field
7
+ * is required in requests, or given as output but ignored as input).
8
+ * This **does not** change the behavior in protocol buffers itself; it only
9
+ * denotes the behavior and may affect how API tooling handles the field.
10
+ *
11
+ * Note: This enum **may** receive new values in the future.
12
+ */
13
+ export enum FieldBehavior {
14
+ /** FIELD_BEHAVIOR_UNSPECIFIED - Conventional default for enums. Do not use this. */
15
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
16
+ /**
17
+ * OPTIONAL - Specifically denotes a field as optional.
18
+ * While all fields in protocol buffers are optional, this may be specified
19
+ * for emphasis if appropriate.
20
+ */
21
+ OPTIONAL = 1,
22
+ /**
23
+ * REQUIRED - Denotes a field as required.
24
+ * This indicates that the field **must** be provided as part of the request,
25
+ * and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
26
+ */
27
+ REQUIRED = 2,
28
+ /**
29
+ * OUTPUT_ONLY - Denotes a field as output only.
30
+ * This indicates that the field is provided in responses, but including the
31
+ * field in a request does nothing (the server *must* ignore it and
32
+ * *must not* throw an error as a result of the field's presence).
33
+ */
34
+ OUTPUT_ONLY = 3,
35
+ /**
36
+ * INPUT_ONLY - Denotes a field as input only.
37
+ * This indicates that the field is provided in requests, and the
38
+ * corresponding field is not included in output.
39
+ */
40
+ INPUT_ONLY = 4,
41
+ /**
42
+ * IMMUTABLE - Denotes a field as immutable.
43
+ * This indicates that the field may be set once in a request to create a
44
+ * resource, but may not be changed thereafter.
45
+ */
46
+ IMMUTABLE = 5,
47
+ /**
48
+ * UNORDERED_LIST - Denotes that a (repeated) field is an unordered list.
49
+ * This indicates that the service may provide the elements of the list
50
+ * in any arbitrary order, rather than the order the user originally
51
+ * provided. Additionally, the list's order may or may not be stable.
52
+ */
53
+ UNORDERED_LIST = 6,
54
+ /**
55
+ * NON_EMPTY_DEFAULT - Denotes that this field returns a non-empty default value if not set.
56
+ * This indicates that if the user provides the empty value in a request,
57
+ * a non-empty value will be returned. The user will not be aware of what
58
+ * non-empty value to expect.
59
+ */
60
+ NON_EMPTY_DEFAULT = 7,
61
+ UNRECOGNIZED = -1,
62
+ }
63
+
64
+ export function fieldBehaviorFromJSON(object: any): FieldBehavior {
65
+ switch (object) {
66
+ case 0:
67
+ case "FIELD_BEHAVIOR_UNSPECIFIED":
68
+ return FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED;
69
+ case 1:
70
+ case "OPTIONAL":
71
+ return FieldBehavior.OPTIONAL;
72
+ case 2:
73
+ case "REQUIRED":
74
+ return FieldBehavior.REQUIRED;
75
+ case 3:
76
+ case "OUTPUT_ONLY":
77
+ return FieldBehavior.OUTPUT_ONLY;
78
+ case 4:
79
+ case "INPUT_ONLY":
80
+ return FieldBehavior.INPUT_ONLY;
81
+ case 5:
82
+ case "IMMUTABLE":
83
+ return FieldBehavior.IMMUTABLE;
84
+ case 6:
85
+ case "UNORDERED_LIST":
86
+ return FieldBehavior.UNORDERED_LIST;
87
+ case 7:
88
+ case "NON_EMPTY_DEFAULT":
89
+ return FieldBehavior.NON_EMPTY_DEFAULT;
90
+ case -1:
91
+ case "UNRECOGNIZED":
92
+ default:
93
+ return FieldBehavior.UNRECOGNIZED;
94
+ }
95
+ }
96
+
97
+ export function fieldBehaviorToJSON(object: FieldBehavior): string {
98
+ switch (object) {
99
+ case FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED:
100
+ return "FIELD_BEHAVIOR_UNSPECIFIED";
101
+ case FieldBehavior.OPTIONAL:
102
+ return "OPTIONAL";
103
+ case FieldBehavior.REQUIRED:
104
+ return "REQUIRED";
105
+ case FieldBehavior.OUTPUT_ONLY:
106
+ return "OUTPUT_ONLY";
107
+ case FieldBehavior.INPUT_ONLY:
108
+ return "INPUT_ONLY";
109
+ case FieldBehavior.IMMUTABLE:
110
+ return "IMMUTABLE";
111
+ case FieldBehavior.UNORDERED_LIST:
112
+ return "UNORDERED_LIST";
113
+ case FieldBehavior.NON_EMPTY_DEFAULT:
114
+ return "NON_EMPTY_DEFAULT";
115
+ case FieldBehavior.UNRECOGNIZED:
116
+ default:
117
+ return "UNRECOGNIZED";
118
+ }
119
+ }