@sprucelabs/mercury-core-events 22.1.84 → 22.1.86

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.
@@ -5,47 +5,68 @@ import '@sprucelabs/spruce-event-utils';
5
5
  import '@sprucelabs/mercury-types';
6
6
  declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
7
7
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8
- interface DidInstallEmitTargetAndPayload {
9
- /** Source. */
10
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTarget;
8
+ interface AddRoleEmitTarget {
9
+ 'organizationId'?: string | undefined | null;
10
+ 'locationId'?: string | undefined | null;
12
11
  }
13
- interface DidInstallEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
14
- id: 'didInstallEmitTargetAndPayload';
12
+ interface AddRoleEmitTargetSchema extends SpruceSchema.Schema {
13
+ id: 'addRoleEmitTarget';
15
14
  version: 'v2020_12_25';
16
15
  namespace: 'Mercury';
17
16
  name: '';
18
17
  fields: {
19
- /** Source. */
20
- 'source': {
21
- label: 'Source';
22
- type: 'schema';
23
- options: {
24
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
25
- };
18
+ /** . */
19
+ 'organizationId': {
20
+ type: 'id';
21
+ options: undefined;
26
22
  };
27
23
  /** . */
28
- 'target': {
29
- type: 'schema';
24
+ 'locationId': {
25
+ type: 'id';
26
+ options: undefined;
27
+ };
28
+ };
29
+ }
30
+ interface AddRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema> {
31
+ }
32
+ }
33
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
34
+ interface AddRoleEmitPayload {
35
+ 'personId': string;
36
+ 'roleId': string;
37
+ }
38
+ interface AddRoleEmitPayloadSchema extends SpruceSchema.Schema {
39
+ id: 'addRoleEmitPayload';
40
+ version: 'v2020_12_25';
41
+ namespace: 'Mercury';
42
+ name: '';
43
+ fields: {
44
+ /** . */
45
+ 'personId': {
46
+ type: 'id';
30
47
  isRequired: true;
31
- options: {
32
- schema: SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema;
33
- };
48
+ options: undefined;
49
+ };
50
+ /** . */
51
+ 'roleId': {
52
+ type: 'id';
53
+ isRequired: true;
54
+ options: undefined;
34
55
  };
35
56
  };
36
57
  }
37
- interface DidInstallEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetAndPayloadSchema> {
58
+ interface AddRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema> {
38
59
  }
39
60
  }
40
61
  namespace SpruceSchemas.Mercury.v2020_12_25 {
41
- interface CreateRoleEmitTargetAndPayload {
62
+ interface AddRoleEmitTargetAndPayload {
42
63
  /** Source. */
43
64
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
44
- 'target': SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitTarget;
45
- 'payload': SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitPayload;
65
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTarget | undefined | null;
66
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayload;
46
67
  }
47
- interface CreateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
48
- id: 'createRoleEmitTargetAndPayload';
68
+ interface AddRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
69
+ id: 'addRoleEmitTargetAndPayload';
49
70
  version: 'v2020_12_25';
50
71
  namespace: 'Mercury';
51
72
  name: '';
@@ -61,9 +82,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
61
82
  /** . */
62
83
  'target': {
63
84
  type: 'schema';
64
- isRequired: true;
65
85
  options: {
66
- schema: SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitTargetSchema;
86
+ schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema;
67
87
  };
68
88
  };
69
89
  /** . */
@@ -71,126 +91,67 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
71
91
  type: 'schema';
72
92
  isRequired: true;
73
93
  options: {
74
- schema: SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitPayloadSchema;
94
+ schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema;
75
95
  };
76
96
  };
77
97
  };
78
98
  }
79
- interface CreateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitTargetAndPayloadSchema> {
80
- }
81
- }
82
- namespace SpruceSchemas.Mercury.v2020_12_25 {
83
- interface DidInstallEmitTarget {
84
- 'organizationId': string;
85
- 'skillId': string;
86
- }
87
- interface DidInstallEmitTargetSchema extends SpruceSchema.Schema {
88
- id: 'didInstallEmitTarget';
89
- version: 'v2020_12_25';
90
- namespace: 'Mercury';
91
- name: '';
92
- fields: {
93
- /** . */
94
- 'organizationId': {
95
- type: 'id';
96
- isRequired: true;
97
- options: undefined;
98
- };
99
- /** . */
100
- 'skillId': {
101
- type: 'id';
102
- isRequired: true;
103
- options: undefined;
104
- };
105
- };
106
- }
107
- interface DidInstallEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema> {
99
+ interface AddRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetAndPayloadSchema> {
108
100
  }
109
101
  }
110
102
  namespace SpruceSchemas.Mercury.v2020_12_25 {
111
- interface DidInstallResponsePayload {
103
+ interface AddRoleResponsePayload {
112
104
  }
113
- interface DidInstallResponsePayloadSchema extends SpruceSchema.Schema {
114
- id: 'didInstallResponsePayload';
105
+ interface AddRoleResponsePayloadSchema extends SpruceSchema.Schema {
106
+ id: 'addRoleResponsePayload';
115
107
  version: 'v2020_12_25';
116
108
  namespace: 'Mercury';
117
109
  name: '';
118
110
  fields: {};
119
111
  }
120
- interface DidInstallResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallResponsePayloadSchema> {
121
- }
122
- }
123
- namespace SpruceSchemas.Mercury.v2020_12_25 {
124
- interface DidJoinOrganizationEmitTarget {
125
- 'organizationId': string;
126
- 'locationId'?: string | undefined | null;
127
- }
128
- interface DidJoinOrganizationEmitTargetSchema extends SpruceSchema.Schema {
129
- id: 'didJoinOrganizationEmitTarget';
130
- version: 'v2020_12_25';
131
- namespace: 'Mercury';
132
- name: '';
133
- fields: {
134
- /** . */
135
- 'organizationId': {
136
- type: 'id';
137
- isRequired: true;
138
- options: undefined;
139
- };
140
- /** . */
141
- 'locationId': {
142
- type: 'id';
143
- options: undefined;
144
- };
145
- };
146
- }
147
- interface DidJoinOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema> {
112
+ interface AddRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleResponsePayloadSchema> {
148
113
  }
149
114
  }
150
115
  namespace SpruceSchemas.Mercury.v2020_12_25 {
151
- interface DidJoinOrganizationEmitPayload {
152
- 'personId': string;
153
- 'roleId': string;
154
- 'isFirstRole': boolean;
116
+ interface AuthenticateEmitPayload {
117
+ 'token'?: string | undefined | null;
118
+ 'skillId'?: string | undefined | null;
119
+ 'apiKey'?: string | undefined | null;
155
120
  }
156
- interface DidJoinOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
157
- id: 'didJoinOrganizationEmitPayload';
121
+ interface AuthenticateEmitPayloadSchema extends SpruceSchema.Schema {
122
+ id: 'authenticateEmitPayload';
158
123
  version: 'v2020_12_25';
159
124
  namespace: 'Mercury';
160
125
  name: '';
161
126
  fields: {
162
127
  /** . */
163
- 'personId': {
164
- type: 'id';
165
- isRequired: true;
128
+ 'token': {
129
+ type: 'text';
166
130
  options: undefined;
167
131
  };
168
132
  /** . */
169
- 'roleId': {
170
- type: 'id';
171
- isRequired: true;
133
+ 'skillId': {
134
+ type: 'text';
172
135
  options: undefined;
173
136
  };
174
137
  /** . */
175
- 'isFirstRole': {
176
- type: 'boolean';
177
- isRequired: true;
138
+ 'apiKey': {
139
+ type: 'text';
178
140
  options: undefined;
179
141
  };
180
142
  };
181
143
  }
182
- interface DidJoinOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema> {
144
+ interface AuthenticateEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema> {
183
145
  }
184
146
  }
185
147
  namespace SpruceSchemas.Mercury.v2020_12_25 {
186
- interface DidJoinOrganizationEmitTargetAndPayload {
148
+ interface AuthenticateEmitTargetAndPayload {
187
149
  /** Source. */
188
150
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
189
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTarget;
190
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayload;
151
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayload | undefined | null;
191
152
  }
192
- interface DidJoinOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
193
- id: 'didJoinOrganizationEmitTargetAndPayload';
153
+ interface AuthenticateEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
154
+ id: 'authenticateEmitTargetAndPayload';
194
155
  version: 'v2020_12_25';
195
156
  namespace: 'Mercury';
196
157
  name: '';
@@ -204,157 +165,164 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
204
165
  };
205
166
  };
206
167
  /** . */
207
- 'target': {
208
- type: 'schema';
209
- isRequired: true;
210
- options: {
211
- schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema;
212
- };
213
- };
214
- /** . */
215
168
  'payload': {
216
169
  type: 'schema';
217
- isRequired: true;
218
170
  options: {
219
- schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema;
171
+ schema: SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema;
220
172
  };
221
173
  };
222
174
  };
223
175
  }
224
- interface DidJoinOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetAndPayloadSchema> {
176
+ interface AuthenticateEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitTargetAndPayloadSchema> {
225
177
  }
226
178
  }
227
179
  namespace SpruceSchemas.Mercury.v2020_12_25 {
228
- interface MessageTemplateAddons {
229
- 'nextINeedYouTo'?: string[] | undefined | null;
230
- 'youShouldKnowThat'?: string[] | undefined | null;
231
- 'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
180
+ interface ConfirmPinRespondPayload {
181
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
182
+ 'token': string;
232
183
  }
233
- interface MessageTemplateAddonsSchema extends SpruceSchema.Schema {
234
- id: 'messageTemplateAddons';
184
+ interface ConfirmPinRespondPayloadSchema extends SpruceSchema.Schema {
185
+ id: 'confirmPinRespondPayload';
235
186
  version: 'v2020_12_25';
236
187
  namespace: 'Mercury';
237
188
  name: '';
238
189
  fields: {
239
190
  /** . */
240
- 'nextINeedYouTo': {
241
- type: 'text';
242
- isArray: true;
243
- options: undefined;
191
+ 'person': {
192
+ type: 'schema';
193
+ isRequired: true;
194
+ options: {
195
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
196
+ };
244
197
  };
245
198
  /** . */
246
- 'youShouldKnowThat': {
199
+ 'token': {
247
200
  type: 'text';
248
- isArray: true;
201
+ isRequired: true;
249
202
  options: undefined;
250
203
  };
251
- /** . */
252
- 'links': {
253
- type: 'schema';
254
- isArray: true;
255
- minArrayLength: 0;
256
- options: {
257
- schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
258
- };
259
- };
260
204
  };
261
205
  }
262
- interface MessageTemplateAddonsEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema> {
206
+ interface ConfirmPinRespondPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinRespondPayloadSchema> {
263
207
  }
264
208
  }
265
209
  namespace SpruceSchemas.Mercury.v2020_12_25 {
266
- interface DidJoinOrganizationResponsePayload {
267
- 'messaging'?: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddons | undefined | null;
210
+ interface AuthSchema {
211
+ 'person'?: SpruceSchemas.Spruce.v2020_07_22.Person | undefined | null;
212
+ 'skill'?: SpruceSchemas.Spruce.v2020_07_22.Skill | undefined | null;
268
213
  }
269
- interface DidJoinOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
270
- id: 'didJoinOrganizationResponsePayload';
214
+ interface AuthSchemaSchema extends SpruceSchema.Schema {
215
+ id: 'authSchema';
271
216
  version: 'v2020_12_25';
272
217
  namespace: 'Mercury';
273
218
  name: '';
274
219
  fields: {
275
220
  /** . */
276
- 'messaging': {
221
+ 'person': {
277
222
  type: 'schema';
278
223
  options: {
279
- schema: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema;
224
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
225
+ };
226
+ };
227
+ /** . */
228
+ 'skill': {
229
+ type: 'schema';
230
+ options: {
231
+ schema: SpruceSchemas.Spruce.v2020_07_22.SkillSchema;
280
232
  };
281
233
  };
282
234
  };
283
235
  }
284
- interface DidJoinOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationResponsePayloadSchema> {
236
+ interface AuthSchemaEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema> {
285
237
  }
286
238
  }
287
239
  namespace SpruceSchemas.Mercury.v2020_12_25 {
288
- interface DidLeaveOrganizationEmitTarget {
289
- 'organizationId': string;
290
- 'locationId'?: string | undefined | null;
240
+ interface AuthenticateResponsePayload {
241
+ 'type': ("authenticated" | "anonymous");
242
+ 'auth': SpruceSchemas.Mercury.v2020_12_25.AuthSchema;
291
243
  }
292
- interface DidLeaveOrganizationEmitTargetSchema extends SpruceSchema.Schema {
293
- id: 'didLeaveOrganizationEmitTarget';
244
+ interface AuthenticateResponsePayloadSchema extends SpruceSchema.Schema {
245
+ id: 'authenticateResponsePayload';
294
246
  version: 'v2020_12_25';
295
247
  namespace: 'Mercury';
296
248
  name: '';
297
249
  fields: {
298
250
  /** . */
299
- 'organizationId': {
300
- type: 'id';
251
+ 'type': {
252
+ type: 'select';
301
253
  isRequired: true;
302
- options: undefined;
254
+ options: {
255
+ choices: [{
256
+ "value": "authenticated";
257
+ "label": "Authenticated";
258
+ }, {
259
+ "value": "anonymous";
260
+ "label": "Anonymous";
261
+ }];
262
+ };
303
263
  };
304
264
  /** . */
305
- 'locationId': {
306
- type: 'id';
307
- options: undefined;
265
+ 'auth': {
266
+ type: 'schema';
267
+ isRequired: true;
268
+ options: {
269
+ schema: SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema;
270
+ };
308
271
  };
309
272
  };
310
273
  }
311
- interface DidLeaveOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema> {
274
+ interface AuthenticateResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateResponsePayloadSchema> {
312
275
  }
313
276
  }
314
277
  namespace SpruceSchemas.Mercury.v2020_12_25 {
315
- interface DidLeaveOrganizationEmitPayload {
316
- 'personId': string;
317
- 'roleId': string;
318
- 'isLastRole': boolean;
278
+ interface CanListenEmitPayload {
279
+ 'authorizerStatuses'?: ("clockedIn" | "clockedOut" | "onPrem" | "offPrem") | undefined | null;
280
+ 'fullyQualifiedEventName': string;
319
281
  }
320
- interface DidLeaveOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
321
- id: 'didLeaveOrganizationEmitPayload';
282
+ interface CanListenEmitPayloadSchema extends SpruceSchema.Schema {
283
+ id: 'canListenEmitPayload';
322
284
  version: 'v2020_12_25';
323
285
  namespace: 'Mercury';
324
286
  name: '';
325
287
  fields: {
326
288
  /** . */
327
- 'personId': {
328
- type: 'id';
329
- isRequired: true;
330
- options: undefined;
331
- };
332
- /** . */
333
- 'roleId': {
334
- type: 'id';
335
- isRequired: true;
336
- options: undefined;
289
+ 'authorizerStatuses': {
290
+ type: 'select';
291
+ options: {
292
+ choices: [{
293
+ "label": "Clocked in";
294
+ "value": "clockedIn";
295
+ }, {
296
+ "label": "Clocked out";
297
+ "value": "clockedOut";
298
+ }, {
299
+ "label": "On premises";
300
+ "value": "onPrem";
301
+ }, {
302
+ "label": "Off premises";
303
+ "value": "offPrem";
304
+ }];
305
+ };
337
306
  };
338
307
  /** . */
339
- 'isLastRole': {
340
- type: 'boolean';
308
+ 'fullyQualifiedEventName': {
309
+ type: 'text';
341
310
  isRequired: true;
342
311
  options: undefined;
343
312
  };
344
313
  };
345
314
  }
346
- interface DidLeaveOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema> {
315
+ interface CanListenEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema> {
347
316
  }
348
317
  }
349
318
  namespace SpruceSchemas.Mercury.v2020_12_25 {
350
- interface DidLeaveOrganizationEmitTargetAndPayload {
319
+ interface CanListenEmitTargetAndPayload {
351
320
  /** Source. */
352
321
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
353
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTarget;
354
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayload;
322
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayload;
355
323
  }
356
- interface DidLeaveOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
357
- id: 'didLeaveOrganizationEmitTargetAndPayload';
324
+ interface CanListenEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
325
+ id: 'canListenEmitTargetAndPayload';
358
326
  version: 'v2020_12_25';
359
327
  namespace: 'Mercury';
360
328
  name: '';
@@ -368,83 +336,74 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
368
336
  };
369
337
  };
370
338
  /** . */
371
- 'target': {
372
- type: 'schema';
373
- isRequired: true;
374
- options: {
375
- schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema;
376
- };
377
- };
378
- /** . */
379
339
  'payload': {
380
340
  type: 'schema';
381
341
  isRequired: true;
382
342
  options: {
383
- schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema;
343
+ schema: SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema;
384
344
  };
385
345
  };
386
346
  };
387
347
  }
388
- interface DidLeaveOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetAndPayloadSchema> {
348
+ interface CanListenEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitTargetAndPayloadSchema> {
389
349
  }
390
350
  }
391
351
  namespace SpruceSchemas.Mercury.v2020_12_25 {
392
- interface DidLeaveOrganizationResponsePayload {
352
+ interface CanListenResponsePayload {
353
+ 'can'?: boolean | undefined | null;
393
354
  }
394
- interface DidLeaveOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
395
- id: 'didLeaveOrganizationResponsePayload';
355
+ interface CanListenResponsePayloadSchema extends SpruceSchema.Schema {
356
+ id: 'canListenResponsePayload';
396
357
  version: 'v2020_12_25';
397
358
  namespace: 'Mercury';
398
359
  name: '';
399
- fields: {};
360
+ fields: {
361
+ /** . */
362
+ 'can': {
363
+ type: 'boolean';
364
+ options: undefined;
365
+ };
366
+ };
400
367
  }
401
- interface DidLeaveOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationResponsePayloadSchema> {
368
+ interface CanListenResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenResponsePayloadSchema> {
402
369
  }
403
370
  }
404
371
  namespace SpruceSchemas.Mercury.v2020_12_25 {
405
- interface DidMessageEmitPayload {
406
- 'message': SpruceSchemas.Spruce.v2020_07_22.Message;
407
- 'conversationState'?: string | undefined | null;
408
- 'topic'?: string | undefined | null;
372
+ interface ConfirmPinEmitPayload {
373
+ 'challenge': string;
374
+ 'pin': string;
409
375
  }
410
- interface DidMessageEmitPayloadSchema extends SpruceSchema.Schema {
411
- id: 'didMessageEmitPayload';
376
+ interface ConfirmPinEmitPayloadSchema extends SpruceSchema.Schema {
377
+ id: 'confirmPinEmitPayload';
412
378
  version: 'v2020_12_25';
413
379
  namespace: 'Mercury';
414
380
  name: '';
415
381
  fields: {
416
382
  /** . */
417
- 'message': {
418
- type: 'schema';
419
- isRequired: true;
420
- options: {
421
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageSchema;
422
- };
423
- };
424
- /** . */
425
- 'conversationState': {
383
+ 'challenge': {
426
384
  type: 'text';
385
+ isRequired: true;
427
386
  options: undefined;
428
387
  };
429
388
  /** . */
430
- 'topic': {
389
+ 'pin': {
431
390
  type: 'text';
391
+ isRequired: true;
432
392
  options: undefined;
433
393
  };
434
394
  };
435
395
  }
436
- interface DidMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema> {
396
+ interface ConfirmPinEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema> {
437
397
  }
438
398
  }
439
399
  namespace SpruceSchemas.Mercury.v2020_12_25 {
440
- interface DidMessageEmitTargetAndPayload {
400
+ interface ConfirmPinEmitTargetAndPayload {
441
401
  /** Source. */
442
402
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
443
- 'target'?: SpruceSchemas.Spruce.v2020_07_22.MessageTarget | undefined | null;
444
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayload;
403
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayload;
445
404
  }
446
- interface DidMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
447
- id: 'didMessageEmitTargetAndPayload';
405
+ interface ConfirmPinEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
406
+ id: 'confirmPinEmitTargetAndPayload';
448
407
  version: 'v2020_12_25';
449
408
  namespace: 'Mercury';
450
409
  name: '';
@@ -458,1117 +417,94 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
458
417
  };
459
418
  };
460
419
  /** . */
461
- 'target': {
462
- type: 'schema';
463
- options: {
464
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
465
- };
466
- };
467
- /** . */
468
420
  'payload': {
469
421
  type: 'schema';
470
422
  isRequired: true;
471
423
  options: {
472
- schema: SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema;
424
+ schema: SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema;
473
425
  };
474
426
  };
475
427
  };
476
428
  }
477
- interface DidMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema> {
429
+ interface ConfirmPinEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitTargetAndPayloadSchema> {
478
430
  }
479
431
  }
480
432
  namespace SpruceSchemas.Mercury.v2020_12_25 {
481
- interface ConversationTopic {
482
- 'key': string;
483
- 'confidence': number;
484
- 'label': string;
433
+ interface CreateLocationEmitTarget {
434
+ 'organizationId': string;
485
435
  }
486
- interface ConversationTopicSchema extends SpruceSchema.Schema {
487
- id: 'conversationTopic';
436
+ interface CreateLocationEmitTargetSchema extends SpruceSchema.Schema {
437
+ id: 'createLocationEmitTarget';
488
438
  version: 'v2020_12_25';
489
439
  namespace: 'Mercury';
490
440
  name: '';
491
441
  fields: {
492
442
  /** . */
493
- 'key': {
494
- type: 'text';
495
- isRequired: true;
496
- options: undefined;
497
- };
498
- /** . */
499
- 'confidence': {
500
- type: 'number';
501
- isRequired: true;
502
- options: undefined;
503
- };
504
- /** . */
505
- 'label': {
506
- type: 'text';
443
+ 'organizationId': {
444
+ type: 'id';
507
445
  isRequired: true;
508
446
  options: undefined;
509
447
  };
510
448
  };
511
449
  }
512
- interface ConversationTopicEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema> {
450
+ interface CreateLocationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CreateLocationEmitTargetSchema> {
513
451
  }
514
452
  }
515
453
  namespace SpruceSchemas.Mercury.v2020_12_25 {
516
- interface DidMessageResponsePayload {
517
- 'transitionConversationTo'?: ("greeting" | "discovery" | "topic" | "closing") | undefined | null;
518
- 'repairs'?: string[] | undefined | null;
519
- 'topicChangers'?: string[] | undefined | null;
520
- 'utterance'?: string | undefined | null;
521
- 'suggestedTopics'?: SpruceSchemas.Mercury.v2020_12_25.ConversationTopic[] | undefined | null;
454
+ interface CreateLocationEmitPayload {
455
+ /** Name. */
456
+ 'name': string;
457
+ /** Store number. You can use other symbols, like # or dashes. #123 or 32-US-5 */
458
+ 'num'?: string | undefined | null;
459
+ /** Public. Is this location viewable by guests? */
460
+ 'isPublic'?: boolean | undefined | null;
461
+ /** Main Phone. */
462
+ 'phone'?: string | undefined | null;
463
+ /** Timezone. */
464
+ 'timezone'?: ("Pacific/Niue" | "Pacific/Pago_Pago" | "Pacific/Rarotonga" | "Pacific/Honolulu" | "Pacific/Tahiti" | "Pacific/Marquesas" | "Pacific/Gambier" | "America/Adak" | "America/Anchorage" | "America/Juneau" | "America/Metlakatla" | "America/Nome" | "America/Sitka" | "America/Yakutat" | "Pacific/Pitcairn" | "America/Hermosillo" | "America/Dawson_Creek" | "America/Fort_Nelson" | "America/Phoenix" | "America/Los_Angeles" | "America/Tijuana" | "America/Vancouver" | "America/Dawson" | "America/Whitehorse" | "America/Belize" | "America/Costa_Rica" | "America/El_Salvador" | "America/Guatemala" | "America/Managua" | "America/Regina" | "America/Swift_Current" | "America/Tegucigalpa" | "Pacific/Easter" | "Pacific/Galapagos" | "America/Chihuahua" | "America/Mazatlan" | "America/Boise" | "America/Cambridge_Bay" | "America/Denver" | "America/Edmonton" | "America/Inuvik" | "America/Ojinaga" | "America/Yellowknife" | "America/Eirunepe" | "America/Rio_Branco" | "America/Bahia_Banderas" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/Chicago" | "America/Indiana/Knox" | "America/Matamoros" | "America/Menominee" | "America/Merida" | "America/Mexico_City" | "America/Monterrey" | "America/North_Dakota/New_Salem" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Resolute" | "America/Indiana/Tell_City" | "America/Winnipeg" | "America/Bogota" | "America/Cancun" | "America/Jamaica" | "America/Panama" | "America/Guayaquil" | "America/Lima" | "America/Boa_Vista" | "America/Campo_Grande" | "America/Cuiaba" | "America/Manaus" | "America/Porto_Velho" | "America/Barbados" | "America/Martinique" | "America/Puerto_Rico" | "America/Santo_Domingo" | "America/La_Paz" | "America/Santiago" | "America/Havana" | "America/Detroit" | "America/Grand_Turk" | "America/Indiana/Indianapolis" | "America/Iqaluit" | "America/Kentucky/Louisville" | "America/Indiana/Marengo" | "America/Kentucky/Monticello" | "America/New_York" | "America/Nipigon" | "America/Pangnirtung" | "America/Indiana/Petersburg" | "America/Port-au-Prince" | "America/Thunder_Bay" | "America/Toronto" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Guyana" | "America/Asuncion" | "America/Caracas" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "Atlantic/Bermuda" | "America/Glace_Bay" | "America/Goose_Bay" | "America/Halifax" | "America/Moncton" | "America/Thule" | "America/Araguaina" | "America/Bahia" | "America/Belem" | "America/Fortaleza" | "America/Maceio" | "America/Recife" | "America/Santarem" | "America/Sao_Paulo" | "Atlantic/Stanley" | "America/Cayenne" | "Antarctica/Palmer" | "America/Punta_Arenas" | "Antarctica/Rothera" | "America/Paramaribo" | "America/Montevideo" | "America/St_Johns" | "America/Noronha" | "Atlantic/South_Georgia" | "America/Miquelon" | "America/Nuuk" | "Atlantic/Cape_Verde" | "Atlantic/Azores" | "UTC" | "America/Scoresbysund" | "Etc/GMT" | "Africa/Abidjan" | "Africa/Bissau" | "America/Danmarkshavn" | "Africa/Monrovia" | "Atlantic/Reykjavik" | "Africa/Sao_Tome" | "Africa/Algiers" | "Africa/Tunis" | "Europe/Dublin" | "Africa/Casablanca" | "Europe/London" | "Africa/Lagos" | "Africa/Ndjamena" | "Atlantic/Canary" | "Atlantic/Faroe" | "Europe/Lisbon" | "Atlantic/Madeira" | "Africa/El_Aaiun" | "Africa/Juba" | "Africa/Khartoum" | "Africa/Maputo" | "Africa/Windhoek" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Brussels" | "Europe/Budapest" | "Africa/Ceuta" | "Europe/Copenhagen" | "Europe/Gibraltar" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Monaco" | "Europe/Oslo" | "Europe/Paris" | "Europe/Prague" | "Europe/Rome" | "Europe/Stockholm" | "Europe/Tirane" | "Europe/Vienna" | "Europe/Warsaw" | "Europe/Zurich" | "Africa/Cairo" | "Europe/Kaliningrad" | "Africa/Tripoli" | "Africa/Johannesburg" | "Antarctica/Troll" | "Asia/Baghdad" | "Asia/Qatar" | "Asia/Riyadh" | "Africa/Nairobi" | "Asia/Amman" | "Europe/Athens" | "Asia/Beirut" | "Europe/Bucharest" | "Europe/Chisinau" | "Asia/Damascus" | "Asia/Gaza" | "Asia/Hebron" | "Europe/Helsinki" | "Europe/Kiev" | "Asia/Nicosia" | "Europe/Riga" | "Europe/Sofia" | "Europe/Tallinn" | "Europe/Uzhgorod" | "Europe/Vilnius" | "Europe/Zaporozhye" | "Asia/Famagusta" | "Asia/Jerusalem" | "Europe/Kirov" | "Europe/Minsk" | "Europe/Moscow" | "Europe/Simferopol" | "Europe/Istanbul" | "Europe/Volgograd" | "Asia/Yerevan" | "Europe/Astrakhan" | "Asia/Baku" | "Asia/Tbilisi" | "Asia/Dubai" | "Indian/Mauritius" | "Indian/Reunion" | "Europe/Samara" | "Europe/Saratov" | "Indian/Mahe" | "Europe/Ulyanovsk" | "Asia/Kabul" | "Asia/Tehran" | "Indian/Kerguelen" | "Indian/Maldives" | "Antarctica/Mawson" | "Asia/Karachi" | "Asia/Dushanbe" | "Asia/Ashgabat" | "Asia/Samarkand" | "Asia/Tashkent" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Atyrau" | "Asia/Oral" | "Asia/Qyzylorda" | "Asia/Yekaterinburg" | "Asia/Colombo" | "Asia/Kolkata" | "Asia/Kathmandu" | "Asia/Dhaka" | "Asia/Thimphu" | "Asia/Almaty" | "Asia/Qostanay" | "Indian/Chagos" | "Asia/Bishkek" | "Asia/Omsk" | "Asia/Urumqi" | "Antarctica/Vostok" | "Indian/Cocos" | "Asia/Yangon" | "Asia/Barnaul" | "Indian/Christmas" | "Antarctica/Davis" | "Asia/Hovd" | "Asia/Bangkok" | "Asia/Ho_Chi_Minh" | "Asia/Krasnoyarsk" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Tomsk" | "Asia/Jakarta" | "Asia/Pontianak" | "Australia/Perth" | "Asia/Brunei" | "Asia/Makassar" | "Asia/Macau" | "Asia/Shanghai" | "Asia/Hong_Kong" | "Asia/Irkutsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Manila" | "Asia/Singapore" | "Asia/Taipei" | "Asia/Choibalsan" | "Asia/Ulaanbaatar" | "Australia/Eucla" | "Asia/Dili" | "Asia/Jayapura" | "Asia/Tokyo" | "Asia/Pyongyang" | "Asia/Seoul" | "Pacific/Palau" | "Asia/Chita" | "Asia/Khandyga" | "Asia/Yakutsk" | "Australia/Darwin" | "Australia/Adelaide" | "Australia/Broken_Hill" | "Australia/Brisbane" | "Australia/Lindeman" | "Pacific/Guam" | "Pacific/Chuuk" | "Australia/Hobart" | "Antarctica/Macquarie" | "Australia/Melbourne" | "Australia/Sydney" | "Pacific/Port_Moresby" | "Asia/Ust-Nera" | "Asia/Vladivostok" | "Australia/Lord_Howe" | "Pacific/Bougainville" | "Antarctica/Casey" | "Pacific/Kosrae" | "Asia/Magadan" | "Pacific/Noumea" | "Pacific/Norfolk" | "Pacific/Pohnpei" | "Asia/Sakhalin" | "Pacific/Guadalcanal" | "Asia/Srednekolymsk" | "Pacific/Efate" | "Asia/Anadyr" | "Pacific/Fiji" | "Pacific/Tarawa" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Nauru" | "Pacific/Auckland" | "Asia/Kamchatka" | "Pacific/Funafuti" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Chatham" | "Pacific/Apia" | "Pacific/Fakaofo" | "Pacific/Tongatapu" | "Pacific/Kiritimati") | undefined | null;
465
+ /** Address. */
466
+ 'address': SpruceSchema.AddressFieldValue;
467
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
468
+ 'slug'?: string | undefined | null;
522
469
  }
523
- interface DidMessageResponsePayloadSchema extends SpruceSchema.Schema {
524
- id: 'didMessageResponsePayload';
470
+ interface CreateLocationEmitPayloadSchema extends SpruceSchema.Schema {
471
+ id: 'createLocationEmitPayload';
525
472
  version: 'v2020_12_25';
526
473
  namespace: 'Mercury';
527
474
  name: '';
528
475
  fields: {
529
- /** . */
530
- 'transitionConversationTo': {
531
- type: 'select';
532
- options: {
533
- choices: [{
534
- "label": "Greeting";
535
- "value": "greeting";
536
- }, {
537
- "label": "Discovery";
538
- "value": "discovery";
539
- }, {
540
- "label": "Topic";
541
- "value": "topic";
542
- }, {
543
- "label": "Closing";
544
- "value": "closing";
545
- }];
546
- };
547
- };
548
- /** . */
549
- 'repairs': {
476
+ /** Name. */
477
+ 'name': {
478
+ label: 'Name';
550
479
  type: 'text';
551
- isArray: true;
480
+ isRequired: true;
552
481
  options: undefined;
553
482
  };
554
- /** . */
555
- 'topicChangers': {
483
+ /** Store number. You can use other symbols, like # or dashes. #123 or 32-US-5 */
484
+ 'num': {
485
+ label: 'Store number';
556
486
  type: 'text';
557
- isArray: true;
487
+ hint: 'You can use other symbols, like # or dashes. #123 or 32-US-5';
558
488
  options: undefined;
559
489
  };
560
- /** . */
561
- 'utterance': {
562
- type: 'text';
490
+ /** Public. Is this location viewable by guests? */
491
+ 'isPublic': {
492
+ label: 'Public';
493
+ type: 'boolean';
494
+ hint: 'Is this location viewable by guests?';
495
+ defaultValue: false;
563
496
  options: undefined;
564
497
  };
565
- /** . */
566
- 'suggestedTopics': {
567
- type: 'schema';
568
- isArray: true;
569
- options: {
570
- schema: SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema;
571
- };
572
- };
573
- };
574
- }
575
- interface DidMessageResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageResponsePayloadSchema> {
576
- }
577
- }
578
- namespace SpruceSchemas.Mercury.v2020_12_25 {
579
- interface DidSignupEmitPayload {
580
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
581
- }
582
- interface DidSignupEmitPayloadSchema extends SpruceSchema.Schema {
583
- id: 'didSignupEmitPayload';
584
- version: 'v2020_12_25';
585
- namespace: 'Mercury';
586
- name: '';
587
- fields: {
588
- /** . */
589
- 'person': {
590
- type: 'schema';
591
- isRequired: true;
592
- options: {
593
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
594
- };
595
- };
596
- };
597
- }
598
- interface DidSignupEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema> {
599
- }
600
- }
601
- namespace SpruceSchemas.Mercury.v2020_12_25 {
602
- interface DidSignupEmitTargetAndPayload {
603
- /** Source. */
604
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
605
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
606
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayload;
607
- }
608
- interface DidSignupEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
609
- id: 'didSignupEmitTargetAndPayload';
610
- version: 'v2020_12_25';
611
- namespace: 'Mercury';
612
- name: '';
613
- fields: {
614
- /** Source. */
615
- 'source': {
616
- label: 'Source';
617
- type: 'schema';
618
- options: {
619
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
620
- };
621
- };
622
- /** . */
623
- 'target': {
624
- type: 'schema';
625
- options: {
626
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
627
- };
628
- };
629
- /** . */
630
- 'payload': {
631
- type: 'schema';
632
- isRequired: true;
633
- options: {
634
- schema: SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema;
635
- };
636
- };
637
- };
638
- }
639
- interface DidSignupEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema> {
640
- }
641
- }
642
- namespace SpruceSchemas.Mercury.v2020_12_25 {
643
- interface DidUpdateFeedEmitTarget {
644
- 'locationId'?: string | undefined | null;
645
- 'organizationId'?: string | undefined | null;
646
- 'skillId'?: string | undefined | null;
647
- }
648
- interface DidUpdateFeedEmitTargetSchema extends SpruceSchema.Schema {
649
- id: 'didUpdateFeedEmitTarget';
650
- version: 'v2020_12_25';
651
- namespace: 'Mercury';
652
- name: '';
653
- fields: {
654
- /** . */
655
- 'locationId': {
656
- type: 'id';
657
- options: undefined;
658
- };
659
- /** . */
660
- 'organizationId': {
661
- type: 'id';
662
- options: undefined;
663
- };
664
- /** . */
665
- 'skillId': {
666
- type: 'id';
498
+ /** Main Phone. */
499
+ 'phone': {
500
+ label: 'Main Phone';
501
+ type: 'phone';
667
502
  options: undefined;
668
503
  };
669
- };
670
- }
671
- interface DidUpdateFeedEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetSchema> {
672
- }
673
- }
674
- namespace SpruceSchemas.Mercury.v2020_12_25 {
675
- interface DidUpdateFeedEmitPayload {
676
- 'item': SpruceSchemas.Spruce.v2020_07_22.FeedItem;
677
- }
678
- interface DidUpdateFeedEmitPayloadSchema extends SpruceSchema.Schema {
679
- id: 'didUpdateFeedEmitPayload';
680
- version: 'v2020_12_25';
681
- namespace: 'Mercury';
682
- name: '';
683
- fields: {
684
- /** . */
685
- 'item': {
686
- type: 'schema';
687
- isRequired: true;
688
- options: {
689
- schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
690
- };
691
- };
692
- };
693
- }
694
- interface DidUpdateFeedEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema> {
695
- }
696
- }
697
- namespace SpruceSchemas.Mercury.v2020_12_25 {
698
- interface DidUpdateFeedEmitTargetAndPayload {
699
- /** Source. */
700
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
701
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTarget | undefined | null;
702
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayload;
703
- }
704
- interface DidUpdateFeedEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
705
- id: 'didUpdateFeedEmitTargetAndPayload';
706
- version: 'v2020_12_25';
707
- namespace: 'Mercury';
708
- name: '';
709
- fields: {
710
- /** Source. */
711
- 'source': {
712
- label: 'Source';
713
- type: 'schema';
714
- options: {
715
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
716
- };
717
- };
718
- /** . */
719
- 'target': {
720
- type: 'schema';
721
- options: {
722
- schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetSchema;
723
- };
724
- };
725
- /** . */
726
- 'payload': {
727
- type: 'schema';
728
- isRequired: true;
729
- options: {
730
- schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema;
731
- };
732
- };
733
- };
734
- }
735
- interface DidUpdateFeedEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetAndPayloadSchema> {
736
- }
737
- }
738
- namespace SpruceSchemas.Mercury.v2020_12_25 {
739
- interface DidUpdatePersonEmitPayload {
740
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
741
- }
742
- interface DidUpdatePersonEmitPayloadSchema extends SpruceSchema.Schema {
743
- id: 'didUpdatePersonEmitPayload';
744
- version: 'v2020_12_25';
745
- namespace: 'Mercury';
746
- name: '';
747
- fields: {
748
- /** . */
749
- 'person': {
750
- type: 'schema';
751
- isRequired: true;
752
- options: {
753
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
754
- };
755
- };
756
- };
757
- }
758
- interface DidUpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema> {
759
- }
760
- }
761
- namespace SpruceSchemas.Mercury.v2020_12_25 {
762
- interface DidUpdatePersonEmitTargetAndPayload {
763
- /** Source. */
764
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
765
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
766
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayload;
767
- }
768
- interface DidUpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
769
- id: 'didUpdatePersonEmitTargetAndPayload';
770
- version: 'v2020_12_25';
771
- namespace: 'Mercury';
772
- name: '';
773
- fields: {
774
- /** Source. */
775
- 'source': {
776
- label: 'Source';
777
- type: 'schema';
778
- options: {
779
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
780
- };
781
- };
782
- /** . */
783
- 'target': {
784
- type: 'schema';
785
- options: {
786
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
787
- };
788
- };
789
- /** . */
790
- 'payload': {
791
- type: 'schema';
792
- isRequired: true;
793
- options: {
794
- schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema;
795
- };
796
- };
797
- };
798
- }
799
- interface DidUpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema> {
800
- }
801
- }
802
- namespace SpruceSchemas.Mercury.v2020_12_25 {
803
- interface InvokeChatCallbackTarget {
804
- 'skillId': string;
805
- 'chatPersonId': string;
806
- }
807
- interface InvokeChatCallbackTargetSchema extends SpruceSchema.Schema {
808
- id: 'invokeChatCallbackTarget';
809
- version: 'v2020_12_25';
810
- namespace: 'Mercury';
811
- name: '';
812
- fields: {
813
- /** . */
814
- 'skillId': {
815
- type: 'id';
816
- isRequired: true;
817
- options: undefined;
818
- };
819
- /** . */
820
- 'chatPersonId': {
821
- type: 'id';
822
- isRequired: true;
823
- options: undefined;
824
- };
825
- };
826
- }
827
- interface InvokeChatCallbackTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackTargetSchema> {
828
- }
829
- }
830
- namespace SpruceSchemas.Mercury.v2020_12_25 {
831
- interface InvokeChatCallbackPayload {
832
- 'placeholder': string;
833
- 'state'?: (Record<string, any>) | undefined | null;
834
- }
835
- interface InvokeChatCallbackPayloadSchema extends SpruceSchema.Schema {
836
- id: 'invokeChatCallbackPayload';
837
- version: 'v2020_12_25';
838
- namespace: 'Mercury';
839
- name: '';
840
- fields: {
841
- /** . */
842
- 'placeholder': {
843
- type: 'id';
844
- isRequired: true;
845
- options: undefined;
846
- };
847
- /** . */
848
- 'state': {
849
- type: 'raw';
850
- options: {
851
- valueType: `Record<string, any>`;
852
- };
853
- };
854
- };
855
- }
856
- interface InvokeChatCallbackPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackPayloadSchema> {
857
- }
858
- }
859
- namespace SpruceSchemas.Mercury.v2020_12_25 {
860
- interface InvokeChatCallbackEmitTargetAndPayload {
861
- /** Source. */
862
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
863
- 'target': SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackTarget;
864
- 'payload': SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackPayload;
865
- }
866
- interface InvokeChatCallbackEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
867
- id: 'invokeChatCallbackEmitTargetAndPayload';
868
- version: 'v2020_12_25';
869
- namespace: 'Mercury';
870
- name: '';
871
- fields: {
872
- /** Source. */
873
- 'source': {
874
- label: 'Source';
875
- type: 'schema';
876
- options: {
877
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
878
- };
879
- };
880
- /** . */
881
- 'target': {
882
- type: 'schema';
883
- isRequired: true;
884
- options: {
885
- schema: SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackTargetSchema;
886
- };
887
- };
888
- /** . */
889
- 'payload': {
890
- type: 'schema';
891
- isRequired: true;
892
- options: {
893
- schema: SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackPayloadSchema;
894
- };
895
- };
896
- };
897
- }
898
- interface InvokeChatCallbackEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackEmitTargetAndPayloadSchema> {
899
- }
900
- }
901
- namespace SpruceSchemas.Mercury.v2020_12_25 {
902
- interface InvokeChatCallbackResponsePayload {
903
- 'message': string;
904
- }
905
- interface InvokeChatCallbackResponsePayloadSchema extends SpruceSchema.Schema {
906
- id: 'invokeChatCallbackResponsePayload';
907
- version: 'v2020_12_25';
908
- namespace: 'Mercury';
909
- name: '';
910
- fields: {
911
- /** . */
912
- 'message': {
913
- type: 'text';
914
- isRequired: true;
915
- options: undefined;
916
- };
917
- };
918
- }
919
- interface InvokeChatCallbackResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackResponsePayloadSchema> {
920
- }
921
- }
922
- namespace SpruceSchemas.Mercury.v2020_12_25 {
923
- interface RegisterChatbotsEmitTargetAndPayload {
924
- /** Source. */
925
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
926
- }
927
- interface RegisterChatbotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
928
- id: 'registerChatbotsEmitTargetAndPayload';
929
- version: 'v2020_12_25';
930
- namespace: 'Mercury';
931
- name: '';
932
- fields: {
933
- /** Source. */
934
- 'source': {
935
- label: 'Source';
936
- type: 'schema';
937
- options: {
938
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
939
- };
940
- };
941
- };
942
- }
943
- interface RegisterChatbotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatbotsEmitTargetAndPayloadSchema> {
944
- }
945
- }
946
- namespace SpruceSchemas.Mercury.v2020_12_25 {
947
- interface Chatbot {
948
- 'title': string;
949
- 'yourJobIfYouChooseToAcceptItIs': string;
950
- 'weAreDoneWhen': string;
951
- 'pleaseKeepInMindThat'?: string[] | undefined | null;
952
- 'stateSchema'?: (SpruceSchema.Schema) | undefined | null;
953
- 'model'?: string | undefined | null;
954
- 'promptTemplate'?: string | undefined | null;
955
- 'callbacks'?: SpruceSchemas.Mercury.v2020_12_25.ChatbotCallbacks[] | undefined | null;
956
- }
957
- interface ChatbotSchema extends SpruceSchema.Schema {
958
- id: 'chatbot';
959
- version: 'v2020_12_25';
960
- namespace: 'Mercury';
961
- name: '';
962
- fields: {
963
- /** . */
964
- 'title': {
965
- type: 'text';
966
- isRequired: true;
967
- options: undefined;
968
- };
969
- /** . */
970
- 'yourJobIfYouChooseToAcceptItIs': {
971
- type: 'text';
972
- isRequired: true;
973
- options: undefined;
974
- };
975
- /** . */
976
- 'weAreDoneWhen': {
977
- type: 'text';
978
- isRequired: true;
979
- options: undefined;
980
- };
981
- /** . */
982
- 'pleaseKeepInMindThat': {
983
- type: 'text';
984
- isArray: true;
985
- options: undefined;
986
- };
987
- /** . */
988
- 'stateSchema': {
989
- type: 'raw';
990
- options: {
991
- valueType: `SpruceSchema.Schema`;
992
- };
993
- };
994
- /** . */
995
- 'model': {
996
- type: 'id';
997
- options: undefined;
998
- };
999
- /** . */
1000
- 'promptTemplate': {
1001
- type: 'text';
1002
- options: undefined;
1003
- };
1004
- /** . */
1005
- 'callbacks': {
1006
- type: 'schema';
1007
- isArray: true;
1008
- minArrayLength: 0;
1009
- options: {
1010
- schema: SpruceSchemas.Mercury.v2020_12_25.ChatbotCallbacksSchema;
1011
- };
1012
- };
1013
- };
1014
- }
1015
- interface ChatbotEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ChatbotSchema> {
1016
- }
1017
- }
1018
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1019
- interface RegisterChatbotsResponsePayload {
1020
- 'bots': SpruceSchemas.Mercury.v2020_12_25.Chatbot[];
1021
- }
1022
- interface RegisterChatbotsResponsePayloadSchema extends SpruceSchema.Schema {
1023
- id: 'registerChatbotsResponsePayload';
1024
- version: 'v2020_12_25';
1025
- namespace: 'Mercury';
1026
- name: '';
1027
- fields: {
1028
- /** . */
1029
- 'bots': {
1030
- type: 'schema';
1031
- isRequired: true;
1032
- isArray: true;
1033
- minArrayLength: 0;
1034
- options: {
1035
- schema: SpruceSchemas.Mercury.v2020_12_25.ChatbotSchema;
1036
- };
1037
- };
1038
- };
1039
- }
1040
- interface RegisterChatbotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatbotsResponsePayloadSchema> {
1041
- }
1042
- }
1043
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1044
- interface ChatbotCallbacks {
1045
- 'placeholder': string;
1046
- 'useThisWhenever': string;
1047
- }
1048
- interface ChatbotCallbacksSchema extends SpruceSchema.Schema {
1049
- id: 'chatbotCallbacks';
1050
- version: 'v2020_12_25';
1051
- namespace: 'Mercury';
1052
- name: '';
1053
- fields: {
1054
- /** . */
1055
- 'placeholder': {
1056
- type: 'id';
1057
- isRequired: true;
1058
- options: undefined;
1059
- };
1060
- /** . */
1061
- 'useThisWhenever': {
1062
- type: 'text';
1063
- isRequired: true;
1064
- options: undefined;
1065
- };
1066
- };
1067
- }
1068
- interface ChatbotCallbacksEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ChatbotCallbacksSchema> {
1069
- }
1070
- }
1071
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1072
- interface AddRoleEmitTarget {
1073
- 'organizationId'?: string | undefined | null;
1074
- 'locationId'?: string | undefined | null;
1075
- }
1076
- interface AddRoleEmitTargetSchema extends SpruceSchema.Schema {
1077
- id: 'addRoleEmitTarget';
1078
- version: 'v2020_12_25';
1079
- namespace: 'Mercury';
1080
- name: '';
1081
- fields: {
1082
- /** . */
1083
- 'organizationId': {
1084
- type: 'id';
1085
- options: undefined;
1086
- };
1087
- /** . */
1088
- 'locationId': {
1089
- type: 'id';
1090
- options: undefined;
1091
- };
1092
- };
1093
- }
1094
- interface AddRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema> {
1095
- }
1096
- }
1097
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1098
- interface AddRoleEmitPayload {
1099
- 'personId': string;
1100
- 'roleId': string;
1101
- }
1102
- interface AddRoleEmitPayloadSchema extends SpruceSchema.Schema {
1103
- id: 'addRoleEmitPayload';
1104
- version: 'v2020_12_25';
1105
- namespace: 'Mercury';
1106
- name: '';
1107
- fields: {
1108
- /** . */
1109
- 'personId': {
1110
- type: 'id';
1111
- isRequired: true;
1112
- options: undefined;
1113
- };
1114
- /** . */
1115
- 'roleId': {
1116
- type: 'id';
1117
- isRequired: true;
1118
- options: undefined;
1119
- };
1120
- };
1121
- }
1122
- interface AddRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema> {
1123
- }
1124
- }
1125
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1126
- interface AddRoleEmitTargetAndPayload {
1127
- /** Source. */
1128
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1129
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTarget | undefined | null;
1130
- 'payload': SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayload;
1131
- }
1132
- interface AddRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1133
- id: 'addRoleEmitTargetAndPayload';
1134
- version: 'v2020_12_25';
1135
- namespace: 'Mercury';
1136
- name: '';
1137
- fields: {
1138
- /** Source. */
1139
- 'source': {
1140
- label: 'Source';
1141
- type: 'schema';
1142
- options: {
1143
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1144
- };
1145
- };
1146
- /** . */
1147
- 'target': {
1148
- type: 'schema';
1149
- options: {
1150
- schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema;
1151
- };
1152
- };
1153
- /** . */
1154
- 'payload': {
1155
- type: 'schema';
1156
- isRequired: true;
1157
- options: {
1158
- schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema;
1159
- };
1160
- };
1161
- };
1162
- }
1163
- interface AddRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetAndPayloadSchema> {
1164
- }
1165
- }
1166
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1167
- interface AddRoleResponsePayload {
1168
- }
1169
- interface AddRoleResponsePayloadSchema extends SpruceSchema.Schema {
1170
- id: 'addRoleResponsePayload';
1171
- version: 'v2020_12_25';
1172
- namespace: 'Mercury';
1173
- name: '';
1174
- fields: {};
1175
- }
1176
- interface AddRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleResponsePayloadSchema> {
1177
- }
1178
- }
1179
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1180
- interface AuthenticateEmitPayload {
1181
- 'token'?: string | undefined | null;
1182
- 'skillId'?: string | undefined | null;
1183
- 'apiKey'?: string | undefined | null;
1184
- }
1185
- interface AuthenticateEmitPayloadSchema extends SpruceSchema.Schema {
1186
- id: 'authenticateEmitPayload';
1187
- version: 'v2020_12_25';
1188
- namespace: 'Mercury';
1189
- name: '';
1190
- fields: {
1191
- /** . */
1192
- 'token': {
1193
- type: 'text';
1194
- options: undefined;
1195
- };
1196
- /** . */
1197
- 'skillId': {
1198
- type: 'text';
1199
- options: undefined;
1200
- };
1201
- /** . */
1202
- 'apiKey': {
1203
- type: 'text';
1204
- options: undefined;
1205
- };
1206
- };
1207
- }
1208
- interface AuthenticateEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema> {
1209
- }
1210
- }
1211
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1212
- interface AuthenticateEmitTargetAndPayload {
1213
- /** Source. */
1214
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1215
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayload | undefined | null;
1216
- }
1217
- interface AuthenticateEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1218
- id: 'authenticateEmitTargetAndPayload';
1219
- version: 'v2020_12_25';
1220
- namespace: 'Mercury';
1221
- name: '';
1222
- fields: {
1223
- /** Source. */
1224
- 'source': {
1225
- label: 'Source';
1226
- type: 'schema';
1227
- options: {
1228
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1229
- };
1230
- };
1231
- /** . */
1232
- 'payload': {
1233
- type: 'schema';
1234
- options: {
1235
- schema: SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema;
1236
- };
1237
- };
1238
- };
1239
- }
1240
- interface AuthenticateEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitTargetAndPayloadSchema> {
1241
- }
1242
- }
1243
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1244
- interface AuthSchema {
1245
- 'person'?: SpruceSchemas.Spruce.v2020_07_22.Person | undefined | null;
1246
- 'skill'?: SpruceSchemas.Spruce.v2020_07_22.Skill | undefined | null;
1247
- }
1248
- interface AuthSchemaSchema extends SpruceSchema.Schema {
1249
- id: 'authSchema';
1250
- version: 'v2020_12_25';
1251
- namespace: 'Mercury';
1252
- name: '';
1253
- fields: {
1254
- /** . */
1255
- 'person': {
1256
- type: 'schema';
1257
- options: {
1258
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
1259
- };
1260
- };
1261
- /** . */
1262
- 'skill': {
1263
- type: 'schema';
1264
- options: {
1265
- schema: SpruceSchemas.Spruce.v2020_07_22.SkillSchema;
1266
- };
1267
- };
1268
- };
1269
- }
1270
- interface AuthSchemaEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema> {
1271
- }
1272
- }
1273
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1274
- interface AuthenticateResponsePayload {
1275
- 'type': ("authenticated" | "anonymous");
1276
- 'auth': SpruceSchemas.Mercury.v2020_12_25.AuthSchema;
1277
- }
1278
- interface AuthenticateResponsePayloadSchema extends SpruceSchema.Schema {
1279
- id: 'authenticateResponsePayload';
1280
- version: 'v2020_12_25';
1281
- namespace: 'Mercury';
1282
- name: '';
1283
- fields: {
1284
- /** . */
1285
- 'type': {
1286
- type: 'select';
1287
- isRequired: true;
1288
- options: {
1289
- choices: [{
1290
- "value": "authenticated";
1291
- "label": "Authenticated";
1292
- }, {
1293
- "value": "anonymous";
1294
- "label": "Anonymous";
1295
- }];
1296
- };
1297
- };
1298
- /** . */
1299
- 'auth': {
1300
- type: 'schema';
1301
- isRequired: true;
1302
- options: {
1303
- schema: SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema;
1304
- };
1305
- };
1306
- };
1307
- }
1308
- interface AuthenticateResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateResponsePayloadSchema> {
1309
- }
1310
- }
1311
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1312
- interface CanListenEmitPayload {
1313
- 'authorizerStatuses'?: ("clockedIn" | "clockedOut" | "onPrem" | "offPrem") | undefined | null;
1314
- 'fullyQualifiedEventName': string;
1315
- }
1316
- interface CanListenEmitPayloadSchema extends SpruceSchema.Schema {
1317
- id: 'canListenEmitPayload';
1318
- version: 'v2020_12_25';
1319
- namespace: 'Mercury';
1320
- name: '';
1321
- fields: {
1322
- /** . */
1323
- 'authorizerStatuses': {
1324
- type: 'select';
1325
- options: {
1326
- choices: [{
1327
- "label": "Clocked in";
1328
- "value": "clockedIn";
1329
- }, {
1330
- "label": "Clocked out";
1331
- "value": "clockedOut";
1332
- }, {
1333
- "label": "On premises";
1334
- "value": "onPrem";
1335
- }, {
1336
- "label": "Off premises";
1337
- "value": "offPrem";
1338
- }];
1339
- };
1340
- };
1341
- /** . */
1342
- 'fullyQualifiedEventName': {
1343
- type: 'text';
1344
- isRequired: true;
1345
- options: undefined;
1346
- };
1347
- };
1348
- }
1349
- interface CanListenEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema> {
1350
- }
1351
- }
1352
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1353
- interface CanListenEmitTargetAndPayload {
1354
- /** Source. */
1355
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1356
- 'payload': SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayload;
1357
- }
1358
- interface CanListenEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1359
- id: 'canListenEmitTargetAndPayload';
1360
- version: 'v2020_12_25';
1361
- namespace: 'Mercury';
1362
- name: '';
1363
- fields: {
1364
- /** Source. */
1365
- 'source': {
1366
- label: 'Source';
1367
- type: 'schema';
1368
- options: {
1369
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1370
- };
1371
- };
1372
- /** . */
1373
- 'payload': {
1374
- type: 'schema';
1375
- isRequired: true;
1376
- options: {
1377
- schema: SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema;
1378
- };
1379
- };
1380
- };
1381
- }
1382
- interface CanListenEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitTargetAndPayloadSchema> {
1383
- }
1384
- }
1385
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1386
- interface CanListenResponsePayload {
1387
- 'can'?: boolean | undefined | null;
1388
- }
1389
- interface CanListenResponsePayloadSchema extends SpruceSchema.Schema {
1390
- id: 'canListenResponsePayload';
1391
- version: 'v2020_12_25';
1392
- namespace: 'Mercury';
1393
- name: '';
1394
- fields: {
1395
- /** . */
1396
- 'can': {
1397
- type: 'boolean';
1398
- options: undefined;
1399
- };
1400
- };
1401
- }
1402
- interface CanListenResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenResponsePayloadSchema> {
1403
- }
1404
- }
1405
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1406
- interface ConfirmPinEmitPayload {
1407
- 'challenge': string;
1408
- 'pin': string;
1409
- }
1410
- interface ConfirmPinEmitPayloadSchema extends SpruceSchema.Schema {
1411
- id: 'confirmPinEmitPayload';
1412
- version: 'v2020_12_25';
1413
- namespace: 'Mercury';
1414
- name: '';
1415
- fields: {
1416
- /** . */
1417
- 'challenge': {
1418
- type: 'text';
1419
- isRequired: true;
1420
- options: undefined;
1421
- };
1422
- /** . */
1423
- 'pin': {
1424
- type: 'text';
1425
- isRequired: true;
1426
- options: undefined;
1427
- };
1428
- };
1429
- }
1430
- interface ConfirmPinEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema> {
1431
- }
1432
- }
1433
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1434
- interface ConfirmPinEmitTargetAndPayload {
1435
- /** Source. */
1436
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1437
- 'payload': SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayload;
1438
- }
1439
- interface ConfirmPinEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1440
- id: 'confirmPinEmitTargetAndPayload';
1441
- version: 'v2020_12_25';
1442
- namespace: 'Mercury';
1443
- name: '';
1444
- fields: {
1445
- /** Source. */
1446
- 'source': {
1447
- label: 'Source';
1448
- type: 'schema';
1449
- options: {
1450
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1451
- };
1452
- };
1453
- /** . */
1454
- 'payload': {
1455
- type: 'schema';
1456
- isRequired: true;
1457
- options: {
1458
- schema: SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema;
1459
- };
1460
- };
1461
- };
1462
- }
1463
- interface ConfirmPinEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitTargetAndPayloadSchema> {
1464
- }
1465
- }
1466
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1467
- interface ConfirmPinRespondPayload {
1468
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
1469
- 'token': string;
1470
- }
1471
- interface ConfirmPinRespondPayloadSchema extends SpruceSchema.Schema {
1472
- id: 'confirmPinRespondPayload';
1473
- version: 'v2020_12_25';
1474
- namespace: 'Mercury';
1475
- name: '';
1476
- fields: {
1477
- /** . */
1478
- 'person': {
1479
- type: 'schema';
1480
- isRequired: true;
1481
- options: {
1482
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
1483
- };
1484
- };
1485
- /** . */
1486
- 'token': {
1487
- type: 'text';
1488
- isRequired: true;
1489
- options: undefined;
1490
- };
1491
- };
1492
- }
1493
- interface ConfirmPinRespondPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinRespondPayloadSchema> {
1494
- }
1495
- }
1496
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1497
- interface CreateLocationEmitTarget {
1498
- 'organizationId': string;
1499
- }
1500
- interface CreateLocationEmitTargetSchema extends SpruceSchema.Schema {
1501
- id: 'createLocationEmitTarget';
1502
- version: 'v2020_12_25';
1503
- namespace: 'Mercury';
1504
- name: '';
1505
- fields: {
1506
- /** . */
1507
- 'organizationId': {
1508
- type: 'id';
1509
- isRequired: true;
1510
- options: undefined;
1511
- };
1512
- };
1513
- }
1514
- interface CreateLocationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CreateLocationEmitTargetSchema> {
1515
- }
1516
- }
1517
- namespace SpruceSchemas.Mercury.v2020_12_25 {
1518
- interface CreateLocationEmitPayload {
1519
- /** Name. */
1520
- 'name': string;
1521
- /** Store number. You can use other symbols, like # or dashes. #123 or 32-US-5 */
1522
- 'num'?: string | undefined | null;
1523
- /** Public. Is this location viewable by guests? */
1524
- 'isPublic'?: boolean | undefined | null;
1525
- /** Main Phone. */
1526
- 'phone'?: string | undefined | null;
1527
- /** Timezone. */
1528
- 'timezone'?: ("Pacific/Niue" | "Pacific/Pago_Pago" | "Pacific/Rarotonga" | "Pacific/Honolulu" | "Pacific/Tahiti" | "Pacific/Marquesas" | "Pacific/Gambier" | "America/Adak" | "America/Anchorage" | "America/Juneau" | "America/Metlakatla" | "America/Nome" | "America/Sitka" | "America/Yakutat" | "Pacific/Pitcairn" | "America/Hermosillo" | "America/Dawson_Creek" | "America/Fort_Nelson" | "America/Phoenix" | "America/Los_Angeles" | "America/Tijuana" | "America/Vancouver" | "America/Dawson" | "America/Whitehorse" | "America/Belize" | "America/Costa_Rica" | "America/El_Salvador" | "America/Guatemala" | "America/Managua" | "America/Regina" | "America/Swift_Current" | "America/Tegucigalpa" | "Pacific/Easter" | "Pacific/Galapagos" | "America/Chihuahua" | "America/Mazatlan" | "America/Boise" | "America/Cambridge_Bay" | "America/Denver" | "America/Edmonton" | "America/Inuvik" | "America/Ojinaga" | "America/Yellowknife" | "America/Eirunepe" | "America/Rio_Branco" | "America/Bahia_Banderas" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/Chicago" | "America/Indiana/Knox" | "America/Matamoros" | "America/Menominee" | "America/Merida" | "America/Mexico_City" | "America/Monterrey" | "America/North_Dakota/New_Salem" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Resolute" | "America/Indiana/Tell_City" | "America/Winnipeg" | "America/Bogota" | "America/Cancun" | "America/Jamaica" | "America/Panama" | "America/Guayaquil" | "America/Lima" | "America/Boa_Vista" | "America/Campo_Grande" | "America/Cuiaba" | "America/Manaus" | "America/Porto_Velho" | "America/Barbados" | "America/Martinique" | "America/Puerto_Rico" | "America/Santo_Domingo" | "America/La_Paz" | "America/Santiago" | "America/Havana" | "America/Detroit" | "America/Grand_Turk" | "America/Indiana/Indianapolis" | "America/Iqaluit" | "America/Kentucky/Louisville" | "America/Indiana/Marengo" | "America/Kentucky/Monticello" | "America/New_York" | "America/Nipigon" | "America/Pangnirtung" | "America/Indiana/Petersburg" | "America/Port-au-Prince" | "America/Thunder_Bay" | "America/Toronto" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Guyana" | "America/Asuncion" | "America/Caracas" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "Atlantic/Bermuda" | "America/Glace_Bay" | "America/Goose_Bay" | "America/Halifax" | "America/Moncton" | "America/Thule" | "America/Araguaina" | "America/Bahia" | "America/Belem" | "America/Fortaleza" | "America/Maceio" | "America/Recife" | "America/Santarem" | "America/Sao_Paulo" | "Atlantic/Stanley" | "America/Cayenne" | "Antarctica/Palmer" | "America/Punta_Arenas" | "Antarctica/Rothera" | "America/Paramaribo" | "America/Montevideo" | "America/St_Johns" | "America/Noronha" | "Atlantic/South_Georgia" | "America/Miquelon" | "America/Nuuk" | "Atlantic/Cape_Verde" | "Atlantic/Azores" | "UTC" | "America/Scoresbysund" | "Etc/GMT" | "Africa/Abidjan" | "Africa/Bissau" | "America/Danmarkshavn" | "Africa/Monrovia" | "Atlantic/Reykjavik" | "Africa/Sao_Tome" | "Africa/Algiers" | "Africa/Tunis" | "Europe/Dublin" | "Africa/Casablanca" | "Europe/London" | "Africa/Lagos" | "Africa/Ndjamena" | "Atlantic/Canary" | "Atlantic/Faroe" | "Europe/Lisbon" | "Atlantic/Madeira" | "Africa/El_Aaiun" | "Africa/Juba" | "Africa/Khartoum" | "Africa/Maputo" | "Africa/Windhoek" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Brussels" | "Europe/Budapest" | "Africa/Ceuta" | "Europe/Copenhagen" | "Europe/Gibraltar" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Monaco" | "Europe/Oslo" | "Europe/Paris" | "Europe/Prague" | "Europe/Rome" | "Europe/Stockholm" | "Europe/Tirane" | "Europe/Vienna" | "Europe/Warsaw" | "Europe/Zurich" | "Africa/Cairo" | "Europe/Kaliningrad" | "Africa/Tripoli" | "Africa/Johannesburg" | "Antarctica/Troll" | "Asia/Baghdad" | "Asia/Qatar" | "Asia/Riyadh" | "Africa/Nairobi" | "Asia/Amman" | "Europe/Athens" | "Asia/Beirut" | "Europe/Bucharest" | "Europe/Chisinau" | "Asia/Damascus" | "Asia/Gaza" | "Asia/Hebron" | "Europe/Helsinki" | "Europe/Kiev" | "Asia/Nicosia" | "Europe/Riga" | "Europe/Sofia" | "Europe/Tallinn" | "Europe/Uzhgorod" | "Europe/Vilnius" | "Europe/Zaporozhye" | "Asia/Famagusta" | "Asia/Jerusalem" | "Europe/Kirov" | "Europe/Minsk" | "Europe/Moscow" | "Europe/Simferopol" | "Europe/Istanbul" | "Europe/Volgograd" | "Asia/Yerevan" | "Europe/Astrakhan" | "Asia/Baku" | "Asia/Tbilisi" | "Asia/Dubai" | "Indian/Mauritius" | "Indian/Reunion" | "Europe/Samara" | "Europe/Saratov" | "Indian/Mahe" | "Europe/Ulyanovsk" | "Asia/Kabul" | "Asia/Tehran" | "Indian/Kerguelen" | "Indian/Maldives" | "Antarctica/Mawson" | "Asia/Karachi" | "Asia/Dushanbe" | "Asia/Ashgabat" | "Asia/Samarkand" | "Asia/Tashkent" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Atyrau" | "Asia/Oral" | "Asia/Qyzylorda" | "Asia/Yekaterinburg" | "Asia/Colombo" | "Asia/Kolkata" | "Asia/Kathmandu" | "Asia/Dhaka" | "Asia/Thimphu" | "Asia/Almaty" | "Asia/Qostanay" | "Indian/Chagos" | "Asia/Bishkek" | "Asia/Omsk" | "Asia/Urumqi" | "Antarctica/Vostok" | "Indian/Cocos" | "Asia/Yangon" | "Asia/Barnaul" | "Indian/Christmas" | "Antarctica/Davis" | "Asia/Hovd" | "Asia/Bangkok" | "Asia/Ho_Chi_Minh" | "Asia/Krasnoyarsk" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Tomsk" | "Asia/Jakarta" | "Asia/Pontianak" | "Australia/Perth" | "Asia/Brunei" | "Asia/Makassar" | "Asia/Macau" | "Asia/Shanghai" | "Asia/Hong_Kong" | "Asia/Irkutsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Manila" | "Asia/Singapore" | "Asia/Taipei" | "Asia/Choibalsan" | "Asia/Ulaanbaatar" | "Australia/Eucla" | "Asia/Dili" | "Asia/Jayapura" | "Asia/Tokyo" | "Asia/Pyongyang" | "Asia/Seoul" | "Pacific/Palau" | "Asia/Chita" | "Asia/Khandyga" | "Asia/Yakutsk" | "Australia/Darwin" | "Australia/Adelaide" | "Australia/Broken_Hill" | "Australia/Brisbane" | "Australia/Lindeman" | "Pacific/Guam" | "Pacific/Chuuk" | "Australia/Hobart" | "Antarctica/Macquarie" | "Australia/Melbourne" | "Australia/Sydney" | "Pacific/Port_Moresby" | "Asia/Ust-Nera" | "Asia/Vladivostok" | "Australia/Lord_Howe" | "Pacific/Bougainville" | "Antarctica/Casey" | "Pacific/Kosrae" | "Asia/Magadan" | "Pacific/Noumea" | "Pacific/Norfolk" | "Pacific/Pohnpei" | "Asia/Sakhalin" | "Pacific/Guadalcanal" | "Asia/Srednekolymsk" | "Pacific/Efate" | "Asia/Anadyr" | "Pacific/Fiji" | "Pacific/Tarawa" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Nauru" | "Pacific/Auckland" | "Asia/Kamchatka" | "Pacific/Funafuti" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Chatham" | "Pacific/Apia" | "Pacific/Fakaofo" | "Pacific/Tongatapu" | "Pacific/Kiritimati") | undefined | null;
1529
- /** Address. */
1530
- 'address': SpruceSchema.AddressFieldValue;
1531
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
1532
- 'slug'?: string | undefined | null;
1533
- }
1534
- interface CreateLocationEmitPayloadSchema extends SpruceSchema.Schema {
1535
- id: 'createLocationEmitPayload';
1536
- version: 'v2020_12_25';
1537
- namespace: 'Mercury';
1538
- name: '';
1539
- fields: {
1540
- /** Name. */
1541
- 'name': {
1542
- label: 'Name';
1543
- type: 'text';
1544
- isRequired: true;
1545
- options: undefined;
1546
- };
1547
- /** Store number. You can use other symbols, like # or dashes. #123 or 32-US-5 */
1548
- 'num': {
1549
- label: 'Store number';
1550
- type: 'text';
1551
- hint: 'You can use other symbols, like # or dashes. #123 or 32-US-5';
1552
- options: undefined;
1553
- };
1554
- /** Public. Is this location viewable by guests? */
1555
- 'isPublic': {
1556
- label: 'Public';
1557
- type: 'boolean';
1558
- hint: 'Is this location viewable by guests?';
1559
- defaultValue: false;
1560
- options: undefined;
1561
- };
1562
- /** Main Phone. */
1563
- 'phone': {
1564
- label: 'Main Phone';
1565
- type: 'phone';
1566
- options: undefined;
1567
- };
1568
- /** Timezone. */
1569
- 'timezone': {
1570
- label: 'Timezone';
1571
- type: 'select';
504
+ /** Timezone. */
505
+ 'timezone': {
506
+ label: 'Timezone';
507
+ type: 'select';
1572
508
  options: {
1573
509
  choices: [{
1574
510
  "value": "Pacific/Niue";
@@ -4042,6 +2978,48 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4042
2978
  interface CreateRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitPayloadSchema> {
4043
2979
  }
4044
2980
  }
2981
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
2982
+ interface CreateRoleEmitTargetAndPayload {
2983
+ /** Source. */
2984
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2985
+ 'target': SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitTarget;
2986
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitPayload;
2987
+ }
2988
+ interface CreateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2989
+ id: 'createRoleEmitTargetAndPayload';
2990
+ version: 'v2020_12_25';
2991
+ namespace: 'Mercury';
2992
+ name: '';
2993
+ fields: {
2994
+ /** Source. */
2995
+ 'source': {
2996
+ label: 'Source';
2997
+ type: 'schema';
2998
+ options: {
2999
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3000
+ };
3001
+ };
3002
+ /** . */
3003
+ 'target': {
3004
+ type: 'schema';
3005
+ isRequired: true;
3006
+ options: {
3007
+ schema: SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitTargetSchema;
3008
+ };
3009
+ };
3010
+ /** . */
3011
+ 'payload': {
3012
+ type: 'schema';
3013
+ isRequired: true;
3014
+ options: {
3015
+ schema: SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitPayloadSchema;
3016
+ };
3017
+ };
3018
+ };
3019
+ }
3020
+ interface CreateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CreateRoleEmitTargetAndPayloadSchema> {
3021
+ }
3022
+ }
4045
3023
  namespace SpruceSchemas.Mercury.v2020_12_25 {
4046
3024
  interface CreateRoleResponsePayload {
4047
3025
  'role': SpruceSchemas.Spruce.v2020_07_22.Role;
@@ -4651,32 +3629,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4651
3629
  interface GetEventContractsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetEventContractsResponsePayloadSchema> {
4652
3630
  }
4653
3631
  }
4654
- namespace SpruceSchemas.Mercury.v2020_12_25 {
4655
- interface GetFeedEmitTarget {
4656
- 'locationId'?: string | undefined | null;
4657
- 'organizationId'?: string | undefined | null;
4658
- }
4659
- interface GetFeedEmitTargetSchema extends SpruceSchema.Schema {
4660
- id: 'getFeedEmitTarget';
4661
- version: 'v2020_12_25';
4662
- namespace: 'Mercury';
4663
- name: '';
4664
- fields: {
4665
- /** . */
4666
- 'locationId': {
4667
- type: 'id';
4668
- options: undefined;
4669
- };
4670
- /** . */
4671
- 'organizationId': {
4672
- type: 'id';
4673
- options: undefined;
4674
- };
4675
- };
4676
- }
4677
- interface GetFeedEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetFeedEmitTargetSchema> {
4678
- }
4679
- }
4680
3632
  namespace SpruceSchemas.Mercury.v2020_12_25 {
4681
3633
  interface GetFeedPagingRequest {
4682
3634
  'next'?: string | undefined | null;
@@ -4766,6 +3718,32 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4766
3718
  interface GetFeedEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetFeedEmitPayloadSchema> {
4767
3719
  }
4768
3720
  }
3721
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
3722
+ interface GetFeedEmitTarget {
3723
+ 'locationId'?: string | undefined | null;
3724
+ 'organizationId'?: string | undefined | null;
3725
+ }
3726
+ interface GetFeedEmitTargetSchema extends SpruceSchema.Schema {
3727
+ id: 'getFeedEmitTarget';
3728
+ version: 'v2020_12_25';
3729
+ namespace: 'Mercury';
3730
+ name: '';
3731
+ fields: {
3732
+ /** . */
3733
+ 'locationId': {
3734
+ type: 'id';
3735
+ options: undefined;
3736
+ };
3737
+ /** . */
3738
+ 'organizationId': {
3739
+ type: 'id';
3740
+ options: undefined;
3741
+ };
3742
+ };
3743
+ }
3744
+ interface GetFeedEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetFeedEmitTargetSchema> {
3745
+ }
3746
+ }
4769
3747
  namespace SpruceSchemas.Mercury.v2020_12_25 {
4770
3748
  interface GetFeedEmitTargetAndPayload {
4771
3749
  /** Source. */
@@ -6095,155 +5073,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
6095
5073
  type: 'boolean';
6096
5074
  hint: 'Does this skill require needing to be installed anywhere.';
6097
5075
  defaultValue: true;
6098
- options: undefined;
6099
- };
6100
- /** . */
6101
- 'dateCreated': {
6102
- type: 'dateTime';
6103
- isRequired: true;
6104
- options: undefined;
6105
- };
6106
- /** . */
6107
- 'dateDeleted': {
6108
- type: 'dateTime';
6109
- options: undefined;
6110
- };
6111
- };
6112
- }
6113
- interface ListInstalledSkillsSkillsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListInstalledSkillsSkillsResponsePayloadSchema> {
6114
- }
6115
- }
6116
- namespace SpruceSchemas.Mercury.v2020_12_25 {
6117
- interface ListInstalledSkillsResponsePayload {
6118
- 'skills': SpruceSchemas.Mercury.v2020_12_25.ListInstalledSkillsSkillsResponsePayload[];
6119
- }
6120
- interface ListInstalledSkillsResponsePayloadSchema extends SpruceSchema.Schema {
6121
- id: 'listInstalledSkillsResponsePayload';
6122
- version: 'v2020_12_25';
6123
- namespace: 'Mercury';
6124
- name: '';
6125
- fields: {
6126
- /** . */
6127
- 'skills': {
6128
- type: 'schema';
6129
- isRequired: true;
6130
- isArray: true;
6131
- minArrayLength: 0;
6132
- options: {
6133
- schema: SpruceSchemas.Mercury.v2020_12_25.ListInstalledSkillsSkillsResponsePayloadSchema;
6134
- };
6135
- };
6136
- };
6137
- }
6138
- interface ListInstalledSkillsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListInstalledSkillsResponsePayloadSchema> {
6139
- }
6140
- }
6141
- namespace SpruceSchemas.Mercury.v2020_12_25 {
6142
- interface ListOrgsEmitPayload {
6143
- 'shouldOnlyShowMine'?: boolean | undefined | null;
6144
- 'shouldOnlyShowWhereIAmEmployed'?: boolean | undefined | null;
6145
- 'shouldIncludePrivateOrganizations'?: boolean | undefined | null;
6146
- 'paging'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequest | undefined | null;
6147
- }
6148
- interface ListOrgsEmitPayloadSchema extends SpruceSchema.Schema {
6149
- id: 'listOrgsEmitPayload';
6150
- version: 'v2020_12_25';
6151
- namespace: 'Mercury';
6152
- name: '';
6153
- fields: {
6154
- /** . */
6155
- 'shouldOnlyShowMine': {
6156
- type: 'boolean';
6157
- options: undefined;
6158
- };
6159
- /** . */
6160
- 'shouldOnlyShowWhereIAmEmployed': {
6161
- type: 'boolean';
6162
- options: undefined;
6163
- };
6164
- /** . */
6165
- 'shouldIncludePrivateOrganizations': {
6166
- type: 'boolean';
6167
- options: undefined;
6168
- };
6169
- /** . */
6170
- 'paging': {
6171
- type: 'schema';
6172
- options: {
6173
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequestSchema;
6174
- };
6175
- };
6176
- };
6177
- }
6178
- interface ListOrgsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayloadSchema> {
6179
- }
6180
- }
6181
- namespace SpruceSchemas.Mercury.v2020_12_25 {
6182
- interface ListOrganizationsEmitTargetAndPayload {
6183
- /** Source. */
6184
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
6185
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitTarget | undefined | null;
6186
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayload | undefined | null;
6187
- }
6188
- interface ListOrganizationsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
6189
- id: 'listOrganizationsEmitTargetAndPayload';
6190
- version: 'v2020_12_25';
6191
- namespace: 'Mercury';
6192
- name: '';
6193
- fields: {
6194
- /** Source. */
6195
- 'source': {
6196
- label: 'Source';
6197
- type: 'schema';
6198
- options: {
6199
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
6200
- };
6201
- };
6202
- /** . */
6203
- 'target': {
6204
- type: 'schema';
6205
- options: {
6206
- schema: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitTargetSchema;
6207
- };
5076
+ options: undefined;
6208
5077
  };
6209
5078
  /** . */
6210
- 'payload': {
6211
- type: 'schema';
6212
- options: {
6213
- schema: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayloadSchema;
6214
- };
5079
+ 'dateCreated': {
5080
+ type: 'dateTime';
5081
+ isRequired: true;
5082
+ options: undefined;
5083
+ };
5084
+ /** . */
5085
+ 'dateDeleted': {
5086
+ type: 'dateTime';
5087
+ options: undefined;
6215
5088
  };
6216
5089
  };
6217
5090
  }
6218
- interface ListOrganizationsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListOrganizationsEmitTargetAndPayloadSchema> {
5091
+ interface ListInstalledSkillsSkillsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListInstalledSkillsSkillsResponsePayloadSchema> {
6219
5092
  }
6220
5093
  }
6221
5094
  namespace SpruceSchemas.Mercury.v2020_12_25 {
6222
- interface ListLocationsEmitPayload {
6223
- 'shouldOnlyShowWhereIAmEmployed'?: boolean | undefined | null;
6224
- 'paging'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequest | undefined | null;
5095
+ interface ListInstalledSkillsResponsePayload {
5096
+ 'skills': SpruceSchemas.Mercury.v2020_12_25.ListInstalledSkillsSkillsResponsePayload[];
6225
5097
  }
6226
- interface ListLocationsEmitPayloadSchema extends SpruceSchema.Schema {
6227
- id: 'listLocationsEmitPayload';
5098
+ interface ListInstalledSkillsResponsePayloadSchema extends SpruceSchema.Schema {
5099
+ id: 'listInstalledSkillsResponsePayload';
6228
5100
  version: 'v2020_12_25';
6229
5101
  namespace: 'Mercury';
6230
5102
  name: '';
6231
5103
  fields: {
6232
5104
  /** . */
6233
- 'shouldOnlyShowWhereIAmEmployed': {
6234
- type: 'boolean';
6235
- options: undefined;
6236
- };
6237
- /** . */
6238
- 'paging': {
5105
+ 'skills': {
6239
5106
  type: 'schema';
5107
+ isRequired: true;
5108
+ isArray: true;
5109
+ minArrayLength: 0;
6240
5110
  options: {
6241
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequestSchema;
5111
+ schema: SpruceSchemas.Mercury.v2020_12_25.ListInstalledSkillsSkillsResponsePayloadSchema;
6242
5112
  };
6243
5113
  };
6244
5114
  };
6245
5115
  }
6246
- interface ListLocationsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListLocationsEmitPayloadSchema> {
5116
+ interface ListInstalledSkillsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListInstalledSkillsResponsePayloadSchema> {
6247
5117
  }
6248
5118
  }
6249
5119
  namespace SpruceSchemas.Mercury.v2020_12_25 {
@@ -6372,6 +5242,114 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
6372
5242
  interface ListOrgsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitTargetSchema> {
6373
5243
  }
6374
5244
  }
5245
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
5246
+ interface ListLocationsEmitPayload {
5247
+ 'shouldOnlyShowWhereIAmEmployed'?: boolean | undefined | null;
5248
+ 'paging'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequest | undefined | null;
5249
+ }
5250
+ interface ListLocationsEmitPayloadSchema extends SpruceSchema.Schema {
5251
+ id: 'listLocationsEmitPayload';
5252
+ version: 'v2020_12_25';
5253
+ namespace: 'Mercury';
5254
+ name: '';
5255
+ fields: {
5256
+ /** . */
5257
+ 'shouldOnlyShowWhereIAmEmployed': {
5258
+ type: 'boolean';
5259
+ options: undefined;
5260
+ };
5261
+ /** . */
5262
+ 'paging': {
5263
+ type: 'schema';
5264
+ options: {
5265
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequestSchema;
5266
+ };
5267
+ };
5268
+ };
5269
+ }
5270
+ interface ListLocationsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListLocationsEmitPayloadSchema> {
5271
+ }
5272
+ }
5273
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
5274
+ interface ListOrgsEmitPayload {
5275
+ 'shouldOnlyShowMine'?: boolean | undefined | null;
5276
+ 'shouldOnlyShowWhereIAmEmployed'?: boolean | undefined | null;
5277
+ 'shouldIncludePrivateOrganizations'?: boolean | undefined | null;
5278
+ 'paging'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequest | undefined | null;
5279
+ }
5280
+ interface ListOrgsEmitPayloadSchema extends SpruceSchema.Schema {
5281
+ id: 'listOrgsEmitPayload';
5282
+ version: 'v2020_12_25';
5283
+ namespace: 'Mercury';
5284
+ name: '';
5285
+ fields: {
5286
+ /** . */
5287
+ 'shouldOnlyShowMine': {
5288
+ type: 'boolean';
5289
+ options: undefined;
5290
+ };
5291
+ /** . */
5292
+ 'shouldOnlyShowWhereIAmEmployed': {
5293
+ type: 'boolean';
5294
+ options: undefined;
5295
+ };
5296
+ /** . */
5297
+ 'shouldIncludePrivateOrganizations': {
5298
+ type: 'boolean';
5299
+ options: undefined;
5300
+ };
5301
+ /** . */
5302
+ 'paging': {
5303
+ type: 'schema';
5304
+ options: {
5305
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequestSchema;
5306
+ };
5307
+ };
5308
+ };
5309
+ }
5310
+ interface ListOrgsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayloadSchema> {
5311
+ }
5312
+ }
5313
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
5314
+ interface ListOrganizationsEmitTargetAndPayload {
5315
+ /** Source. */
5316
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
5317
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitTarget | undefined | null;
5318
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayload | undefined | null;
5319
+ }
5320
+ interface ListOrganizationsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
5321
+ id: 'listOrganizationsEmitTargetAndPayload';
5322
+ version: 'v2020_12_25';
5323
+ namespace: 'Mercury';
5324
+ name: '';
5325
+ fields: {
5326
+ /** Source. */
5327
+ 'source': {
5328
+ label: 'Source';
5329
+ type: 'schema';
5330
+ options: {
5331
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
5332
+ };
5333
+ };
5334
+ /** . */
5335
+ 'target': {
5336
+ type: 'schema';
5337
+ options: {
5338
+ schema: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitTargetSchema;
5339
+ };
5340
+ };
5341
+ /** . */
5342
+ 'payload': {
5343
+ type: 'schema';
5344
+ options: {
5345
+ schema: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayloadSchema;
5346
+ };
5347
+ };
5348
+ };
5349
+ }
5350
+ interface ListOrganizationsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListOrganizationsEmitTargetAndPayloadSchema> {
5351
+ }
5352
+ }
6375
5353
  namespace SpruceSchemas.Mercury.v2020_12_25 {
6376
5354
  interface ListOrgsResponsePayload {
6377
5355
  'organizations': SpruceSchemas.Spruce.v2020_07_22.Organization[];
@@ -9469,6 +8447,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
9469
8447
  interface SendMessageTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema> {
9470
8448
  }
9471
8449
  }
8450
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8451
+ interface SendMessageEmitTargetAndPayload {
8452
+ /** Source. */
8453
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
8454
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
8455
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
8456
+ }
8457
+ interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
8458
+ id: 'sendMessageEmitTargetAndPayload';
8459
+ version: 'v2020_12_25';
8460
+ namespace: 'Mercury';
8461
+ name: '';
8462
+ fields: {
8463
+ /** Source. */
8464
+ 'source': {
8465
+ label: 'Source';
8466
+ type: 'schema';
8467
+ options: {
8468
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
8469
+ };
8470
+ };
8471
+ /** . */
8472
+ 'target': {
8473
+ type: 'schema';
8474
+ options: {
8475
+ schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
8476
+ };
8477
+ };
8478
+ /** . */
8479
+ 'payload': {
8480
+ type: 'schema';
8481
+ isRequired: true;
8482
+ options: {
8483
+ schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
8484
+ };
8485
+ };
8486
+ };
8487
+ }
8488
+ interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
8489
+ }
8490
+ }
9472
8491
  namespace SpruceSchemas.Mercury.v2020_12_25 {
9473
8492
  interface SendMessageMessagePayload {
9474
8493
  /** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
@@ -9576,47 +8595,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
9576
8595
  interface SendMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema> {
9577
8596
  }
9578
8597
  }
9579
- namespace SpruceSchemas.Mercury.v2020_12_25 {
9580
- interface SendMessageEmitTargetAndPayload {
9581
- /** Source. */
9582
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
9583
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
9584
- 'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
9585
- }
9586
- interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
9587
- id: 'sendMessageEmitTargetAndPayload';
9588
- version: 'v2020_12_25';
9589
- namespace: 'Mercury';
9590
- name: '';
9591
- fields: {
9592
- /** Source. */
9593
- 'source': {
9594
- label: 'Source';
9595
- type: 'schema';
9596
- options: {
9597
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
9598
- };
9599
- };
9600
- /** . */
9601
- 'target': {
9602
- type: 'schema';
9603
- options: {
9604
- schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
9605
- };
9606
- };
9607
- /** . */
9608
- 'payload': {
9609
- type: 'schema';
9610
- isRequired: true;
9611
- options: {
9612
- schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
9613
- };
9614
- };
9615
- };
9616
- }
9617
- interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
9618
- }
9619
- }
9620
8598
  namespace SpruceSchemas.Mercury.v2020_12_25 {
9621
8599
  interface SendMessageResponsePayload {
9622
8600
  'message': SpruceSchemas.Spruce.v2020_07_22.Message;
@@ -9835,43 +8813,19 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
9835
8813
  type: 'schema';
9836
8814
  options: {
9837
8815
  schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
9838
- };
9839
- };
9840
- /** . */
9841
- 'payload': {
9842
- type: 'schema';
9843
- isRequired: true;
9844
- options: {
9845
- schema: SpruceSchemas.Mercury.v2020_12_25.SubmitErrorMessageFeedbackEmitPayloadSchema;
9846
- };
9847
- };
9848
- };
9849
- }
9850
- interface SubmitErrorMessageFeedbackEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SubmitErrorMessageFeedbackEmitTargetAndPayloadSchema> {
9851
- }
9852
- }
9853
- namespace SpruceSchemas.Mercury.v2020_12_25 {
9854
- interface SyncEventContractsEmitPayload {
9855
- 'contract': SpruceSchemas.Mercury.v2020_12_25.EventContract;
9856
- }
9857
- interface SyncEventContractsEmitPayloadSchema extends SpruceSchema.Schema {
9858
- id: 'syncEventContractsEmitPayload';
9859
- version: 'v2020_12_25';
9860
- namespace: 'Mercury';
9861
- name: '';
9862
- importsWhenRemote: ['import \'@sprucelabs/mercury-types\''];
9863
- fields: {
8816
+ };
8817
+ };
9864
8818
  /** . */
9865
- 'contract': {
8819
+ 'payload': {
9866
8820
  type: 'schema';
9867
8821
  isRequired: true;
9868
8822
  options: {
9869
- schema: SpruceSchemas.Mercury.v2020_12_25.EventContractSchema;
8823
+ schema: SpruceSchemas.Mercury.v2020_12_25.SubmitErrorMessageFeedbackEmitPayloadSchema;
9870
8824
  };
9871
8825
  };
9872
8826
  };
9873
8827
  }
9874
- interface SyncEventContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitPayloadSchema> {
8828
+ interface SubmitErrorMessageFeedbackEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SubmitErrorMessageFeedbackEmitTargetAndPayloadSchema> {
9875
8829
  }
9876
8830
  }
9877
8831
  namespace SpruceSchemas.Mercury.v2020_12_25 {
@@ -9907,6 +8861,30 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
9907
8861
  interface SyncEventContractsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitTargetAndPayloadSchema> {
9908
8862
  }
9909
8863
  }
8864
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8865
+ interface SyncEventContractsEmitPayload {
8866
+ 'contract': SpruceSchemas.Mercury.v2020_12_25.EventContract;
8867
+ }
8868
+ interface SyncEventContractsEmitPayloadSchema extends SpruceSchema.Schema {
8869
+ id: 'syncEventContractsEmitPayload';
8870
+ version: 'v2020_12_25';
8871
+ namespace: 'Mercury';
8872
+ name: '';
8873
+ importsWhenRemote: ['import \'@sprucelabs/mercury-types\''];
8874
+ fields: {
8875
+ /** . */
8876
+ 'contract': {
8877
+ type: 'schema';
8878
+ isRequired: true;
8879
+ options: {
8880
+ schema: SpruceSchemas.Mercury.v2020_12_25.EventContractSchema;
8881
+ };
8882
+ };
8883
+ };
8884
+ }
8885
+ interface SyncEventContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitPayloadSchema> {
8886
+ }
8887
+ }
9910
8888
  namespace SpruceSchemas.Mercury.v2020_12_25 {
9911
8889
  interface SyncEventContractsResponsePayload {
9912
8890
  /** Event names. */
@@ -9959,31 +8937,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
9959
8937
  interface SyncPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsEmitPayloadSchema> {
9960
8938
  }
9961
8939
  }
9962
- namespace SpruceSchemas.Mercury.v2020_12_25 {
9963
- interface SyncPermissionContractsResponsePayload {
9964
- 'contractRecords': SpruceSchemas.Mercury.v2020_12_25.FullPermissionContract[];
9965
- }
9966
- interface SyncPermissionContractsResponsePayloadSchema extends SpruceSchema.Schema {
9967
- id: 'syncPermissionContractsResponsePayload';
9968
- version: 'v2020_12_25';
9969
- namespace: 'Mercury';
9970
- name: '';
9971
- fields: {
9972
- /** . */
9973
- 'contractRecords': {
9974
- type: 'schema';
9975
- isRequired: true;
9976
- isArray: true;
9977
- minArrayLength: 0;
9978
- options: {
9979
- schema: SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema;
9980
- };
9981
- };
9982
- };
9983
- }
9984
- interface SyncPermissionContractsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsResponsePayloadSchema> {
9985
- }
9986
- }
9987
8940
  namespace SpruceSchemas.Mercury.v2020_12_25 {
9988
8941
  interface SyncPermissionContractsEmitTargetAndPayload {
9989
8942
  /** Source. */
@@ -10069,6 +9022,31 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
10069
9022
  interface FullPermissionContractEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema> {
10070
9023
  }
10071
9024
  }
9025
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
9026
+ interface SyncPermissionContractsResponsePayload {
9027
+ 'contractRecords': SpruceSchemas.Mercury.v2020_12_25.FullPermissionContract[];
9028
+ }
9029
+ interface SyncPermissionContractsResponsePayloadSchema extends SpruceSchema.Schema {
9030
+ id: 'syncPermissionContractsResponsePayload';
9031
+ version: 'v2020_12_25';
9032
+ namespace: 'Mercury';
9033
+ name: '';
9034
+ fields: {
9035
+ /** . */
9036
+ 'contractRecords': {
9037
+ type: 'schema';
9038
+ isRequired: true;
9039
+ isArray: true;
9040
+ minArrayLength: 0;
9041
+ options: {
9042
+ schema: SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema;
9043
+ };
9044
+ };
9045
+ };
9046
+ }
9047
+ interface SyncPermissionContractsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsResponsePayloadSchema> {
9048
+ }
9049
+ }
10072
9050
  namespace SpruceSchemas.Mercury.v2020_12_25 {
10073
9051
  interface UnInstallSkillEmitTarget {
10074
9052
  'skillId': string;
@@ -11858,6 +10836,46 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11858
10836
  interface UpdatePersonEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetSchema> {
11859
10837
  }
11860
10838
  }
10839
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
10840
+ interface UpdatePersonEmitTargetAndPayload {
10841
+ /** Source. */
10842
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
10843
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTarget | undefined | null;
10844
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayload | undefined | null;
10845
+ }
10846
+ interface UpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
10847
+ id: 'updatePersonEmitTargetAndPayload';
10848
+ version: 'v2020_12_25';
10849
+ namespace: 'Mercury';
10850
+ name: '';
10851
+ fields: {
10852
+ /** Source. */
10853
+ 'source': {
10854
+ label: 'Source';
10855
+ type: 'schema';
10856
+ options: {
10857
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
10858
+ };
10859
+ };
10860
+ /** . */
10861
+ 'target': {
10862
+ type: 'schema';
10863
+ options: {
10864
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetSchema;
10865
+ };
10866
+ };
10867
+ /** . */
10868
+ 'payload': {
10869
+ type: 'schema';
10870
+ options: {
10871
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema;
10872
+ };
10873
+ };
10874
+ };
10875
+ }
10876
+ interface UpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetAndPayloadSchema> {
10877
+ }
10878
+ }
11861
10879
  namespace SpruceSchemas.Mercury.v2020_12_25 {
11862
10880
  interface SecurityQuestion {
11863
10881
  'question': string;
@@ -12946,176 +11964,1056 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12946
11964
  }];
12947
11965
  };
12948
11966
  };
12949
- /** Avatar src. */
12950
- 'avatar': {
12951
- label: 'Avatar src';
12952
- type: 'image';
11967
+ /** Avatar src. */
11968
+ 'avatar': {
11969
+ label: 'Avatar src';
11970
+ type: 'image';
11971
+ options: {
11972
+ requiredSizes: ["*"];
11973
+ };
11974
+ };
11975
+ /** Phone. A number that can be texted */
11976
+ 'phone': {
11977
+ label: 'Phone';
11978
+ type: 'phone';
11979
+ isPrivate: true;
11980
+ hint: 'A number that can be texted';
11981
+ options: undefined;
11982
+ };
11983
+ /** . */
11984
+ 'password': {
11985
+ type: 'text';
11986
+ options: undefined;
11987
+ };
11988
+ /** . */
11989
+ 'securityQuestions': {
11990
+ type: 'schema';
11991
+ isArray: true;
11992
+ options: {
11993
+ schema: SpruceSchemas.Mercury.v2020_12_25.SecurityQuestionSchema;
11994
+ };
11995
+ };
11996
+ };
11997
+ }
11998
+ interface UpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema> {
11999
+ }
12000
+ }
12001
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12002
+ interface UpdatePersonResponsePayload {
12003
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12004
+ }
12005
+ interface UpdatePersonResponsePayloadSchema extends SpruceSchema.Schema {
12006
+ id: 'updatePersonResponsePayload';
12007
+ version: 'v2020_12_25';
12008
+ namespace: 'Mercury';
12009
+ name: '';
12010
+ fields: {
12011
+ /** . */
12012
+ 'person': {
12013
+ type: 'schema';
12014
+ isRequired: true;
12015
+ options: {
12016
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12017
+ };
12018
+ };
12019
+ };
12020
+ }
12021
+ interface UpdatePersonResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonResponsePayloadSchema> {
12022
+ }
12023
+ }
12024
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12025
+ interface UpdateRoleEmitTarget {
12026
+ 'roleId': string;
12027
+ }
12028
+ interface UpdateRoleEmitTargetSchema extends SpruceSchema.Schema {
12029
+ id: 'updateRoleEmitTarget';
12030
+ version: 'v2020_12_25';
12031
+ namespace: 'Mercury';
12032
+ name: '';
12033
+ fields: {
12034
+ /** . */
12035
+ 'roleId': {
12036
+ type: 'id';
12037
+ isRequired: true;
12038
+ options: undefined;
12039
+ };
12040
+ };
12041
+ }
12042
+ interface UpdateRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema> {
12043
+ }
12044
+ }
12045
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12046
+ interface UpdateRoleEmitPayload {
12047
+ /** Name. */
12048
+ 'name'?: string | undefined | null;
12049
+ /** Base. A best practices starting point for a role based on the generalized roles at a company. */
12050
+ 'base'?: ("owner" | "groupManager" | "manager" | "teammate" | "anonymous" | "loggedIn" | "guest") | undefined | null;
12051
+ /** Description. */
12052
+ 'description'?: string | undefined | null;
12053
+ 'dateDeleted'?: number | undefined | null;
12054
+ 'organizationId'?: string | undefined | null;
12055
+ /** Public. Should I let people that are not part of this organization this role? */
12056
+ 'isPublic'?: boolean | undefined | null;
12057
+ }
12058
+ interface UpdateRoleEmitPayloadSchema extends SpruceSchema.Schema {
12059
+ id: 'updateRoleEmitPayload';
12060
+ version: 'v2020_12_25';
12061
+ namespace: 'Mercury';
12062
+ name: '';
12063
+ fields: {
12064
+ /** Name. */
12065
+ 'name': {
12066
+ label: 'Name';
12067
+ type: 'text';
12068
+ options: undefined;
12069
+ };
12070
+ /** Base. A best practices starting point for a role based on the generalized roles at a company. */
12071
+ 'base': {
12072
+ label: 'Base';
12073
+ type: 'select';
12074
+ hint: 'A best practices starting point for a role based on the generalized roles at a company.';
12075
+ options: {
12076
+ choices: [{
12077
+ "label": "Owner";
12078
+ "value": "owner";
12079
+ }, {
12080
+ "label": "Group manager";
12081
+ "value": "groupManager";
12082
+ }, {
12083
+ "label": "Manager";
12084
+ "value": "manager";
12085
+ }, {
12086
+ "label": "Teammate";
12087
+ "value": "teammate";
12088
+ }, {
12089
+ "label": "Anonymous";
12090
+ "value": "anonymous";
12091
+ }, {
12092
+ "label": "Logged in";
12093
+ "value": "loggedIn";
12094
+ }, {
12095
+ "label": "Guest";
12096
+ "value": "guest";
12097
+ }];
12098
+ };
12099
+ };
12100
+ /** Description. */
12101
+ 'description': {
12102
+ label: 'Description';
12103
+ type: 'text';
12104
+ options: undefined;
12105
+ };
12106
+ /** . */
12107
+ 'dateDeleted': {
12108
+ type: 'number';
12109
+ options: undefined;
12110
+ };
12111
+ /** . */
12112
+ 'organizationId': {
12113
+ type: 'id';
12114
+ options: undefined;
12115
+ };
12116
+ /** Public. Should I let people that are not part of this organization this role? */
12117
+ 'isPublic': {
12118
+ label: 'Public';
12119
+ type: 'boolean';
12120
+ hint: 'Should I let people that are not part of this organization this role?';
12121
+ options: undefined;
12122
+ };
12123
+ };
12124
+ }
12125
+ interface UpdateRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema> {
12126
+ }
12127
+ }
12128
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12129
+ interface UpdateRoleEmitTargetAndPayload {
12130
+ /** Source. */
12131
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12132
+ 'target': SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTarget;
12133
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayload | undefined | null;
12134
+ }
12135
+ interface UpdateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12136
+ id: 'updateRoleEmitTargetAndPayload';
12137
+ version: 'v2020_12_25';
12138
+ namespace: 'Mercury';
12139
+ name: '';
12140
+ fields: {
12141
+ /** Source. */
12142
+ 'source': {
12143
+ label: 'Source';
12144
+ type: 'schema';
12145
+ options: {
12146
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12147
+ };
12148
+ };
12149
+ /** . */
12150
+ 'target': {
12151
+ type: 'schema';
12152
+ isRequired: true;
12153
+ options: {
12154
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema;
12155
+ };
12156
+ };
12157
+ /** . */
12158
+ 'payload': {
12159
+ type: 'schema';
12160
+ options: {
12161
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema;
12162
+ };
12163
+ };
12164
+ };
12165
+ }
12166
+ interface UpdateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetAndPayloadSchema> {
12167
+ }
12168
+ }
12169
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12170
+ interface UpdateRoleResponsePayload {
12171
+ 'role': SpruceSchemas.Spruce.v2020_07_22.Role;
12172
+ }
12173
+ interface UpdateRoleResponsePayloadSchema extends SpruceSchema.Schema {
12174
+ id: 'updateRoleResponsePayload';
12175
+ version: 'v2020_12_25';
12176
+ namespace: 'Mercury';
12177
+ name: '';
12178
+ fields: {
12179
+ /** . */
12180
+ 'role': {
12181
+ type: 'schema';
12182
+ isRequired: true;
12183
+ options: {
12184
+ schema: SpruceSchemas.Spruce.v2020_07_22.RoleSchema;
12185
+ };
12186
+ };
12187
+ };
12188
+ }
12189
+ interface UpdateRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleResponsePayloadSchema> {
12190
+ }
12191
+ }
12192
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12193
+ interface UpsertPermissionContractEmitTarget {
12194
+ 'organizationId': string;
12195
+ 'permissionContractId': string;
12196
+ 'roleId': string;
12197
+ 'skillId'?: string | undefined | null;
12198
+ }
12199
+ interface UpsertPermissionContractEmitTargetSchema extends SpruceSchema.Schema {
12200
+ id: 'upsertPermissionContractEmitTarget';
12201
+ version: 'v2020_12_25';
12202
+ namespace: 'Mercury';
12203
+ name: '';
12204
+ fields: {
12205
+ /** . */
12206
+ 'organizationId': {
12207
+ type: 'id';
12208
+ isRequired: true;
12209
+ options: undefined;
12210
+ };
12211
+ /** . */
12212
+ 'permissionContractId': {
12213
+ type: 'id';
12214
+ isRequired: true;
12215
+ options: undefined;
12216
+ };
12217
+ /** . */
12218
+ 'roleId': {
12219
+ type: 'id';
12220
+ isRequired: true;
12221
+ options: undefined;
12222
+ };
12223
+ /** . */
12224
+ 'skillId': {
12225
+ type: 'id';
12226
+ options: undefined;
12227
+ };
12228
+ };
12229
+ }
12230
+ interface UpsertPermissionContractEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema> {
12231
+ }
12232
+ }
12233
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12234
+ interface UpsertPermissionContractEmitTargetAndPayload {
12235
+ /** Source. */
12236
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12237
+ 'target': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTarget;
12238
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayload;
12239
+ }
12240
+ interface UpsertPermissionContractEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12241
+ id: 'upsertPermissionContractEmitTargetAndPayload';
12242
+ version: 'v2020_12_25';
12243
+ namespace: 'Mercury';
12244
+ name: '';
12245
+ fields: {
12246
+ /** Source. */
12247
+ 'source': {
12248
+ label: 'Source';
12249
+ type: 'schema';
12250
+ options: {
12251
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12252
+ };
12253
+ };
12254
+ /** . */
12255
+ 'target': {
12256
+ type: 'schema';
12257
+ isRequired: true;
12258
+ options: {
12259
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema;
12260
+ };
12261
+ };
12262
+ /** . */
12263
+ 'payload': {
12264
+ type: 'schema';
12265
+ isRequired: true;
12266
+ options: {
12267
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema;
12268
+ };
12269
+ };
12270
+ };
12271
+ }
12272
+ interface UpsertPermissionContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetAndPayloadSchema> {
12273
+ }
12274
+ }
12275
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12276
+ interface UpsertPermissionContractsEmitPayload {
12277
+ /** Name. Human readable name for this contract */
12278
+ 'name': string;
12279
+ /** Description. */
12280
+ 'description'?: string | undefined | null;
12281
+ /** Require all permissions. */
12282
+ 'requireAllPermissions'?: boolean | undefined | null;
12283
+ 'permissions': SpruceSchemas.Mercury.v2020_12_25.Permission[];
12284
+ }
12285
+ interface UpsertPermissionContractsEmitPayloadSchema extends SpruceSchema.Schema {
12286
+ id: 'upsertPermissionContractsEmitPayload';
12287
+ version: 'v2020_12_25';
12288
+ namespace: 'Mercury';
12289
+ name: '';
12290
+ fields: {
12291
+ /** Name. Human readable name for this contract */
12292
+ 'name': {
12293
+ label: 'Name';
12294
+ type: 'text';
12295
+ isRequired: true;
12296
+ hint: 'Human readable name for this contract';
12297
+ options: undefined;
12298
+ };
12299
+ /** Description. */
12300
+ 'description': {
12301
+ label: 'Description';
12302
+ type: 'text';
12303
+ options: undefined;
12304
+ };
12305
+ /** Require all permissions. */
12306
+ 'requireAllPermissions': {
12307
+ label: 'Require all permissions';
12308
+ type: 'boolean';
12309
+ defaultValue: false;
12310
+ options: undefined;
12311
+ };
12312
+ /** . */
12313
+ 'permissions': {
12314
+ type: 'schema';
12315
+ isRequired: true;
12316
+ isArray: true;
12317
+ minArrayLength: 0;
12318
+ options: {
12319
+ schema: SpruceSchemas.Mercury.v2020_12_25.PermissionSchema;
12320
+ };
12321
+ };
12322
+ };
12323
+ }
12324
+ interface UpsertPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema> {
12325
+ }
12326
+ }
12327
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12328
+ interface UpsertPermissionContractResponsePayload {
12329
+ 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
12330
+ }
12331
+ interface UpsertPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
12332
+ id: 'upsertPermissionContractResponsePayload';
12333
+ version: 'v2020_12_25';
12334
+ namespace: 'Mercury';
12335
+ name: '';
12336
+ fields: {
12337
+ /** . */
12338
+ 'permissionContract': {
12339
+ type: 'schema';
12340
+ isRequired: true;
12341
+ options: {
12342
+ schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
12343
+ };
12344
+ };
12345
+ };
12346
+ }
12347
+ interface UpsertPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractResponsePayloadSchema> {
12348
+ }
12349
+ }
12350
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12351
+ interface VoteForFeatureEmitPayload {
12352
+ 'featureKey': string;
12353
+ 'skillNamespace': string;
12354
+ }
12355
+ interface VoteForFeatureEmitPayloadSchema extends SpruceSchema.Schema {
12356
+ id: 'voteForFeatureEmitPayload';
12357
+ version: 'v2020_12_25';
12358
+ namespace: 'Mercury';
12359
+ name: '';
12360
+ fields: {
12361
+ /** . */
12362
+ 'featureKey': {
12363
+ type: 'id';
12364
+ isRequired: true;
12365
+ options: undefined;
12366
+ };
12367
+ /** . */
12368
+ 'skillNamespace': {
12369
+ type: 'id';
12370
+ isRequired: true;
12371
+ options: undefined;
12372
+ };
12373
+ };
12374
+ }
12375
+ interface VoteForFeatureEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema> {
12376
+ }
12377
+ }
12378
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12379
+ interface VoteForFeatureEmitTargetAndPayload {
12380
+ /** Source. */
12381
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12382
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayload;
12383
+ }
12384
+ interface VoteForFeatureEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12385
+ id: 'voteForFeatureEmitTargetAndPayload';
12386
+ version: 'v2020_12_25';
12387
+ namespace: 'Mercury';
12388
+ name: '';
12389
+ fields: {
12390
+ /** Source. */
12391
+ 'source': {
12392
+ label: 'Source';
12393
+ type: 'schema';
12394
+ options: {
12395
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12396
+ };
12397
+ };
12398
+ /** . */
12399
+ 'payload': {
12400
+ type: 'schema';
12401
+ isRequired: true;
12402
+ options: {
12403
+ schema: SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema;
12404
+ };
12405
+ };
12406
+ };
12407
+ }
12408
+ interface VoteForFeatureEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitTargetAndPayloadSchema> {
12409
+ }
12410
+ }
12411
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12412
+ interface VoteForFeatureResponsePayload {
12413
+ 'totalVotes': number;
12414
+ }
12415
+ interface VoteForFeatureResponsePayloadSchema extends SpruceSchema.Schema {
12416
+ id: 'voteForFeatureResponsePayload';
12417
+ version: 'v2020_12_25';
12418
+ namespace: 'Mercury';
12419
+ name: '';
12420
+ fields: {
12421
+ /** . */
12422
+ 'totalVotes': {
12423
+ type: 'number';
12424
+ isRequired: true;
12425
+ options: undefined;
12426
+ };
12427
+ };
12428
+ }
12429
+ interface VoteForFeatureResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureResponsePayloadSchema> {
12430
+ }
12431
+ }
12432
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12433
+ interface WhoamiEmitTargetAndPayload {
12434
+ /** Source. */
12435
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12436
+ }
12437
+ interface WhoamiEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12438
+ id: 'whoamiEmitTargetAndPayload';
12439
+ version: 'v2020_12_25';
12440
+ namespace: 'Mercury';
12441
+ name: '';
12442
+ fields: {
12443
+ /** Source. */
12444
+ 'source': {
12445
+ label: 'Source';
12446
+ type: 'schema';
12447
+ options: {
12448
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12449
+ };
12450
+ };
12451
+ };
12452
+ }
12453
+ interface WhoamiEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.WhoamiEmitTargetAndPayloadSchema> {
12454
+ }
12455
+ }
12456
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12457
+ interface DidInstallEmitTarget {
12458
+ 'organizationId': string;
12459
+ 'skillId': string;
12460
+ }
12461
+ interface DidInstallEmitTargetSchema extends SpruceSchema.Schema {
12462
+ id: 'didInstallEmitTarget';
12463
+ version: 'v2020_12_25';
12464
+ namespace: 'Mercury';
12465
+ name: '';
12466
+ fields: {
12467
+ /** . */
12468
+ 'organizationId': {
12469
+ type: 'id';
12470
+ isRequired: true;
12471
+ options: undefined;
12472
+ };
12473
+ /** . */
12474
+ 'skillId': {
12475
+ type: 'id';
12476
+ isRequired: true;
12477
+ options: undefined;
12478
+ };
12479
+ };
12480
+ }
12481
+ interface DidInstallEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema> {
12482
+ }
12483
+ }
12484
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12485
+ interface DidInstallEmitTargetAndPayload {
12486
+ /** Source. */
12487
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12488
+ 'target': SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTarget;
12489
+ }
12490
+ interface DidInstallEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12491
+ id: 'didInstallEmitTargetAndPayload';
12492
+ version: 'v2020_12_25';
12493
+ namespace: 'Mercury';
12494
+ name: '';
12495
+ fields: {
12496
+ /** Source. */
12497
+ 'source': {
12498
+ label: 'Source';
12499
+ type: 'schema';
12500
+ options: {
12501
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12502
+ };
12503
+ };
12504
+ /** . */
12505
+ 'target': {
12506
+ type: 'schema';
12507
+ isRequired: true;
12508
+ options: {
12509
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema;
12510
+ };
12511
+ };
12512
+ };
12513
+ }
12514
+ interface DidInstallEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetAndPayloadSchema> {
12515
+ }
12516
+ }
12517
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12518
+ interface DidInstallResponsePayload {
12519
+ }
12520
+ interface DidInstallResponsePayloadSchema extends SpruceSchema.Schema {
12521
+ id: 'didInstallResponsePayload';
12522
+ version: 'v2020_12_25';
12523
+ namespace: 'Mercury';
12524
+ name: '';
12525
+ fields: {};
12526
+ }
12527
+ interface DidInstallResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallResponsePayloadSchema> {
12528
+ }
12529
+ }
12530
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12531
+ interface DidJoinOrganizationEmitTarget {
12532
+ 'organizationId': string;
12533
+ 'locationId'?: string | undefined | null;
12534
+ }
12535
+ interface DidJoinOrganizationEmitTargetSchema extends SpruceSchema.Schema {
12536
+ id: 'didJoinOrganizationEmitTarget';
12537
+ version: 'v2020_12_25';
12538
+ namespace: 'Mercury';
12539
+ name: '';
12540
+ fields: {
12541
+ /** . */
12542
+ 'organizationId': {
12543
+ type: 'id';
12544
+ isRequired: true;
12545
+ options: undefined;
12546
+ };
12547
+ /** . */
12548
+ 'locationId': {
12549
+ type: 'id';
12550
+ options: undefined;
12551
+ };
12552
+ };
12553
+ }
12554
+ interface DidJoinOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema> {
12555
+ }
12556
+ }
12557
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12558
+ interface DidJoinOrganizationEmitPayload {
12559
+ 'personId': string;
12560
+ 'roleId': string;
12561
+ 'isFirstRole': boolean;
12562
+ }
12563
+ interface DidJoinOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
12564
+ id: 'didJoinOrganizationEmitPayload';
12565
+ version: 'v2020_12_25';
12566
+ namespace: 'Mercury';
12567
+ name: '';
12568
+ fields: {
12569
+ /** . */
12570
+ 'personId': {
12571
+ type: 'id';
12572
+ isRequired: true;
12573
+ options: undefined;
12574
+ };
12575
+ /** . */
12576
+ 'roleId': {
12577
+ type: 'id';
12578
+ isRequired: true;
12579
+ options: undefined;
12580
+ };
12581
+ /** . */
12582
+ 'isFirstRole': {
12583
+ type: 'boolean';
12584
+ isRequired: true;
12585
+ options: undefined;
12586
+ };
12587
+ };
12588
+ }
12589
+ interface DidJoinOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema> {
12590
+ }
12591
+ }
12592
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12593
+ interface DidJoinOrganizationEmitTargetAndPayload {
12594
+ /** Source. */
12595
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12596
+ 'target': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTarget;
12597
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayload;
12598
+ }
12599
+ interface DidJoinOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12600
+ id: 'didJoinOrganizationEmitTargetAndPayload';
12601
+ version: 'v2020_12_25';
12602
+ namespace: 'Mercury';
12603
+ name: '';
12604
+ fields: {
12605
+ /** Source. */
12606
+ 'source': {
12607
+ label: 'Source';
12608
+ type: 'schema';
12609
+ options: {
12610
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12611
+ };
12612
+ };
12613
+ /** . */
12614
+ 'target': {
12615
+ type: 'schema';
12616
+ isRequired: true;
12953
12617
  options: {
12954
- requiredSizes: ["*"];
12618
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema;
12955
12619
  };
12956
12620
  };
12957
- /** Phone. A number that can be texted */
12958
- 'phone': {
12959
- label: 'Phone';
12960
- type: 'phone';
12961
- isPrivate: true;
12962
- hint: 'A number that can be texted';
12621
+ /** . */
12622
+ 'payload': {
12623
+ type: 'schema';
12624
+ isRequired: true;
12625
+ options: {
12626
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema;
12627
+ };
12628
+ };
12629
+ };
12630
+ }
12631
+ interface DidJoinOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetAndPayloadSchema> {
12632
+ }
12633
+ }
12634
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12635
+ interface MessageTemplateAddons {
12636
+ 'nextINeedYouTo'?: string[] | undefined | null;
12637
+ 'youShouldKnowThat'?: string[] | undefined | null;
12638
+ 'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
12639
+ }
12640
+ interface MessageTemplateAddonsSchema extends SpruceSchema.Schema {
12641
+ id: 'messageTemplateAddons';
12642
+ version: 'v2020_12_25';
12643
+ namespace: 'Mercury';
12644
+ name: '';
12645
+ fields: {
12646
+ /** . */
12647
+ 'nextINeedYouTo': {
12648
+ type: 'text';
12649
+ isArray: true;
12963
12650
  options: undefined;
12964
12651
  };
12965
12652
  /** . */
12966
- 'password': {
12653
+ 'youShouldKnowThat': {
12967
12654
  type: 'text';
12655
+ isArray: true;
12968
12656
  options: undefined;
12969
12657
  };
12970
12658
  /** . */
12971
- 'securityQuestions': {
12659
+ 'links': {
12972
12660
  type: 'schema';
12973
12661
  isArray: true;
12662
+ minArrayLength: 0;
12974
12663
  options: {
12975
- schema: SpruceSchemas.Mercury.v2020_12_25.SecurityQuestionSchema;
12664
+ schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
12976
12665
  };
12977
12666
  };
12978
12667
  };
12979
12668
  }
12980
- interface UpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema> {
12669
+ interface MessageTemplateAddonsEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema> {
12981
12670
  }
12982
12671
  }
12983
12672
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12984
- interface UpdatePersonResponsePayload {
12985
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12673
+ interface DidJoinOrganizationResponsePayload {
12674
+ 'messaging'?: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddons | undefined | null;
12986
12675
  }
12987
- interface UpdatePersonResponsePayloadSchema extends SpruceSchema.Schema {
12988
- id: 'updatePersonResponsePayload';
12676
+ interface DidJoinOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
12677
+ id: 'didJoinOrganizationResponsePayload';
12989
12678
  version: 'v2020_12_25';
12990
12679
  namespace: 'Mercury';
12991
12680
  name: '';
12992
12681
  fields: {
12993
12682
  /** . */
12994
- 'person': {
12683
+ 'messaging': {
12684
+ type: 'schema';
12685
+ options: {
12686
+ schema: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema;
12687
+ };
12688
+ };
12689
+ };
12690
+ }
12691
+ interface DidJoinOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationResponsePayloadSchema> {
12692
+ }
12693
+ }
12694
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12695
+ interface DidLeaveOrganizationEmitTarget {
12696
+ 'organizationId': string;
12697
+ 'locationId'?: string | undefined | null;
12698
+ }
12699
+ interface DidLeaveOrganizationEmitTargetSchema extends SpruceSchema.Schema {
12700
+ id: 'didLeaveOrganizationEmitTarget';
12701
+ version: 'v2020_12_25';
12702
+ namespace: 'Mercury';
12703
+ name: '';
12704
+ fields: {
12705
+ /** . */
12706
+ 'organizationId': {
12707
+ type: 'id';
12708
+ isRequired: true;
12709
+ options: undefined;
12710
+ };
12711
+ /** . */
12712
+ 'locationId': {
12713
+ type: 'id';
12714
+ options: undefined;
12715
+ };
12716
+ };
12717
+ }
12718
+ interface DidLeaveOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema> {
12719
+ }
12720
+ }
12721
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12722
+ interface DidLeaveOrganizationEmitPayload {
12723
+ 'personId': string;
12724
+ 'roleId': string;
12725
+ 'isLastRole': boolean;
12726
+ }
12727
+ interface DidLeaveOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
12728
+ id: 'didLeaveOrganizationEmitPayload';
12729
+ version: 'v2020_12_25';
12730
+ namespace: 'Mercury';
12731
+ name: '';
12732
+ fields: {
12733
+ /** . */
12734
+ 'personId': {
12735
+ type: 'id';
12736
+ isRequired: true;
12737
+ options: undefined;
12738
+ };
12739
+ /** . */
12740
+ 'roleId': {
12741
+ type: 'id';
12742
+ isRequired: true;
12743
+ options: undefined;
12744
+ };
12745
+ /** . */
12746
+ 'isLastRole': {
12747
+ type: 'boolean';
12748
+ isRequired: true;
12749
+ options: undefined;
12750
+ };
12751
+ };
12752
+ }
12753
+ interface DidLeaveOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema> {
12754
+ }
12755
+ }
12756
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12757
+ interface DidLeaveOrganizationEmitTargetAndPayload {
12758
+ /** Source. */
12759
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12760
+ 'target': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTarget;
12761
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayload;
12762
+ }
12763
+ interface DidLeaveOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12764
+ id: 'didLeaveOrganizationEmitTargetAndPayload';
12765
+ version: 'v2020_12_25';
12766
+ namespace: 'Mercury';
12767
+ name: '';
12768
+ fields: {
12769
+ /** Source. */
12770
+ 'source': {
12771
+ label: 'Source';
12772
+ type: 'schema';
12773
+ options: {
12774
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12775
+ };
12776
+ };
12777
+ /** . */
12778
+ 'target': {
12779
+ type: 'schema';
12780
+ isRequired: true;
12781
+ options: {
12782
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema;
12783
+ };
12784
+ };
12785
+ /** . */
12786
+ 'payload': {
12787
+ type: 'schema';
12788
+ isRequired: true;
12789
+ options: {
12790
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema;
12791
+ };
12792
+ };
12793
+ };
12794
+ }
12795
+ interface DidLeaveOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetAndPayloadSchema> {
12796
+ }
12797
+ }
12798
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12799
+ interface DidLeaveOrganizationResponsePayload {
12800
+ }
12801
+ interface DidLeaveOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
12802
+ id: 'didLeaveOrganizationResponsePayload';
12803
+ version: 'v2020_12_25';
12804
+ namespace: 'Mercury';
12805
+ name: '';
12806
+ fields: {};
12807
+ }
12808
+ interface DidLeaveOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationResponsePayloadSchema> {
12809
+ }
12810
+ }
12811
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12812
+ interface DidMessageEmitPayload {
12813
+ 'message': SpruceSchemas.Spruce.v2020_07_22.Message;
12814
+ 'conversationState'?: string | undefined | null;
12815
+ 'topic'?: string | undefined | null;
12816
+ }
12817
+ interface DidMessageEmitPayloadSchema extends SpruceSchema.Schema {
12818
+ id: 'didMessageEmitPayload';
12819
+ version: 'v2020_12_25';
12820
+ namespace: 'Mercury';
12821
+ name: '';
12822
+ fields: {
12823
+ /** . */
12824
+ 'message': {
12825
+ type: 'schema';
12826
+ isRequired: true;
12827
+ options: {
12828
+ schema: SpruceSchemas.Spruce.v2020_07_22.MessageSchema;
12829
+ };
12830
+ };
12831
+ /** . */
12832
+ 'conversationState': {
12833
+ type: 'text';
12834
+ options: undefined;
12835
+ };
12836
+ /** . */
12837
+ 'topic': {
12838
+ type: 'text';
12839
+ options: undefined;
12840
+ };
12841
+ };
12842
+ }
12843
+ interface DidMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema> {
12844
+ }
12845
+ }
12846
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12847
+ interface DidMessageEmitTargetAndPayload {
12848
+ /** Source. */
12849
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12850
+ 'target'?: SpruceSchemas.Spruce.v2020_07_22.MessageTarget | undefined | null;
12851
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayload;
12852
+ }
12853
+ interface DidMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12854
+ id: 'didMessageEmitTargetAndPayload';
12855
+ version: 'v2020_12_25';
12856
+ namespace: 'Mercury';
12857
+ name: '';
12858
+ fields: {
12859
+ /** Source. */
12860
+ 'source': {
12861
+ label: 'Source';
12862
+ type: 'schema';
12863
+ options: {
12864
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12865
+ };
12866
+ };
12867
+ /** . */
12868
+ 'target': {
12869
+ type: 'schema';
12870
+ options: {
12871
+ schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
12872
+ };
12873
+ };
12874
+ /** . */
12875
+ 'payload': {
12995
12876
  type: 'schema';
12996
12877
  isRequired: true;
12997
12878
  options: {
12998
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12879
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema;
12999
12880
  };
13000
12881
  };
13001
12882
  };
