@sprucelabs/mercury-core-events 15.4.11 → 15.4.12

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,14 +5,13 @@ 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 ListPeopleEmitTargetAndPayload {
8
+ interface DidInstallEmitTargetAndPayload {
9
9
  /** Source. */
10
10
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitTarget | undefined | null;
12
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitPayload | undefined | null;
11
+ 'target': SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTarget;
13
12
  }
14
- interface ListPeopleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
15
- id: 'listPeopleEmitTargetAndPayload';
13
+ interface DidInstallEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
14
+ id: 'didInstallEmitTargetAndPayload';
16
15
  version: 'v2020_12_25';
17
16
  namespace: 'Mercury';
18
17
  name: '';
@@ -28,29 +27,105 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
28
27
  /** . */
29
28
  'target': {
30
29
  type: 'schema';
30
+ isRequired: true;
31
31
  options: {
32
- schema: SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitTargetSchema;
32
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema;
33
+ };
34
+ };
35
+ };
36
+ }
37
+ interface DidInstallEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetAndPayloadSchema> {
38
+ }
39
+ }
40
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
41
+ interface AddRoleEmitTargetAndPayload {
42
+ /** Source. */
43
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
44
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTarget | undefined | null;
45
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayload;
46
+ }
47
+ interface AddRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
48
+ id: 'addRoleEmitTargetAndPayload';
49
+ version: 'v2020_12_25';
50
+ namespace: 'Mercury';
51
+ name: '';
52
+ fields: {
53
+ /** Source. */
54
+ 'source': {
55
+ label: 'Source';
56
+ type: 'schema';
57
+ options: {
58
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
59
+ };
60
+ };
61
+ /** . */
62
+ 'target': {
63
+ type: 'schema';
64
+ options: {
65
+ schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema;
33
66
  };
34
67
  };
35
68
  /** . */
36
69
  'payload': {
37
70
  type: 'schema';
71
+ isRequired: true;
38
72
  options: {
39
- schema: SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitPayloadSchema;
73
+ schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema;
40
74
  };
41
75
  };
42
76
  };
43
77
  }
44
- interface ListPeopleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitTargetAndPayloadSchema> {
78
+ interface AddRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetAndPayloadSchema> {
45
79
  }
46
80
  }
47
81
  namespace SpruceSchemas.Mercury.v2020_12_25 {
48
- interface AddRoleEmitTarget {
49
- 'organizationId'?: string | undefined | null;
82
+ interface DidInstallEmitTarget {
83
+ 'organizationId': string;
84
+ 'skillId': string;
85
+ }
86
+ interface DidInstallEmitTargetSchema extends SpruceSchema.Schema {
87
+ id: 'didInstallEmitTarget';
88
+ version: 'v2020_12_25';
89
+ namespace: 'Mercury';
90
+ name: '';
91
+ fields: {
92
+ /** . */
93
+ 'organizationId': {
94
+ type: 'id';
95
+ isRequired: true;
96
+ options: undefined;
97
+ };
98
+ /** . */
99
+ 'skillId': {
100
+ type: 'id';
101
+ isRequired: true;
102
+ options: undefined;
103
+ };
104
+ };
105
+ }
106
+ interface DidInstallEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema> {
107
+ }
108
+ }
109
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
110
+ interface DidInstallResponsePayload {
111
+ }
112
+ interface DidInstallResponsePayloadSchema extends SpruceSchema.Schema {
113
+ id: 'didInstallResponsePayload';
114
+ version: 'v2020_12_25';
115
+ namespace: 'Mercury';
116
+ name: '';
117
+ fields: {};
118
+ }
119
+ interface DidInstallResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallResponsePayloadSchema> {
120
+ }
121
+ }
122
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
123
+ interface DidJoinOrganizationEmitTarget {
124
+ 'organizationId': string;
50
125
  'locationId'?: string | undefined | null;
51
126
  }
52
- interface AddRoleEmitTargetSchema extends SpruceSchema.Schema {
53
- id: 'addRoleEmitTarget';
127
+ interface DidJoinOrganizationEmitTargetSchema extends SpruceSchema.Schema {
128
+ id: 'didJoinOrganizationEmitTarget';
54
129
  version: 'v2020_12_25';
55
130
  namespace: 'Mercury';
56
131
  name: '';
@@ -58,6 +133,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
58
133
  /** . */
59
134
  'organizationId': {
60
135
  type: 'id';
136
+ isRequired: true;
61
137
  options: undefined;
62
138
  };
63
139
  /** . */
@@ -67,16 +143,17 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
67
143
  };
68
144
  };
69
145
  }
70
- interface AddRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema> {
146
+ interface DidJoinOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema> {
71
147
  }
72
148
  }
73
149
  namespace SpruceSchemas.Mercury.v2020_12_25 {
74
- interface AddRoleEmitPayload {
150
+ interface DidJoinOrganizationEmitPayload {
75
151
  'personId': string;
76
152
  'roleId': string;
153
+ 'isFirstRole': boolean;
77
154
  }
78
- interface AddRoleEmitPayloadSchema extends SpruceSchema.Schema {
79
- id: 'addRoleEmitPayload';
155
+ interface DidJoinOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
156
+ id: 'didJoinOrganizationEmitPayload';
80
157
  version: 'v2020_12_25';
81
158
  namespace: 'Mercury';
82
159
  name: '';
@@ -93,20 +170,26 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
93
170
  isRequired: true;
94
171
  options: undefined;
95
172
  };
173
+ /** . */
174
+ 'isFirstRole': {
175
+ type: 'boolean';
176
+ isRequired: true;
177
+ options: undefined;
178
+ };
96
179
  };
97
180
  }
98
- interface AddRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema> {
181
+ interface DidJoinOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema> {
99
182
  }
100
183
  }
101
184
  namespace SpruceSchemas.Mercury.v2020_12_25 {
102
- interface AddRoleEmitTargetAndPayload {
185
+ interface DidJoinOrganizationEmitTargetAndPayload {
103
186
  /** Source. */
104
187
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
105
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTarget | undefined | null;
106
- 'payload': SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayload;
188
+ 'target': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTarget;
189
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayload;
107
190
  }
108
- interface AddRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
109
- id: 'addRoleEmitTargetAndPayload';
191
+ interface DidJoinOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
192
+ id: 'didJoinOrganizationEmitTargetAndPayload';
110
193
  version: 'v2020_12_25';
111
194
  namespace: 'Mercury';
112
195
  name: '';
@@ -122,8 +205,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
122
205
  /** . */
123
206
  'target': {
124
207
  type: 'schema';
208
+ isRequired: true;
125
209
  options: {
126
- schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema;
210
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema;
127
211
  };
128
212
  };
129
213
  /** . */
@@ -131,238 +215,235 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
131
215
  type: 'schema';
132
216
  isRequired: true;
133
217
  options: {
134
- schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema;
218
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema;
135
219
  };
136
220
  };
137
221
  };
138
222
  }
