@logto/connector-discord 1.0.0-beta.20 → 1.0.0-beta.22

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/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ConnectorPlatform, parseJson, ConnectorError, ConnectorErrorCodes, ConnectorType, validateConfig, socialUserInfoGuard } from '@logto/connector-kit';
1
+ import { ConnectorPlatform, ConnectorConfigFormItemType, parseJson, ConnectorError, ConnectorErrorCodes, ConnectorType, validateConfig, socialUserInfoGuard } from '@logto/connector-kit';
2
2
  import { got, HTTPError } from 'got';
3
3
  import { z } from 'zod';
4
4
 
@@ -50,7 +50,22 @@ const defaultMetadata = {
50
50
  ko: 'Discord는 음성, 비디오 및 텍스트로 대화하는 가장 쉬운 방법입니다.',
51
51
  },
52
52
  readme: './README.md',
53
- configTemplate: './docs/config-template.json',
53
+ formItems: [
54
+ {
55
+ key: 'clientId',
56
+ type: ConnectorConfigFormItemType.Text,
57
+ required: true,
58
+ label: 'Client ID',
59
+ placeholder: '<client-id>',
60
+ },
61
+ {
62
+ key: 'clientSecret',
63
+ type: ConnectorConfigFormItemType.Text,
64
+ required: true,
65
+ label: 'Client Secret',
66
+ placeholder: '<client-secret>',
67
+ },
68
+ ],
54
69
  };
55
70
  const defaultTimeout = 5000;
56
71
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "logo-dark.svg"
12
12
  ],
13
13
  "dependencies": {
14
- "@logto/connector-kit": "1.0.0-rc.2",
14
+ "@logto/connector-kit": "1.0.0-rc.3",
15
15
  "@silverhand/essentials": "2.1.0",
16
16
  "got": "^12.5.3",
17
17
  "snakecase-keys": "^5.1.0",
@@ -51,7 +51,7 @@
51
51
  "access": "public"
52
52
  },
53
53
  "name": "@logto/connector-discord",
54
- "version": "1.0.0-beta.20",
54
+ "version": "1.0.0-beta.22",
55
55
  "description": "Discord connector implementation.",
56
56
  "author": "ZR3SYSTEMS. <https://github.com/FlurryNight>",
57
57
  "scripts": {
@@ -1,4 +0,0 @@
1
- {
2
- "clientId": "<client-id>",
3
- "clientSecret": "<client-secret>"
4
- }