@shuffl/api-contracts 0.5.1 → 0.5.3
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/dist/index.d.ts +153 -4
- package/dist/management-operations.d.ts +1 -1
- package/dist/management-operations.js +17 -1
- package/dist/management.generated.d.ts +149 -4
- package/dist/management.generated.js +148 -1
- package/dist/permissions.d.ts +4 -0
- package/openapi.json +2071 -545
- package/package.json +1 -1
|
@@ -161,6 +161,7 @@ const credentials_api_createInput = z
|
|
|
161
161
|
z.literal('groups.sendMessage'),
|
|
162
162
|
z.literal('groups.setAutomation'),
|
|
163
163
|
z.literal('groups.setAutomationState'),
|
|
164
|
+
z.literal('groups.setPlaybookAutoStart'),
|
|
164
165
|
z.literal('groups.suggestions'),
|
|
165
166
|
z.literal('home.feed'),
|
|
166
167
|
z.literal('home.places'),
|
|
@@ -234,6 +235,7 @@ const credentials_api_createInput = z
|
|
|
234
235
|
z.literal('manager.current'),
|
|
235
236
|
z.literal('mcp.knowledge'),
|
|
236
237
|
z.literal('network.claim'),
|
|
238
|
+
z.literal('network.introductions'),
|
|
237
239
|
z.literal('network.mine'),
|
|
238
240
|
z.literal('network.ofPerson'),
|
|
239
241
|
z.literal('network.orgChart'),
|
|
@@ -1046,6 +1048,10 @@ const exports_teamOutput = z.strictObject({
|
|
|
1046
1048
|
.union([z.null(), z.string()])
|
|
1047
1049
|
.optional()
|
|
1048
1050
|
.optional(),
|
|
1051
|
+
autoStartPaused: z
|
|
1052
|
+
.union([z.literal(false), z.literal(true)])
|
|
1053
|
+
.optional()
|
|
1054
|
+
.optional(),
|
|
1049
1055
|
buddy: z
|
|
1050
1056
|
.union([z.literal(false), z.literal(true)])
|
|
1051
1057
|
.optional()
|
|
@@ -2113,6 +2119,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
2113
2119
|
z.literal('groups.sendMessage'),
|
|
2114
2120
|
z.literal('groups.setAutomation'),
|
|
2115
2121
|
z.literal('groups.setAutomationState'),
|
|
2122
|
+
z.literal('groups.setPlaybookAutoStart'),
|
|
2116
2123
|
z.literal('groups.suggestions'),
|
|
2117
2124
|
z.literal('home.feed'),
|
|
2118
2125
|
z.literal('home.places'),
|
|
@@ -2186,6 +2193,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
2186
2193
|
z.literal('manager.current'),
|
|
2187
2194
|
z.literal('mcp.knowledge'),
|
|
2188
2195
|
z.literal('network.claim'),
|
|
2196
|
+
z.literal('network.introductions'),
|
|
2189
2197
|
z.literal('network.mine'),
|
|
2190
2198
|
z.literal('network.ofPerson'),
|
|
2191
2199
|
z.literal('network.orgChart'),
|
|
@@ -2542,6 +2550,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
2542
2550
|
z.literal('groups.sendMessage'),
|
|
2543
2551
|
z.literal('groups.setAutomation'),
|
|
2544
2552
|
z.literal('groups.setAutomationState'),
|
|
2553
|
+
z.literal('groups.setPlaybookAutoStart'),
|
|
2545
2554
|
z.literal('groups.suggestions'),
|
|
2546
2555
|
z.literal('home.feed'),
|
|
2547
2556
|
z.literal('home.places'),
|
|
@@ -2615,6 +2624,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
2615
2624
|
z.literal('manager.current'),
|
|
2616
2625
|
z.literal('mcp.knowledge'),
|
|
2617
2626
|
z.literal('network.claim'),
|
|
2627
|
+
z.literal('network.introductions'),
|
|
2618
2628
|
z.literal('network.mine'),
|
|
2619
2629
|
z.literal('network.ofPerson'),
|
|
2620
2630
|
z.literal('network.orgChart'),
|
|
@@ -5123,6 +5133,40 @@ const groups_allAutomationsOutput = z.strictObject({
|
|
|
5123
5133
|
trigger: z.union([z.literal('entered'), z.literal('left')]),
|
|
5124
5134
|
updatedAt: z.iso.datetime({ offset: true }),
|
|
5125
5135
|
})),
|
|
5136
|
+
playbookStarts: z.array(z.strictObject({
|
|
5137
|
+
group: z.union([
|
|
5138
|
+
z.null(),
|
|
5139
|
+
z.strictObject({
|
|
5140
|
+
id: z.string(),
|
|
5141
|
+
kind: z.union([z.literal('dynamic'), z.literal('list')]),
|
|
5142
|
+
members: z.number(),
|
|
5143
|
+
name: z.string(),
|
|
5144
|
+
}),
|
|
5145
|
+
]),
|
|
5146
|
+
lastRunAt: z.union([z.null(), z.iso.datetime({ offset: true })]),
|
|
5147
|
+
playbook: z.strictObject({
|
|
5148
|
+
id: z.string(),
|
|
5149
|
+
name: z.string(),
|
|
5150
|
+
status: z.union([
|
|
5151
|
+
z.literal('active'),
|
|
5152
|
+
z.literal('archived'),
|
|
5153
|
+
z.literal('paused'),
|
|
5154
|
+
]),
|
|
5155
|
+
}),
|
|
5156
|
+
runs: z.number(),
|
|
5157
|
+
runs30: z.number(),
|
|
5158
|
+
state: z.union([z.literal('active'), z.literal('paused')]),
|
|
5159
|
+
})),
|
|
5160
|
+
programRosters: z.array(z.strictObject({
|
|
5161
|
+
group: z.strictObject({
|
|
5162
|
+
id: z.string(),
|
|
5163
|
+
kind: z.union([z.literal('dynamic'), z.literal('list')]),
|
|
5164
|
+
members: z.number(),
|
|
5165
|
+
name: z.string(),
|
|
5166
|
+
}),
|
|
5167
|
+
program: z.strictObject({ id: z.string(), name: z.string() }),
|
|
5168
|
+
state: z.union([z.literal('active'), z.literal('paused')]),
|
|
5169
|
+
})),
|
|
5126
5170
|
runs: z.array(z.strictObject({
|
|
5127
5171
|
at: z.iso.datetime({ offset: true }),
|
|
5128
5172
|
automationId: z.string(),
|
|
@@ -5354,6 +5398,34 @@ const groups_setAutomationStateOutput = z.object({
|
|
|
5354
5398
|
})
|
|
5355
5399
|
.nullable(),
|
|
5356
5400
|
});
|
|
5401
|
+
const groups_setPlaybookAutoStartInput = z
|
|
5402
|
+
.strictObject({
|
|
5403
|
+
groupId: z.union([z.null(), z.string()]).optional().optional(),
|
|
5404
|
+
programId: z.string(),
|
|
5405
|
+
state: z.union([
|
|
5406
|
+
z.literal('active'),
|
|
5407
|
+
z.literal('off'),
|
|
5408
|
+
z.literal('paused'),
|
|
5409
|
+
]),
|
|
5410
|
+
})
|
|
5411
|
+
.extend({
|
|
5412
|
+
confirm: z.literal('groups.setPlaybookAutoStart'),
|
|
5413
|
+
requestKey: z.string().min(1).max(128),
|
|
5414
|
+
});
|
|
5415
|
+
const groups_setPlaybookAutoStartOutput = z.object({
|
|
5416
|
+
receipt: commandReceiptSchema,
|
|
5417
|
+
result: z
|
|
5418
|
+
.strictObject({
|
|
5419
|
+
changed: z.boolean(),
|
|
5420
|
+
id: z.string(),
|
|
5421
|
+
state: z.union([
|
|
5422
|
+
z.literal('active'),
|
|
5423
|
+
z.literal('off'),
|
|
5424
|
+
z.literal('paused'),
|
|
5425
|
+
]),
|
|
5426
|
+
})
|
|
5427
|
+
.nullable(),
|
|
5428
|
+
});
|
|
5357
5429
|
const groups_removeAutomationInput = z.strictObject({ id: z.string() }).extend({
|
|
5358
5430
|
confirm: z.literal('groups.removeAutomation'),
|
|
5359
5431
|
requestKey: z.string().min(1).max(128),
|
|
@@ -5938,6 +6010,7 @@ const home_placesOutput = z.strictObject({
|
|
|
5938
6010
|
z.literal('celebrations'),
|
|
5939
6011
|
z.literal('chats'),
|
|
5940
6012
|
z.literal('communities'),
|
|
6013
|
+
z.literal('connections'),
|
|
5941
6014
|
z.literal('knowledge'),
|
|
5942
6015
|
z.literal('playbook'),
|
|
5943
6016
|
z.literal('praise'),
|
|
@@ -6074,6 +6147,46 @@ const network_orgChartOutput = z.strictObject({
|
|
|
6074
6147
|
userId: z.union([z.null(), z.string()]),
|
|
6075
6148
|
})),
|
|
6076
6149
|
});
|
|
6150
|
+
const network_introductionsInput = z.strictObject({});
|
|
6151
|
+
const network_introductionsOutput = z.union([
|
|
6152
|
+
z.strictObject({
|
|
6153
|
+
past: z.array(z.strictObject({
|
|
6154
|
+
at: z.iso.datetime({ offset: true }),
|
|
6155
|
+
id: z.string(),
|
|
6156
|
+
program: z.string(),
|
|
6157
|
+
with: z.array(z.strictObject({
|
|
6158
|
+
id: z.string(),
|
|
6159
|
+
name: z.string(),
|
|
6160
|
+
photoUrl: z.union([z.null(), z.string()]),
|
|
6161
|
+
slackUserId: z.union([z.null(), z.string()]),
|
|
6162
|
+
title: z.union([z.null(), z.string()]),
|
|
6163
|
+
})),
|
|
6164
|
+
})),
|
|
6165
|
+
programs: z.array(z.strictObject({
|
|
6166
|
+
breakUntil: z.union([z.null(), z.iso.datetime({ offset: true })]),
|
|
6167
|
+
id: z.string(),
|
|
6168
|
+
name: z.string(),
|
|
6169
|
+
nextAt: z.union([z.null(), z.iso.datetime({ offset: true })]),
|
|
6170
|
+
})),
|
|
6171
|
+
total: z.number(),
|
|
6172
|
+
}),
|
|
6173
|
+
z.strictObject({
|
|
6174
|
+
past: z.array(z.strictObject({
|
|
6175
|
+
at: z.iso.datetime({ offset: true }),
|
|
6176
|
+
id: z.string(),
|
|
6177
|
+
program: z.string(),
|
|
6178
|
+
with: z.array(z.strictObject({
|
|
6179
|
+
id: z.string(),
|
|
6180
|
+
name: z.string(),
|
|
6181
|
+
photoUrl: z.union([z.null(), z.string()]),
|
|
6182
|
+
slackUserId: z.union([z.null(), z.string()]),
|
|
6183
|
+
title: z.union([z.null(), z.string()]),
|
|
6184
|
+
})),
|
|
6185
|
+
})),
|
|
6186
|
+
programs: z.array(z.never()),
|
|
6187
|
+
total: z.number(),
|
|
6188
|
+
}),
|
|
6189
|
+
]);
|
|
6077
6190
|
const network_mineInput = z.strictObject({});
|
|
6078
6191
|
const network_mineOutput = z.union([
|
|
6079
6192
|
z.strictObject({
|
|
@@ -8937,6 +9050,10 @@ const reports_overviewOutput = z.strictObject({
|
|
|
8937
9050
|
.union([z.null(), z.string()])
|
|
8938
9051
|
.optional()
|
|
8939
9052
|
.optional(),
|
|
9053
|
+
autoStartPaused: z
|
|
9054
|
+
.union([z.literal(false), z.literal(true)])
|
|
9055
|
+
.optional()
|
|
9056
|
+
.optional(),
|
|
8940
9057
|
buddy: z
|
|
8941
9058
|
.union([z.literal(false), z.literal(true)])
|
|
8942
9059
|
.optional()
|
|
@@ -9490,6 +9607,10 @@ const playbooks_programOutput = z.strictObject({
|
|
|
9490
9607
|
.optional()
|
|
9491
9608
|
.optional(),
|
|
9492
9609
|
autoStartGroupId: z.union([z.null(), z.string()]).optional().optional(),
|
|
9610
|
+
autoStartPaused: z
|
|
9611
|
+
.union([z.literal(false), z.literal(true)])
|
|
9612
|
+
.optional()
|
|
9613
|
+
.optional(),
|
|
9493
9614
|
buddy: z
|
|
9494
9615
|
.union([z.literal(false), z.literal(true)])
|
|
9495
9616
|
.optional()
|
|
@@ -9801,6 +9922,10 @@ const playbooks_saveProgramInput = z
|
|
|
9801
9922
|
.optional()
|
|
9802
9923
|
.optional(),
|
|
9803
9924
|
autoStartGroupId: z.union([z.null(), z.string()]).optional().optional(),
|
|
9925
|
+
autoStartPaused: z
|
|
9926
|
+
.union([z.literal(false), z.literal(true)])
|
|
9927
|
+
.optional()
|
|
9928
|
+
.optional(),
|
|
9804
9929
|
buddy: z
|
|
9805
9930
|
.union([z.literal(false), z.literal(true)])
|
|
9806
9931
|
.optional()
|
|
@@ -10000,6 +10125,10 @@ const playbooks_saveProgramOutput = z.object({
|
|
|
10000
10125
|
.union([z.null(), z.string()])
|
|
10001
10126
|
.optional()
|
|
10002
10127
|
.optional(),
|
|
10128
|
+
autoStartPaused: z
|
|
10129
|
+
.union([z.literal(false), z.literal(true)])
|
|
10130
|
+
.optional()
|
|
10131
|
+
.optional(),
|
|
10003
10132
|
buddy: z
|
|
10004
10133
|
.union([z.literal(false), z.literal(true)])
|
|
10005
10134
|
.optional()
|
|
@@ -17255,7 +17384,7 @@ export const managementContract = {
|
|
|
17255
17384
|
.route({
|
|
17256
17385
|
method: 'POST',
|
|
17257
17386
|
path: '/manage/groups/allAutomations',
|
|
17258
|
-
summary: 'Every
|
|
17387
|
+
summary: 'Every join and leave rule in the workspace: group automations with their group and last runs, playbooks that start on each start date and Connections programs whose people are a group; or only those that start one playbook, program or community',
|
|
17259
17388
|
})
|
|
17260
17389
|
.input(groups_allAutomationsInput)
|
|
17261
17390
|
.output(groups_allAutomationsOutput),
|
|
@@ -17457,6 +17586,15 @@ export const managementContract = {
|
|
|
17457
17586
|
})
|
|
17458
17587
|
.input(groups_setAutomationStateInput)
|
|
17459
17588
|
.output(groups_setAutomationStateOutput),
|
|
17589
|
+
setPlaybookAutoStart: base
|
|
17590
|
+
.meta({ scope: 'users:write' })
|
|
17591
|
+
.route({
|
|
17592
|
+
method: 'POST',
|
|
17593
|
+
path: '/manage/groups/setPlaybookAutoStart',
|
|
17594
|
+
summary: 'Turn on, pause or remove a playbook’s rule that starts it on each new hire’s start date, for everyone or one group',
|
|
17595
|
+
})
|
|
17596
|
+
.input(groups_setPlaybookAutoStartInput)
|
|
17597
|
+
.output(groups_setPlaybookAutoStartOutput),
|
|
17460
17598
|
suggestions: base
|
|
17461
17599
|
.meta({ scope: 'users:read' })
|
|
17462
17600
|
.route({
|
|
@@ -18094,6 +18232,15 @@ export const managementContract = {
|
|
|
18094
18232
|
})
|
|
18095
18233
|
.input(network_claimInput)
|
|
18096
18234
|
.output(network_claimOutput),
|
|
18235
|
+
introductions: base
|
|
18236
|
+
.meta({ scope: 'users:read' })
|
|
18237
|
+
.route({
|
|
18238
|
+
method: 'POST',
|
|
18239
|
+
path: '/manage/network/introductions',
|
|
18240
|
+
summary: 'Your Connections programs, when your next introduction goes out, and who you met',
|
|
18241
|
+
})
|
|
18242
|
+
.input(network_introductionsInput)
|
|
18243
|
+
.output(network_introductionsOutput),
|
|
18097
18244
|
mine: base
|
|
18098
18245
|
.meta({ scope: 'users:read' })
|
|
18099
18246
|
.route({
|
package/dist/permissions.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ export declare const permissionSchema: z.ZodEnum<{
|
|
|
120
120
|
"groups.sendMessage": "groups.sendMessage";
|
|
121
121
|
"groups.setAutomation": "groups.setAutomation";
|
|
122
122
|
"groups.setAutomationState": "groups.setAutomationState";
|
|
123
|
+
"groups.setPlaybookAutoStart": "groups.setPlaybookAutoStart";
|
|
123
124
|
"groups.suggestions": "groups.suggestions";
|
|
124
125
|
"home.feed": "home.feed";
|
|
125
126
|
"home.places": "home.places";
|
|
@@ -193,6 +194,7 @@ export declare const permissionSchema: z.ZodEnum<{
|
|
|
193
194
|
"manager.current": "manager.current";
|
|
194
195
|
"mcp.knowledge": "mcp.knowledge";
|
|
195
196
|
"network.claim": "network.claim";
|
|
197
|
+
"network.introductions": "network.introductions";
|
|
196
198
|
"network.mine": "network.mine";
|
|
197
199
|
"network.ofPerson": "network.ofPerson";
|
|
198
200
|
"network.orgChart": "network.orgChart";
|
|
@@ -501,6 +503,7 @@ export declare const permissionDefinitionSchema: z.ZodObject<{
|
|
|
501
503
|
"groups.sendMessage": "groups.sendMessage";
|
|
502
504
|
"groups.setAutomation": "groups.setAutomation";
|
|
503
505
|
"groups.setAutomationState": "groups.setAutomationState";
|
|
506
|
+
"groups.setPlaybookAutoStart": "groups.setPlaybookAutoStart";
|
|
504
507
|
"groups.suggestions": "groups.suggestions";
|
|
505
508
|
"home.feed": "home.feed";
|
|
506
509
|
"home.places": "home.places";
|
|
@@ -574,6 +577,7 @@ export declare const permissionDefinitionSchema: z.ZodObject<{
|
|
|
574
577
|
"manager.current": "manager.current";
|
|
575
578
|
"mcp.knowledge": "mcp.knowledge";
|
|
576
579
|
"network.claim": "network.claim";
|
|
580
|
+
"network.introductions": "network.introductions";
|
|
577
581
|
"network.mine": "network.mine";
|
|
578
582
|
"network.ofPerson": "network.ofPerson";
|
|
579
583
|
"network.orgChart": "network.orgChart";
|