139
- interface AddRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetAndPayloadSchema> {
140
- }
141
- }
142
- namespace SpruceSchemas.Mercury.v2020_12_25 {
143
- interface AddRoleResponsePayload {
144
- }
145
- interface AddRoleResponsePayloadSchema extends SpruceSchema.Schema {
146
- id: 'addRoleResponsePayload';
147
- version: 'v2020_12_25';
148
- namespace: 'Mercury';
149
- name: '';
150
- fields: {};
151
- }
152
- interface AddRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleResponsePayloadSchema> {
223
+ interface DidJoinOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetAndPayloadSchema> {
153
224
  }
154
225
  }
155
226
  namespace SpruceSchemas.Mercury.v2020_12_25 {
156
- interface AuthenticateEmitPayload {
157
- 'token'?: string | undefined | null;
158
- 'skillId'?: string | undefined | null;
159
- 'apiKey'?: string | undefined | null;
227
+ interface MessageTemplateAddons {
228
+ 'nextINeedYouTo'?: string[] | undefined | null;
229
+ 'youShouldKnowThat'?: string[] | undefined | null;
230
+ 'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
160
231
  }
161
- interface AuthenticateEmitPayloadSchema extends SpruceSchema.Schema {
162
- id: 'authenticateEmitPayload';
232
+ interface MessageTemplateAddonsSchema extends SpruceSchema.Schema {
233
+ id: 'messageTemplateAddons';
163
234
  version: 'v2020_12_25';
164
235
  namespace: 'Mercury';
165
236
  name: '';
166
237
  fields: {
167
238
  /** . */
168
- 'token': {
239
+ 'nextINeedYouTo': {
169
240
  type: 'text';
241
+ isArray: true;
170
242
  options: undefined;
171
243
  };
172
244
  /** . */
173
- 'skillId': {
245
+ 'youShouldKnowThat': {
174
246
  type: 'text';
247
+ isArray: true;
175
248
  options: undefined;
176
249
  };
177
250
  /** . */
178
- 'apiKey': {
179
- type: 'text';
180
- options: undefined;
251
+ 'links': {
252
+ type: 'schema';
253
+ isArray: true;
254
+ minArrayLength: 0;
255
+ options: {
256
+ schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
257
+ };
181
258
  };
182
259
  };
183
260
  }
184
- interface AuthenticateEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema> {
261
+ interface MessageTemplateAddonsEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema> {
185
262
  }
186
263
  }
187
264
  namespace SpruceSchemas.Mercury.v2020_12_25 {
188
- interface AuthenticateEmitTargetAndPayload {
189
- /** Source. */
190
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
191
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayload | undefined | null;
265
+ interface DidJoinOrganizationResponsePayload {
266
+ 'messaging'?: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddons | undefined | null;
192
267
  }
193
- interface AuthenticateEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
194
- id: 'authenticateEmitTargetAndPayload';
268
+ interface DidJoinOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
269
+ id: 'didJoinOrganizationResponsePayload';
195
270
  version: 'v2020_12_25';
196
271
  namespace: 'Mercury';
197
272
  name: '';
198
273
  fields: {
199
- /** Source. */
200
- 'source': {
201
- label: 'Source';
202
- type: 'schema';
203
- options: {
204
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
205
- };
206
- };
207
274
  /** . */
208
- 'payload': {
275
+ 'messaging': {
209
276
  type: 'schema';
210
277
  options: {
211
- schema: SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema;
278
+ schema: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema;
212
279
  };
213
280
  };
214
281
  };
215
282
  }
216
- interface AuthenticateEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitTargetAndPayloadSchema> {
283
+ interface DidJoinOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationResponsePayloadSchema> {
217
284
  }
218
285
  }
219
286
  namespace SpruceSchemas.Mercury.v2020_12_25 {
220
- interface ConfirmPinRespondPayload {
221
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
222
- 'token': string;
287
+ interface DidLeaveOrganizationEmitTarget {
288
+ 'organizationId': string;
289
+ 'locationId'?: string | undefined | null;
223
290
  }
224
- interface ConfirmPinRespondPayloadSchema extends SpruceSchema.Schema {
225
- id: 'confirmPinRespondPayload';
291
+ interface DidLeaveOrganizationEmitTargetSchema extends SpruceSchema.Schema {
292
+ id: 'didLeaveOrganizationEmitTarget';
226
293
  version: 'v2020_12_25';
227
294
  namespace: 'Mercury';
228
295
  name: '';
229
296
  fields: {
230
297
  /** . */
231
- 'person': {
232
- type: 'schema';
298
+ 'organizationId': {
299
+ type: 'id';
233
300
  isRequired: true;
234
- options: {
235
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
236
- };
301
+ options: undefined;
237
302
  };
238
303
  /** . */
239
- 'token': {
240
- type: 'text';
241
- isRequired: true;
304
+ 'locationId': {
305
+ type: 'id';
242
306
  options: undefined;
243
307
  };
244
308
  };
245
309
  }
246
- interface ConfirmPinRespondPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinRespondPayloadSchema> {
310
+ interface DidLeaveOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema> {
247
311
  }
248
312
  }
249
313
  namespace SpruceSchemas.Mercury.v2020_12_25 {
250
- interface AuthSchema {
251
- 'person'?: SpruceSchemas.Spruce.v2020_07_22.Person | undefined | null;
252
- 'skill'?: SpruceSchemas.Spruce.v2020_07_22.Skill | undefined | null;
314
+ interface DidLeaveOrganizationEmitPayload {
315
+ 'personId': string;
316
+ 'roleId': string;
317
+ 'isLastRole': boolean;
253
318
  }
254
- interface AuthSchemaSchema extends SpruceSchema.Schema {
255
- id: 'authSchema';
319
+ interface DidLeaveOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
320
+ id: 'didLeaveOrganizationEmitPayload';
256
321
  version: 'v2020_12_25';
257
322
  namespace: 'Mercury';
258
323
  name: '';
259
324
  fields: {
260
325
  /** . */
261
- 'person': {
262
- type: 'schema';
263
- options: {
264
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
265
- };
326
+ 'personId': {
327
+ type: 'id';
328
+ isRequired: true;
329
+ options: undefined;
266
330
  };
267
331
  /** . */
268
- 'skill': {
269
- type: 'schema';
270
- options: {
271
- schema: SpruceSchemas.Spruce.v2020_07_22.SkillSchema;
272
- };
332
+ 'roleId': {
333
+ type: 'id';
334
+ isRequired: true;
335
+ options: undefined;
273
336
  };
274
- };
337
+ /** . */
338
+ 'isLastRole': {
339
+ type: 'boolean';
340
+ isRequired: true;
341
+ options: undefined;
342
+ };
343
+ };
275
344
  }
276
- interface AuthSchemaEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema> {
345
+ interface DidLeaveOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema> {
277
346
  }
278
347
  }
279
348
  namespace SpruceSchemas.Mercury.v2020_12_25 {
280
- interface AuthenticateResponsePayload {
281
- 'type': ("authenticated" | "anonymous");
282
- 'auth': SpruceSchemas.Mercury.v2020_12_25.AuthSchema;
349
+ interface DidLeaveOrganizationEmitTargetAndPayload {
350
+ /** Source. */
351
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
352
+ 'target': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTarget;
353
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayload;
283
354
  }
284
- interface AuthenticateResponsePayloadSchema extends SpruceSchema.Schema {
285
- id: 'authenticateResponsePayload';
355
+ interface DidLeaveOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
356
+ id: 'didLeaveOrganizationEmitTargetAndPayload';
286
357
  version: 'v2020_12_25';
287
358
  namespace: 'Mercury';
288
359
  name: '';
289
360
  fields: {
361
+ /** Source. */
362
+ 'source': {
363
+ label: 'Source';
364
+ type: 'schema';
365
+ options: {
366
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
367
+ };
368
+ };
290
369
  /** . */
291
- 'type': {
292
- type: 'select';
370
+ 'target': {
371
+ type: 'schema';
293
372
  isRequired: true;
294
373
  options: {
295
- choices: [{
296
- "value": "authenticated";
297
- "label": "Authenticated";
298
- }, {
299
- "value": "anonymous";
300
- "label": "Anonymous";
301
- }];
374
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema;
302
375
  };
303
376
  };
304
377
  /** . */
305
- 'auth': {
378
+ 'payload': {
306
379
  type: 'schema';
307
380
  isRequired: true;
308
381
  options: {
309
- schema: SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema;
382
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema;
310
383
  };
311
384
  };
312
385
  };
313
386
  }
314
- interface AuthenticateResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateResponsePayloadSchema> {
387
+ interface DidLeaveOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetAndPayloadSchema> {
315
388
  }
316
389
  }
317
390
  namespace SpruceSchemas.Mercury.v2020_12_25 {
318
- interface CanListenEmitPayload {
319
- 'authorizerStatuses'?: ("clockedIn" | "clockedOut" | "onPrem" | "offPrem") | undefined | null;
320
- 'fullyQualifiedEventName': string;
391
+ interface DidLeaveOrganizationResponsePayload {
321
392
  }
322
- interface CanListenEmitPayloadSchema extends SpruceSchema.Schema {
323
- id: 'canListenEmitPayload';
393
+ interface DidLeaveOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
394
+ id: 'didLeaveOrganizationResponsePayload';
395
+ version: 'v2020_12_25';
396
+ namespace: 'Mercury';
397
+ name: '';
398
+ fields: {};
399
+ }
400
+ interface DidLeaveOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationResponsePayloadSchema> {
401
+ }
402
+ }
403
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
404
+ interface DidMessageEmitPayload {
405
+ 'message': SpruceSchemas.Spruce.v2020_07_22.Message;
406
+ 'conversationState'?: string | undefined | null;
407
+ 'topic'?: string | undefined | null;
408
+ }
409
+ interface DidMessageEmitPayloadSchema extends SpruceSchema.Schema {
410
+ id: 'didMessageEmitPayload';
324
411
  version: 'v2020_12_25';
325
412
  namespace: 'Mercury';
326
413
  name: '';
327
414
  fields: {
328
415
  /** . */
329
- 'authorizerStatuses': {
330
- type: 'select';
416
+ 'message': {
417
+ type: 'schema';
418
+ isRequired: true;
331
419
  options: {
332
- choices: [{
333
- "label": "Clocked in";
334
- "value": "clockedIn";
335
- }, {
336
- "label": "Clocked out";
337
- "value": "clockedOut";
338
- }, {
339
- "label": "On premises";
340
- "value": "onPrem";
341
- }, {
342
- "label": "Off premises";
343
- "value": "offPrem";
344
- }];
420
+ schema: SpruceSchemas.Spruce.v2020_07_22.MessageSchema;
345
421
  };
346
422
  };
347
423
  /** . */
348
- 'fullyQualifiedEventName': {
424
+ 'conversationState': {
425
+ type: 'text';
426
+ options: undefined;
427
+ };
428
+ /** . */
429
+ 'topic': {
349
430
  type: 'text';
350
- isRequired: true;
351
431
  options: undefined;
352
432
  };
353
433
  };
354
434
  }
355
- interface CanListenEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema> {
435
+ interface DidMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema> {
356
436
  }
357
437
  }
358
438
  namespace SpruceSchemas.Mercury.v2020_12_25 {
359
- interface CanListenEmitTargetAndPayload {
439
+ interface DidMessageEmitTargetAndPayload {
360
440
  /** Source. */
361
441
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
362
- 'payload': SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayload;
442
+ 'target'?: SpruceSchemas.Spruce.v2020_07_22.MessageTarget | undefined | null;
443
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayload;
363
444
  }
364
- interface CanListenEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
365
- id: 'canListenEmitTargetAndPayload';
445
+ interface DidMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
446
+ id: 'didMessageEmitTargetAndPayload';
366
447
  version: 'v2020_12_25';
367
448
  namespace: 'Mercury';
368
449
  name: '';
@@ -376,74 +457,132 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
376
457
  };
377
458
  };
378
459
  /** . */
460
+ 'target': {
461
+ type: 'schema';
462
+ options: {
463
+ schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
464
+ };
465
+ };
466
+ /** . */
379
467
  'payload': {
380
468
  type: 'schema';
381
469
  isRequired: true;
382
470
  options: {
383
- schema: SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema;
471
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema;
384
472
  };
385
473
  };
386
474
  };
387
475
  }
388
- interface CanListenEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitTargetAndPayloadSchema> {
476
+ interface DidMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema> {
389
477
  }
390
478
  }
391
479
  namespace SpruceSchemas.Mercury.v2020_12_25 {
392
- interface CanListenResponsePayload {
393
- 'can'?: boolean | undefined | null;
480
+ interface ConversationTopic {
481
+ 'key': string;
482
+ 'confidence': number;
483
+ 'label': string;
394
484
  }
395
- interface CanListenResponsePayloadSchema extends SpruceSchema.Schema {
396
- id: 'canListenResponsePayload';
485
+ interface ConversationTopicSchema extends SpruceSchema.Schema {
486
+ id: 'conversationTopic';
397
487
  version: 'v2020_12_25';
398
488
  namespace: 'Mercury';
399
489
  name: '';
400
490
  fields: {
401
491
  /** . */
402
- 'can': {
403
- type: 'boolean';
492
+ 'key': {
493
+ type: 'text';
494
+ isRequired: true;
495
+ options: undefined;
496
+ };
497
+ /** . */
498
+ 'confidence': {
499
+ type: 'number';
500
+ isRequired: true;
501
+ options: undefined;
502
+ };
503
+ /** . */
504
+ 'label': {
505
+ type: 'text';
506
+ isRequired: true;
404
507
  options: undefined;
405
508
  };
406
509
  };
407
510
  }
408
- interface CanListenResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenResponsePayloadSchema> {
511
+ interface ConversationTopicEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema> {
409
512
  }
410
513
  }
411
514
  namespace SpruceSchemas.Mercury.v2020_12_25 {
412
- interface ConfirmPinEmitPayload {
413
- 'challenge': string;
414
- 'pin': string;
515
+ interface DidMessageResponsePayload {
516
+ 'transitionConversationTo'?: ("greeting" | "discovery" | "topic" | "closing") | undefined | null;
517
+ 'repairs'?: string[] | undefined | null;
518
+ 'topicChangers'?: string[] | undefined | null;
519
+ 'utterance'?: string | undefined | null;
520
+ 'suggestedTopics'?: SpruceSchemas.Mercury.v2020_12_25.ConversationTopic[] | undefined | null;
415
521
  }
416
- interface ConfirmPinEmitPayloadSchema extends SpruceSchema.Schema {
417
- id: 'confirmPinEmitPayload';
522
+ interface DidMessageResponsePayloadSchema extends SpruceSchema.Schema {
523
+ id: 'didMessageResponsePayload';
418
524
  version: 'v2020_12_25';
419
525
  namespace: 'Mercury';
420
526
  name: '';
421
527
  fields: {
422
528
  /** . */
423
- 'challenge': {
529
+ 'transitionConversationTo': {
530
+ type: 'select';
531
+ options: {
532
+ choices: [{
533
+ "label": "Greeting";
534
+ "value": "greeting";
535
+ }, {
536
+ "label": "Discovery";
537
+ "value": "discovery";
538
+ }, {
539
+ "label": "Topic";
540
+ "value": "topic";
541
+ }, {
542
+ "label": "Closing";
543
+ "value": "closing";
544
+ }];
545
+ };
546
+ };
547
+ /** . */
548
+ 'repairs': {
424
549
  type: 'text';
425
- isRequired: true;
550
+ isArray: true;
426
551
  options: undefined;
427
552
  };
428
553
  /** . */
429
- 'pin': {
554
+ 'topicChangers': {
555
+ type: 'text';
556
+ isArray: true;
557
+ options: undefined;
558
+ };
559
+ /** . */
560
+ 'utterance': {
430
561
  type: 'text';
431
- isRequired: true;
432
562
  options: undefined;
433
563
  };
564
+ /** . */
565
+ 'suggestedTopics': {
566
+ type: 'schema';
567
+ isArray: true;
568
+ options: {
569
+ schema: SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema;
570
+ };
571
+ };
434
572
  };
435
573
  }
436
- interface ConfirmPinEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema> {
574
+ interface DidMessageResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageResponsePayloadSchema> {
437
575
  }
438
576
  }
439
577
  namespace SpruceSchemas.Mercury.v2020_12_25 {
440
- interface ConfirmPinEmitTargetAndPayload {
578
+ interface DidSignupEmitTargetAndPayload {
441
579
  /** Source. */
442
580
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
443
- 'payload': SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayload;
581
+ 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
582
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayload;
444
583
  }
445
- interface ConfirmPinEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
446
- id: 'confirmPinEmitTargetAndPayload';
584
+ interface DidSignupEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
585
+ id: 'didSignupEmitTargetAndPayload';
447
586
  version: 'v2020_12_25';
448
587
  namespace: 'Mercury';
449
588
  name: '';
@@ -457,257 +596,799 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
457
596
  };
458
597
  };
459
598
  /** . */
599
+ 'target': {
600
+ type: 'schema';
601
+ options: {
602
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
603
+ };
604
+ };
605
+ /** . */
460
606
  'payload': {
461
607
  type: 'schema';
462
608
  isRequired: true;
463
609
  options: {
464
- schema: SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema;
610
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema;
465
611
  };
466
612
  };
467
613
  };
468
614
  }
469
- interface ConfirmPinEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitTargetAndPayloadSchema> {
615
+ interface DidSignupEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema> {
470
616
  }
471
617
  }
472
618
  namespace SpruceSchemas.Mercury.v2020_12_25 {
473
- interface CreateLocationEmitTarget {
474
- 'organizationId': string;
619
+ interface DidUpdatePersonEmitTargetAndPayload {
620
+ /** Source. */
621
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
622
+ 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
623
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayload;
475
624
  }
476
- interface CreateLocationEmitTargetSchema extends SpruceSchema.Schema {
477
- id: 'createLocationEmitTarget';
625
+ interface DidUpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
626
+ id: 'didUpdatePersonEmitTargetAndPayload';
478
627
  version: 'v2020_12_25';
479
628
  namespace: 'Mercury';
480
629
  name: '';
481
630
  fields: {
631
+ /** Source. */
632
+ 'source': {
633
+ label: 'Source';
634
+ type: 'schema';
635
+ options: {
636
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
637
+ };
638
+ };
482
639
  /** . */
483
- 'organizationId': {
484
- type: 'id';
485
- isRequired: true;
486
- options: undefined;
640
+ 'target': {
641
+ type: 'schema';
642
+ options: {
643
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
644
+ };
487
645
  };
488
- };
489
- }
490
- interface CreateLocationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CreateLocationEmitTargetSchema> {
491
- }
646
+ /** . */
647
+ 'payload': {
648
+ type: 'schema';
649
+ isRequired: true;
650
+ options: {
651
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema;
652
+ };
653
+ };
654
+ };
655
+ }
656
+ interface DidUpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema> {
657
+ }
492
658
  }
493
659
  namespace SpruceSchemas.Mercury.v2020_12_25 {
494
- interface CreateLocationEmitPayload {
495
- /** Name. */
496
- 'name': string;
497
- /** Store number. You can use other symbols, like # or dashes. #123 or 32-US-5 */
498
- 'num'?: string | undefined | null;
499
- /** Public. Is this location viewable by guests? */
500
- 'isPublic'?: boolean | undefined | null;
501
- /** Main Phone. */
502
- 'phone'?: string | undefined | null;
503
- /** Timezone. */
504
- '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;
505
- /** Address. */
506
- 'address': SpruceSchema.AddressFieldValue;
507
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
508
- 'slug'?: string | undefined | null;
660
+ interface DidSignupEmitPayload {
661
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
509
662
  }
510
- interface CreateLocationEmitPayloadSchema extends SpruceSchema.Schema {
511
- id: 'createLocationEmitPayload';
663
+ interface DidSignupEmitPayloadSchema extends SpruceSchema.Schema {
664
+ id: 'didSignupEmitPayload';
512
665
  version: 'v2020_12_25';
513
666
  namespace: 'Mercury';
514
667
  name: '';
515
668
  fields: {
516
- /** Name. */
517
- 'name': {
518
- label: 'Name';
519
- type: 'text';
669
+ /** . */
670
+ 'person': {
671
+ type: 'schema';
672
+ isRequired: true;
673
+ options: {
674
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
675
+ };
676
+ };
677
+ };
678
+ }
679
+ interface DidSignupEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema> {
680
+ }
681
+ }
682
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
683
+ interface DidUpdateFeedEmitPayload {
684
+ 'item': SpruceSchemas.Spruce.v2020_07_22.FeedItem;
685
+ }
686
+ interface DidUpdateFeedEmitPayloadSchema extends SpruceSchema.Schema {
687
+ id: 'didUpdateFeedEmitPayload';
688
+ version: 'v2020_12_25';
689
+ namespace: 'Mercury';
690
+ name: '';
691
+ fields: {
692
+ /** . */
693
+ 'item': {
694
+ type: 'schema';
695
+ isRequired: true;
696
+ options: {
697
+ schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
698
+ };
699
+ };
700
+ };
701
+ }
702
+ interface DidUpdateFeedEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema> {
703
+ }
704
+ }
705
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
706
+ interface DidUpdateFeedEmitTargetAndPayload {
707
+ /** Source. */
708
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
709
+ 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
710
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayload;
711
+ }
712
+ interface DidUpdateFeedEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
713
+ id: 'didUpdateFeedEmitTargetAndPayload';
714
+ version: 'v2020_12_25';
715
+ namespace: 'Mercury';
716
+ name: '';
717
+ fields: {
718
+ /** Source. */
719
+ 'source': {
720
+ label: 'Source';
721
+ type: 'schema';
722
+ options: {
723
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
724
+ };
725
+ };
726
+ /** . */
727
+ 'target': {
728
+ type: 'schema';
729
+ options: {
730
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
731
+ };
732
+ };
733
+ /** . */
734
+ 'payload': {
735
+ type: 'schema';
736
+ isRequired: true;
737
+ options: {
738
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema;
739
+ };
740
+ };
741
+ };
742
+ }
743
+ interface DidUpdateFeedEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetAndPayloadSchema> {
744
+ }
745
+ }
746
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
747
+ interface DidUpdatePersonEmitPayload {
748
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
749
+ }
750
+ interface DidUpdatePersonEmitPayloadSchema extends SpruceSchema.Schema {
751
+ id: 'didUpdatePersonEmitPayload';
752
+ version: 'v2020_12_25';
753
+ namespace: 'Mercury';
754
+ name: '';
755
+ fields: {
756
+ /** . */
757
+ 'person': {
758
+ type: 'schema';
759
+ isRequired: true;
760
+ options: {
761
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
762
+ };
763
+ };
764
+ };
765
+ }
766
+ interface DidUpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema> {
767
+ }
768
+ }
769
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
770
+ interface AddRoleEmitTarget {
771
+ 'organizationId'?: string | undefined | null;
772
+ 'locationId'?: string | undefined | null;
773
+ }
774
+ interface AddRoleEmitTargetSchema extends SpruceSchema.Schema {
775
+ id: 'addRoleEmitTarget';
776
+ version: 'v2020_12_25';
777
+ namespace: 'Mercury';
778
+ name: '';
779
+ fields: {
780
+ /** . */
781
+ 'organizationId': {
782
+ type: 'id';
783
+ options: undefined;
784
+ };
785
+ /** . */
786
+ 'locationId': {
787
+ type: 'id';
788
+ options: undefined;
789
+ };
790
+ };
791
+ }
792
+ interface AddRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema> {
793
+ }
794
+ }
795
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
796
+ interface AddRoleEmitPayload {
797
+ 'personId': string;
798
+ 'roleId': string;
799
+ }
800
+ interface AddRoleEmitPayloadSchema extends SpruceSchema.Schema {
801
+ id: 'addRoleEmitPayload';
802
+ version: 'v2020_12_25';
803
+ namespace: 'Mercury';
804
+ name: '';
805
+ fields: {
806
+ /** . */
807
+ 'personId': {
808
+ type: 'id';
520
809
  isRequired: true;
521
810
  options: undefined;
522
811
  };
523
- /** Store number. You can use other symbols, like # or dashes. #123 or 32-US-5 */
524
- 'num': {
525
- label: 'Store number';
812
+ /** . */
813
+ 'roleId': {
814
+ type: 'id';
815
+ isRequired: true;
816
+ options: undefined;
817
+ };
818
+ };
819
+ }
820
+ interface AddRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema> {
821
+ }
822
+ }
823
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
824
+ interface AddRoleResponsePayload {
825
+ }
826
+ interface AddRoleResponsePayloadSchema extends SpruceSchema.Schema {
827
+ id: 'addRoleResponsePayload';
828
+ version: 'v2020_12_25';
829
+ namespace: 'Mercury';
830
+ name: '';
831
+ fields: {};
832
+ }
833
+ interface AddRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleResponsePayloadSchema> {
834
+ }
835
+ }
836
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
837
+ interface AuthenticateEmitPayload {
838
+ 'token'?: string | undefined | null;
839
+ 'skillId'?: string | undefined | null;
840
+ 'apiKey'?: string | undefined | null;
841
+ }
842
+ interface AuthenticateEmitPayloadSchema extends SpruceSchema.Schema {
843
+ id: 'authenticateEmitPayload';
844
+ version: 'v2020_12_25';
845
+ namespace: 'Mercury';
846
+ name: '';
847
+ fields: {
848
+ /** . */
849
+ 'token': {
526
850
  type: 'text';
527
- hint: 'You can use other symbols, like # or dashes. #123 or 32-US-5';
528
851
  options: undefined;
529
852
  };
530
- /** Public. Is this location viewable by guests? */
531
- 'isPublic': {
532
- label: 'Public';
533
- type: 'boolean';
534
- hint: 'Is this location viewable by guests?';
535
- defaultValue: false;
853
+ /** . */
854
+ 'skillId': {
855
+ type: 'text';
536
856
  options: undefined;
537
857
  };
538
- /** Main Phone. */
539
- 'phone': {
540
- label: 'Main Phone';
541
- type: 'phone';
858
+ /** . */
859
+ 'apiKey': {
860
+ type: 'text';
542
861
  options: undefined;
543
862
  };
544
- /** Timezone. */
545
- 'timezone': {
546
- label: 'Timezone';
547
- type: 'select';
548
- options: {
549
- choices: [{
550
- "value": "Pacific/Niue";
551
- "label": "Niue Time";
552
- }, {
553
- "value": "Pacific/Pago_Pago";
554
- "label": "Samoa Standard Time";
555
- }, {
556
- "value": "Pacific/Rarotonga";
557
- "label": "Cook Islands Standard Time";
558
- }, {
559
- "value": "Pacific/Honolulu";
560
- "label": "Hawaii-Aleutian Standard Time";
561
- }, {
562
- "value": "Pacific/Tahiti";
563
- "label": "Tahiti Time";
564
- }, {
565
- "value": "Pacific/Marquesas";
566
- "label": "Marquesas Time";
567
- }, {
568
- "value": "Pacific/Gambier";
569
- "label": "Gambier Time";
570
- }, {
571
- "value": "America/Adak";
572
- "label": "Hawaii-Aleutian Time (Adak)";
573
- }, {
574
- "value": "America/Anchorage";
575
- "label": "Alaska Time - Anchorage";
576
- }, {
577
- "value": "America/Juneau";
578
- "label": "Alaska Time - Juneau";
579
- }, {
580
- "value": "America/Metlakatla";
581
- "label": "Alaska Time - Metlakatla";
582
- }, {
583
- "value": "America/Nome";
584
- "label": "Alaska Time - Nome";
585
- }, {
586
- "value": "America/Sitka";
587
- "label": "Alaska Time - Sitka";
588
- }, {
589
- "value": "America/Yakutat";
590
- "label": "Alaska Time - Yakutat";
591
- }, {
592
- "value": "Pacific/Pitcairn";
593
- "label": "Pitcairn Time";
594
- }, {
595
- "value": "America/Hermosillo";
596
- "label": "Mexican Pacific Standard Time";
597
- }, {
598
- "value": "America/Dawson_Creek";
599
- "label": "Mountain Standard Time - Dawson Creek";
600
- }, {
601
- "value": "America/Fort_Nelson";
602
- "label": "Mountain Standard Time - Fort Nelson";
603
- }, {
604
- "value": "America/Phoenix";
605
- "label": "Mountain Standard Time - Phoenix";
606
- }, {
607
- "value": "America/Los_Angeles";
608
- "label": "Pacific Time - Los Angeles";
609
- }, {
610
- "value": "America/Tijuana";
611
- "label": "Pacific Time - Tijuana";
612
- }, {
613
- "value": "America/Vancouver";
614
- "label": "Pacific Time - Vancouver";
615
- }, {
616
- "value": "America/Dawson";
617
- "label": "Yukon Time - Dawson";
618
- }, {
619
- "value": "America/Whitehorse";
620
- "label": "Yukon Time - Whitehorse";
621
- }, {
622
- "value": "America/Belize";
623
- "label": "Central Standard Time - Belize";
624
- }, {
625
- "value": "America/Costa_Rica";
626
- "label": "Central Standard Time - Costa Rica";
627
- }, {
628
- "value": "America/El_Salvador";
629
- "label": "Central Standard Time - El Salvador";
630
- }, {
631
- "value": "America/Guatemala";
632
- "label": "Central Standard Time - Guatemala";
633
- }, {
634
- "value": "America/Managua";
635
- "label": "Central Standard Time - Managua";
636
- }, {
637
- "value": "America/Regina";
638
- "label": "Central Standard Time - Regina";
639
- }, {
640
- "value": "America/Swift_Current";
641
- "label": "Central Standard Time - Swift Current";
642
- }, {
643
- "value": "America/Tegucigalpa";
644
- "label": "Central Standard Time - Tegucigalpa";
645
- }, {
646
- "value": "Pacific/Easter";
647
- "label": "Easter Island Time";
648
- }, {
649
- "value": "Pacific/Galapagos";
650
- "label": "Galapagos Time";
651
- }, {
652
- "value": "America/Chihuahua";
653
- "label": "Mexican Pacific Time - Chihuahua";
654
- }, {
655
- "value": "America/Mazatlan";
656
- "label": "Mexican Pacific Time - Mazatlan";
657
- }, {
658
- "value": "America/Boise";
659
- "label": "Mountain Time - Boise";
660
- }, {
661
- "value": "America/Cambridge_Bay";
662
- "label": "Mountain Time - Cambridge Bay";
663
- }, {
664
- "value": "America/Denver";
665
- "label": "Mountain Time - Denver";
666
- }, {
667
- "value": "America/Edmonton";
668
- "label": "Mountain Time - Edmonton";
669
- }, {
670
- "value": "America/Inuvik";
671
- "label": "Mountain Time - Inuvik";
672
- }, {
673
- "value": "America/Ojinaga";
674
- "label": "Mountain Time - Ojinaga";
675
- }, {
676
- "value": "America/Yellowknife";
677
- "label": "Mountain Time - Yellowknife";
678
- }, {
679
- "value": "America/Eirunepe";
680
- "label": "Acre Standard Time - Eirunepe";
681
- }, {
682
- "value": "America/Rio_Branco";
683
- "label": "Acre Standard Time - Rio Branco";
684
- }, {
685
- "value": "America/Bahia_Banderas";
686
- "label": "Central Time - Bahia Banderas";
863
+ };
864
+ }
865
+ interface AuthenticateEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema> {
866
+ }
867
+ }
868
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
869
+ interface AuthenticateEmitTargetAndPayload {
870
+ /** Source. */
871
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
872
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayload | undefined | null;
873
+ }
874
+ interface AuthenticateEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
875
+ id: 'authenticateEmitTargetAndPayload';
876
+ version: 'v2020_12_25';
877
+ namespace: 'Mercury';
878
+ name: '';
879
+ fields: {
880
+ /** Source. */
881
+ 'source': {
882
+ label: 'Source';
883
+ type: 'schema';
884
+ options: {
885
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
886
+ };
887
+ };
888
+ /** . */
889
+ 'payload': {
890
+ type: 'schema';
891
+ options: {
892
+ schema: SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema;
893
+ };
894
+ };
895
+ };
896
+ }
897
+ interface AuthenticateEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitTargetAndPayloadSchema> {
898
+ }
899
+ }
900
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
901
+ interface AuthSchema {
902
+ 'person'?: SpruceSchemas.Spruce.v2020_07_22.Person | undefined | null;
903
+ 'skill'?: SpruceSchemas.Spruce.v2020_07_22.Skill | undefined | null;
904
+ }
905
+ interface AuthSchemaSchema extends SpruceSchema.Schema {
906
+ id: 'authSchema';
907
+ version: 'v2020_12_25';
908
+ namespace: 'Mercury';
909
+ name: '';
910
+ fields: {
911
+ /** . */
912
+ 'person': {
913
+ type: 'schema';
914
+ options: {
915
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
916
+ };
917
+ };
918
+ /** . */
919
+ 'skill': {
920
+ type: 'schema';
921
+ options: {
922
+ schema: SpruceSchemas.Spruce.v2020_07_22.SkillSchema;
923
+ };
924
+ };
925
+ };
926
+ }
927
+ interface AuthSchemaEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema> {
928
+ }
929
+ }
930
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
931
+ interface AuthenticateResponsePayload {
932
+ 'type': ("authenticated" | "anonymous");
933
+ 'auth': SpruceSchemas.Mercury.v2020_12_25.AuthSchema;
934
+ }
935
+ interface AuthenticateResponsePayloadSchema extends SpruceSchema.Schema {
936
+ id: 'authenticateResponsePayload';
937
+ version: 'v2020_12_25';
938
+ namespace: 'Mercury';
939
+ name: '';
940
+ fields: {
941
+ /** . */
942
+ 'type': {
943
+ type: 'select';
944
+ isRequired: true;
945
+ options: {
946
+ choices: [{
947
+ "value": "authenticated";
948
+ "label": "Authenticated";
687
949
  }, {
688
- "value": "America/North_Dakota/Beulah";
689
- "label": "Central Time - Beulah, North Dakota";
950
+ "value": "anonymous";
951
+ "label": "Anonymous";
952
+ }];
953
+ };
954
+ };
955
+ /** . */
956
+ 'auth': {
957
+ type: 'schema';
958
+ isRequired: true;
959
+ options: {
960
+ schema: SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema;
961
+ };
962
+ };
963
+ };
964
+ }
965
+ interface AuthenticateResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateResponsePayloadSchema> {
966
+ }
967
+ }
968
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
969
+ interface CanListenEmitPayload {
970
+ 'authorizerStatuses'?: ("clockedIn" | "clockedOut" | "onPrem" | "offPrem") | undefined | null;
971
+ 'fullyQualifiedEventName': string;
972
+ }
973
+ interface CanListenEmitPayloadSchema extends SpruceSchema.Schema {
974
+ id: 'canListenEmitPayload';
975
+ version: 'v2020_12_25';
976
+ namespace: 'Mercury';
977
+ name: '';
978
+ fields: {
979
+ /** . */
980
+ 'authorizerStatuses': {
981
+ type: 'select';
982
+ options: {
983
+ choices: [{
984
+ "label": "Clocked in";
985
+ "value": "clockedIn";
690
986
  }, {
691
- "value": "America/North_Dakota/Center";
692
- "label": "Central Time - Center, North Dakota";
987
+ "label": "Clocked out";
988
+ "value": "clockedOut";
693
989
  }, {
694
- "value": "America/Chicago";
695
- "label": "Central Time - Chicago";
990
+ "label": "On premises";
991
+ "value": "onPrem";
696
992
  }, {
697
- "value": "America/Indiana/Knox";
698
- "label": "Central Time - Knox, Indiana";
993
+ "label": "Off premises";
994
+ "value": "offPrem";
995
+ }];
996
+ };
997
+ };
998
+ /** . */
999
+ 'fullyQualifiedEventName': {
1000
+ type: 'text';
1001
+ isRequired: true;
1002
+ options: undefined;
1003
+ };
1004
+ };
1005
+ }
1006
+ interface CanListenEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema> {
1007
+ }
1008
+ }
1009
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
1010
+ interface CanListenEmitTargetAndPayload {
1011
+ /** Source. */
1012
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1013
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayload;
1014
+ }
1015
+ interface CanListenEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1016
+ id: 'canListenEmitTargetAndPayload';
1017
+ version: 'v2020_12_25';
1018
+ namespace: 'Mercury';
1019
+ name: '';
1020
+ fields: {
1021
+ /** Source. */
1022
+ 'source': {
1023
+ label: 'Source';
1024
+ type: 'schema';
1025
+ options: {
1026
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1027
+ };
1028
+ };
1029
+ /** . */
1030
+ 'payload': {
1031
+ type: 'schema';
1032
+ isRequired: true;
1033
+ options: {
1034
+ schema: SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema;
1035
+ };
1036
+ };
1037
+ };
1038
+ }
1039
+ interface CanListenEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitTargetAndPayloadSchema> {
1040
+ }
1041
+ }
1042
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
1043
+ interface CanListenResponsePayload {
1044
+ 'can'?: boolean | undefined | null;
1045
+ }
1046
+ interface CanListenResponsePayloadSchema extends SpruceSchema.Schema {
1047
+ id: 'canListenResponsePayload';
1048
+ version: 'v2020_12_25';
1049
+ namespace: 'Mercury';
1050
+ name: '';
1051
+ fields: {
1052
+ /** . */
1053
+ 'can': {
1054
+ type: 'boolean';
1055
+ options: undefined;
1056
+ };
1057
+ };
1058
+ }
1059
+ interface CanListenResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenResponsePayloadSchema> {
1060
+ }
1061
+ }
1062
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
1063
+ interface ConfirmPinEmitPayload {
1064
+ 'challenge': string;
1065
+ 'pin': string;
1066
+ }
1067
+ interface ConfirmPinEmitPayloadSchema extends SpruceSchema.Schema {
1068
+ id: 'confirmPinEmitPayload';
1069
+ version: 'v2020_12_25';
1070
+ namespace: 'Mercury';
1071
+ name: '';
1072
+ fields: {
1073
+ /** . */
1074
+ 'challenge': {
1075
+ type: 'text';
1076
+ isRequired: true;
1077
+ options: undefined;
1078
+ };
1079
+ /** . */
1080
+ 'pin': {
1081
+ type: 'text';
1082
+ isRequired: true;
1083
+ options: undefined;
1084
+ };
1085
+ };
1086
+ }
1087
+ interface ConfirmPinEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema> {
1088
+ }
1089
+ }
1090
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
1091
+ interface ConfirmPinEmitTargetAndPayload {
1092
+ /** Source. */
1093
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1094
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayload;
1095
+ }
1096
+ interface ConfirmPinEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1097
+ id: 'confirmPinEmitTargetAndPayload';
1098
+ version: 'v2020_12_25';
1099
+ namespace: 'Mercury';
1100
+ name: '';
1101
+ fields: {
1102
+ /** Source. */
1103
+ 'source': {
1104
+ label: 'Source';
1105
+ type: 'schema';
1106
+ options: {
1107
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
1108
+ };
1109
+ };
1110
+ /** . */
1111
+ 'payload': {
1112
+ type: 'schema';
1113
+ isRequired: true;
1114
+ options: {
1115
+ schema: SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema;
1116
+ };
1117
+ };
1118
+ };
1119
+ }
1120
+ interface ConfirmPinEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitTargetAndPayloadSchema> {
1121
+ }
1122
+ }
1123
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
1124
+ interface ConfirmPinRespondPayload {
1125
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
1126
+ 'token': string;
1127
+ }
1128
+ interface ConfirmPinRespondPayloadSchema extends SpruceSchema.Schema {
1129
+ id: 'confirmPinRespondPayload';
1130
+ version: 'v2020_12_25';
1131
+ namespace: 'Mercury';
1132
+ name: '';
1133
+ fields: {
1134
+ /** . */
1135
+ 'person': {
1136
+ type: 'schema';
1137
+ isRequired: true;
1138
+ options: {
1139
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
1140
+ };
1141
+ };
1142
+ /** . */
1143
+ 'token': {
1144
+ type: 'text';
1145
+ isRequired: true;
1146
+ options: undefined;
1147
+ };
1148
+ };
1149
+ }
1150
+ interface ConfirmPinRespondPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinRespondPayloadSchema> {
1151
+ }
1152
+ }
1153
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
1154
+ interface CreateLocationEmitTarget {
1155
+ 'organizationId': string;
1156
+ }
1157
+ interface CreateLocationEmitTargetSchema extends SpruceSchema.Schema {
1158
+ id: 'createLocationEmitTarget';
1159
+ version: 'v2020_12_25';
1160
+ namespace: 'Mercury';
1161
+ name: '';
1162
+ fields: {
1163
+ /** . */
1164
+ 'organizationId': {
1165
+ type: 'id';
1166
+ isRequired: true;
1167
+ options: undefined;
1168
+ };
1169
+ };
1170
+ }
1171
+ interface CreateLocationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CreateLocationEmitTargetSchema> {
1172
+ }
1173
+ }
1174
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
1175
+ interface CreateLocationEmitPayload {
1176
+ /** Name. */
1177
+ 'name': string;
1178
+ /** Store number. You can use other symbols, like # or dashes. #123 or 32-US-5 */
1179
+ 'num'?: string | undefined | null;
1180
+ /** Public. Is this location viewable by guests? */
1181
+ 'isPublic'?: boolean | undefined | null;
1182
+ /** Main Phone. */
1183
+ 'phone'?: string | undefined | null;
1184
+ /** Timezone. */
1185
+ '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;
1186
+ /** Address. */
1187
+ 'address': SpruceSchema.AddressFieldValue;
1188
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
1189
+ 'slug'?: string | undefined | null;
1190
+ }
1191
+ interface CreateLocationEmitPayloadSchema extends SpruceSchema.Schema {
1192
+ id: 'createLocationEmitPayload';
1193
+ version: 'v2020_12_25';
1194
+ namespace: 'Mercury';
1195
+ name: '';
1196
+ fields: {
1197
+ /** Name. */
1198
+ 'name': {
1199
+ label: 'Name';
1200
+ type: 'text';
1201
+ isRequired: true;
1202
+ options: undefined;
1203
+ };
1204
+ /** Store number. You can use other symbols, like # or dashes. #123 or 32-US-5 */
1205
+ 'num': {
1206
+ label: 'Store number';
1207
+ type: 'text';
1208
+ hint: 'You can use other symbols, like # or dashes. #123 or 32-US-5';
1209
+ options: undefined;
1210
+ };
1211
+ /** Public. Is this location viewable by guests? */
1212
+ 'isPublic': {
1213
+ label: 'Public';
1214
+ type: 'boolean';
1215
+ hint: 'Is this location viewable by guests?';
1216
+ defaultValue: false;
1217
+ options: undefined;
1218
+ };
1219
+ /** Main Phone. */
1220
+ 'phone': {
1221
+ label: 'Main Phone';
1222
+ type: 'phone';
1223
+ options: undefined;
1224
+ };
1225
+ /** Timezone. */
1226
+ 'timezone': {
1227
+ label: 'Timezone';
1228
+ type: 'select';
1229
+ options: {
1230
+ choices: [{
1231
+ "value": "Pacific/Niue";
1232
+ "label": "Niue Time";
699
1233
  }, {
700
- "value": "America/Matamoros";
701
- "label": "Central Time - Matamoros";
1234
+ "value": "Pacific/Pago_Pago";
1235
+ "label": "Samoa Standard Time";
702
1236
  }, {
703
- "value": "America/Menominee";
704
- "label": "Central Time - Menominee";
1237
+ "value": "Pacific/Rarotonga";
1238
+ "label": "Cook Islands Standard Time";
705
1239
  }, {
706
- "value": "America/Merida";
707
- "label": "Central Time - Merida";
1240
+ "value": "Pacific/Honolulu";
1241
+ "label": "Hawaii-Aleutian Standard Time";
708
1242
  }, {
709
- "value": "America/Mexico_City";
710
- "label": "Central Time - Mexico City";
1243
+ "value": "Pacific/Tahiti";
1244
+ "label": "Tahiti Time";
1245
+ }, {
1246
+ "value": "Pacific/Marquesas";
1247
+ "label": "Marquesas Time";
1248
+ }, {
1249
+ "value": "Pacific/Gambier";
1250
+ "label": "Gambier Time";
1251
+ }, {
1252
+ "value": "America/Adak";
1253
+ "label": "Hawaii-Aleutian Time (Adak)";
1254
+ }, {
1255
+ "value": "America/Anchorage";
1256
+ "label": "Alaska Time - Anchorage";
1257
+ }, {
1258
+ "value": "America/Juneau";
1259
+ "label": "Alaska Time - Juneau";
1260
+ }, {
1261
+ "value": "America/Metlakatla";
1262
+ "label": "Alaska Time - Metlakatla";
1263
+ }, {
1264
+ "value": "America/Nome";
1265
+ "label": "Alaska Time - Nome";
1266
+ }, {
1267
+ "value": "America/Sitka";
1268
+ "label": "Alaska Time - Sitka";
1269
+ }, {
1270
+ "value": "America/Yakutat";
1271
+ "label": "Alaska Time - Yakutat";
1272
+ }, {
1273
+ "value": "Pacific/Pitcairn";
1274
+ "label": "Pitcairn Time";
1275
+ }, {
1276
+ "value": "America/Hermosillo";
1277
+ "label": "Mexican Pacific Standard Time";
1278
+ }, {
1279
+ "value": "America/Dawson_Creek";
1280
+ "label": "Mountain Standard Time - Dawson Creek";
1281
+ }, {
1282
+ "value": "America/Fort_Nelson";
1283
+ "label": "Mountain Standard Time - Fort Nelson";
1284
+ }, {
1285
+ "value": "America/Phoenix";
1286
+ "label": "Mountain Standard Time - Phoenix";
1287
+ }, {
1288
+ "value": "America/Los_Angeles";
1289
+ "label": "Pacific Time - Los Angeles";
1290
+ }, {
1291
+ "value": "America/Tijuana";
1292
+ "label": "Pacific Time - Tijuana";
1293
+ }, {
1294
+ "value": "America/Vancouver";
1295
+ "label": "Pacific Time - Vancouver";
1296
+ }, {
1297
+ "value": "America/Dawson";
1298
+ "label": "Yukon Time - Dawson";
1299
+ }, {
1300
+ "value": "America/Whitehorse";
1301
+ "label": "Yukon Time - Whitehorse";
1302
+ }, {
1303
+ "value": "America/Belize";
1304
+ "label": "Central Standard Time - Belize";
1305
+ }, {
1306
+ "value": "America/Costa_Rica";
1307
+ "label": "Central Standard Time - Costa Rica";
1308
+ }, {
1309
+ "value": "America/El_Salvador";
1310
+ "label": "Central Standard Time - El Salvador";
1311
+ }, {
1312
+ "value": "America/Guatemala";
1313
+ "label": "Central Standard Time - Guatemala";
1314
+ }, {
1315
+ "value": "America/Managua";
1316
+ "label": "Central Standard Time - Managua";
1317
+ }, {
1318
+ "value": "America/Regina";
1319
+ "label": "Central Standard Time - Regina";
1320
+ }, {
1321
+ "value": "America/Swift_Current";
1322
+ "label": "Central Standard Time - Swift Current";
1323
+ }, {
1324
+ "value": "America/Tegucigalpa";
1325
+ "label": "Central Standard Time - Tegucigalpa";
1326
+ }, {
1327
+ "value": "Pacific/Easter";
1328
+ "label": "Easter Island Time";
1329
+ }, {
1330
+ "value": "Pacific/Galapagos";
1331
+ "label": "Galapagos Time";
1332
+ }, {
1333
+ "value": "America/Chihuahua";
1334
+ "label": "Mexican Pacific Time - Chihuahua";
1335
+ }, {
1336
+ "value": "America/Mazatlan";
1337
+ "label": "Mexican Pacific Time - Mazatlan";
1338
+ }, {
1339
+ "value": "America/Boise";
1340
+ "label": "Mountain Time - Boise";
1341
+ }, {
1342
+ "value": "America/Cambridge_Bay";
1343
+ "label": "Mountain Time - Cambridge Bay";
1344
+ }, {
1345
+ "value": "America/Denver";
1346
+ "label": "Mountain Time - Denver";
1347
+ }, {
1348
+ "value": "America/Edmonton";
1349
+ "label": "Mountain Time - Edmonton";
1350
+ }, {
1351
+ "value": "America/Inuvik";
1352
+ "label": "Mountain Time - Inuvik";
1353
+ }, {
1354
+ "value": "America/Ojinaga";
1355
+ "label": "Mountain Time - Ojinaga";
1356
+ }, {
1357
+ "value": "America/Yellowknife";
1358
+ "label": "Mountain Time - Yellowknife";
1359
+ }, {
1360
+ "value": "America/Eirunepe";
1361
+ "label": "Acre Standard Time - Eirunepe";
1362
+ }, {
1363
+ "value": "America/Rio_Branco";
1364
+ "label": "Acre Standard Time - Rio Branco";
1365
+ }, {
1366
+ "value": "America/Bahia_Banderas";
1367
+ "label": "Central Time - Bahia Banderas";
1368
+ }, {
1369
+ "value": "America/North_Dakota/Beulah";
1370
+ "label": "Central Time - Beulah, North Dakota";
1371
+ }, {
1372
+ "value": "America/North_Dakota/Center";
1373
+ "label": "Central Time - Center, North Dakota";
1374
+ }, {
1375
+ "value": "America/Chicago";
1376
+ "label": "Central Time - Chicago";
1377
+ }, {
1378
+ "value": "America/Indiana/Knox";
1379
+ "label": "Central Time - Knox, Indiana";
1380
+ }, {
1381
+ "value": "America/Matamoros";
1382
+ "label": "Central Time - Matamoros";
1383
+ }, {
1384
+ "value": "America/Menominee";
1385
+ "label": "Central Time - Menominee";
1386
+ }, {
1387
+ "value": "America/Merida";
1388
+ "label": "Central Time - Merida";
1389
+ }, {
1390
+ "value": "America/Mexico_City";
1391
+ "label": "Central Time - Mexico City";
711
1392
  }, {
712
1393
  "value": "America/Monterrey";
713
1394
  "label": "Central Time - Monterrey";
@@ -4307,6 +4988,29 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4307
4988
  interface GetResolvedPermissionsContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetResolvedPermissionsContractEmitTargetAndPayloadSchema> {
4308
4989
  }
4309
4990
  }
4991
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
4992
+ interface GetResolvedPermissionsContractRespondPayload {
4993
+ 'resolvedContract': SpruceSchemas.Mercury.v2020_12_25.ResolvedContract;
4994
+ }
4995
+ interface GetResolvedPermissionsContractRespondPayloadSchema extends SpruceSchema.Schema {
4996
+ id: 'getResolvedPermissionsContractRespondPayload';
4997
+ version: 'v2020_12_25';
4998
+ namespace: 'Mercury';
4999
+ name: '';
5000
+ fields: {
5001
+ /** . */
5002
+ 'resolvedContract': {
5003
+ type: 'schema';
5004
+ isRequired: true;
5005
+ options: {
5006
+ schema: SpruceSchemas.Mercury.v2020_12_25.ResolvedContractSchema;
5007
+ };
5008
+ };
5009
+ };
5010
+ }
5011
+ interface GetResolvedPermissionsContractRespondPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetResolvedPermissionsContractRespondPayloadSchema> {
5012
+ }
5013
+ }
4310
5014
  namespace SpruceSchemas.Mercury.v2020_12_25 {
4311
5015
  interface ResolvedContractPermission {
4312
5016
  'id': string;
@@ -4376,29 +5080,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4376
5080
  interface ResolvedContractEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ResolvedContractSchema> {
4377
5081
  }
4378
5082
  }
4379
- namespace SpruceSchemas.Mercury.v2020_12_25 {
4380
- interface GetResolvedPermissionsContractRespondPayload {
4381
- 'resolvedContract': SpruceSchemas.Mercury.v2020_12_25.ResolvedContract;
4382
- }
4383
- interface GetResolvedPermissionsContractRespondPayloadSchema extends SpruceSchema.Schema {
4384
- id: 'getResolvedPermissionsContractRespondPayload';
4385
- version: 'v2020_12_25';
4386
- namespace: 'Mercury';
4387
- name: '';
4388
- fields: {
4389
- /** . */
4390
- 'resolvedContract': {
4391
- type: 'schema';
4392
- isRequired: true;
4393
- options: {
4394
- schema: SpruceSchemas.Mercury.v2020_12_25.ResolvedContractSchema;
4395
- };
4396
- };
4397
- };
4398
- }
4399
- interface GetResolvedPermissionsContractRespondPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetResolvedPermissionsContractRespondPayloadSchema> {
4400
- }
4401
- }
4402
5083
  namespace SpruceSchemas.Mercury.v2020_12_25 {
4403
5084
  interface GetRoleEmitTarget {
4404
5085
  'roleId': string;
@@ -5374,6 +6055,46 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5374
6055
  interface ListPeopleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitPayloadSchema> {
5375
6056
  }
5376
6057
  }
6058
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
6059
+ interface ListPeopleEmitTargetAndPayload {
6060
+ /** Source. */
6061
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
6062
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitTarget | undefined | null;
6063
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitPayload | undefined | null;
6064
+ }
6065
+ interface ListPeopleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
6066
+ id: 'listPeopleEmitTargetAndPayload';
6067
+ version: 'v2020_12_25';
6068
+ namespace: 'Mercury';
6069
+ name: '';
6070
+ fields: {
6071
+ /** Source. */
6072
+ 'source': {
6073
+ label: 'Source';
6074
+ type: 'schema';
6075
+ options: {
6076
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
6077
+ };
6078
+ };
6079
+ /** . */
6080
+ 'target': {
6081
+ type: 'schema';
6082
+ options: {
6083
+ schema: SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitTargetSchema;
6084
+ };
6085
+ };
6086
+ /** . */
6087
+ 'payload': {
6088
+ type: 'schema';
6089
+ options: {
6090
+ schema: SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitPayloadSchema;
6091
+ };
6092
+ };
6093
+ };
6094
+ }
6095
+ interface ListPeopleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListPeopleEmitTargetAndPayloadSchema> {
6096
+ }
6097
+ }
5377
6098
  namespace SpruceSchemas.Mercury.v2020_12_25 {
5378
6099
  interface ListPerson {
5379
6100
  /** Id. */
@@ -7121,45 +7842,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7121
7842
  }
7122
7843
  }
7123
7844
  namespace SpruceSchemas.Mercury.v2020_12_25 {
7124
- interface RegisterConversationTopicsEmitTargetAndPayload {
7125
- /** Source. */
7126
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
7127
- 'payload': SpruceSchemas.Mercury.v2020_12_25.RegisterConversationTopicsEmitPayload;
7845
+ interface RegisterConversationTopicEmitPayloadTopic {
7846
+ /** Key. A way to identify this topic, must be unique for your skill. */
7847
+ 'key': string;
7128
7848
  }
7129
- interface RegisterConversationTopicsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
7130
- id: 'registerConversationTopicsEmitTargetAndPayload';
7131
- version: 'v2020_12_25';
7132
- namespace: 'Mercury';
7133
- name: '';
7134
- fields: {
7135
- /** Source. */
7136
- 'source': {
7137
- label: 'Source';
7138
- type: 'schema';
7139
- options: {
7140
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
7141
- };
7142
- };
7143
- /** . */
7144
- 'payload': {
7145
- type: 'schema';
7146
- isRequired: true;
7147
- options: {
7148
- schema: SpruceSchemas.Mercury.v2020_12_25.RegisterConversationTopicsEmitPayloadSchema;
7149
- };
7150
- };
7151
- };
7152
- }
7153
- interface RegisterConversationTopicsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterConversationTopicsEmitTargetAndPayloadSchema> {
7154
- }
7155
- }
7156
- namespace SpruceSchemas.Mercury.v2020_12_25 {
7157
- interface RegisterConversationTopicEmitPayloadTopic {
7158
- /** Key. A way to identify this topic, must be unique for your skill. */
7159
- 'key': string;
7160
- }
7161
- interface RegisterConversationTopicEmitPayloadTopicSchema extends SpruceSchema.Schema {
7162
- id: 'registerConversationTopicEmitPayloadTopic';
7849
+ interface RegisterConversationTopicEmitPayloadTopicSchema extends SpruceSchema.Schema {
7850
+ id: 'registerConversationTopicEmitPayloadTopic';
7163
7851
  version: 'v2020_12_25';
7164
7852
  namespace: 'Mercury';
7165
7853
  name: '';
@@ -7201,6 +7889,39 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7201
7889
  interface RegisterConversationTopicsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterConversationTopicsEmitPayloadSchema> {
7202
7890
  }
7203
7891
  }
7892
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
7893
+ interface RegisterConversationTopicsEmitTargetAndPayload {
7894
+ /** Source. */
7895
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
7896
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.RegisterConversationTopicsEmitPayload;
7897
+ }
7898
+ interface RegisterConversationTopicsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
7899
+ id: 'registerConversationTopicsEmitTargetAndPayload';
7900
+ version: 'v2020_12_25';
7901
+ namespace: 'Mercury';
7902
+ name: '';
7903
+ fields: {
7904
+ /** Source. */
7905
+ 'source': {
7906
+ label: 'Source';
7907
+ type: 'schema';
7908
+ options: {
7909
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
7910
+ };
7911
+ };
7912
+ /** . */
7913
+ 'payload': {
7914
+ type: 'schema';
7915
+ isRequired: true;
7916
+ options: {
7917
+ schema: SpruceSchemas.Mercury.v2020_12_25.RegisterConversationTopicsEmitPayloadSchema;
7918
+ };
7919
+ };
7920
+ };
7921
+ }
7922
+ interface RegisterConversationTopicsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterConversationTopicsEmitTargetAndPayloadSchema> {
7923
+ }
7924
+ }
7204
7925
  namespace SpruceSchemas.Mercury.v2020_12_25 {
7205
7926
  interface RegisterConversationTopicsResponsePayload {
7206
7927
  }
@@ -7781,48 +8502,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7781
8502
  interface SavePermissionsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitTargetSchema> {
7782
8503
  }
7783
8504
  }
7784
- namespace SpruceSchemas.Mercury.v2020_12_25 {
7785
- interface SavePermissionsEmitTargetAndPayload {
7786
- /** Source. */
7787
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
7788
- 'target': SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitTarget;
7789
- 'payload': SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitPayload;
7790
- }
7791
- interface SavePermissionsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
7792
- id: 'savePermissionsEmitTargetAndPayload';
7793
- version: 'v2020_12_25';
7794
- namespace: 'Mercury';
7795
- name: '';
7796
- fields: {
7797
- /** Source. */
7798
- 'source': {
7799
- label: 'Source';
7800
- type: 'schema';
7801
- options: {
7802
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
7803
- };
7804
- };
7805
- /** . */
7806
- 'target': {
7807
- type: 'schema';
7808
- isRequired: true;
7809
- options: {
7810
- schema: SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitTargetSchema;
7811
- };
7812
- };
7813
- /** . */
7814
- 'payload': {
7815
- type: 'schema';
7816
- isRequired: true;
7817
- options: {
7818
- schema: SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitPayloadSchema;
7819
- };
7820
- };
7821
- };
7822
- }
7823
- interface SavePermissionsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitTargetAndPayloadSchema> {
7824
- }
7825
- }
7826
8505
  namespace SpruceSchemas.Mercury.v2020_12_25 {
7827
8506
  interface SavePermissionsPermission {
7828
8507
  /** id. Hyphen separated id for this permission, e.g. can-unlock-doors */
@@ -7881,6 +8560,48 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7881
8560
  interface SavePermissionsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitPayloadSchema> {
7882
8561
  }
7883
8562
  }
8563
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8564
+ interface SavePermissionsEmitTargetAndPayload {
8565
+ /** Source. */
8566
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
8567
+ 'target': SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitTarget;
8568
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitPayload;
8569
+ }
8570
+ interface SavePermissionsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
8571
+ id: 'savePermissionsEmitTargetAndPayload';
8572
+ version: 'v2020_12_25';
8573
+ namespace: 'Mercury';
8574
+ name: '';
8575
+ fields: {
8576
+ /** Source. */
8577
+ 'source': {
8578
+ label: 'Source';
8579
+ type: 'schema';
8580
+ options: {
8581
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
8582
+ };
8583
+ };
8584
+ /** . */
8585
+ 'target': {
8586
+ type: 'schema';
8587
+ isRequired: true;
8588
+ options: {
8589
+ schema: SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitTargetSchema;
8590
+ };
8591
+ };
8592
+ /** . */
8593
+ 'payload': {
8594
+ type: 'schema';
8595
+ isRequired: true;
8596
+ options: {
8597
+ schema: SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitPayloadSchema;
8598
+ };
8599
+ };
8600
+ };
8601
+ }
8602
+ interface SavePermissionsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SavePermissionsEmitTargetAndPayloadSchema> {
8603
+ }
8604
+ }
7884
8605
  namespace SpruceSchemas.Mercury.v2020_12_25 {
7885
8606
  interface SavePermissionsResponsePayload {
7886
8607
  'success': boolean;
@@ -8017,6 +8738,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8017
8738
  interface SendMessageTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema> {
8018
8739
  }
8019
8740
  }
8741
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8742
+ interface SendMessageEmitTargetAndPayload {
8743
+ /** Source. */
8744
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
8745
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
8746
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
8747
+ }
8748
+ interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
8749
+ id: 'sendMessageEmitTargetAndPayload';
8750
+ version: 'v2020_12_25';
8751
+ namespace: 'Mercury';
8752
+ name: '';
8753
+ fields: {
8754
+ /** Source. */
8755
+ 'source': {
8756
+ label: 'Source';
8757
+ type: 'schema';
8758
+ options: {
8759
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
8760
+ };
8761
+ };
8762
+ /** . */
8763
+ 'target': {
8764
+ type: 'schema';
8765
+ options: {
8766
+ schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
8767
+ };
8768
+ };
8769
+ /** . */
8770
+ 'payload': {
8771
+ type: 'schema';
8772
+ isRequired: true;
8773
+ options: {
8774
+ schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
8775
+ };
8776
+ };
8777
+ };
8778
+ }
8779
+ interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
8780
+ }
8781
+ }
8020
8782
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8021
8783
  interface SendMessageMessagePayload {
8022
8784
  'classification': ("auth" | "transactional" | "promotional" | "incoming");
@@ -8116,47 +8878,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8116
8878
  interface SendMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema> {
8117
8879
  }
8118
8880
  }
8119
- namespace SpruceSchemas.Mercury.v2020_12_25 {
8120
- interface SendMessageEmitTargetAndPayload {
8121
- /** Source. */
8122
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
8123
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
8124
- 'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
8125
- }
8126
- interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
8127
- id: 'sendMessageEmitTargetAndPayload';
8128
- version: 'v2020_12_25';
8129
- namespace: 'Mercury';
8130
- name: '';
8131
- fields: {
8132
- /** Source. */
8133
- 'source': {
8134
- label: 'Source';
8135
- type: 'schema';
8136
- options: {
8137
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
8138
- };
8139
- };
8140
- /** . */
8141
- 'target': {
8142
- type: 'schema';
8143
- options: {
8144
- schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
8145
- };
8146
- };
8147
- /** . */
8148
- 'payload': {
8149
- type: 'schema';
8150
- isRequired: true;
8151
- options: {
8152
- schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
8153
- };
8154
- };
8155
- };
8156
- }
8157
- interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
8158
- }
8159
- }
8160
8881
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8161
8882
  interface SendMessageResponsePayload {
8162
8883
  'message': SpruceSchemas.Spruce.v2020_07_22.Message;
@@ -8269,6 +8990,30 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8269
8990
  interface SubmitErrorMessageFeedbackEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SubmitErrorMessageFeedbackEmitTargetAndPayloadSchema> {
8270
8991
  }
8271
8992
  }
8993
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8994
+ interface SyncEventContractsEmitPayload {
8995
+ 'contract': SpruceSchemas.Mercury.v2020_12_25.EventContract;
8996
+ }
8997
+ interface SyncEventContractsEmitPayloadSchema extends SpruceSchema.Schema {
8998
+ id: 'syncEventContractsEmitPayload';
8999
+ version: 'v2020_12_25';
9000
+ namespace: 'Mercury';
9001
+ name: '';
9002
+ importsWhenRemote: ['import \'@sprucelabs/mercury-types\''];
9003
+ fields: {
9004
+ /** . */
9005
+ 'contract': {
9006
+ type: 'schema';
9007
+ isRequired: true;
9008
+ options: {
9009
+ schema: SpruceSchemas.Mercury.v2020_12_25.EventContractSchema;
9010
+ };
9011
+ };
9012
+ };
9013
+ }
9014
+ interface SyncEventContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitPayloadSchema> {
9015
+ }
9016
+ }
8272
9017
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8273
9018
  interface SyncEventContractsEmitTargetAndPayload {
8274
9019
  /** Source. */
@@ -8303,36 +9048,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8303
9048
  }
8304
9049
  }
8305
9050
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8306
- interface SyncEventContractsEmitPayload {
8307
- 'contract': SpruceSchemas.Mercury.v2020_12_25.EventContract;
9051
+ interface SyncEventContractsResponsePayload {
9052
+ /** Event names. */
9053
+ 'fqens': string[];
8308
9054
  }
8309
- interface SyncEventContractsEmitPayloadSchema extends SpruceSchema.Schema {
8310
- id: 'syncEventContractsEmitPayload';
8311
- version: 'v2020_12_25';
8312
- namespace: 'Mercury';
8313
- name: '';
8314
- importsWhenRemote: ['import \'@sprucelabs/mercury-types\''];
8315
- fields: {
8316
- /** . */
8317
- 'contract': {
8318
- type: 'schema';
8319
- isRequired: true;
8320
- options: {
8321
- schema: SpruceSchemas.Mercury.v2020_12_25.EventContractSchema;
8322
- };
8323
- };
8324
- };
8325
- }
8326
- interface SyncEventContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitPayloadSchema> {
8327
- }
8328
- }
8329
- namespace SpruceSchemas.Mercury.v2020_12_25 {
8330
- interface SyncEventContractsResponsePayload {
8331
- /** Event names. */
8332
- 'fqens': string[];
8333
- }
8334
- interface SyncEventContractsResponsePayloadSchema extends SpruceSchema.Schema {
8335
- id: 'syncEventContractsResponsePayload';
9055
+ interface SyncEventContractsResponsePayloadSchema extends SpruceSchema.Schema {
9056
+ id: 'syncEventContractsResponsePayload';
8336
9057
  version: 'v2020_12_25';
8337
9058
  namespace: 'Mercury';
8338
9059
  name: '';
@@ -8377,6 +9098,31 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8377
9098
  interface SyncPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsEmitPayloadSchema> {
8378
9099
  }
8379
9100
  }
9101
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
9102
+ interface SyncPermissionContractsResponsePayload {
9103
+ 'contractRecords': SpruceSchemas.Mercury.v2020_12_25.FullPermissionContract[];
9104
+ }
9105
+ interface SyncPermissionContractsResponsePayloadSchema extends SpruceSchema.Schema {
9106
+ id: 'syncPermissionContractsResponsePayload';
9107
+ version: 'v2020_12_25';
9108
+ namespace: 'Mercury';
9109
+ name: '';
9110
+ fields: {
9111
+ /** . */
9112
+ 'contractRecords': {
9113
+ type: 'schema';
9114
+ isRequired: true;
9115
+ isArray: true;
9116
+ minArrayLength: 0;
9117
+ options: {
9118
+ schema: SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema;
9119
+ };
9120
+ };
9121
+ };
9122
+ }
9123
+ interface SyncPermissionContractsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsResponsePayloadSchema> {
9124
+ }
9125
+ }
8380
9126
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8381
9127
  interface SyncPermissionContractsEmitTargetAndPayload {
8382
9128
  /** Source. */
@@ -8462,31 +9208,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8462
9208
  interface FullPermissionContractEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema> {
8463
9209
  }
8464
9210
  }
8465
- namespace SpruceSchemas.Mercury.v2020_12_25 {
8466
- interface SyncPermissionContractsResponsePayload {
8467
- 'contractRecords': SpruceSchemas.Mercury.v2020_12_25.FullPermissionContract[];
8468
- }
8469
- interface SyncPermissionContractsResponsePayloadSchema extends SpruceSchema.Schema {
8470
- id: 'syncPermissionContractsResponsePayload';
8471
- version: 'v2020_12_25';
8472
- namespace: 'Mercury';
8473
- name: '';
8474
- fields: {
8475
- /** . */
8476
- 'contractRecords': {
8477
- type: 'schema';
8478
- isRequired: true;
8479
- isArray: true;
8480
- minArrayLength: 0;
8481
- options: {
8482
- schema: SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema;
8483
- };
8484
- };
8485
- };
8486
- }
8487
- interface SyncPermissionContractsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsResponsePayloadSchema> {
8488
- }
8489
- }
8490
9211
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8491
9212
  interface UnInstallSkillEmitTarget {
8492
9213
  'skillId': string;
@@ -11324,829 +12045,34 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11324
12045
  };
11325
12046
  /** Avatar src. */
11326
12047
  'avatar': {
11327
- label: 'Avatar src';
11328
- type: 'image';
11329
- options: {
11330
- requiredSizes: ["*"];
11331
- };
11332
- };
11333
- /** Phone. A number that can be texted */
11334
- 'phone': {
11335
- label: 'Phone';
11336
- type: 'phone';
11337
- isPrivate: true;
11338
- hint: 'A number that can be texted';
11339
- options: undefined;
11340
- };
11341
- };
11342
- }
11343
- interface UpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema> {
11344
- }
11345
- }
11346
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11347
- interface UpdatePersonEmitTargetAndPayload {
11348
- /** Source. */
11349
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11350
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTarget | undefined | null;
11351
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayload | undefined | null;
11352
- }
11353
- interface UpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11354
- id: 'updatePersonEmitTargetAndPayload';
11355
- version: 'v2020_12_25';
11356
- namespace: 'Mercury';
11357
- name: '';
11358
- fields: {
11359
- /** Source. */
11360
- 'source': {
11361
- label: 'Source';
11362
- type: 'schema';
11363
- options: {
11364
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11365
- };
11366
- };
11367
- /** . */
11368
- 'target': {
11369
- type: 'schema';
11370
- options: {
11371
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetSchema;
11372
- };
11373
- };
11374
- /** . */
11375
- 'payload': {
11376
- type: 'schema';
11377
- options: {
11378
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema;
11379
- };
11380
- };
11381
- };
11382
- }
11383
- interface UpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetAndPayloadSchema> {
11384
- }
11385
- }
11386
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11387
- interface UpdatePersonResponsePayload {
11388
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
11389
- }
11390
- interface UpdatePersonResponsePayloadSchema extends SpruceSchema.Schema {
11391
- id: 'updatePersonResponsePayload';
11392
- version: 'v2020_12_25';
11393
- namespace: 'Mercury';
11394
- name: '';
11395
- fields: {
11396
- /** . */
11397
- 'person': {
11398
- type: 'schema';
11399
- isRequired: true;
11400
- options: {
11401
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
11402
- };
11403
- };
11404
- };
11405
- }
11406
- interface UpdatePersonResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonResponsePayloadSchema> {
11407
- }
11408
- }
11409
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11410
- interface UpdateRoleEmitTarget {
11411
- 'roleId': string;
11412
- }
11413
- interface UpdateRoleEmitTargetSchema extends SpruceSchema.Schema {
11414
- id: 'updateRoleEmitTarget';
11415
- version: 'v2020_12_25';
11416
- namespace: 'Mercury';
11417
- name: '';
11418
- fields: {
11419
- /** . */
11420
- 'roleId': {
11421
- type: 'id';
11422
- isRequired: true;
11423
- options: undefined;
11424
- };
11425
- };
11426
- }
11427
- interface UpdateRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema> {
11428
- }
11429
- }
11430
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11431
- interface UpdateRoleEmitPayload {
11432
- /** Name. */
11433
- 'name'?: string | undefined | null;
11434
- /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11435
- 'base'?: ("owner" | "groupManager" | "manager" | "teammate" | "anonymous" | "loggedIn" | "guest") | undefined | null;
11436
- /** Description. */
11437
- 'description'?: string | undefined | null;
11438
- 'dateDeleted'?: number | undefined | null;
11439
- 'organizationId'?: string | undefined | null;
11440
- /** Public. Should I let people that are not part of this organization this role? */
11441
- 'isPublic'?: boolean | undefined | null;
11442
- }
11443
- interface UpdateRoleEmitPayloadSchema extends SpruceSchema.Schema {
11444
- id: 'updateRoleEmitPayload';
11445
- version: 'v2020_12_25';
11446
- namespace: 'Mercury';
11447
- name: '';
11448
- fields: {
11449
- /** Name. */
11450
- 'name': {
11451
- label: 'Name';
11452
- type: 'text';
11453
- options: undefined;
11454
- };
11455
- /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11456
- 'base': {
11457
- label: 'Base';
11458
- type: 'select';
11459
- hint: 'A best practices starting point for a role based on the generalized roles at a company.';
11460
- options: {
11461
- choices: [{
11462
- "label": "Owner";
11463
- "value": "owner";
11464
- }, {
11465
- "label": "Group manager";
11466
- "value": "groupManager";
11467
- }, {
11468
- "label": "Manager";
11469
- "value": "manager";
11470
- }, {
11471
- "label": "Teammate";
11472
- "value": "teammate";
11473
- }, {
11474
- "label": "Anonymous";
11475
- "value": "anonymous";
11476
- }, {
11477
- "label": "Logged in";
11478
- "value": "loggedIn";
11479
- }, {
11480
- "label": "Guest";
11481
- "value": "guest";
11482
- }];
11483
- };
11484
- };
11485
- /** Description. */
11486
- 'description': {
11487
- label: 'Description';
11488
- type: 'text';
11489
- options: undefined;
11490
- };
11491
- /** . */
11492
- 'dateDeleted': {
11493
- type: 'number';
11494
- options: undefined;
11495
- };
11496
- /** . */
11497
- 'organizationId': {
11498
- type: 'id';
11499
- options: undefined;
11500
- };
11501
- /** Public. Should I let people that are not part of this organization this role? */
11502
- 'isPublic': {
11503
- label: 'Public';
11504
- type: 'boolean';
11505
- hint: 'Should I let people that are not part of this organization this role?';
11506
- options: undefined;
11507
- };
11508
- };
11509
- }
11510
- interface UpdateRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema> {
11511
- }
11512
- }
11513
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11514
- interface UpdateRoleEmitTargetAndPayload {
11515
- /** Source. */
11516
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11517
- 'target': SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTarget;
11518
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayload | undefined | null;
11519
- }
11520
- interface UpdateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11521
- id: 'updateRoleEmitTargetAndPayload';
11522
- version: 'v2020_12_25';
11523
- namespace: 'Mercury';
11524
- name: '';
11525
- fields: {
11526
- /** Source. */
11527
- 'source': {
11528
- label: 'Source';
11529
- type: 'schema';
11530
- options: {
11531
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11532
- };
11533
- };
11534
- /** . */
11535
- 'target': {
11536
- type: 'schema';
11537
- isRequired: true;
11538
- options: {
11539
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema;
11540
- };
11541
- };
11542
- /** . */
11543
- 'payload': {
11544
- type: 'schema';
11545
- options: {
11546
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema;
11547
- };
11548
- };
11549
- };
11550
- }
11551
- interface UpdateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetAndPayloadSchema> {
11552
- }
11553
- }
11554
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11555
- interface UpdateRoleResponsePayload {
11556
- 'role': SpruceSchemas.Spruce.v2020_07_22.Role;
11557
- }
11558
- interface UpdateRoleResponsePayloadSchema extends SpruceSchema.Schema {
11559
- id: 'updateRoleResponsePayload';
11560
- version: 'v2020_12_25';
11561
- namespace: 'Mercury';
11562
- name: '';
11563
- fields: {
11564
- /** . */
11565
- 'role': {
11566
- type: 'schema';
11567
- isRequired: true;
11568
- options: {
11569
- schema: SpruceSchemas.Spruce.v2020_07_22.RoleSchema;
11570
- };
11571
- };
11572
- };
11573
- }
11574
- interface UpdateRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleResponsePayloadSchema> {
11575
- }
11576
- }
11577
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11578
- interface UpsertPermissionContractEmitTarget {
11579
- 'organizationId': string;
11580
- 'permissionContractId': string;
11581
- 'roleId': string;
11582
- 'skillId'?: string | undefined | null;
11583
- }
11584
- interface UpsertPermissionContractEmitTargetSchema extends SpruceSchema.Schema {
11585
- id: 'upsertPermissionContractEmitTarget';
11586
- version: 'v2020_12_25';
11587
- namespace: 'Mercury';
11588
- name: '';
11589
- fields: {
11590
- /** . */
11591
- 'organizationId': {
11592
- type: 'id';
11593
- isRequired: true;
11594
- options: undefined;
11595
- };
11596
- /** . */
11597
- 'permissionContractId': {
11598
- type: 'id';
11599
- isRequired: true;
11600
- options: undefined;
11601
- };
11602
- /** . */
11603
- 'roleId': {
11604
- type: 'id';
11605
- isRequired: true;
11606
- options: undefined;
11607
- };
11608
- /** . */
11609
- 'skillId': {
11610
- type: 'id';
11611
- options: undefined;
11612
- };
11613
- };
11614
- }
11615
- interface UpsertPermissionContractEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema> {
11616
- }
11617
- }
11618
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11619
- interface UpsertPermissionContractEmitTargetAndPayload {
11620
- /** Source. */
11621
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11622
- 'target': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTarget;
11623
- 'payload': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayload;
11624
- }
11625
- interface UpsertPermissionContractEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11626
- id: 'upsertPermissionContractEmitTargetAndPayload';
11627
- version: 'v2020_12_25';
11628
- namespace: 'Mercury';
11629
- name: '';
11630
- fields: {
11631
- /** Source. */
11632
- 'source': {
11633
- label: 'Source';
11634
- type: 'schema';
11635
- options: {
11636
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11637
- };
11638
- };
11639
- /** . */
11640
- 'target': {
11641
- type: 'schema';
11642
- isRequired: true;
11643
- options: {
11644
- schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema;
11645
- };
11646
- };
11647
- /** . */
11648
- 'payload': {
11649
- type: 'schema';
11650
- isRequired: true;
11651
- options: {
11652
- schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema;
11653
- };
11654
- };
11655
- };
11656
- }
11657
- interface UpsertPermissionContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetAndPayloadSchema> {
11658
- }
11659
- }
11660
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11661
- interface UpsertPermissionContractsEmitPayload {
11662
- /** Name. Human readable name for this contract */
11663
- 'name': string;
11664
- /** Description. */
11665
- 'description'?: string | undefined | null;
11666
- /** Require all permissions. */
11667
- 'requireAllPermissions'?: boolean | undefined | null;
11668
- 'permissions': SpruceSchemas.Mercury.v2020_12_25.Permission[];
11669
- }
11670
- interface UpsertPermissionContractsEmitPayloadSchema extends SpruceSchema.Schema {
11671
- id: 'upsertPermissionContractsEmitPayload';
11672
- version: 'v2020_12_25';
11673
- namespace: 'Mercury';
11674
- name: '';
11675
- fields: {
11676
- /** Name. Human readable name for this contract */
11677
- 'name': {
11678
- label: 'Name';
11679
- type: 'text';
11680
- isRequired: true;
11681
- hint: 'Human readable name for this contract';
11682
- options: undefined;
11683
- };
11684
- /** Description. */
11685
- 'description': {
11686
- label: 'Description';
11687
- type: 'text';
11688
- options: undefined;
11689
- };
11690
- /** Require all permissions. */
11691
- 'requireAllPermissions': {
11692
- label: 'Require all permissions';
11693
- type: 'boolean';
11694
- defaultValue: false;
11695
- options: undefined;
11696
- };
11697
- /** . */
11698
- 'permissions': {
11699
- type: 'schema';
11700
- isRequired: true;
11701
- isArray: true;
11702
- minArrayLength: 0;
11703
- options: {
11704
- schema: SpruceSchemas.Mercury.v2020_12_25.PermissionSchema;
11705
- };
11706
- };
11707
- };
11708
- }
11709
- interface UpsertPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema> {
11710
- }
11711
- }
11712
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11713
- interface UpsertPermissionContractResponsePayload {
11714
- 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
11715
- }
11716
- interface UpsertPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
11717
- id: 'upsertPermissionContractResponsePayload';
11718
- version: 'v2020_12_25';
11719
- namespace: 'Mercury';
11720
- name: '';
11721
- fields: {
11722
- /** . */
11723
- 'permissionContract': {
11724
- type: 'schema';
11725
- isRequired: true;
11726
- options: {
11727
- schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
11728
- };
11729
- };
11730
- };
11731
- }
11732
- interface UpsertPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractResponsePayloadSchema> {
11733
- }
11734
- }
11735
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11736
- interface VoteForFeatureEmitPayload {
11737
- 'featureKey': string;
11738
- 'skillNamespace': string;
11739
- }
11740
- interface VoteForFeatureEmitPayloadSchema extends SpruceSchema.Schema {
11741
- id: 'voteForFeatureEmitPayload';
11742
- version: 'v2020_12_25';
11743
- namespace: 'Mercury';
11744
- name: '';
11745
- fields: {
11746
- /** . */
11747
- 'featureKey': {
11748
- type: 'id';
11749
- isRequired: true;
11750
- options: undefined;
11751
- };
11752
- /** . */
11753
- 'skillNamespace': {
11754
- type: 'id';
11755
- isRequired: true;
11756
- options: undefined;
11757
- };
11758
- };
11759
- }
11760
- interface VoteForFeatureEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema> {
11761
- }
11762
- }
11763
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11764
- interface VoteForFeatureEmitTargetAndPayload {
11765
- /** Source. */
11766
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11767
- 'payload': SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayload;
11768
- }
11769
- interface VoteForFeatureEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11770
- id: 'voteForFeatureEmitTargetAndPayload';
11771
- version: 'v2020_12_25';
11772
- namespace: 'Mercury';
11773
- name: '';
11774
- fields: {
11775
- /** Source. */
11776
- 'source': {
11777
- label: 'Source';
11778
- type: 'schema';
11779
- options: {
11780
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11781
- };
11782
- };
11783
- /** . */
11784
- 'payload': {
11785
- type: 'schema';
11786
- isRequired: true;
11787
- options: {
11788
- schema: SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema;
11789
- };
11790
- };
11791
- };
11792
- }
11793
- interface VoteForFeatureEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitTargetAndPayloadSchema> {
11794
- }
11795
- }
11796
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11797
- interface VoteForFeatureResponsePayload {
11798
- 'totalVotes': number;
11799
- }
11800
- interface VoteForFeatureResponsePayloadSchema extends SpruceSchema.Schema {
11801
- id: 'voteForFeatureResponsePayload';
11802
- version: 'v2020_12_25';
11803
- namespace: 'Mercury';
11804
- name: '';
11805
- fields: {
11806
- /** . */
11807
- 'totalVotes': {
11808
- type: 'number';
11809
- isRequired: true;
11810
- options: undefined;
11811
- };
11812
- };
11813
- }
11814
- interface VoteForFeatureResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureResponsePayloadSchema> {
11815
- }
11816
- }
11817
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11818
- interface WhoamiEmitTargetAndPayload {
11819
- /** Source. */
11820
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11821
- }
11822
- interface WhoamiEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11823
- id: 'whoamiEmitTargetAndPayload';
11824
- version: 'v2020_12_25';
11825
- namespace: 'Mercury';
11826
- name: '';
11827
- fields: {
11828
- /** Source. */
11829
- 'source': {
11830
- label: 'Source';
11831
- type: 'schema';
11832
- options: {
11833
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11834
- };
11835
- };
11836
- };
11837
- }
11838
- interface WhoamiEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.WhoamiEmitTargetAndPayloadSchema> {
11839
- }
11840
- }
11841
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11842
- interface DidInstallEmitTarget {
11843
- 'organizationId': string;
11844
- 'skillId': string;
11845
- }
11846
- interface DidInstallEmitTargetSchema extends SpruceSchema.Schema {
11847
- id: 'didInstallEmitTarget';
11848
- version: 'v2020_12_25';
11849
- namespace: 'Mercury';
11850
- name: '';
11851
- fields: {
11852
- /** . */
11853
- 'organizationId': {
11854
- type: 'id';
11855
- isRequired: true;
11856
- options: undefined;
11857
- };
11858
- /** . */
11859
- 'skillId': {
11860
- type: 'id';
11861
- isRequired: true;
11862
- options: undefined;
11863
- };
11864
- };
11865
- }
11866
- interface DidInstallEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema> {
11867
- }
11868
- }
11869
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11870
- interface DidInstallEmitTargetAndPayload {
11871
- /** Source. */
11872
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11873
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTarget;
11874
- }
11875
- interface DidInstallEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11876
- id: 'didInstallEmitTargetAndPayload';
11877
- version: 'v2020_12_25';
11878
- namespace: 'Mercury';
11879
- name: '';
11880
- fields: {
11881
- /** Source. */
11882
- 'source': {
11883
- label: 'Source';
11884
- type: 'schema';
11885
- options: {
11886
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11887
- };
11888
- };
11889
- /** . */
11890
- 'target': {
11891
- type: 'schema';
11892
- isRequired: true;
11893
- options: {
11894
- schema: SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema;
11895
- };
11896
- };
11897
- };
11898
- }
11899
- interface DidInstallEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetAndPayloadSchema> {
11900
- }
11901
- }
11902
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11903
- interface DidInstallResponsePayload {
11904
- }
11905
- interface DidInstallResponsePayloadSchema extends SpruceSchema.Schema {
11906
- id: 'didInstallResponsePayload';
11907
- version: 'v2020_12_25';
11908
- namespace: 'Mercury';
11909
- name: '';
11910
- fields: {};
11911
- }
11912
- interface DidInstallResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallResponsePayloadSchema> {
11913
- }
11914
- }
11915
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11916
- interface DidJoinOrganizationEmitTarget {
11917
- 'organizationId': string;
11918
- 'locationId'?: string | undefined | null;
11919
- }
11920
- interface DidJoinOrganizationEmitTargetSchema extends SpruceSchema.Schema {
11921
- id: 'didJoinOrganizationEmitTarget';
11922
- version: 'v2020_12_25';
11923
- namespace: 'Mercury';
11924
- name: '';
11925
- fields: {
11926
- /** . */
11927
- 'organizationId': {
11928
- type: 'id';
11929
- isRequired: true;
11930
- options: undefined;
11931
- };
11932
- /** . */
11933
- 'locationId': {
11934
- type: 'id';
11935
- options: undefined;
11936
- };
11937
- };
11938
- }
11939
- interface DidJoinOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema> {
11940
- }
11941
- }
11942
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11943
- interface DidJoinOrganizationEmitPayload {
11944
- 'personId': string;
11945
- 'roleId': string;
11946
- 'isFirstRole': boolean;
11947
- }
11948
- interface DidJoinOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
11949
- id: 'didJoinOrganizationEmitPayload';
11950
- version: 'v2020_12_25';
11951
- namespace: 'Mercury';
11952
- name: '';
11953
- fields: {
11954
- /** . */
11955
- 'personId': {
11956
- type: 'id';
11957
- isRequired: true;
11958
- options: undefined;
11959
- };
11960
- /** . */
11961
- 'roleId': {
11962
- type: 'id';
11963
- isRequired: true;
11964
- options: undefined;
11965
- };
11966
- /** . */
11967
- 'isFirstRole': {
11968
- type: 'boolean';
11969
- isRequired: true;
11970
- options: undefined;
11971
- };
11972
- };
11973
- }
11974
- interface DidJoinOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema> {
11975
- }
11976
- }
11977
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11978
- interface DidJoinOrganizationEmitTargetAndPayload {
11979
- /** Source. */
11980
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11981
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTarget;
11982
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayload;
11983
- }
11984
- interface DidJoinOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11985
- id: 'didJoinOrganizationEmitTargetAndPayload';
11986
- version: 'v2020_12_25';
11987
- namespace: 'Mercury';
11988
- name: '';
11989
- fields: {
11990
- /** Source. */
11991
- 'source': {
11992
- label: 'Source';
11993
- type: 'schema';
11994
- options: {
11995
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11996
- };
11997
- };
11998
- /** . */
11999
- 'target': {
12000
- type: 'schema';
12001
- isRequired: true;
12002
- options: {
12003
- schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema;
12004
- };
12005
- };
12006
- /** . */
12007
- 'payload': {
12008
- type: 'schema';
12009
- isRequired: true;
12010
- options: {
12011
- schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema;
12012
- };
12013
- };
12014
- };
12015
- }
12016
- interface DidJoinOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetAndPayloadSchema> {
12017
- }
12018
- }
12019
- namespace SpruceSchemas.Mercury.v2020_12_25 {
12020
- interface MessageTemplateAddons {
12021
- 'nextINeedYouTo'?: string[] | undefined | null;
12022
- 'youShouldKnowThat'?: string[] | undefined | null;
12023
- 'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
12024
- }
12025
- interface MessageTemplateAddonsSchema extends SpruceSchema.Schema {
12026
- id: 'messageTemplateAddons';
12027
- version: 'v2020_12_25';
12028
- namespace: 'Mercury';
12029
- name: '';
12030
- fields: {
12031
- /** . */
12032
- 'nextINeedYouTo': {
12033
- type: 'text';
12034
- isArray: true;
12035
- options: undefined;
12036
- };
12037
- /** . */
12038
- 'youShouldKnowThat': {
12039
- type: 'text';
12040
- isArray: true;
12041
- options: undefined;
12042
- };
12043
- /** . */
12044
- 'links': {
12045
- type: 'schema';
12046
- isArray: true;
12047
- minArrayLength: 0;
12048
- options: {
12049
- schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
12050
- };
12051
- };
12052
- };
12053
- }
12054
- interface MessageTemplateAddonsEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema> {
12055
- }
12056
- }
12057
- namespace SpruceSchemas.Mercury.v2020_12_25 {
12058
- interface DidJoinOrganizationResponsePayload {
12059
- 'messaging'?: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddons | undefined | null;
12060
- }
12061
- interface DidJoinOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
12062
- id: 'didJoinOrganizationResponsePayload';
12063
- version: 'v2020_12_25';
12064
- namespace: 'Mercury';
12065
- name: '';
12066
- fields: {
12067
- /** . */
12068
- 'messaging': {
12069
- type: 'schema';
12048
+ label: 'Avatar src';
12049
+ type: 'image';
12070
12050
  options: {
12071
- schema: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema;
12051
+ requiredSizes: ["*"];
12072
12052
  };
12073
12053
  };
12074
- };
12075
- }
12076
- interface DidJoinOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationResponsePayloadSchema> {
12077
- }
12078
- }
12079
- namespace SpruceSchemas.Mercury.v2020_12_25 {
12080
- interface DidLeaveOrganizationEmitTarget {
12081
- 'organizationId': string;
12082
- 'locationId'?: string | undefined | null;
12083
- }
12084
- interface DidLeaveOrganizationEmitTargetSchema extends SpruceSchema.Schema {
12085
- id: 'didLeaveOrganizationEmitTarget';
12086
- version: 'v2020_12_25';
12087
- namespace: 'Mercury';
12088
- name: '';
12089
- fields: {
12090
- /** . */
12091
- 'organizationId': {
12092
- type: 'id';
12093
- isRequired: true;
12094
- options: undefined;
12095
- };
12096
- /** . */
12097
- 'locationId': {
12098
- type: 'id';
12099
- options: undefined;
12100
- };
12101
- };
12102
- }
12103
- interface DidLeaveOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema> {
12104
- }
12105
- }
12106
- namespace SpruceSchemas.Mercury.v2020_12_25 {
12107
- interface DidLeaveOrganizationEmitPayload {
12108
- 'personId': string;
12109
- 'roleId': string;
12110
- 'isLastRole': boolean;
12111
- }
12112
- interface DidLeaveOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
12113
- id: 'didLeaveOrganizationEmitPayload';
12114
- version: 'v2020_12_25';
12115
- namespace: 'Mercury';
12116
- name: '';
12117
- fields: {
12118
- /** . */
12119
- 'personId': {
12120
- type: 'id';
12121
- isRequired: true;
12122
- options: undefined;
12123
- };
12124
- /** . */
12125
- 'roleId': {
12126
- type: 'id';
12127
- isRequired: true;
12128
- options: undefined;
12129
- };
12130
- /** . */
12131
- 'isLastRole': {
12132
- type: 'boolean';
12133
- isRequired: true;
12054
+ /** Phone. A number that can be texted */
12055
+ 'phone': {
12056
+ label: 'Phone';
12057
+ type: 'phone';
12058
+ isPrivate: true;
12059
+ hint: 'A number that can be texted';
12134
12060
  options: undefined;
12135
12061
  };
12136
12062
  };
12137
12063
  }
12138
- interface DidLeaveOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema> {
12064
+ interface UpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema> {
12139
12065
  }
12140
12066
  }
12141
12067
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12142
- interface DidLeaveOrganizationEmitTargetAndPayload {
12068
+ interface UpdatePersonEmitTargetAndPayload {
12143
12069
  /** Source. */
12144
12070
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12145
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTarget;
12146
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayload;
12071
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTarget | undefined | null;
12072
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayload | undefined | null;
12147
12073
  }
12148
- interface DidLeaveOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12149
- id: 'didLeaveOrganizationEmitTargetAndPayload';
12074
+ interface UpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12075
+ id: 'updatePersonEmitTargetAndPayload';
12150
12076
  version: 'v2020_12_25';
12151
12077
  namespace: 'Mercury';
12152
12078
  name: '';
@@ -12162,225 +12088,315 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12162
12088
  /** . */
12163
12089
  'target': {
12164
12090
  type: 'schema';
12165
- isRequired: true;
12166
12091
  options: {
12167
- schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema;
12092
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetSchema;
12168
12093
  };
12169
12094
  };
12170
12095
  /** . */
12171
12096
  'payload': {
12172
12097
  type: 'schema';
12173
- isRequired: true;
12174
12098
  options: {
12175
- schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema;
12099
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema;
12176
12100
  };
12177
12101
  };
12178
12102
  };
12179
12103
  }
