|
| 1 | +### installation |
| 2 | + |
| 3 | +``` |
| 4 | +npm i @instill-ai/typescript-sdk |
| 5 | +``` |
| 6 | +``` |
| 7 | +yarn add @instill-ai/typescript-sdk |
| 8 | +``` |
| 9 | +``` |
| 10 | +pnpm add @instill-ai/typescript-sdk |
| 11 | +``` |
| 12 | + |
1 | 13 | ## Usage Examples:
|
2 | 14 |
|
3 |
| -Gives real-life examples showing how to utilise the SDK. |
| 15 | +``` |
| 16 | +// node.js |
| 17 | +const instillAI = require("@instill-ai/typescript-sdk"); |
4 | 18 |
|
5 |
| -## Error Handling: |
| 19 | +// next.js |
| 20 | +import { Pipeline, listPipelinesQuery } from "@instill-ai/typescript-sdk"; |
6 | 21 |
|
7 |
| -Explains common errors and ways to resolve them. |
| 22 | +``` |
8 | 23 |
|
9 |
| -## Integration Guide: |
10 | 24 |
|
11 |
| -Guidance on how to incorporate the SDK into other applications. |
| 25 | +## API Reference |
12 | 26 |
|
13 |
| -## Guidelines: |
| 27 | +### Pipelines |
14 | 28 |
|
15 |
| -Recommendations for best practices while using the SDK. |
| 29 | +| function | params | response | |
| 30 | +| :------------------- | :---------------------------------------: | ----------------------: | |
| 31 | +| listPipelinesQuery | pageSize, nextPageToken, accessToken | | |
| 32 | +| listUserPipelinesQuery | pageSize, nextPageToken, accessToken, userName | | |
| 33 | +| getUserPipelineQuery | pipelineName, accessToken | | |
| 34 | +| ListUserPipelineReleasesQuery | userName, pipelineName, pageSize, nextPageToken, accessToken | | |
| 35 | +| getUserPipelineReleaseQuery | pipelineReleaseName, accessToken | | |
| 36 | +| watchUserPipelineReleaseQuery | pipelineReleaseName, accessToken | | |
| 37 | +| createUserPipelineMutation | userName, payload, accessToken | | |
| 38 | +| updateUserPipelineMutation | payload, accessToken | | |
| 39 | +| deleteUserPipelineMutation | pipelineName, accessToken | | |
| 40 | +| renameUserPipelineMutation | payload, accessToken | | |
| 41 | +| createUserPipelineReleaseMutation | pipelineName, payload, accessToken | | |
| 42 | +| updateUserPipelineReleaseMutation | pipelineReleaseName, payload, accessToken | | |
| 43 | +| deleteUserPipelineReleaseMutation | pipelineReleaseName, accessToken | | |
| 44 | +| triggerUserPipelineAction | pipelineName, payload, accessToken, returnTraces | | |
| 45 | +| triggerAsyncUserPipelineAction | pipelineName, payload, accessToken, returnTraces | | |
| 46 | +| setDefaultUserPipelineReleaseMutation | pipelineReleaseName, accessToken | | |
| 47 | +| restoreUserPipelineReleaseMutation | pipelineReleaseName, accessToken | | |
| 48 | +| triggerUserPipelineReleaseAction | pipelineReleaseName, payload, accessToken, returnTraces | | |
| 49 | +| triggerAsyncUserPipelineReleaseAction | pipelineReleaseName, payload, accessToken, returnTraces | | |
16 | 50 |
|
17 |
| -## Troubleshooting Tips: |
| 51 | +### Connector |
18 | 52 |
|
19 |
| -How to diagnose and fix problems. |
| 53 | +| function | params | response | |
| 54 | +| :------------------- | :-----------------------------------------------------------: | -----------------: | |
| 55 | +| listConnectorResourcesQuery | userName, pageSize, nextPageToken, accessToken, filter | | |
| 56 | +| listUserConnectorResourcesQuery | pageSize, nextPageToken, accessToken, filter | | |
| 57 | +| listConnectorDefinitionsQuery | connectorDefinitionName, accessToken | | |
| 58 | +| getConnectorDefinitionQuery | connectorDefinitionName, accessToken | | |
| 59 | +| getUserConnectorResourceQuery | connectorDefinitionName, accessToken | | |
| 60 | +| watchUserConnectorResource | userName, payload, accessToken | | |
| 61 | +| createUserConnectorResourceMutation | connectorDefinitionName, accessToken | | |
| 62 | +| deleteUserConnectorResourceMutation | payload, accessToken | | |
| 63 | +| updateUserConnectorResourceMutation | payload, accessToken | | |
| 64 | +| renameUserConnectorResource | payload, accessToken | | |
| 65 | +| testUserConnectorResourceConnectionAction | connectorDefinitionName, accessToken | | |
| 66 | +| connectUserConnectorResourceAction | connectorDefinitionName, accessToken | | |
| 67 | +| disconnectUserConnectorResourceAction | connectorDefinitionName, accessToken | | |
20 | 68 |
|
21 |
| -## License & Version Control: |
| 69 | +### Metric |
22 | 70 |
|
23 |
| -Information about licenses and updates related to the SDK. |
| 71 | +| function | params | response | |
| 72 | +| :------------------- | :------------------: | -----------------: | |
| 73 | +| listPipelineTriggerRecordsQuery | pageSize, nextPageToken, accessToken, filter | | |
| 74 | +| listTriggeredPipelineQuery | pageSize, nextPageToken, accessToken, filter | | |
| 75 | +| listTriggeredPipelineChartQuery | pageSize, nextPageToken, accessToken, filter | | |
24 | 76 |
|
25 |
| -## Release Notes: |
| 77 | +modelDefinitionName, accessToken, |
| 78 | +### Model |
| 79 | + |
| 80 | +| function | params | response | |
| 81 | +| :------------------- | :------------------: | -----------------: | |
| 82 | +| getModelDefinitionQuery | modelDefinitionName, accessToken | | |
| 83 | +| listModelDefinitionsQuery | pageSize, nextPageToken, accessToken | | |
| 84 | +| getUserModelQuery | modelName, accessToken | | |
| 85 | +| listModelsQuery | pageSize, nextPageToken, accessToken | | |
| 86 | +| listUserModelsQuery | userName, pageSize, nextPageToken, accessToken | | |
| 87 | +| getUserModelReadmeQuery | modelName, accessToken | | |
| 88 | +| watchUserModel | modelName, accessToken | | |
| 89 | +| createUserModelMutation | userName, payload, accessToken | | |
| 90 | +| updateModelMutation | payload, accessToken | | |
| 91 | +| deleteUserModelMutation | modelName, accessToken | | |
| 92 | +| deployUserModelAction | modelName, accessToken | | |
| 93 | +| undeployUserModeleAction | modelName, accessToken | | |
| 94 | + |
| 95 | +### Operation |
| 96 | + |
| 97 | +| function | params | response | |
| 98 | +| :------------------- | :-----------------------------------------------------------: | -----------------: | |
| 99 | +| getOperationQuery | operationName, accessToken | | |
| 100 | +| checkUntilOperationIsDoen | operationName, accessToken | | |
| 101 | + |
| 102 | +### Mgmt |
| 103 | + |
| 104 | +| function | params | response | |
| 105 | +| :------------------- | :------------------: | -----------------: | |
| 106 | +| getUserQuery | accessToken | | |
| 107 | +| checkUserIdExist | id, accessToken | | |
| 108 | +| getApiTokenQuery | tokenName, accessToken | | |
| 109 | +| listApiTokensQuery | pageSize, nextPageToken, accessToken | | |
| 110 | +| updateUserMutation | payload, accessToken | | |
| 111 | +| createApiTokenMutation | payload, accessToken | | |
| 112 | +| deleteApiTokenMutation | tokenName, accessToken | | |
26 | 113 |
|
27 |
| -Details about new releases, changes, bug fixes, improvements, known issues. |
| 114 | +## Error Handling: |
| 115 | + |
| 116 | +Explains common errors and ways to resolve them. |
| 117 | + |
| 118 | +## Integration Guide: |
| 119 | +### Next APP |
| 120 | +- [next-app](./examples/next-app/) |
| 121 | +### Node APP |
| 122 | +- [node-app](./examples/node-app/) |
| 123 | + |
| 124 | +Guidance on how to incorporate the SDK into other applications. |
| 125 | + |
| 126 | +## Contribution Guidelines: |
| 127 | + |
| 128 | +Please refer to the [Contributing Guidelines](./.github/CONTRIBUTING.md) for more details. |
| 129 | + |
| 130 | +## Release Notes: |
| 131 | +[Release](./CHANGELOG.md) |
28 | 132 |
|
29 | 133 | ## Support:
|
30 | 134 |
|
|
0 commit comments