13002
12883
  }
13003
- interface UpdatePersonResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonResponsePayloadSchema> {
12884
+ interface DidMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema> {
13004
12885
  }
13005
12886
  }
13006
12887
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13007
- interface UpdateRoleEmitTarget {
13008
- 'roleId': string;
12888
+ interface ConversationTopic {
12889
+ 'key': string;
12890
+ 'confidence': number;
12891
+ 'label': string;
13009
12892
  }
13010
- interface UpdateRoleEmitTargetSchema extends SpruceSchema.Schema {
13011
- id: 'updateRoleEmitTarget';
12893
+ interface ConversationTopicSchema extends SpruceSchema.Schema {
12894
+ id: 'conversationTopic';
13012
12895
  version: 'v2020_12_25';
13013
12896
  namespace: 'Mercury';
13014
12897
  name: '';
13015
12898
  fields: {
13016
12899
  /** . */
13017
- 'roleId': {
13018
- type: 'id';
12900
+ 'key': {
12901
+ type: 'text';
12902
+ isRequired: true;
12903
+ options: undefined;
12904
+ };
12905
+ /** . */
12906
+ 'confidence': {
12907
+ type: 'number';
12908
+ isRequired: true;
12909
+ options: undefined;
12910
+ };
12911
+ /** . */
12912
+ 'label': {
12913
+ type: 'text';
13019
12914
  isRequired: true;
13020
12915
  options: undefined;
13021
12916
  };
13022
12917
  };
13023
12918
  }
13024
- interface UpdateRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema> {
12919
+ interface ConversationTopicEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema> {
13025
12920
  }
13026
12921
  }
13027
12922
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13028
- interface UpdateRoleEmitPayload {
13029
- /** Name. */
13030
- 'name'?: string | undefined | null;
13031
- /** Base. A best practices starting point for a role based on the generalized roles at a company. */
13032
- 'base'?: ("owner" | "groupManager" | "manager" | "teammate" | "anonymous" | "loggedIn" | "guest") | undefined | null;
13033
- /** Description. */
13034
- 'description'?: string | undefined | null;
13035
- 'dateDeleted'?: number | undefined | null;
13036
- 'organizationId'?: string | undefined | null;
13037
- /** Public. Should I let people that are not part of this organization this role? */
13038
- 'isPublic'?: boolean | undefined | null;
12923
+ interface DidMessageResponsePayload {
12924
+ 'transitionConversationTo'?: ("greeting" | "discovery" | "topic" | "closing") | undefined | null;
12925
+ 'repairs'?: string[] | undefined | null;
12926
+ 'topicChangers'?: string[] | undefined | null;
12927
+ 'utterance'?: string | undefined | null;
12928
+ 'suggestedTopics'?: SpruceSchemas.Mercury.v2020_12_25.ConversationTopic[] | undefined | null;
13039
12929
  }
13040
- interface UpdateRoleEmitPayloadSchema extends SpruceSchema.Schema {
13041
- id: 'updateRoleEmitPayload';
12930
+ interface DidMessageResponsePayloadSchema extends SpruceSchema.Schema {
12931
+ id: 'didMessageResponsePayload';
13042
12932
  version: 'v2020_12_25';
13043
12933
  namespace: 'Mercury';
13044
12934
  name: '';
13045
12935
  fields: {
13046
- /** Name. */
13047
- 'name': {
13048
- label: 'Name';
13049
- type: 'text';
13050
- options: undefined;
13051
- };
13052
- /** Base. A best practices starting point for a role based on the generalized roles at a company. */
13053
- 'base': {
13054
- label: 'Base';
12936
+ /** . */
12937
+ 'transitionConversationTo': {
13055
12938
  type: 'select';
13056
- hint: 'A best practices starting point for a role based on the generalized roles at a company.';
13057
12939
  options: {
13058
12940
  choices: [{
13059
- "label": "Owner";
13060
- "value": "owner";
13061
- }, {
13062
- "label": "Group manager";
13063
- "value": "groupManager";
13064
- }, {
13065
- "label": "Manager";
13066
- "value": "manager";
13067
- }, {
13068
- "label": "Teammate";
13069
- "value": "teammate";
12941
+ "label": "Greeting";
12942
+ "value": "greeting";
13070
12943
  }, {
13071
- "label": "Anonymous";
13072
- "value": "anonymous";
12944
+ "label": "Discovery";
12945
+ "value": "discovery";
13073
12946
  }, {
13074
- "label": "Logged in";
13075
- "value": "loggedIn";
12947
+ "label": "Topic";
12948
+ "value": "topic";
13076
12949
  }, {
13077
- "label": "Guest";
13078
- "value": "guest";
12950
+ "label": "Closing";
12951
+ "value": "closing";
13079
12952
  }];
13080
12953
  };
13081
12954
  };
13082
- /** Description. */
13083
- 'description': {
13084
- label: 'Description';
12955
+ /** . */
12956
+ 'repairs': {
13085
12957
  type: 'text';
12958
+ isArray: true;
13086
12959
  options: undefined;
13087
12960
  };
13088
12961
  /** . */
13089
- 'dateDeleted': {
13090
- type: 'number';
12962
+ 'topicChangers': {
12963
+ type: 'text';
12964
+ isArray: true;
13091
12965
  options: undefined;
13092
12966
  };
13093
12967
  /** . */
13094
- 'organizationId': {
13095
- type: 'id';
12968
+ 'utterance': {
12969
+ type: 'text';
13096
12970
  options: undefined;
13097
12971
  };
13098
- /** Public. Should I let people that are not part of this organization this role? */
13099
- 'isPublic': {
13100
- label: 'Public';
13101
- type: 'boolean';
13102
- hint: 'Should I let people that are not part of this organization this role?';
13103
- options: undefined;
12972
+ /** . */
12973
+ 'suggestedTopics': {
12974
+ type: 'schema';
12975
+ isArray: true;
12976
+ options: {
12977
+ schema: SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema;
12978
+ };
13104
12979
  };
13105
12980
  };
13106
12981
  }
13107
- interface UpdateRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema> {
12982
+ interface DidMessageResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageResponsePayloadSchema> {
13108
12983
  }
13109
12984
  }
13110
12985
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13111
- interface UpdateRoleEmitTargetAndPayload {
12986
+ interface DidSignupEmitPayload {
12987
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12988
+ }
12989
+ interface DidSignupEmitPayloadSchema extends SpruceSchema.Schema {
12990
+ id: 'didSignupEmitPayload';
12991
+ version: 'v2020_12_25';
12992
+ namespace: 'Mercury';
12993
+ name: '';
12994
+ fields: {
12995
+ /** . */
12996
+ 'person': {
12997
+ type: 'schema';
12998
+ isRequired: true;
12999
+ options: {
13000
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
13001
+ };
13002
+ };
13003
+ };
13004
+ }
13005
+ interface DidSignupEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema> {
13006
+ }
13007
+ }
13008
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
13009
+ interface DidSignupEmitTargetAndPayload {
13112
13010
  /** Source. */
13113
13011
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
13114
- 'target': SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTarget;
13115
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayload | undefined | null;
13012
+ 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
13013
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayload;
13116
13014
  }
13117
- interface UpdateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13118
- id: 'updateRoleEmitTargetAndPayload';
13015
+ interface DidSignupEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13016
+ id: 'didSignupEmitTargetAndPayload';
13119
13017
  version: 'v2020_12_25';
13120
13018
  namespace: 'Mercury';
13121
13019
  name: '';
@@ -13131,75 +13029,43 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
13131
13029
  /** . */
13132
13030
  'target': {
13133
13031
  type: 'schema';
13134
- isRequired: true;
13135
13032
  options: {
13136
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema;
13033
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
13137
13034
  };
13138
13035
  };
13139
13036
  /** . */
13140
13037
  'payload': {
13141
- type: 'schema';
13142
- options: {
13143
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema;
13144
- };
13145
- };
13146
- };
13147
- }
13148
- interface UpdateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetAndPayloadSchema> {
13149
- }
13150
- }
13151
- namespace SpruceSchemas.Mercury.v2020_12_25 {
13152
- interface UpdateRoleResponsePayload {
13153
- 'role': SpruceSchemas.Spruce.v2020_07_22.Role;
13154
- }
13155
- interface UpdateRoleResponsePayloadSchema extends SpruceSchema.Schema {
13156
- id: 'updateRoleResponsePayload';
13157
- version: 'v2020_12_25';
13158
- namespace: 'Mercury';
13159
- name: '';
13160
- fields: {
13161
- /** . */
13162
- 'role': {
13163
13038
  type: 'schema';
13164
13039
  isRequired: true;
13165
13040
  options: {
13166
- schema: SpruceSchemas.Spruce.v2020_07_22.RoleSchema;
13041
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema;
13167
13042
  };
13168
13043
  };
13169
13044
  };
13170
13045
  }
13171
- interface UpdateRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleResponsePayloadSchema> {
13046
+ interface DidSignupEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema> {
13172
13047
  }
13173
13048
  }
13174
13049
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13175
- interface UpsertPermissionContractEmitTarget {
13176
- 'organizationId': string;
13177
- 'permissionContractId': string;
13178
- 'roleId': string;
13050
+ interface DidUpdateFeedEmitTarget {
13051
+ 'locationId'?: string | undefined | null;
13052
+ 'organizationId'?: string | undefined | null;
13179
13053
  'skillId'?: string | undefined | null;
13180
13054
  }
13181
- interface UpsertPermissionContractEmitTargetSchema extends SpruceSchema.Schema {
13182
- id: 'upsertPermissionContractEmitTarget';
13055
+ interface DidUpdateFeedEmitTargetSchema extends SpruceSchema.Schema {
13056
+ id: 'didUpdateFeedEmitTarget';
13183
13057
  version: 'v2020_12_25';
13184
13058
  namespace: 'Mercury';
13185
13059
  name: '';
13186
13060
  fields: {
13187
13061
  /** . */
13188
- 'organizationId': {
13189
- type: 'id';
13190
- isRequired: true;
13191
- options: undefined;
13192
- };
13193
- /** . */
13194
- 'permissionContractId': {
13062
+ 'locationId': {
13195
13063
  type: 'id';
13196
- isRequired: true;
13197
13064
  options: undefined;
13198
13065
  };
13199
13066
  /** . */
13200
- 'roleId': {
13067
+ 'organizationId': {
13201
13068
  type: 'id';
13202
- isRequired: true;
13203
13069
  options: undefined;
13204
13070
  };
13205
13071
  /** . */
@@ -13209,70 +13075,41 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
13209
13075
  };
13210
13076
  };
13211
13077
  }
13212
- interface UpsertPermissionContractEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema> {
13078
+ interface DidUpdateFeedEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetSchema> {
13213
13079
  }
13214
13080
  }
13215
13081
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13216
- interface UpsertPermissionContractsEmitPayload {
13217
- /** Name. Human readable name for this contract */
13218
- 'name': string;
13219
- /** Description. */
13220
- 'description'?: string | undefined | null;
13221
- /** Require all permissions. */
13222
- 'requireAllPermissions'?: boolean | undefined | null;
13223
- 'permissions': SpruceSchemas.Mercury.v2020_12_25.Permission[];
13082
+ interface DidUpdateFeedEmitPayload {
13083
+ 'item': SpruceSchemas.Spruce.v2020_07_22.FeedItem;
13224
13084
  }
13225
- interface UpsertPermissionContractsEmitPayloadSchema extends SpruceSchema.Schema {
13226
- id: 'upsertPermissionContractsEmitPayload';
13085
+ interface DidUpdateFeedEmitPayloadSchema extends SpruceSchema.Schema {
13086
+ id: 'didUpdateFeedEmitPayload';
13227
13087
  version: 'v2020_12_25';
13228
13088
  namespace: 'Mercury';
13229
13089
  name: '';
13230
13090
  fields: {
13231
- /** Name. Human readable name for this contract */
13232
- 'name': {
13233
- label: 'Name';
13234
- type: 'text';
13235
- isRequired: true;
13236
- hint: 'Human readable name for this contract';
13237
- options: undefined;
13238
- };
13239
- /** Description. */
13240
- 'description': {
13241
- label: 'Description';
13242
- type: 'text';
13243
- options: undefined;
13244
- };
13245
- /** Require all permissions. */
13246
- 'requireAllPermissions': {
13247
- label: 'Require all permissions';
13248
- type: 'boolean';
13249
- defaultValue: false;
13250
- options: undefined;
13251
- };
13252
13091
  /** . */
13253
- 'permissions': {
13092
+ 'item': {
13254
13093
  type: 'schema';
13255
13094
  isRequired: true;
13256
- isArray: true;
13257
- minArrayLength: 0;
13258
13095
  options: {
13259
- schema: SpruceSchemas.Mercury.v2020_12_25.PermissionSchema;
13096
+ schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
13260
13097
  };
13261
13098
  };
13262
13099
  };
13263
13100
  }
13264
- interface UpsertPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema> {
13101
+ interface DidUpdateFeedEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema> {
13265
13102
  }
13266
13103
  }
13267
13104
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13268
- interface UpsertPermissionContractEmitTargetAndPayload {
13105
+ interface DidUpdateFeedEmitTargetAndPayload {
13269
13106
  /** Source. */
13270
13107
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
13271
- 'target': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTarget;
13272
- 'payload': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayload;
13108
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTarget | undefined | null;
13109
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayload;
13273
13110
  }
13274
- interface UpsertPermissionContractEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13275
- id: 'upsertPermissionContractEmitTargetAndPayload';
13111
+ interface DidUpdateFeedEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13112
+ id: 'didUpdateFeedEmitTargetAndPayload';
13276
13113
  version: 'v2020_12_25';
13277
13114
  namespace: 'Mercury';
13278
13115
  name: '';
@@ -13288,9 +13125,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
13288
13125
  /** . */
13289
13126
  'target': {
13290
13127
  type: 'schema';
13291
- isRequired: true;
13292
13128
  options: {
13293
- schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema;
13129
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetSchema;
13294
13130
  };
13295
13131
  };
13296
13132
  /** . */
@@ -13298,73 +13134,103 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
13298
13134
  type: 'schema';
13299
13135
  isRequired: true;
13300
13136
  options: {
13301
- schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema;
13137
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema;
13302
13138
  };
13303
13139
  };
13304
13140
  };
13305
13141
  }
13306
- interface UpsertPermissionContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetAndPayloadSchema> {
13142
+ interface DidUpdateFeedEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetAndPayloadSchema> {
13307
13143
  }
13308
13144
  }
13309
13145
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13310
- interface UpsertPermissionContractResponsePayload {
13311
- 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
13146
+ interface DidUpdatePersonEmitPayload {
13147
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
13312
13148
  }
13313
- interface UpsertPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
13314
- id: 'upsertPermissionContractResponsePayload';
13149
+ interface DidUpdatePersonEmitPayloadSchema extends SpruceSchema.Schema {
13150
+ id: 'didUpdatePersonEmitPayload';
13315
13151
  version: 'v2020_12_25';
13316
13152
  namespace: 'Mercury';
13317
13153
  name: '';
13318
13154
  fields: {
13319
13155
  /** . */
13320
- 'permissionContract': {
13156
+ 'person': {
13321
13157
  type: 'schema';
13322
13158
  isRequired: true;
13323
13159
  options: {
13324
- schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
13160
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
13325
13161
  };
13326
13162
  };
13327
13163
  };
13328
13164
  }
13329
- interface UpsertPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractResponsePayloadSchema> {
13165
+ interface DidUpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema> {
13330
13166
  }
13331
13167
  }
13332
13168
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13333
- interface VoteForFeatureEmitPayload {
13334
- 'featureKey': string;
13335
- 'skillNamespace': string;
13169
+ interface InvokeChatCallbackTarget {
13170
+ 'skillId': string;
13171
+ 'chatPersonId': string;
13336
13172
  }
13337
- interface VoteForFeatureEmitPayloadSchema extends SpruceSchema.Schema {
13338
- id: 'voteForFeatureEmitPayload';
13173
+ interface InvokeChatCallbackTargetSchema extends SpruceSchema.Schema {
13174
+ id: 'invokeChatCallbackTarget';
13339
13175
  version: 'v2020_12_25';
13340
13176
  namespace: 'Mercury';
13341
13177
  name: '';
13342
13178
  fields: {
13343
13179
  /** . */
13344
- 'featureKey': {
13180
+ 'skillId': {
13345
13181
  type: 'id';
13346
13182
  isRequired: true;
13347
13183
  options: undefined;
13348
13184
  };
13349
13185
  /** . */
13350
- 'skillNamespace': {
13186
+ 'chatPersonId': {
13351
13187
  type: 'id';
13352
13188
  isRequired: true;
13353
13189
  options: undefined;
13354
13190
  };
13355
13191
  };
13356
13192
  }
13357
- interface VoteForFeatureEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema> {
13193
+ interface InvokeChatCallbackTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackTargetSchema> {
13358
13194
  }
13359
13195
  }
13360
13196
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13361
- interface VoteForFeatureEmitTargetAndPayload {
13197
+ interface InvokeChatCallbackPayload {
13198
+ 'placeholder': string;
13199
+ 'state'?: (Record<string, any>) | undefined | null;
13200
+ }
13201
+ interface InvokeChatCallbackPayloadSchema extends SpruceSchema.Schema {
13202
+ id: 'invokeChatCallbackPayload';
13203
+ version: 'v2020_12_25';
13204
+ namespace: 'Mercury';
13205
+ name: '';
13206
+ fields: {
13207
+ /** . */
13208
+ 'placeholder': {
13209
+ type: 'id';
13210
+ isRequired: true;
13211
+ options: undefined;
13212
+ };
13213
+ /** . */
13214
+ 'state': {
13215
+ type: 'raw';
13216
+ options: {
13217
+ valueType: `Record<string, any>`;
13218
+ };
13219
+ };
13220
+ };
13221
+ }
13222
+ interface InvokeChatCallbackPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackPayloadSchema> {
13223
+ }
13224
+ }
13225
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
13226
+ interface InvokeChatCallbackEmitTargetAndPayload {
13362
13227
  /** Source. */
13363
13228
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
13364
- 'payload': SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayload;
13229
+ 'target': SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackTarget;
13230
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackPayload;
13365
13231
  }
13366
- interface VoteForFeatureEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13367
- id: 'voteForFeatureEmitTargetAndPayload';
13232
+ interface InvokeChatCallbackEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13233
+ id: 'invokeChatCallbackEmitTargetAndPayload';
13368
13234
  version: 'v2020_12_25';
13369
13235
  namespace: 'Mercury';
13370
13236
  name: '';
@@ -13378,48 +13244,56 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
13378
13244
  };
13379
13245
  };
13380
13246
  /** . */
13247
+ 'target': {
13248
+ type: 'schema';
13249
+ isRequired: true;
13250
+ options: {
13251
+ schema: SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackTargetSchema;
13252
+ };
13253
+ };
13254
+ /** . */
13381
13255
  'payload': {
13382
13256
  type: 'schema';
13383
13257
  isRequired: true;
13384
13258
  options: {
13385
- schema: SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema;
13259
+ schema: SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackPayloadSchema;
13386
13260
  };
13387
13261
  };
13388
13262
  };
13389
13263
  }
13390
- interface VoteForFeatureEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitTargetAndPayloadSchema> {
13264
+ interface InvokeChatCallbackEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackEmitTargetAndPayloadSchema> {
13391
13265
  }
13392
13266
  }
13393
13267
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13394
- interface VoteForFeatureResponsePayload {
13395
- 'totalVotes': number;
13268
+ interface InvokeChatCallbackResponsePayload {
13269
+ 'message': string;
13396
13270
  }
13397
- interface VoteForFeatureResponsePayloadSchema extends SpruceSchema.Schema {
13398
- id: 'voteForFeatureResponsePayload';
13271
+ interface InvokeChatCallbackResponsePayloadSchema extends SpruceSchema.Schema {
13272
+ id: 'invokeChatCallbackResponsePayload';
13399
13273
  version: 'v2020_12_25';
13400
13274
  namespace: 'Mercury';
13401
13275
  name: '';
13402
13276
  fields: {
13403
13277
  /** . */
13404
- 'totalVotes': {
13405
- type: 'number';
13278
+ 'message': {
13279
+ type: 'text';
13406
13280
  isRequired: true;
13407
13281
  options: undefined;
13408
13282
  };
13409
13283
  };
13410
13284
  }
13411
- interface VoteForFeatureResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureResponsePayloadSchema> {
13285
+ interface InvokeChatCallbackResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackResponsePayloadSchema> {
13412
13286
  }
13413
13287
  }
13414
13288
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13415
- interface UpdatePersonEmitTargetAndPayload {
13289
+ interface DidUpdatePersonEmitTargetAndPayload {
13416
13290
  /** Source. */
13417
13291
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
13418
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTarget | undefined | null;
13419
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayload | undefined | null;
13292
+ 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
13293
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayload;
13420
13294
  }
13421
- interface UpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13422
- id: 'updatePersonEmitTargetAndPayload';
13295
+ interface DidUpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13296
+ id: 'didUpdatePersonEmitTargetAndPayload';
13423
13297
  version: 'v2020_12_25';
13424
13298
  namespace: 'Mercury';
13425
13299
  name: '';
@@ -13436,28 +13310,29 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
13436
13310
  'target': {
13437
13311
  type: 'schema';
13438
13312
  options: {
13439
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetSchema;
13313
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
13440
13314
  };
13441
13315
  };
13442
13316
  /** . */
13443
13317
  'payload': {
13444
13318
  type: 'schema';
13319
+ isRequired: true;
13445
13320
  options: {
13446
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema;
13321
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema;
13447
13322
  };
13448
13323
  };
13449
13324
  };
13450
13325
  }
13451
- interface UpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetAndPayloadSchema> {
13326
+ interface DidUpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema> {
13452
13327
  }
13453
13328
  }
13454
13329
  namespace SpruceSchemas.Mercury.v2020_12_25 {
13455
- interface WhoamiEmitTargetAndPayload {
13330
+ interface RegisterChatbotsEmitTargetAndPayload {
13456
13331
  /** Source. */
13457
13332
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
13458
13333
  }
13459
- interface WhoamiEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13460
- id: 'whoamiEmitTargetAndPayload';
13334
+ interface RegisterChatbotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
13335
+ id: 'registerChatbotsEmitTargetAndPayload';
13461
13336
  version: 'v2020_12_25';
13462
13337
  namespace: 'Mercury';
13463
13338
  name: '';
@@ -13472,7 +13347,132 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
13472
13347
  };
13473
13348
  };
13474
13349
  }
13475
- interface WhoamiEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.WhoamiEmitTargetAndPayloadSchema> {
13350
+ interface RegisterChatbotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatbotsEmitTargetAndPayloadSchema> {
13351
+ }
13352
+ }
13353
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
13354
+ interface ChatbotCallbacks {
13355
+ 'placeholder': string;
13356
+ 'useThisWhenever': string;
13357
+ }
13358
+ interface ChatbotCallbacksSchema extends SpruceSchema.Schema {
13359
+ id: 'chatbotCallbacks';
13360
+ version: 'v2020_12_25';
13361
+ namespace: 'Mercury';
13362
+ name: '';
13363
+ fields: {
13364
+ /** . */
13365
+ 'placeholder': {
13366
+ type: 'id';
13367
+ isRequired: true;
13368
+ options: undefined;
13369
+ };
13370
+ /** . */
13371
+ 'useThisWhenever': {
13372
+ type: 'text';
13373
+ isRequired: true;
13374
+ options: undefined;
13375
+ };
13376
+ };
13377
+ }
13378
+ interface ChatbotCallbacksEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ChatbotCallbacksSchema> {
13379
+ }
13380
+ }
13381
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
13382
+ interface Chatbot {
13383
+ 'title': string;
13384
+ 'yourJobIfYouChooseToAcceptItIs': string;
13385
+ 'weAreDoneWhen': string;
13386
+ 'pleaseKeepInMindThat'?: string[] | undefined | null;
13387
+ 'stateSchema'?: (SpruceSchema.Schema) | undefined | null;
13388
+ 'model'?: string | undefined | null;
13389
+ 'promptTemplate'?: string | undefined | null;
13390
+ 'callbacks'?: SpruceSchemas.Mercury.v2020_12_25.ChatbotCallbacks[] | undefined | null;
13391
+ }
13392
+ interface ChatbotSchema extends SpruceSchema.Schema {
13393
+ id: 'chatbot';
13394
+ version: 'v2020_12_25';
13395
+ namespace: 'Mercury';
13396
+ name: '';
13397
+ fields: {
13398
+ /** . */
13399
+ 'title': {
13400
+ type: 'text';
13401
+ isRequired: true;
13402
+ options: undefined;
13403
+ };
13404
+ /** . */
13405
+ 'yourJobIfYouChooseToAcceptItIs': {
13406
+ type: 'text';
13407
+ isRequired: true;
13408
+ options: undefined;
13409
+ };
13410
+ /** . */
13411
+ 'weAreDoneWhen': {
13412
+ type: 'text';
13413
+ isRequired: true;
13414
+ options: undefined;
13415
+ };
13416
+ /** . */
13417
+ 'pleaseKeepInMindThat': {
13418
+ type: 'text';
13419
+ isArray: true;
13420
+ options: undefined;
13421
+ };
13422
+ /** . */
13423
+ 'stateSchema': {
13424
+ type: 'raw';
13425
+ options: {
13426
+ valueType: `SpruceSchema.Schema`;
13427
+ };
13428
+ };
13429
+ /** . */
13430
+ 'model': {
13431
+ type: 'id';
13432
+ options: undefined;
13433
+ };
13434
+ /** . */
13435
+ 'promptTemplate': {
13436
+ type: 'text';
13437
+ options: undefined;
13438
+ };
13439
+ /** . */
13440
+ 'callbacks': {
13441
+ type: 'schema';
13442
+ isArray: true;
13443
+ minArrayLength: 0;
13444
+ options: {
13445
+ schema: SpruceSchemas.Mercury.v2020_12_25.ChatbotCallbacksSchema;
13446
+ };
13447
+ };
13448
+ };
13449
+ }
13450
+ interface ChatbotEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ChatbotSchema> {
13451
+ }
13452
+ }
13453
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
13454
+ interface RegisterChatbotsResponsePayload {
13455
+ 'bots': SpruceSchemas.Mercury.v2020_12_25.Chatbot[];
13456
+ }
13457
+ interface RegisterChatbotsResponsePayloadSchema extends SpruceSchema.Schema {
13458
+ id: 'registerChatbotsResponsePayload';
13459
+ version: 'v2020_12_25';
13460
+ namespace: 'Mercury';
13461
+ name: '';
13462
+ fields: {
13463
+ /** . */
13464
+ 'bots': {
13465
+ type: 'schema';
13466
+ isRequired: true;
13467
+ isArray: true;
13468
+ minArrayLength: 0;
13469
+ options: {
13470
+ schema: SpruceSchemas.Mercury.v2020_12_25.ChatbotSchema;
13471
+ };
13472
+ };
13473
+ };
13474
+ }
13475
+ interface RegisterChatbotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatbotsResponsePayloadSchema> {
13476
13476
  }
13477
13477
  }
13478
13478
  }