12180
- interface DidLeaveOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetAndPayloadSchema> {
12181
- }
12182
- }
12183
- namespace SpruceSchemas.Mercury.v2020_12_25 {
12184
- interface DidLeaveOrganizationResponsePayload {
12185
- }
12186
- interface DidLeaveOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
12187
- id: 'didLeaveOrganizationResponsePayload';
12188
- version: 'v2020_12_25';
12189
- namespace: 'Mercury';
12190
- name: '';
12191
- fields: {};
12192
- }
12193
- interface DidLeaveOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationResponsePayloadSchema> {
12104
+ interface UpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetAndPayloadSchema> {
12194
12105
  }
12195
12106
  }
12196
12107
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12197
- interface DidMessageEmitPayload {
12198
- 'message': SpruceSchemas.Spruce.v2020_07_22.Message;
12199
- 'conversationState'?: string | undefined | null;
12200
- 'topic'?: string | undefined | null;
12108
+ interface UpdatePersonResponsePayload {
12109
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12201
12110
  }
12202
- interface DidMessageEmitPayloadSchema extends SpruceSchema.Schema {
12203
- id: 'didMessageEmitPayload';
12111
+ interface UpdatePersonResponsePayloadSchema extends SpruceSchema.Schema {
12112
+ id: 'updatePersonResponsePayload';
12204
12113
  version: 'v2020_12_25';
12205
12114
  namespace: 'Mercury';
12206
12115
  name: '';
12207
12116
  fields: {
12208
12117
  /** . */
12209
- 'message': {
12118
+ 'person': {
12210
12119
  type: 'schema';
12211
12120
  isRequired: true;
12212
12121
  options: {
12213
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageSchema;
12122
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12214
12123
  };
12215
12124
  };
12216
- /** . */
12217
- 'conversationState': {
12218
- type: 'text';
12219
- options: undefined;
12220
- };
12221
- /** . */
12222
- 'topic': {
12223
- type: 'text';
12224
- options: undefined;
12225
- };
12226
12125
  };
12227
12126
  }
12228
- interface DidMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema> {
12127
+ interface UpdatePersonResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonResponsePayloadSchema> {
12229
12128
  }
12230
12129
  }
12231
12130
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12232
- interface ConversationTopic {
12233
- 'key': string;
12234
- 'confidence': number;
12235
- 'label': string;
12131
+ interface UpdateRoleEmitTarget {
12132
+ 'roleId': string;
12236
12133
  }
12237
- interface ConversationTopicSchema extends SpruceSchema.Schema {
12238
- id: 'conversationTopic';
12134
+ interface UpdateRoleEmitTargetSchema extends SpruceSchema.Schema {
12135
+ id: 'updateRoleEmitTarget';
12239
12136
  version: 'v2020_12_25';
12240
12137
  namespace: 'Mercury';
12241
12138
  name: '';
12242
12139
  fields: {
12243
12140
  /** . */
12244
- 'key': {
12245
- type: 'text';
12246
- isRequired: true;
12247
- options: undefined;
12248
- };
12249
- /** . */
12250
- 'confidence': {
12251
- type: 'number';
12252
- isRequired: true;
12253
- options: undefined;
12254
- };
12255
- /** . */
12256
- 'label': {
12257
- type: 'text';
12141
+ 'roleId': {
12142
+ type: 'id';
12258
12143
  isRequired: true;
12259
12144
  options: undefined;
12260
12145
  };
12261
12146
  };
12262
12147
  }
12263
- interface ConversationTopicEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema> {
12148
+ interface UpdateRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema> {
12264
12149
  }
12265
12150
  }
12266
12151
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12267
- interface DidMessageResponsePayload {
12268
- 'transitionConversationTo'?: ("greeting" | "discovery" | "topic" | "closing") | undefined | null;
12269
- 'repairs'?: string[] | undefined | null;
12270
- 'topicChangers'?: string[] | undefined | null;
12271
- 'utterance'?: string | undefined | null;
12272
- 'suggestedTopics'?: SpruceSchemas.Mercury.v2020_12_25.ConversationTopic[] | undefined | null;
12152
+ interface UpdateRoleEmitPayload {
12153
+ /** Name. */
12154
+ 'name'?: string | undefined | null;
12155
+ /** Base. A best practices starting point for a role based on the generalized roles at a company. */
12156
+ 'base'?: ("owner" | "groupManager" | "manager" | "teammate" | "anonymous" | "loggedIn" | "guest") | undefined | null;
12157
+ /** Description. */
12158
+ 'description'?: string | undefined | null;
12159
+ 'dateDeleted'?: number | undefined | null;
12160
+ 'organizationId'?: string | undefined | null;
12161
+ /** Public. Should I let people that are not part of this organization this role? */
12162
+ 'isPublic'?: boolean | undefined | null;
12273
12163
  }
12274
- interface DidMessageResponsePayloadSchema extends SpruceSchema.Schema {
12275
- id: 'didMessageResponsePayload';
12164
+ interface UpdateRoleEmitPayloadSchema extends SpruceSchema.Schema {
12165
+ id: 'updateRoleEmitPayload';
12276
12166
  version: 'v2020_12_25';
12277
12167
  namespace: 'Mercury';
12278
12168
  name: '';
12279
12169
  fields: {
12280
- /** . */
12281
- 'transitionConversationTo': {
12170
+ /** Name. */
12171
+ 'name': {
12172
+ label: 'Name';
12173
+ type: 'text';
12174
+ options: undefined;
12175
+ };
12176
+ /** Base. A best practices starting point for a role based on the generalized roles at a company. */
12177
+ 'base': {
12178
+ label: 'Base';
12282
12179
  type: 'select';
12180
+ hint: 'A best practices starting point for a role based on the generalized roles at a company.';
12283
12181
  options: {
12284
12182
  choices: [{
12285
- "label": "Greeting";
12286
- "value": "greeting";
12183
+ "label": "Owner";
12184
+ "value": "owner";
12287
12185
  }, {
12288
- "label": "Discovery";
12289
- "value": "discovery";
12186
+ "label": "Group manager";
12187
+ "value": "groupManager";
12290
12188
  }, {
12291
- "label": "Topic";
12292
- "value": "topic";
12189
+ "label": "Manager";
12190
+ "value": "manager";
12293
12191
  }, {
12294
- "label": "Closing";
12295
- "value": "closing";
12192
+ "label": "Teammate";
12193
+ "value": "teammate";
12194
+ }, {
12195
+ "label": "Anonymous";
12196
+ "value": "anonymous";
12197
+ }, {
12198
+ "label": "Logged in";
12199
+ "value": "loggedIn";
12200
+ }, {
12201
+ "label": "Guest";
12202
+ "value": "guest";
12296
12203
  }];
12297
12204
  };
12298
12205
  };
12299
- /** . */
12300
- 'repairs': {
12206
+ /** Description. */
12207
+ 'description': {
12208
+ label: 'Description';
12301
12209
  type: 'text';
12302
- isArray: true;
12303
12210
  options: undefined;
12304
12211
  };
12305
12212
  /** . */
12306
- 'topicChangers': {
12307
- type: 'text';
12308
- isArray: true;
12213
+ 'dateDeleted': {
12214
+ type: 'number';
12215
+ options: undefined;
12216
+ };
12217
+ /** . */
12218
+ 'organizationId': {
12219
+ type: 'id';
12220
+ options: undefined;
12221
+ };
12222
+ /** Public. Should I let people that are not part of this organization this role? */
12223
+ 'isPublic': {
12224
+ label: 'Public';
12225
+ type: 'boolean';
12226
+ hint: 'Should I let people that are not part of this organization this role?';
12309
12227
  options: undefined;
12310
12228
  };
12229
+ };
12230
+ }
12231
+ interface UpdateRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema> {
12232
+ }
12233
+ }
12234
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12235
+ interface UpdateRoleEmitTargetAndPayload {
12236
+ /** Source. */
12237
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12238
+ 'target': SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTarget;
12239
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayload | undefined | null;
12240
+ }
12241
+ interface UpdateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12242
+ id: 'updateRoleEmitTargetAndPayload';
12243
+ version: 'v2020_12_25';
12244
+ namespace: 'Mercury';
12245
+ name: '';
12246
+ fields: {
12247
+ /** Source. */
12248
+ 'source': {
12249
+ label: 'Source';
12250
+ type: 'schema';
12251
+ options: {
12252
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12253
+ };
12254
+ };
12311
12255
  /** . */
12312
- 'utterance': {
12313
- type: 'text';
12314
- options: undefined;
12256
+ 'target': {
12257
+ type: 'schema';
12258
+ isRequired: true;
12259
+ options: {
12260
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema;
12261
+ };
12315
12262
  };
12316
12263
  /** . */
12317
- 'suggestedTopics': {
12264
+ 'payload': {
12318
12265
  type: 'schema';
12319
- isArray: true;
12320
12266
  options: {
12321
- schema: SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema;
12267
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema;
12322
12268
  };
12323
12269
  };
12324
12270
  };
12325
12271
  }
12326
- interface DidMessageResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageResponsePayloadSchema> {
12272
+ interface UpdateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetAndPayloadSchema> {
12327
12273
  }
12328
12274
  }
12329
12275
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12330
- interface DidSignupEmitPayload {
12331
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12276
+ interface UpdateRoleResponsePayload {
12277
+ 'role': SpruceSchemas.Spruce.v2020_07_22.Role;
12332
12278
  }
12333
- interface DidSignupEmitPayloadSchema extends SpruceSchema.Schema {
12334
- id: 'didSignupEmitPayload';
12279
+ interface UpdateRoleResponsePayloadSchema extends SpruceSchema.Schema {
12280
+ id: 'updateRoleResponsePayload';
12335
12281
  version: 'v2020_12_25';
12336
12282
  namespace: 'Mercury';
12337
12283
  name: '';
12338
12284
  fields: {
12339
12285
  /** . */
12340
- 'person': {
12286
+ 'role': {
12341
12287
  type: 'schema';
12342
12288
  isRequired: true;
12343
12289
  options: {
12344
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12290
+ schema: SpruceSchemas.Spruce.v2020_07_22.RoleSchema;
12345
12291
  };
12346
12292
  };
12347
12293
  };
12348
12294
  }
12349
- interface DidSignupEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema> {
12295
+ interface UpdateRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleResponsePayloadSchema> {
12350
12296
  }
12351
12297
  }
12352
12298
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12353
- interface DidUpdateFeedEmitPayload {
12354
- 'item': SpruceSchemas.Spruce.v2020_07_22.FeedItem;
12299
+ interface UpsertPermissionContractEmitTarget {
12300
+ 'organizationId': string;
12301
+ 'permissionContractId': string;
12302
+ 'roleId': string;
12303
+ 'skillId'?: string | undefined | null;
12355
12304
  }
12356
- interface DidUpdateFeedEmitPayloadSchema extends SpruceSchema.Schema {
12357
- id: 'didUpdateFeedEmitPayload';
12305
+ interface UpsertPermissionContractEmitTargetSchema extends SpruceSchema.Schema {
12306
+ id: 'upsertPermissionContractEmitTarget';
12358
12307
  version: 'v2020_12_25';
12359
12308
  namespace: 'Mercury';
12360
12309
  name: '';
12361
12310
  fields: {
12362
12311
  /** . */
12363
- 'item': {
12312
+ 'organizationId': {
12313
+ type: 'id';
12314
+ isRequired: true;
12315
+ options: undefined;
12316
+ };
12317
+ /** . */
12318
+ 'permissionContractId': {
12319
+ type: 'id';
12320
+ isRequired: true;
12321
+ options: undefined;
12322
+ };
12323
+ /** . */
12324
+ 'roleId': {
12325
+ type: 'id';
12326
+ isRequired: true;
12327
+ options: undefined;
12328
+ };
12329
+ /** . */
12330
+ 'skillId': {
12331
+ type: 'id';
12332
+ options: undefined;
12333
+ };
12334
+ };
12335
+ }
12336
+ interface UpsertPermissionContractEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema> {
12337
+ }
12338
+ }
12339
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12340
+ interface UpsertPermissionContractsEmitPayload {
12341
+ /** Name. Human readable name for this contract */
12342
+ 'name': string;
12343
+ /** Description. */
12344
+ 'description'?: string | undefined | null;
12345
+ /** Require all permissions. */
12346
+ 'requireAllPermissions'?: boolean | undefined | null;
12347
+ 'permissions': SpruceSchemas.Mercury.v2020_12_25.Permission[];
12348
+ }
12349
+ interface UpsertPermissionContractsEmitPayloadSchema extends SpruceSchema.Schema {
12350
+ id: 'upsertPermissionContractsEmitPayload';
12351
+ version: 'v2020_12_25';
12352
+ namespace: 'Mercury';
12353
+ name: '';
12354
+ fields: {
12355
+ /** Name. Human readable name for this contract */
12356
+ 'name': {
12357
+ label: 'Name';
12358
+ type: 'text';
12359
+ isRequired: true;
12360
+ hint: 'Human readable name for this contract';
12361
+ options: undefined;
12362
+ };
12363
+ /** Description. */
12364
+ 'description': {
12365
+ label: 'Description';
12366
+ type: 'text';
12367
+ options: undefined;
12368
+ };
12369
+ /** Require all permissions. */
12370
+ 'requireAllPermissions': {
12371
+ label: 'Require all permissions';
12372
+ type: 'boolean';
12373
+ defaultValue: false;
12374
+ options: undefined;
12375
+ };
12376
+ /** . */
12377
+ 'permissions': {
12364
12378
  type: 'schema';
12365
12379
  isRequired: true;
12380
+ isArray: true;
12381
+ minArrayLength: 0;
12366
12382
  options: {
12367
- schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
12383
+ schema: SpruceSchemas.Mercury.v2020_12_25.PermissionSchema;
12368
12384
  };
12369
12385
  };
12370
12386
  };
12371
12387
  }
12372
- interface DidUpdateFeedEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema> {
12388
+ interface UpsertPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema> {
12373
12389
  }
12374
12390
  }
12375
12391
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12376
- interface DidMessageEmitTargetAndPayload {
12392
+ interface UpsertPermissionContractEmitTargetAndPayload {
12377
12393
  /** Source. */
12378
12394
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12379
- 'target'?: SpruceSchemas.Spruce.v2020_07_22.MessageTarget | undefined | null;
12380
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayload;
12395
+ 'target': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTarget;
12396
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayload;
12381
12397
  }
12382
- interface DidMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12383
- id: 'didMessageEmitTargetAndPayload';
12398
+ interface UpsertPermissionContractEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12399
+ id: 'upsertPermissionContractEmitTargetAndPayload';
12384
12400
  version: 'v2020_12_25';
12385
12401
  namespace: 'Mercury';
12386
12402
  name: '';
@@ -12396,8 +12412,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12396
12412
  /** . */
12397
12413
  'target': {
12398
12414
  type: 'schema';
12415
+ isRequired: true;
12399
12416
  options: {
12400
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
12417
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema;
12401
12418
  };
12402
12419
  };
12403
12420
  /** . */
@@ -12405,64 +12422,73 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12405
12422
  type: 'schema';
12406
12423
  isRequired: true;
12407
12424
  options: {
12408
- schema: SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema;
12425
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema;
12409
12426
  };
12410
12427
  };
12411
12428
  };
12412
12429
  }
12413
- interface DidMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema> {
12430
+ interface UpsertPermissionContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetAndPayloadSchema> {
12414
12431
  }
12415
12432
  }
12416
12433
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12417
- interface DidSignupEmitTargetAndPayload {
12418
- /** Source. */
12419
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12420
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
12421
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayload;
12434
+ interface UpsertPermissionContractResponsePayload {
12435
+ 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
12422
12436
  }
12423
- interface DidSignupEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12424
- id: 'didSignupEmitTargetAndPayload';
12437
+ interface UpsertPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
12438
+ id: 'upsertPermissionContractResponsePayload';
12425
12439
  version: 'v2020_12_25';
12426
12440
  namespace: 'Mercury';
12427
12441
  name: '';
12428
12442
  fields: {
12429
- /** Source. */
12430
- 'source': {
12431
- label: 'Source';
12443
+ /** . */
12444
+ 'permissionContract': {
12432
12445
  type: 'schema';
12446
+ isRequired: true;
12433
12447
  options: {
12434
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12448
+ schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
12435
12449
  };
12436
12450
  };
12451
+ };
12452
+ }
12453
+ interface UpsertPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractResponsePayloadSchema> {
12454
+ }
12455
+ }
12456
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12457
+ interface VoteForFeatureEmitPayload {
12458
+ 'featureKey': string;
12459
+ 'skillNamespace': string;
12460
+ }
12461
+ interface VoteForFeatureEmitPayloadSchema extends SpruceSchema.Schema {
12462
+ id: 'voteForFeatureEmitPayload';
12463
+ version: 'v2020_12_25';
12464
+ namespace: 'Mercury';
12465
+ name: '';
12466
+ fields: {
12437
12467
  /** . */
12438
- 'target': {
12439
- type: 'schema';
12440
- options: {
12441
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
12442
- };
12468
+ 'featureKey': {
12469
+ type: 'id';
12470
+ isRequired: true;
12471
+ options: undefined;
12443
12472
  };
12444
12473
  /** . */
12445
- 'payload': {
12446
- type: 'schema';
12474
+ 'skillNamespace': {
12475
+ type: 'id';
12447
12476
  isRequired: true;
12448
- options: {
12449
- schema: SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema;
12450
- };
12477
+ options: undefined;
12451
12478
  };
12452
12479
  };
12453
12480
  }
12454
- interface DidSignupEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema> {
12481
+ interface VoteForFeatureEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema> {
12455
12482
  }
12456
12483
  }
12457
12484
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12458
- interface DidUpdateFeedEmitTargetAndPayload {
12485
+ interface VoteForFeatureEmitTargetAndPayload {
12459
12486
  /** Source. */
12460
12487
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12461
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
12462
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayload;
12488
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayload;
12463
12489
  }
12464
- interface DidUpdateFeedEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12465
- id: 'didUpdateFeedEmitTargetAndPayload';
12490
+ interface VoteForFeatureEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12491
+ id: 'voteForFeatureEmitTargetAndPayload';
12466
12492
  version: 'v2020_12_25';
12467
12493
  namespace: 'Mercury';
12468
12494
  name: '';
@@ -12476,57 +12502,46 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12476
12502
  };
12477
12503
  };
12478
12504
  /** . */
12479
- 'target': {
12480
- type: 'schema';
12481
- options: {
12482
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
12483
- };
12484
- };
12485
- /** . */
12486
12505
  'payload': {
12487
12506
  type: 'schema';
12488
12507
  isRequired: true;
12489
12508
  options: {
12490
- schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema;
12509
+ schema: SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema;
12491
12510
  };
12492
12511
  };
12493
12512
  };
12494
12513
  }
12495
- interface DidUpdateFeedEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetAndPayloadSchema> {
12514
+ interface VoteForFeatureEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitTargetAndPayloadSchema> {
12496
12515
  }
12497
12516
  }
12498
12517
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12499
- interface DidUpdatePersonEmitPayload {
12500
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12518
+ interface VoteForFeatureResponsePayload {
12519
+ 'totalVotes': number;
12501
12520
  }
12502
- interface DidUpdatePersonEmitPayloadSchema extends SpruceSchema.Schema {
12503
- id: 'didUpdatePersonEmitPayload';
12521
+ interface VoteForFeatureResponsePayloadSchema extends SpruceSchema.Schema {
12522
+ id: 'voteForFeatureResponsePayload';
12504
12523
  version: 'v2020_12_25';
12505
12524
  namespace: 'Mercury';
12506
12525
  name: '';
12507
12526
  fields: {
12508
12527
  /** . */
12509
- 'person': {
12510
- type: 'schema';
12528
+ 'totalVotes': {
12529
+ type: 'number';
12511
12530
  isRequired: true;
12512
- options: {
12513
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12514
- };
12531
+ options: undefined;
12515
12532
  };
12516
12533
  };
12517
12534
  }
12518
- interface DidUpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema> {
12535
+ interface VoteForFeatureResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureResponsePayloadSchema> {
12519
12536
  }
12520
12537
  }
12521
12538
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12522
- interface DidUpdatePersonEmitTargetAndPayload {
12539
+ interface WhoamiEmitTargetAndPayload {
12523
12540
  /** Source. */
12524
12541
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12525
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
12526
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayload;
12527
12542
  }
12528
- interface DidUpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12529
- id: 'didUpdatePersonEmitTargetAndPayload';
12543
+ interface WhoamiEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12544
+ id: 'whoamiEmitTargetAndPayload';
12530
12545
  version: 'v2020_12_25';
12531
12546
  namespace: 'Mercury';
12532
12547
  name: '';
@@ -12539,24 +12554,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12539
12554
  schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12540
12555
  };
12541
12556
  };
12542
- /** . */
12543
- 'target': {
12544
- type: 'schema';
12545
- options: {
12546
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
12547
- };
12548
- };
12549
- /** . */
12550
- 'payload': {
12551
- type: 'schema';
12552
- isRequired: true;
12553
- options: {
12554
- schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema;
12555
- };
12556
- };
12557
12557
  };
12558
12558
  }
12559
- interface DidUpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema> {
12559
+ interface WhoamiEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.WhoamiEmitTargetAndPayloadSchema> {
12560
12560
  }
12561
12561
  }
12562
12562
  }