@kanda-libs/ks-schema 1.0.108 → 1.0.109

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-schema",
3
- "version": "1.0.108",
3
+ "version": "1.0.109",
4
4
  "description": "Kanda Service OpenAPI Schema",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.yaml CHANGED
@@ -102,6 +102,33 @@ paths:
102
102
  schema:
103
103
  $ref: "#/components/schemas/Error"
104
104
 
105
+ /api/info/ghost:
106
+ put:
107
+ operationId: infoGhost
108
+ summary: info ghost mode to return custom token, only available to Kanda staff
109
+ tags:
110
+ - InfoGhost
111
+ requestBody:
112
+ description: info ghost mode to return custom token
113
+ required: true
114
+ content:
115
+ application/json:
116
+ schema:
117
+ $ref: "#/components/schemas/InfoGhost"
118
+ responses:
119
+ 200:
120
+ description: put me info
121
+ content:
122
+ application/json:
123
+ schema:
124
+ $ref: "#/components/schemas/InfoGhost"
125
+ default:
126
+ description: unexpected error
127
+ content:
128
+ application/json:
129
+ schema:
130
+ $ref: "#/components/schemas/Error"
131
+
105
132
  /api/info/company:
106
133
  get:
107
134
  operationId: infoCompany
@@ -1898,6 +1925,22 @@ components:
1898
1925
  title: photo URL
1899
1926
  format: uri
1900
1927
 
1928
+ InfoGhost:
1929
+ type: object
1930
+ required:
1931
+ - email
1932
+ properties:
1933
+ email:
1934
+ type: string
1935
+ title: email for ghosted user
1936
+ format: email
1937
+ customer_role:
1938
+ type: string
1939
+ title: custom role set for ghosted user
1940
+ custom_token:
1941
+ type: string
1942
+ title: custom token
1943
+
1901
1944
  InfoAuth:
1902
1945
  type: object
1903
1946
  required: