@shuffl/cli 0.11.15 → 0.11.17

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.
@@ -4485,6 +4485,10 @@ export const commands = [
4485
4485
  const: 'knowledge.sources.importWebsite',
4486
4486
  type: 'string',
4487
4487
  },
4488
+ {
4489
+ const: 'knowledge.sources.importWebsiteSection',
4490
+ type: 'string',
4491
+ },
4488
4492
  {
4489
4493
  const: 'knowledge.sources.list',
4490
4494
  type: 'string',
@@ -4509,6 +4513,10 @@ export const commands = [
4509
4513
  const: 'knowledge.sources.search',
4510
4514
  type: 'string',
4511
4515
  },
4516
+ {
4517
+ const: 'knowledge.sources.websiteSectionImports',
4518
+ type: 'string',
4519
+ },
4512
4520
  {
4513
4521
  const: 'knowledge.sources.withdraw',
4514
4522
  type: 'string',
@@ -10076,6 +10084,127 @@ export const commands = [
10076
10084
  scope: 'knowledge:write',
10077
10085
  summary: 'Import a website page into Knowledge for review',
10078
10086
  },
10087
+ {
10088
+ access: 'write',
10089
+ command: ['knowledge', 'sources', 'import-website-section'],
10090
+ input: {
10091
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
10092
+ additionalProperties: false,
10093
+ properties: {
10094
+ auth: {
10095
+ anyOf: [
10096
+ {
10097
+ additionalProperties: false,
10098
+ properties: {
10099
+ type: {
10100
+ const: 'none',
10101
+ type: 'string',
10102
+ },
10103
+ },
10104
+ required: ['type'],
10105
+ type: 'object',
10106
+ },
10107
+ {
10108
+ additionalProperties: false,
10109
+ properties: {
10110
+ token: {
10111
+ type: 'string',
10112
+ },
10113
+ type: {
10114
+ const: 'bearer',
10115
+ type: 'string',
10116
+ },
10117
+ },
10118
+ required: ['token', 'type'],
10119
+ type: 'object',
10120
+ },
10121
+ {
10122
+ additionalProperties: false,
10123
+ properties: {
10124
+ password: {
10125
+ type: 'string',
10126
+ },
10127
+ type: {
10128
+ const: 'basic',
10129
+ type: 'string',
10130
+ },
10131
+ username: {
10132
+ type: 'string',
10133
+ },
10134
+ },
10135
+ required: ['password', 'type', 'username'],
10136
+ type: 'object',
10137
+ },
10138
+ {
10139
+ additionalProperties: false,
10140
+ properties: {
10141
+ header: {
10142
+ anyOf: [
10143
+ {
10144
+ const: 'api-key',
10145
+ type: 'string',
10146
+ },
10147
+ {
10148
+ const: 'x-api-key',
10149
+ type: 'string',
10150
+ },
10151
+ {
10152
+ const: 'x-auth-token',
10153
+ type: 'string',
10154
+ },
10155
+ ],
10156
+ },
10157
+ token: {
10158
+ type: 'string',
10159
+ },
10160
+ type: {
10161
+ const: 'api_key',
10162
+ type: 'string',
10163
+ },
10164
+ },
10165
+ required: ['header', 'token', 'type'],
10166
+ type: 'object',
10167
+ },
10168
+ {
10169
+ additionalProperties: false,
10170
+ properties: {
10171
+ clientId: {
10172
+ type: 'string',
10173
+ },
10174
+ clientSecret: {
10175
+ type: 'string',
10176
+ },
10177
+ type: {
10178
+ const: 'cloudflare_access',
10179
+ type: 'string',
10180
+ },
10181
+ },
10182
+ required: ['clientId', 'clientSecret', 'type'],
10183
+ type: 'object',
10184
+ },
10185
+ ],
10186
+ },
10187
+ confirm: {
10188
+ const: 'knowledge.sources.importWebsiteSection',
10189
+ type: 'string',
10190
+ },
10191
+ requestKey: {
10192
+ maxLength: 128,
10193
+ minLength: 1,
10194
+ type: 'string',
10195
+ },
10196
+ url: {
10197
+ type: 'string',
10198
+ },
10199
+ },
10200
+ required: ['auth', 'url', 'confirm', 'requestKey'],
10201
+ type: 'object',
10202
+ },
10203
+ path: ['knowledge', 'sources', 'importWebsiteSection'],
10204
+ permission: 'knowledge.sources.importWebsiteSection',
10205
+ scope: 'knowledge:write',
10206
+ summary: 'Import every page under a website path into Knowledge, each as its own draft',
10207
+ },
10079
10208
  {
10080
10209
  access: 'read',
10081
10210
  command: ['knowledge', 'sources', 'list'],
@@ -10433,6 +10562,20 @@ export const commands = [
10433
10562
  scope: 'knowledge:read',
10434
10563
  summary: 'Search Knowledge sources by title',
10435
10564
  },
10565
+ {
10566
+ access: 'read',
10567
+ command: ['knowledge', 'sources', 'website-section-imports'],
10568
+ input: {
10569
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
10570
+ additionalProperties: false,
10571
+ properties: {},
10572
+ type: 'object',
10573
+ },
10574
+ path: ['knowledge', 'sources', 'websiteSectionImports'],
10575
+ permission: 'knowledge.sources.websiteSectionImports',
10576
+ scope: 'knowledge:read',
10577
+ summary: 'List website section imports from the last week and how far each has got',
10578
+ },
10436
10579
  {
10437
10580
  access: 'write',
10438
10581
  command: ['knowledge', 'sources', 'withdraw'],
@@ -12297,6 +12440,10 @@ export const commands = [
12297
12440
  const: 'getting_started',
12298
12441
  type: 'string',
12299
12442
  },
12443
+ {
12444
+ const: 'go_live',
12445
+ type: 'string',
12446
+ },
12300
12447
  {
12301
12448
  const: 'hr_digest',
12302
12449
  type: 'string',
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@orpc/client": "1.15.3",
4
- "@shuffl/api-contracts": "0.11.15",
5
- "@shuffl/sdk": "0.11.15"
4
+ "@shuffl/api-contracts": "0.11.17",
5
+ "@shuffl/sdk": "0.11.17"
6
6
  },
7
7
  "description": "Shuffl command line: every public API operation as a scriptable command with JSON output.",
8
8
  "engines": {
@@ -33,7 +33,7 @@
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
35
  "types": "./dist/index.d.ts",
36
- "version": "0.11.15",
36
+ "version": "0.11.17",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }