@sprucelabs/mercury-core-events 15.0.79 → 15.0.81

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,41 @@ 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 ListOrganizationsEmitTargetAndPayload {
8
+ interface DidInstallEmitTarget {
9
+ 'organizationId': string;
10
+ 'skillId': string;
11
+ }
12
+ interface DidInstallEmitTargetSchema extends SpruceSchema.Schema {
13
+ id: 'didInstallEmitTarget';
14
+ version: 'v2020_12_25';
15
+ namespace: 'Mercury';
16
+ name: '';
17
+ fields: {
18
+ /** . */
19
+ 'organizationId': {
20
+ type: 'id';
21
+ isRequired: true;
22
+ options: undefined;
23
+ };
24
+ /** . */
25
+ 'skillId': {
26
+ type: 'id';
27
+ isRequired: true;
28
+ options: undefined;
29
+ };
30
+ };
31
+ }
32
+ interface DidInstallEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema> {
33
+ }
34
+ }
35
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
36
+ interface DidInstallEmitTargetAndPayload {
9
37
  /** Source. */
10
38
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitTarget | undefined | null;
12
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayload | undefined | null;
39
+ 'target': SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTarget;
13
40
  }
14
- interface ListOrganizationsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
15
- id: 'listOrganizationsEmitTargetAndPayload';
41
+ interface DidInstallEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
42
+ id: 'didInstallEmitTargetAndPayload';
16
43
  version: 'v2020_12_25';
17
44
  namespace: 'Mercury';
18
45
  name: '';
@@ -28,29 +55,36 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
28
55
  /** . */
29
56
  'target': {
30
57
  type: 'schema';
58
+ isRequired: true;
31
59
  options: {
32
- schema: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitTargetSchema;
33
- };
34
- };
35
- /** . */
36
- 'payload': {
37
- type: 'schema';
38
- options: {
39
- schema: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayloadSchema;
60
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema;
40
61
  };
41
62
  };
42
63
  };
43
64
  }
44
- interface ListOrganizationsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListOrganizationsEmitTargetAndPayloadSchema> {
65
+ interface DidInstallEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetAndPayloadSchema> {
45
66
  }
46
67
  }
47
68
  namespace SpruceSchemas.Mercury.v2020_12_25 {
48
- interface AddRoleEmitTarget {
49
- 'organizationId'?: string | undefined | null;
69
+ interface DidInstallResponsePayload {
70
+ }
71
+ interface DidInstallResponsePayloadSchema extends SpruceSchema.Schema {
72
+ id: 'didInstallResponsePayload';
73
+ version: 'v2020_12_25';
74
+ namespace: 'Mercury';
75
+ name: '';
76
+ fields: {};
77
+ }
78
+ interface DidInstallResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallResponsePayloadSchema> {
79
+ }
80
+ }
81
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
82
+ interface DidJoinOrganizationEmitTarget {
83
+ 'organizationId': string;
50
84
  'locationId'?: string | undefined | null;
51
85
  }
52
- interface AddRoleEmitTargetSchema extends SpruceSchema.Schema {
53
- id: 'addRoleEmitTarget';
86
+ interface DidJoinOrganizationEmitTargetSchema extends SpruceSchema.Schema {
87
+ id: 'didJoinOrganizationEmitTarget';
54
88
  version: 'v2020_12_25';
55
89
  namespace: 'Mercury';
56
90
  name: '';
@@ -58,6 +92,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
58
92
  /** . */
59
93
  'organizationId': {
60
94
  type: 'id';
95
+ isRequired: true;
61
96
  options: undefined;
62
97
  };
63
98
  /** . */
@@ -67,16 +102,17 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
67
102
  };
68
103
  };
69
104
  }
70
- interface AddRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema> {
105
+ interface DidJoinOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema> {
71
106
  }
72
107
  }
73
108
  namespace SpruceSchemas.Mercury.v2020_12_25 {
74
- interface AddRoleEmitPayload {
109
+ interface DidJoinOrganizationEmitPayload {
75
110
  'personId': string;
76
111
  'roleId': string;
112
+ 'isFirstRole': boolean;
77
113
  }
78
- interface AddRoleEmitPayloadSchema extends SpruceSchema.Schema {
79
- id: 'addRoleEmitPayload';
114
+ interface DidJoinOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
115
+ id: 'didJoinOrganizationEmitPayload';
80
116
  version: 'v2020_12_25';
81
117
  namespace: 'Mercury';
82
118
  name: '';
@@ -93,20 +129,26 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
93
129
  isRequired: true;
94
130
  options: undefined;
95
131
  };
132
+ /** . */
133
+ 'isFirstRole': {
134
+ type: 'boolean';
135
+ isRequired: true;
136
+ options: undefined;
137
+ };
96
138
  };
97
139
  }
98
- interface AddRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema> {
140
+ interface DidJoinOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema> {
99
141
  }
100
142
  }
101
143
  namespace SpruceSchemas.Mercury.v2020_12_25 {
102
- interface AddRoleEmitTargetAndPayload {
144
+ interface DidJoinOrganizationEmitTargetAndPayload {
103
145
  /** Source. */
104
146
  '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;
147
+ 'target': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTarget;
148
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayload;
107
149
  }
108
- interface AddRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
109
- id: 'addRoleEmitTargetAndPayload';
150
+ interface DidJoinOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
151
+ id: 'didJoinOrganizationEmitTargetAndPayload';
110
152
  version: 'v2020_12_25';
111
153
  namespace: 'Mercury';
112
154
  name: '';
@@ -122,8 +164,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
122
164
  /** . */
123
165
  'target': {
124
166
  type: 'schema';
167
+ isRequired: true;
125
168
  options: {
126
- schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema;
169
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema;
127
170
  };
128
171
  };
129
172
  /** . */
@@ -131,238 +174,235 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
131
174
  type: 'schema';
132
175
  isRequired: true;
133
176
  options: {
134
- schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema;
177
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema;
135
178
  };
136
179
  };
137
180
  };
138
181
  }
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> {
182
+ interface DidJoinOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetAndPayloadSchema> {
153
183
  }
154
184
  }
155
185
  namespace SpruceSchemas.Mercury.v2020_12_25 {
156
- interface AuthenticateEmitPayload {
157
- 'token'?: string | undefined | null;
158
- 'skillId'?: string | undefined | null;
159
- 'apiKey'?: string | undefined | null;
186
+ interface MessageTemplateAddons {
187
+ 'nextINeedYouTo'?: string[] | undefined | null;
188
+ 'youShouldKnowThat'?: string[] | undefined | null;
189
+ 'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
160
190
  }
161
- interface AuthenticateEmitPayloadSchema extends SpruceSchema.Schema {
162
- id: 'authenticateEmitPayload';
191
+ interface MessageTemplateAddonsSchema extends SpruceSchema.Schema {
192
+ id: 'messageTemplateAddons';
163
193
  version: 'v2020_12_25';
164
194
  namespace: 'Mercury';
165
195
  name: '';
166
196
  fields: {
167
197
  /** . */
168
- 'token': {
198
+ 'nextINeedYouTo': {
169
199
  type: 'text';
200
+ isArray: true;
170
201
  options: undefined;
171
202
  };
172
203
  /** . */
173
- 'skillId': {
204
+ 'youShouldKnowThat': {
174
205
  type: 'text';
206
+ isArray: true;
175
207
  options: undefined;
176
208
  };
177
209
  /** . */
178
- 'apiKey': {
179
- type: 'text';
180
- options: undefined;
210
+ 'links': {
211
+ type: 'schema';
212
+ isArray: true;
213
+ minArrayLength: 0;
214
+ options: {
215
+ schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
216
+ };
181
217
  };
182
218
  };
183
219
  }
184
- interface AuthenticateEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema> {
220
+ interface MessageTemplateAddonsEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema> {
185
221
  }
186
222
  }
187
223
  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;
224
+ interface DidJoinOrganizationResponsePayload {
225
+ 'messaging'?: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddons | undefined | null;
192
226
  }
193
- interface AuthenticateEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
194
- id: 'authenticateEmitTargetAndPayload';
227
+ interface DidJoinOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
228
+ id: 'didJoinOrganizationResponsePayload';
195
229
  version: 'v2020_12_25';
196
230
  namespace: 'Mercury';
197
231
  name: '';
198
232
  fields: {
199
- /** Source. */
200
- 'source': {
201
- label: 'Source';
202
- type: 'schema';
203
- options: {
204
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
205
- };
206
- };
207
233
  /** . */
208
- 'payload': {
234
+ 'messaging': {
209
235
  type: 'schema';
210
236
  options: {
211
- schema: SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitPayloadSchema;
237
+ schema: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema;
212
238
  };
213
239
  };
214
240
  };
215
241
  }
216
- interface AuthenticateEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateEmitTargetAndPayloadSchema> {
242
+ interface DidJoinOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationResponsePayloadSchema> {
217
243
  }
218
244
  }
219
245
  namespace SpruceSchemas.Mercury.v2020_12_25 {
220
- interface ConfirmPinRespondPayload {
221
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
222
- 'token': string;
246
+ interface DidLeaveOrganizationEmitTarget {
247
+ 'organizationId': string;
248
+ 'locationId'?: string | undefined | null;
223
249
  }
224
- interface ConfirmPinRespondPayloadSchema extends SpruceSchema.Schema {
225
- id: 'confirmPinRespondPayload';
250
+ interface DidLeaveOrganizationEmitTargetSchema extends SpruceSchema.Schema {
251
+ id: 'didLeaveOrganizationEmitTarget';
226
252
  version: 'v2020_12_25';
227
253
  namespace: 'Mercury';
228
254
  name: '';
229
255
  fields: {
230
256
  /** . */
231
- 'person': {
232
- type: 'schema';
257
+ 'organizationId': {
258
+ type: 'id';
233
259
  isRequired: true;
234
- options: {
235
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
236
- };
260
+ options: undefined;
237
261
  };
238
262
  /** . */
239
- 'token': {
240
- type: 'text';
241
- isRequired: true;
263
+ 'locationId': {
264
+ type: 'id';
242
265
  options: undefined;
243
266
  };
244
267
  };
245
268
  }
246
- interface ConfirmPinRespondPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinRespondPayloadSchema> {
269
+ interface DidLeaveOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema> {
247
270
  }
248
271
  }
249
272
  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;
273
+ interface DidLeaveOrganizationEmitPayload {
274
+ 'personId': string;
275
+ 'roleId': string;
276
+ 'isLastRole': boolean;
253
277
  }
254
- interface AuthSchemaSchema extends SpruceSchema.Schema {
255
- id: 'authSchema';
278
+ interface DidLeaveOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
279
+ id: 'didLeaveOrganizationEmitPayload';
256
280
  version: 'v2020_12_25';
257
281
  namespace: 'Mercury';
258
282
  name: '';
259
283
  fields: {
260
284
  /** . */
261
- 'person': {
262
- type: 'schema';
263
- options: {
264
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
265
- };
285
+ 'personId': {
286
+ type: 'id';
287
+ isRequired: true;
288
+ options: undefined;
266
289
  };
267
290
  /** . */
268
- 'skill': {
269
- type: 'schema';
270
- options: {
271
- schema: SpruceSchemas.Spruce.v2020_07_22.SkillSchema;
272
- };
291
+ 'roleId': {
292
+ type: 'id';
293
+ isRequired: true;
294
+ options: undefined;
295
+ };
296
+ /** . */
297
+ 'isLastRole': {
298
+ type: 'boolean';
299
+ isRequired: true;
300
+ options: undefined;
273
301
  };
274
302
  };
275
303
  }
276
- interface AuthSchemaEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema> {
304
+ interface DidLeaveOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema> {
277
305
  }
278
306
  }
279
307
  namespace SpruceSchemas.Mercury.v2020_12_25 {
280
- interface AuthenticateResponsePayload {
281
- 'type': ("authenticated" | "anonymous");
282
- 'auth': SpruceSchemas.Mercury.v2020_12_25.AuthSchema;
308
+ interface DidLeaveOrganizationEmitTargetAndPayload {
309
+ /** Source. */
310
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
311
+ 'target': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTarget;
312
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayload;
283
313
  }
284
- interface AuthenticateResponsePayloadSchema extends SpruceSchema.Schema {
285
- id: 'authenticateResponsePayload';
314
+ interface DidLeaveOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
315
+ id: 'didLeaveOrganizationEmitTargetAndPayload';
286
316
  version: 'v2020_12_25';
287
317
  namespace: 'Mercury';
288
318
  name: '';
289
319
  fields: {
290
- /** . */
291
- 'type': {
292
- type: 'select';
293
- isRequired: true;
320
+ /** Source. */
321
+ 'source': {
322
+ label: 'Source';
323
+ type: 'schema';
294
324
  options: {
295
- choices: [{
296
- "value": "authenticated";
297
- "label": "Authenticated";
298
- }, {
299
- "value": "anonymous";
300
- "label": "Anonymous";
301
- }];
325
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
302
326
  };
303
327
  };
304
328
  /** . */
305
- 'auth': {
329
+ 'target': {
306
330
  type: 'schema';
307
331
  isRequired: true;
308
332
  options: {
309
- schema: SpruceSchemas.Mercury.v2020_12_25.AuthSchemaSchema;
333
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema;
334
+ };
335
+ };
336
+ /** . */
337
+ 'payload': {
338
+ type: 'schema';
339
+ isRequired: true;
340
+ options: {
341
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema;
310
342
  };
311
343
  };
312
344
  };
313
345
  }
314
- interface AuthenticateResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AuthenticateResponsePayloadSchema> {
346
+ interface DidLeaveOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetAndPayloadSchema> {
315
347
  }
316
348
  }
317
349
  namespace SpruceSchemas.Mercury.v2020_12_25 {
318
- interface CanListenEmitPayload {
319
- 'authorizerStatuses'?: ("clockedIn" | "clockedOut" | "onPrem" | "offPrem") | undefined | null;
320
- 'fullyQualifiedEventName': string;
350
+ interface DidLeaveOrganizationResponsePayload {
321
351
  }
322
- interface CanListenEmitPayloadSchema extends SpruceSchema.Schema {
323
- id: 'canListenEmitPayload';
352
+ interface DidLeaveOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
353
+ id: 'didLeaveOrganizationResponsePayload';
354
+ version: 'v2020_12_25';
355
+ namespace: 'Mercury';
356
+ name: '';
357
+ fields: {};
358
+ }
359
+ interface DidLeaveOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationResponsePayloadSchema> {
360
+ }
361
+ }
362
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
363
+ interface DidMessageEmitPayload {
364
+ 'message': SpruceSchemas.Spruce.v2020_07_22.Message;
365
+ 'conversationState'?: string | undefined | null;
366
+ 'topic'?: string | undefined | null;
367
+ }
368
+ interface DidMessageEmitPayloadSchema extends SpruceSchema.Schema {
369
+ id: 'didMessageEmitPayload';
324
370
  version: 'v2020_12_25';
325
371
  namespace: 'Mercury';
326
372
  name: '';
327
373
  fields: {
328
374
  /** . */
329
- 'authorizerStatuses': {
330
- type: 'select';
375
+ 'message': {
376
+ type: 'schema';
377
+ isRequired: true;
331
378
  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
- }];
379
+ schema: SpruceSchemas.Spruce.v2020_07_22.MessageSchema;
345
380
  };
346
381
  };
347
382
  /** . */
348
- 'fullyQualifiedEventName': {
383
+ 'conversationState': {
384
+ type: 'text';
385
+ options: undefined;
386
+ };
387
+ /** . */
388
+ 'topic': {
349
389
  type: 'text';
350
- isRequired: true;
351
390
  options: undefined;
352
391
  };
353
392
  };
354
393
  }
355
- interface CanListenEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema> {
394
+ interface DidMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema> {
356
395
  }
357
396
  }
358
397
  namespace SpruceSchemas.Mercury.v2020_12_25 {
359
- interface CanListenEmitTargetAndPayload {
398
+ interface DidMessageEmitTargetAndPayload {
360
399
  /** Source. */
361
400
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
362
- 'payload': SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayload;
401
+ 'target'?: SpruceSchemas.Spruce.v2020_07_22.MessageTarget | undefined | null;
402
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayload;
363
403
  }
364
- interface CanListenEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
365
- id: 'canListenEmitTargetAndPayload';
404
+ interface DidMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
405
+ id: 'didMessageEmitTargetAndPayload';
366
406
  version: 'v2020_12_25';
367
407
  namespace: 'Mercury';
368
408
  name: '';
@@ -376,74 +416,155 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
376
416
  };
377
417
  };
378
418
  /** . */
419
+ 'target': {
420
+ type: 'schema';
421
+ options: {
422
+ schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
423
+ };
424
+ };
425
+ /** . */
379
426
  'payload': {
380
427
  type: 'schema';
381
428
  isRequired: true;
382
429
  options: {
383
- schema: SpruceSchemas.Mercury.v2020_12_25.CanListenEmitPayloadSchema;
430
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema;
384
431
  };
385
432
  };
386
433
  };
387
434
  }
388
- interface CanListenEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenEmitTargetAndPayloadSchema> {
435
+ interface DidMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema> {
389
436
  }
390
437
  }
391
438
  namespace SpruceSchemas.Mercury.v2020_12_25 {
392
- interface CanListenResponsePayload {
393
- 'can'?: boolean | undefined | null;
439
+ interface ConversationTopic {
440
+ 'key': string;
441
+ 'confidence': number;
442
+ 'label': string;
394
443
  }
395
- interface CanListenResponsePayloadSchema extends SpruceSchema.Schema {
396
- id: 'canListenResponsePayload';
444
+ interface ConversationTopicSchema extends SpruceSchema.Schema {
445
+ id: 'conversationTopic';
397
446
  version: 'v2020_12_25';
398
447
  namespace: 'Mercury';
399
448
  name: '';
400
449
  fields: {
401
450
  /** . */
402
- 'can': {
403
- type: 'boolean';
451
+ 'key': {
452
+ type: 'text';
453
+ isRequired: true;
454
+ options: undefined;
455
+ };
456
+ /** . */
457
+ 'confidence': {
458
+ type: 'number';
459
+ isRequired: true;
460
+ options: undefined;
461
+ };
462
+ /** . */
463
+ 'label': {
464
+ type: 'text';
465
+ isRequired: true;
404
466
  options: undefined;
405
467
  };
406
468
  };
407
469
  }
408
- interface CanListenResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CanListenResponsePayloadSchema> {
470
+ interface ConversationTopicEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema> {
409
471
  }
410
472
  }
411
473
  namespace SpruceSchemas.Mercury.v2020_12_25 {
412
- interface ConfirmPinEmitPayload {
413
- 'challenge': string;
414
- 'pin': string;
474
+ interface DidMessageResponsePayload {
475
+ 'transitionConversationTo'?: ("greeting" | "discovery" | "topic" | "closing") | undefined | null;
476
+ 'repairs'?: string[] | undefined | null;
477
+ 'topicChangers'?: string[] | undefined | null;
478
+ 'utterance'?: string | undefined | null;
479
+ 'suggestedTopics'?: SpruceSchemas.Mercury.v2020_12_25.ConversationTopic[] | undefined | null;
415
480
  }
416
- interface ConfirmPinEmitPayloadSchema extends SpruceSchema.Schema {
417
- id: 'confirmPinEmitPayload';
481
+ interface DidMessageResponsePayloadSchema extends SpruceSchema.Schema {
482
+ id: 'didMessageResponsePayload';
418
483
  version: 'v2020_12_25';
419
484
  namespace: 'Mercury';
420
485
  name: '';
421
486
  fields: {
422
487
  /** . */
423
- 'challenge': {
488
+ 'transitionConversationTo': {
489
+ type: 'select';
490
+ options: {
491
+ choices: [{
492
+ "label": "Greeting";
493
+ "value": "greeting";
494
+ }, {
495
+ "label": "Discovery";
496
+ "value": "discovery";
497
+ }, {
498
+ "label": "Topic";
499
+ "value": "topic";
500
+ }, {
501
+ "label": "Closing";
502
+ "value": "closing";
503
+ }];
504
+ };
505
+ };
506
+ /** . */
507
+ 'repairs': {
424
508
  type: 'text';
425
- isRequired: true;
509
+ isArray: true;
426
510
  options: undefined;
427
511
  };
428
512
  /** . */
429
- 'pin': {
513
+ 'topicChangers': {
514
+ type: 'text';
515
+ isArray: true;
516
+ options: undefined;
517
+ };
518
+ /** . */
519
+ 'utterance': {
430
520
  type: 'text';
431
- isRequired: true;
432
521
  options: undefined;
433
522
  };
523
+ /** . */
524
+ 'suggestedTopics': {
525
+ type: 'schema';
526
+ isArray: true;
527
+ options: {
528
+ schema: SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema;
529
+ };
530
+ };
434
531
  };
435
532
  }
436
- interface ConfirmPinEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema> {
533
+ interface DidMessageResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageResponsePayloadSchema> {
437
534
  }
438
535
  }
439
536
  namespace SpruceSchemas.Mercury.v2020_12_25 {
440
- interface ConfirmPinEmitTargetAndPayload {
537
+ interface DidSignupEmitPayload {
538
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
539
+ }
540
+ interface DidSignupEmitPayloadSchema extends SpruceSchema.Schema {
541
+ id: 'didSignupEmitPayload';
542
+ version: 'v2020_12_25';
543
+ namespace: 'Mercury';
544
+ name: '';
545
+ fields: {
546
+ /** . */
547
+ 'person': {
548
+ type: 'schema';
549
+ isRequired: true;
550
+ options: {
551
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
552
+ };
553
+ };
554
+ };
555
+ }
556
+ interface DidSignupEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema> {
557
+ }
558
+ }
559
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
560
+ interface DidSignupEmitTargetAndPayload {
441
561
  /** Source. */
442
562
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
443
- 'payload': SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayload;
563
+ 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
564
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayload;
444
565
  }
445
- interface ConfirmPinEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
446
- id: 'confirmPinEmitTargetAndPayload';
566
+ interface DidSignupEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
567
+ id: 'didSignupEmitTargetAndPayload';
447
568
  version: 'v2020_12_25';
448
569
  namespace: 'Mercury';
449
570
  name: '';
@@ -457,251 +578,811 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
457
578
  };
458
579
  };
459
580
  /** . */
581
+ 'target': {
582
+ type: 'schema';
583
+ options: {
584
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
585
+ };
586
+ };
587
+ /** . */
460
588
  'payload': {
461
589
  type: 'schema';
462
590
  isRequired: true;
463
591
  options: {
464
- schema: SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitPayloadSchema;
592
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema;
465
593
  };
466
594
  };
467
595
  };
468
596
  }
469
- interface ConfirmPinEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConfirmPinEmitTargetAndPayloadSchema> {
597
+ interface DidSignupEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema> {
470
598
  }
471
599
  }
472
600
  namespace SpruceSchemas.Mercury.v2020_12_25 {
473
- interface CreateLocationEmitTarget {
474
- 'organizationId': string;
601
+ interface DidUpdateFeedEmitPayload {
602
+ 'item': SpruceSchemas.Spruce.v2020_07_22.FeedItem;
475
603
  }
476
- interface CreateLocationEmitTargetSchema extends SpruceSchema.Schema {
477
- id: 'createLocationEmitTarget';
604
+ interface DidUpdateFeedEmitPayloadSchema extends SpruceSchema.Schema {
605
+ id: 'didUpdateFeedEmitPayload';
478
606
  version: 'v2020_12_25';
479
607
  namespace: 'Mercury';
480
608
  name: '';
481
609
  fields: {
482
610
  /** . */
483
- 'organizationId': {
484
- type: 'id';
611
+ 'item': {
612
+ type: 'schema';
485
613
  isRequired: true;
486
- options: undefined;
614
+ options: {
615
+ schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
616
+ };
487
617
  };
488
618
  };
489
619
  }
490
- interface CreateLocationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.CreateLocationEmitTargetSchema> {
620
+ interface DidUpdateFeedEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema> {
491
621
  }
492
622
  }
493
623
  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;
509
- }
510
- interface CreateLocationEmitPayloadSchema extends SpruceSchema.Schema {
511
- id: 'createLocationEmitPayload';
624
+ interface DidUpdateFeedEmitTargetAndPayload {
625
+ /** Source. */
626
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
627
+ 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
628
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayload;
629
+ }
630
+ interface DidUpdateFeedEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
631
+ id: 'didUpdateFeedEmitTargetAndPayload';
512
632
  version: 'v2020_12_25';
513
633
  namespace: 'Mercury';
514
634
  name: '';
515
635
  fields: {
516
- /** Name. */
517
- 'name': {
518
- label: 'Name';
519
- type: 'text';
636
+ /** Source. */
637
+ 'source': {
638
+ label: 'Source';
639
+ type: 'schema';
640
+ options: {
641
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
642
+ };
643
+ };
644
+ /** . */
645
+ 'target': {
646
+ type: 'schema';
647
+ options: {
648
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
649
+ };
650
+ };
651
+ /** . */
652
+ 'payload': {
653
+ type: 'schema';
654
+ isRequired: true;
655
+ options: {
656
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema;
657
+ };
658
+ };
659
+ };
660
+ }
661
+ interface DidUpdateFeedEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetAndPayloadSchema> {
662
+ }
663
+ }
664
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
665
+ interface DidUpdatePersonEmitPayload {
666
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
667
+ }
668
+ interface DidUpdatePersonEmitPayloadSchema extends SpruceSchema.Schema {
669
+ id: 'didUpdatePersonEmitPayload';
670
+ version: 'v2020_12_25';
671
+ namespace: 'Mercury';
672
+ name: '';
673
+ fields: {
674
+ /** . */
675
+ 'person': {
676
+ type: 'schema';
677
+ isRequired: true;
678
+ options: {
679
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
680
+ };
681
+ };
682
+ };
683
+ }
684
+ interface DidUpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema> {
685
+ }
686
+ }
687
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
688
+ interface DidUpdatePersonEmitTargetAndPayload {
689
+ /** Source. */
690
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
691
+ 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
692
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayload;
693
+ }
694
+ interface DidUpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
695
+ id: 'didUpdatePersonEmitTargetAndPayload';
696
+ version: 'v2020_12_25';
697
+ namespace: 'Mercury';
698
+ name: '';
699
+ fields: {
700
+ /** Source. */
701
+ 'source': {
702
+ label: 'Source';
703
+ type: 'schema';
704
+ options: {
705
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
706
+ };
707
+ };
708
+ /** . */
709
+ 'target': {
710
+ type: 'schema';
711
+ options: {
712
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
713
+ };
714
+ };
715
+ /** . */
716
+ 'payload': {
717
+ type: 'schema';
520
718
  isRequired: true;
719
+ options: {
720
+ schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema;
721
+ };
722
+ };
723
+ };
724
+ }
725
+ interface DidUpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema> {
726
+ }
727
+ }
728
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
729
+ interface AddRoleEmitTarget {
730
+ 'organizationId'?: string | undefined | null;
731
+ 'locationId'?: string | undefined | null;
732
+ }
733
+ interface AddRoleEmitTargetSchema extends SpruceSchema.Schema {
734
+ id: 'addRoleEmitTarget';
735
+ version: 'v2020_12_25';
736
+ namespace: 'Mercury';
737
+ name: '';
738
+ fields: {
739
+ /** . */
740
+ 'organizationId': {
741
+ type: 'id';
521
742
  options: undefined;
522
743
  };
523
- /** Store number. You can use other symbols, like # or dashes. #123 or 32-US-5 */
524
- 'num': {
525
- label: 'Store number';
526
- type: 'text';
527
- hint: 'You can use other symbols, like # or dashes. #123 or 32-US-5';
744
+ /** . */
745
+ 'locationId': {
746
+ type: 'id';
528
747
  options: undefined;
529
748
  };
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;
749
+ };
750
+ }
751
+ interface AddRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema> {
752
+ }
753
+ }
754
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
755
+ interface AddRoleEmitPayload {
756
+ 'personId': string;
757
+ 'roleId': string;
758
+ }
759
+ interface AddRoleEmitPayloadSchema extends SpruceSchema.Schema {
760
+ id: 'addRoleEmitPayload';
761
+ version: 'v2020_12_25';
762
+ namespace: 'Mercury';
763
+ name: '';
764
+ fields: {
765
+ /** . */
766
+ 'personId': {
767
+ type: 'id';
768
+ isRequired: true;
536
769
  options: undefined;
537
770
  };
538
- /** Main Phone. */
539
- 'phone': {
540
- label: 'Main Phone';
541
- type: 'phone';
771
+ /** . */
772
+ 'roleId': {
773
+ type: 'id';
774
+ isRequired: true;
542
775
  options: undefined;
543
776
  };
544
- /** Timezone. */
545
- 'timezone': {
546
- label: 'Timezone';
547
- type: 'select';
777
+ };
778
+ }
779
+ interface AddRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema> {
780
+ }
781
+ }
782
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
783
+ interface AddRoleEmitTargetAndPayload {
784
+ /** Source. */
785
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
786
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTarget | undefined | null;
787
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayload;
788
+ }
789
+ interface AddRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
790
+ id: 'addRoleEmitTargetAndPayload';
791
+ version: 'v2020_12_25';
792
+ namespace: 'Mercury';
793
+ name: '';
794
+ fields: {
795
+ /** Source. */
796
+ 'source': {
797
+ label: 'Source';
798
+ type: 'schema';
548
799
  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";
800
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
801
+ };
802
+ };
803
+ /** . */
804
+ 'target': {
805
+ type: 'schema';
806
+ options: {
807
+ schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetSchema;
808
+ };
809
+ };
810
+ /** . */
811
+ 'payload': {
812
+ type: 'schema';
813
+ isRequired: true;
814
+ options: {
815
+ schema: SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitPayloadSchema;
816
+ };
817
+ };
818
+ };
819
+ }
820
+ interface AddRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.AddRoleEmitTargetAndPayloadSchema> {
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': {
850
+ type: 'text';
851
+ options: undefined;
852
+ };
853
+ /** . */
854
+ 'skillId': {
855
+ type: 'text';
856
+ options: undefined;
857
+ };
858
+ /** . */
859
+ 'apiKey': {
860
+ type: 'text';
861
+ options: undefined;
862
+ };
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";
681
949
  }, {
682
- "value": "America/Rio_Branco";
683
- "label": "Acre Standard Time - Rio Branco";
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";
684
986
  }, {
685
- "value": "America/Bahia_Banderas";
686
- "label": "Central Time - Bahia Banderas";
987
+ "label": "Clocked out";
988
+ "value": "clockedOut";
687
989
  }, {
688
- "value": "America/North_Dakota/Beulah";
689
- "label": "Central Time - Beulah, North Dakota";
990
+ "label": "On premises";
991
+ "value": "onPrem";
690
992
  }, {
691
- "value": "America/North_Dakota/Center";
692
- "label": "Central Time - Center, North Dakota";
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";
693
1233
  }, {
694
- "value": "America/Chicago";
695
- "label": "Central Time - Chicago";
1234
+ "value": "Pacific/Pago_Pago";
1235
+ "label": "Samoa Standard Time";
696
1236
  }, {
697
- "value": "America/Indiana/Knox";
698
- "label": "Central Time - Knox, Indiana";
1237
+ "value": "Pacific/Rarotonga";
1238
+ "label": "Cook Islands Standard Time";
699
1239
  }, {
700
- "value": "America/Matamoros";
701
- "label": "Central Time - Matamoros";
1240
+ "value": "Pacific/Honolulu";
1241
+ "label": "Hawaii-Aleutian Standard Time";
702
1242
  }, {
703
- "value": "America/Menominee";
704
- "label": "Central Time - Menominee";
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";
705
1386
  }, {
706
1387
  "value": "America/Merida";
707
1388
  "label": "Central Time - Merida";
@@ -3636,6 +4317,35 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3636
4317
  interface GetEventContractsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetEventContractsEmitTargetAndPayloadSchema> {
3637
4318
  }
3638
4319
  }
4320
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
4321
+ interface GetPermissionContractResponsePayload {
4322
+ 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
4323
+ 'skillId'?: string | undefined | null;
4324
+ }
4325
+ interface GetPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
4326
+ id: 'getPermissionContractResponsePayload';
4327
+ version: 'v2020_12_25';
4328
+ namespace: 'Mercury';
4329
+ name: '';
4330
+ fields: {
4331
+ /** . */
4332
+ 'permissionContract': {
4333
+ type: 'schema';
4334
+ isRequired: true;
4335
+ options: {
4336
+ schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
4337
+ };
4338
+ };
4339
+ /** . */
4340
+ 'skillId': {
4341
+ type: 'id';
4342
+ options: undefined;
4343
+ };
4344
+ };
4345
+ }
4346
+ interface GetPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetPermissionContractResponsePayloadSchema> {
4347
+ }
4348
+ }
3639
4349
  namespace SpruceSchemas.Mercury.v2020_12_25 {
3640
4350
  interface GetEventContractsResponsePayload {
3641
4351
  'contracts': SpruceSchemas.Mercury.v2020_12_25.EventContract[];
@@ -4069,35 +4779,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4069
4779
  interface GetPermissionContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetPermissionContractEmitTargetAndPayloadSchema> {
4070
4780
  }
4071
4781
  }
4072
- namespace SpruceSchemas.Mercury.v2020_12_25 {
4073
- interface GetPermissionContractResponsePayload {
4074
- 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
4075
- 'skillId'?: string | undefined | null;
4076
- }
4077
- interface GetPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
4078
- id: 'getPermissionContractResponsePayload';
4079
- version: 'v2020_12_25';
4080
- namespace: 'Mercury';
4081
- name: '';
4082
- fields: {
4083
- /** . */
4084
- 'permissionContract': {
4085
- type: 'schema';
4086
- isRequired: true;
4087
- options: {
4088
- schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
4089
- };
4090
- };
4091
- /** . */
4092
- 'skillId': {
4093
- type: 'id';
4094
- options: undefined;
4095
- };
4096
- };
4097
- }
4098
- interface GetPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetPermissionContractResponsePayloadSchema> {
4099
- }
4100
- }
4101
4782
  namespace SpruceSchemas.Mercury.v2020_12_25 {
4102
4783
  interface GetPersonEmitTarget {
4103
4784
  'personId'?: string | undefined | null;
@@ -4295,29 +4976,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4295
4976
  interface GetResolvedPermissionsContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetResolvedPermissionsContractEmitTargetAndPayloadSchema> {
4296
4977
  }
4297
4978
  }
4298
- namespace SpruceSchemas.Mercury.v2020_12_25 {
4299
- interface GetResolvedPermissionsContractRespondPayload {
4300
- 'resolvedContract': SpruceSchemas.Mercury.v2020_12_25.ResolvedContract;
4301
- }
4302
- interface GetResolvedPermissionsContractRespondPayloadSchema extends SpruceSchema.Schema {
4303
- id: 'getResolvedPermissionsContractRespondPayload';
4304
- version: 'v2020_12_25';
4305
- namespace: 'Mercury';
4306
- name: '';
4307
- fields: {
4308
- /** . */
4309
- 'resolvedContract': {
4310
- type: 'schema';
4311
- isRequired: true;
4312
- options: {
4313
- schema: SpruceSchemas.Mercury.v2020_12_25.ResolvedContractSchema;
4314
- };
4315
- };
4316
- };
4317
- }
4318
- interface GetResolvedPermissionsContractRespondPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetResolvedPermissionsContractRespondPayloadSchema> {
4319
- }
4320
- }
4321
4979
  namespace SpruceSchemas.Mercury.v2020_12_25 {
4322
4980
  interface ResolvedContractPermission {
4323
4981
  'id': string;
@@ -4378,6 +5036,29 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4378
5036
  interface ResolvedContractEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ResolvedContractSchema> {
4379
5037
  }
4380
5038
  }
5039
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
5040
+ interface GetResolvedPermissionsContractRespondPayload {
5041
+ 'resolvedContract': SpruceSchemas.Mercury.v2020_12_25.ResolvedContract;
5042
+ }
5043
+ interface GetResolvedPermissionsContractRespondPayloadSchema extends SpruceSchema.Schema {
5044
+ id: 'getResolvedPermissionsContractRespondPayload';
5045
+ version: 'v2020_12_25';
5046
+ namespace: 'Mercury';
5047
+ name: '';
5048
+ fields: {
5049
+ /** . */
5050
+ 'resolvedContract': {
5051
+ type: 'schema';
5052
+ isRequired: true;
5053
+ options: {
5054
+ schema: SpruceSchemas.Mercury.v2020_12_25.ResolvedContractSchema;
5055
+ };
5056
+ };
5057
+ };
5058
+ }
5059
+ interface GetResolvedPermissionsContractRespondPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.GetResolvedPermissionsContractRespondPayloadSchema> {
5060
+ }
5061
+ }
4381
5062
  namespace SpruceSchemas.Mercury.v2020_12_25 {
4382
5063
  interface GetRoleEmitTarget {
4383
5064
  'roleId': string;
@@ -5040,58 +5721,58 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5040
5721
  }
5041
5722
  }
5042
5723
  namespace SpruceSchemas.Mercury.v2020_12_25 {
5043
- interface ListLocationsEmitTarget {
5044
- 'organizationId'?: string | undefined | null;
5045
- 'locationIds'?: string[] | undefined | null;
5724
+ interface ListLocationsEmitPayload {
5725
+ 'shouldOnlyShowWhereIAmEmployed'?: boolean | undefined | null;
5726
+ 'paging'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequest | undefined | null;
5046
5727
  }
5047
- interface ListLocationsEmitTargetSchema extends SpruceSchema.Schema {
5048
- id: 'listLocationsEmitTarget';
5049
- version: 'v2020_12_25';
5728
+ interface ListLocationsEmitPayloadSchema extends SpruceSchema.Schema {
5729
+ id: 'listLocationsEmitPayload';
5730
+ version: 'v2020_12_25';
5050
5731
  namespace: 'Mercury';
5051
5732
  name: '';
5052
5733
  fields: {
5053
5734
  /** . */
5054
- 'organizationId': {
5055
- type: 'id';
5735
+ 'shouldOnlyShowWhereIAmEmployed': {
5736
+ type: 'boolean';
5056
5737
  options: undefined;
5057
5738
  };
5058
5739
  /** . */
5059
- 'locationIds': {
5060
- type: 'id';
5061
- isArray: true;
5062
- options: undefined;
5740
+ 'paging': {
5741
+ type: 'schema';
5742
+ options: {
5743
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequestSchema;
5744
+ };
5063
5745
  };
5064
5746
  };
5065
5747
  }
5066
- interface ListLocationsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListLocationsEmitTargetSchema> {
5748
+ interface ListLocationsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListLocationsEmitPayloadSchema> {
5067
5749
  }
5068
5750
  }
5069
5751
  namespace SpruceSchemas.Mercury.v2020_12_25 {
5070
- interface ListLocationsEmitPayload {
5071
- 'shouldOnlyShowWhereIAmEmployed'?: boolean | undefined | null;
5072
- 'paging'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequest | undefined | null;
5752
+ interface ListLocationsEmitTarget {
5753
+ 'organizationId'?: string | undefined | null;
5754
+ 'locationIds'?: string[] | undefined | null;
5073
5755
  }
5074
- interface ListLocationsEmitPayloadSchema extends SpruceSchema.Schema {
5075
- id: 'listLocationsEmitPayload';
5756
+ interface ListLocationsEmitTargetSchema extends SpruceSchema.Schema {
5757
+ id: 'listLocationsEmitTarget';
5076
5758
  version: 'v2020_12_25';
5077
5759
  namespace: 'Mercury';
5078
5760
  name: '';
5079
5761
  fields: {
5080
5762
  /** . */
5081
- 'shouldOnlyShowWhereIAmEmployed': {
5082
- type: 'boolean';
5763
+ 'organizationId': {
5764
+ type: 'id';
5083
5765
  options: undefined;
5084
5766
  };
5085
5767
  /** . */
5086
- 'paging': {
5087
- type: 'schema';
5088
- options: {
5089
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventPagingRequestSchema;
5090
- };
5768
+ 'locationIds': {
5769
+ type: 'id';
5770
+ isArray: true;
5771
+ options: undefined;
5091
5772
  };
5092
5773
  };
5093
5774
  }
5094
- interface ListLocationsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListLocationsEmitPayloadSchema> {
5775
+ interface ListLocationsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListLocationsEmitTargetSchema> {
5095
5776
  }
5096
5777
  }
5097
5778
  namespace SpruceSchemas.Mercury.v2020_12_25 {
@@ -5221,6 +5902,46 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5221
5902
  interface ListOrgsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayloadSchema> {
5222
5903
  }
5223
5904
  }
5905
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
5906
+ interface ListOrganizationsEmitTargetAndPayload {
5907
+ /** Source. */
5908
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
5909
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitTarget | undefined | null;
5910
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayload | undefined | null;
5911
+ }
5912
+ interface ListOrganizationsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
5913
+ id: 'listOrganizationsEmitTargetAndPayload';
5914
+ version: 'v2020_12_25';
5915
+ namespace: 'Mercury';
5916
+ name: '';
5917
+ fields: {
5918
+ /** Source. */
5919
+ 'source': {
5920
+ label: 'Source';
5921
+ type: 'schema';
5922
+ options: {
5923
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
5924
+ };
5925
+ };
5926
+ /** . */
5927
+ 'target': {
5928
+ type: 'schema';
5929
+ options: {
5930
+ schema: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitTargetSchema;
5931
+ };
5932
+ };
5933
+ /** . */
5934
+ 'payload': {
5935
+ type: 'schema';
5936
+ options: {
5937
+ schema: SpruceSchemas.Mercury.v2020_12_25.ListOrgsEmitPayloadSchema;
5938
+ };
5939
+ };
5940
+ };
5941
+ }
5942
+ interface ListOrganizationsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ListOrganizationsEmitTargetAndPayloadSchema> {
5943
+ }
5944
+ }
5224
5945
  namespace SpruceSchemas.Mercury.v2020_12_25 {
5225
5946
  interface ListOrgsResponsePayload {
5226
5947
  'organizations': SpruceSchemas.Spruce.v2020_07_22.Organization[];
@@ -7826,6 +8547,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7826
8547
  interface SendMessageTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema> {
7827
8548
  }
7828
8549
  }
8550
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8551
+ interface SendMessageEmitTargetAndPayload {
8552
+ /** Source. */
8553
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
8554
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
8555
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
8556
+ }
8557
+ interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
8558
+ id: 'sendMessageEmitTargetAndPayload';
8559
+ version: 'v2020_12_25';
8560
+ namespace: 'Mercury';
8561
+ name: '';
8562
+ fields: {
8563
+ /** Source. */
8564
+ 'source': {
8565
+ label: 'Source';
8566
+ type: 'schema';
8567
+ options: {
8568
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
8569
+ };
8570
+ };
8571
+ /** . */
8572
+ 'target': {
8573
+ type: 'schema';
8574
+ options: {
8575
+ schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
8576
+ };
8577
+ };
8578
+ /** . */
8579
+ 'payload': {
8580
+ type: 'schema';
8581
+ isRequired: true;
8582
+ options: {
8583
+ schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
8584
+ };
8585
+ };
8586
+ };
8587
+ }
8588
+ interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
8589
+ }
8590
+ }
7829
8591
  namespace SpruceSchemas.Mercury.v2020_12_25 {
7830
8592
  interface SendMessageMessagePayload {
7831
8593
  'classification': ("auth" | "transactional" | "promotional" | "incoming");
@@ -7925,47 +8687,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7925
8687
  interface SendMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema> {
7926
8688
  }
7927
8689
  }
7928
- namespace SpruceSchemas.Mercury.v2020_12_25 {
7929
- interface SendMessageEmitTargetAndPayload {
7930
- /** Source. */
7931
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
7932
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
7933
- 'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
7934
- }
7935
- interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
7936
- id: 'sendMessageEmitTargetAndPayload';
7937
- version: 'v2020_12_25';
7938
- namespace: 'Mercury';
7939
- name: '';
7940
- fields: {
7941
- /** Source. */
7942
- 'source': {
7943
- label: 'Source';
7944
- type: 'schema';
7945
- options: {
7946
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
7947
- };
7948
- };
7949
- /** . */
7950
- 'target': {
7951
- type: 'schema';
7952
- options: {
7953
- schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
7954
- };
7955
- };
7956
- /** . */
7957
- 'payload': {
7958
- type: 'schema';
7959
- isRequired: true;
7960
- options: {
7961
- schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
7962
- };
7963
- };
7964
- };
7965
- }
7966
- interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
7967
- }
7968
- }
7969
8690
  namespace SpruceSchemas.Mercury.v2020_12_25 {
7970
8691
  interface SendMessageResponsePayload {
7971
8692
  'message': SpruceSchemas.Spruce.v2020_07_22.Message;
@@ -8078,6 +8799,30 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8078
8799
  interface SubmitErrorMessageFeedbackEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SubmitErrorMessageFeedbackEmitTargetAndPayloadSchema> {
8079
8800
  }
8080
8801
  }
8802
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8803
+ interface SyncEventContractsEmitPayload {
8804
+ 'contract': SpruceSchemas.Mercury.v2020_12_25.EventContract;
8805
+ }
8806
+ interface SyncEventContractsEmitPayloadSchema extends SpruceSchema.Schema {
8807
+ id: 'syncEventContractsEmitPayload';
8808
+ version: 'v2020_12_25';
8809
+ namespace: 'Mercury';
8810
+ name: '';
8811
+ importsWhenRemote: ['import \'@sprucelabs/mercury-types\''];
8812
+ fields: {
8813
+ /** . */
8814
+ 'contract': {
8815
+ type: 'schema';
8816
+ isRequired: true;
8817
+ options: {
8818
+ schema: SpruceSchemas.Mercury.v2020_12_25.EventContractSchema;
8819
+ };
8820
+ };
8821
+ };
8822
+ }
8823
+ interface SyncEventContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitPayloadSchema> {
8824
+ }
8825
+ }
8081
8826
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8082
8827
  interface SyncEventContractsEmitTargetAndPayload {
8083
8828
  /** Source. */
@@ -8111,30 +8856,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8111
8856
  interface SyncEventContractsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitTargetAndPayloadSchema> {
8112
8857
  }
8113
8858
  }
8114
- namespace SpruceSchemas.Mercury.v2020_12_25 {
8115
- interface SyncEventContractsEmitPayload {
8116
- 'contract': SpruceSchemas.Mercury.v2020_12_25.EventContract;
8117
- }
8118
- interface SyncEventContractsEmitPayloadSchema extends SpruceSchema.Schema {
8119
- id: 'syncEventContractsEmitPayload';
8120
- version: 'v2020_12_25';
8121
- namespace: 'Mercury';
8122
- name: '';
8123
- importsWhenRemote: ['import \'@sprucelabs/mercury-types\''];
8124
- fields: {
8125
- /** . */
8126
- 'contract': {
8127
- type: 'schema';
8128
- isRequired: true;
8129
- options: {
8130
- schema: SpruceSchemas.Mercury.v2020_12_25.EventContractSchema;
8131
- };
8132
- };
8133
- };
8134
- }
8135
- interface SyncEventContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitPayloadSchema> {
8136
- }
8137
- }
8138
8859
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8139
8860
  interface SyncEventContractsResponsePayload {
8140
8861
  /** Event names. */
@@ -8186,6 +8907,30 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8186
8907
  interface SyncPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsEmitPayloadSchema> {
8187
8908
  }
8188
8909
  }
8910
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8911
+ interface SyncPermissionContractsResponsePayload {
8912
+ 'contractRecords': SpruceSchemas.Mercury.v2020_12_25.FullPermissionContract[];
8913
+ }
8914
+ interface SyncPermissionContractsResponsePayloadSchema extends SpruceSchema.Schema {
8915
+ id: 'syncPermissionContractsResponsePayload';
8916
+ version: 'v2020_12_25';
8917
+ namespace: 'Mercury';
8918
+ name: '';
8919
+ fields: {
8920
+ /** . */
8921
+ 'contractRecords': {
8922
+ type: 'schema';
8923
+ isRequired: true;
8924
+ isArray: true;
8925
+ options: {
8926
+ schema: SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema;
8927
+ };
8928
+ };
8929
+ };
8930
+ }
8931
+ interface SyncPermissionContractsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsResponsePayloadSchema> {
8932
+ }
8933
+ }
8189
8934
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8190
8935
  interface SyncPermissionContractsEmitTargetAndPayload {
8191
8936
  /** Source. */
@@ -8272,45 +9017,21 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8272
9017
  }
8273
9018
  }
8274
9019
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8275
- interface SyncPermissionContractsResponsePayload {
8276
- 'contractRecords': SpruceSchemas.Mercury.v2020_12_25.FullPermissionContract[];
9020
+ interface UnInstallSkillEmitTarget {
9021
+ 'skillId': string;
9022
+ 'organizationId': string;
8277
9023
  }
8278
- interface SyncPermissionContractsResponsePayloadSchema extends SpruceSchema.Schema {
8279
- id: 'syncPermissionContractsResponsePayload';
9024
+ interface UnInstallSkillEmitTargetSchema extends SpruceSchema.Schema {
9025
+ id: 'unInstallSkillEmitTarget';
8280
9026
  version: 'v2020_12_25';
8281
9027
  namespace: 'Mercury';
8282
9028
  name: '';
8283
9029
  fields: {
8284
9030
  /** . */
8285
- 'contractRecords': {
8286
- type: 'schema';
9031
+ 'skillId': {
9032
+ type: 'id';
8287
9033
  isRequired: true;
8288
- isArray: true;
8289
- options: {
8290
- schema: SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema;
8291
- };
8292
- };
8293
- };
8294
- }
8295
- interface SyncPermissionContractsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsResponsePayloadSchema> {
8296
- }
8297
- }
8298
- namespace SpruceSchemas.Mercury.v2020_12_25 {
8299
- interface UnInstallSkillEmitTarget {
8300
- 'skillId': string;
8301
- 'organizationId': string;
8302
- }
8303
- interface UnInstallSkillEmitTargetSchema extends SpruceSchema.Schema {
8304
- id: 'unInstallSkillEmitTarget';
8305
- version: 'v2020_12_25';
8306
- namespace: 'Mercury';
8307
- name: '';
8308
- fields: {
8309
- /** . */
8310
- 'skillId': {
8311
- type: 'id';
8312
- isRequired: true;
8313
- options: undefined;
9034
+ options: undefined;
8314
9035
  };
8315
9036
  /** . */
8316
9037
  'organizationId': {
@@ -11132,829 +11853,34 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11132
11853
  };
11133
11854
  /** Avatar src. */
11134
11855
  'avatar': {
11135
- label: 'Avatar src';
11136
- type: 'image';
11137
- options: {
11138
- requiredSizes: ["*"];
11139
- };
11140
- };
11141
- /** Phone. A number that can be texted */
11142
- 'phone': {
11143
- label: 'Phone';
11144
- type: 'phone';
11145
- isPrivate: true;
11146
- hint: 'A number that can be texted';
11147
- options: undefined;
11148
- };
11149
- };
11150
- }
11151
- interface UpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema> {
11152
- }
11153
- }
11154
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11155
- interface UpdatePersonEmitTargetAndPayload {
11156
- /** Source. */
11157
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11158
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTarget | undefined | null;
11159
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayload | undefined | null;
11160
- }
11161
- interface UpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11162
- id: 'updatePersonEmitTargetAndPayload';
11163
- version: 'v2020_12_25';
11164
- namespace: 'Mercury';
11165
- name: '';
11166
- fields: {
11167
- /** Source. */
11168
- 'source': {
11169
- label: 'Source';
11170
- type: 'schema';
11171
- options: {
11172
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11173
- };
11174
- };
11175
- /** . */
11176
- 'target': {
11177
- type: 'schema';
11178
- options: {
11179
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetSchema;
11180
- };
11181
- };
11182
- /** . */
11183
- 'payload': {
11184
- type: 'schema';
11185
- options: {
11186
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema;
11187
- };
11188
- };
11189
- };
11190
- }
11191
- interface UpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetAndPayloadSchema> {
11192
- }
11193
- }
11194
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11195
- interface UpdatePersonResponsePayload {
11196
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
11197
- }
11198
- interface UpdatePersonResponsePayloadSchema extends SpruceSchema.Schema {
11199
- id: 'updatePersonResponsePayload';
11200
- version: 'v2020_12_25';
11201
- namespace: 'Mercury';
11202
- name: '';
11203
- fields: {
11204
- /** . */
11205
- 'person': {
11206
- type: 'schema';
11207
- isRequired: true;
11208
- options: {
11209
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
11210
- };
11211
- };
11212
- };
11213
- }
11214
- interface UpdatePersonResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonResponsePayloadSchema> {
11215
- }
11216
- }
11217
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11218
- interface UpdateRoleEmitTarget {
11219
- 'roleId': string;
11220
- }
11221
- interface UpdateRoleEmitTargetSchema extends SpruceSchema.Schema {
11222
- id: 'updateRoleEmitTarget';
11223
- version: 'v2020_12_25';
11224
- namespace: 'Mercury';
11225
- name: '';
11226
- fields: {
11227
- /** . */
11228
- 'roleId': {
11229
- type: 'id';
11230
- isRequired: true;
11231
- options: undefined;
11232
- };
11233
- };
11234
- }
11235
- interface UpdateRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema> {
11236
- }
11237
- }
11238
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11239
- interface UpdateRoleEmitPayload {
11240
- /** Name. */
11241
- 'name'?: string | undefined | null;
11242
- /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11243
- 'base'?: ("owner" | "groupManager" | "manager" | "teammate" | "anonymous" | "loggedIn" | "guest") | undefined | null;
11244
- /** Description. */
11245
- 'description'?: string | undefined | null;
11246
- 'dateDeleted'?: number | undefined | null;
11247
- 'organizationId'?: string | undefined | null;
11248
- /** Public. Should I let people that are not part of this organization this role? */
11249
- 'isPublic'?: boolean | undefined | null;
11250
- }
11251
- interface UpdateRoleEmitPayloadSchema extends SpruceSchema.Schema {
11252
- id: 'updateRoleEmitPayload';
11253
- version: 'v2020_12_25';
11254
- namespace: 'Mercury';
11255
- name: '';
11256
- fields: {
11257
- /** Name. */
11258
- 'name': {
11259
- label: 'Name';
11260
- type: 'text';
11261
- options: undefined;
11262
- };
11263
- /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11264
- 'base': {
11265
- label: 'Base';
11266
- type: 'select';
11267
- hint: 'A best practices starting point for a role based on the generalized roles at a company.';
11268
- options: {
11269
- choices: [{
11270
- "label": "Owner";
11271
- "value": "owner";
11272
- }, {
11273
- "label": "Group manager";
11274
- "value": "groupManager";
11275
- }, {
11276
- "label": "Manager";
11277
- "value": "manager";
11278
- }, {
11279
- "label": "Teammate";
11280
- "value": "teammate";
11281
- }, {
11282
- "label": "Anonymous";
11283
- "value": "anonymous";
11284
- }, {
11285
- "label": "Logged in";
11286
- "value": "loggedIn";
11287
- }, {
11288
- "label": "Guest";
11289
- "value": "guest";
11290
- }];
11291
- };
11292
- };
11293
- /** Description. */
11294
- 'description': {
11295
- label: 'Description';
11296
- type: 'text';
11297
- options: undefined;
11298
- };
11299
- /** . */
11300
- 'dateDeleted': {
11301
- type: 'number';
11302
- options: undefined;
11303
- };
11304
- /** . */
11305
- 'organizationId': {
11306
- type: 'id';
11307
- options: undefined;
11308
- };
11309
- /** Public. Should I let people that are not part of this organization this role? */
11310
- 'isPublic': {
11311
- label: 'Public';
11312
- type: 'boolean';
11313
- hint: 'Should I let people that are not part of this organization this role?';
11314
- options: undefined;
11315
- };
11316
- };
11317
- }
11318
- interface UpdateRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema> {
11319
- }
11320
- }
11321
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11322
- interface UpdateRoleEmitTargetAndPayload {
11323
- /** Source. */
11324
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11325
- 'target': SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTarget;
11326
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayload | undefined | null;
11327
- }
11328
- interface UpdateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11329
- id: 'updateRoleEmitTargetAndPayload';
11330
- version: 'v2020_12_25';
11331
- namespace: 'Mercury';
11332
- name: '';
11333
- fields: {
11334
- /** Source. */
11335
- 'source': {
11336
- label: 'Source';
11337
- type: 'schema';
11338
- options: {
11339
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11340
- };
11341
- };
11342
- /** . */
11343
- 'target': {
11344
- type: 'schema';
11345
- isRequired: true;
11346
- options: {
11347
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema;
11348
- };
11349
- };
11350
- /** . */
11351
- 'payload': {
11352
- type: 'schema';
11353
- options: {
11354
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema;
11355
- };
11356
- };
11357
- };
11358
- }
11359
- interface UpdateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetAndPayloadSchema> {
11360
- }
11361
- }
11362
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11363
- interface UpdateRoleResponsePayload {
11364
- 'role': SpruceSchemas.Spruce.v2020_07_22.Role;
11365
- }
11366
- interface UpdateRoleResponsePayloadSchema extends SpruceSchema.Schema {
11367
- id: 'updateRoleResponsePayload';
11368
- version: 'v2020_12_25';
11369
- namespace: 'Mercury';
11370
- name: '';
11371
- fields: {
11372
- /** . */
11373
- 'role': {
11374
- type: 'schema';
11375
- isRequired: true;
11376
- options: {
11377
- schema: SpruceSchemas.Spruce.v2020_07_22.RoleSchema;
11378
- };
11379
- };
11380
- };
11381
- }
11382
- interface UpdateRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleResponsePayloadSchema> {
11383
- }
11384
- }
11385
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11386
- interface UpsertPermissionContractEmitTarget {
11387
- 'organizationId': string;
11388
- 'permissionContractId': string;
11389
- 'roleId': string;
11390
- 'skillId'?: string | undefined | null;
11391
- }
11392
- interface UpsertPermissionContractEmitTargetSchema extends SpruceSchema.Schema {
11393
- id: 'upsertPermissionContractEmitTarget';
11394
- version: 'v2020_12_25';
11395
- namespace: 'Mercury';
11396
- name: '';
11397
- fields: {
11398
- /** . */
11399
- 'organizationId': {
11400
- type: 'id';
11401
- isRequired: true;
11402
- options: undefined;
11403
- };
11404
- /** . */
11405
- 'permissionContractId': {
11406
- type: 'id';
11407
- isRequired: true;
11408
- options: undefined;
11409
- };
11410
- /** . */
11411
- 'roleId': {
11412
- type: 'id';
11413
- isRequired: true;
11414
- options: undefined;
11415
- };
11416
- /** . */
11417
- 'skillId': {
11418
- type: 'id';
11419
- options: undefined;
11420
- };
11421
- };
11422
- }
11423
- interface UpsertPermissionContractEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema> {
11424
- }
11425
- }
11426
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11427
- interface UpsertPermissionContractEmitTargetAndPayload {
11428
- /** Source. */
11429
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11430
- 'target': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTarget;
11431
- 'payload': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayload;
11432
- }
11433
- interface UpsertPermissionContractEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11434
- id: 'upsertPermissionContractEmitTargetAndPayload';
11435
- version: 'v2020_12_25';
11436
- namespace: 'Mercury';
11437
- name: '';
11438
- fields: {
11439
- /** Source. */
11440
- 'source': {
11441
- label: 'Source';
11442
- type: 'schema';
11443
- options: {
11444
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11445
- };
11446
- };
11447
- /** . */
11448
- 'target': {
11449
- type: 'schema';
11450
- isRequired: true;
11451
- options: {
11452
- schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema;
11453
- };
11454
- };
11455
- /** . */
11456
- 'payload': {
11457
- type: 'schema';
11458
- isRequired: true;
11459
- options: {
11460
- schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema;
11461
- };
11462
- };
11463
- };
11464
- }
11465
- interface UpsertPermissionContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetAndPayloadSchema> {
11466
- }
11467
- }
11468
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11469
- interface UpsertPermissionContractsEmitPayload {
11470
- /** Name. Human readable name for this contract */
11471
- 'name': string;
11472
- /** Description. */
11473
- 'description'?: string | undefined | null;
11474
- /** Require all permissions. */
11475
- 'requireAllPermissions'?: boolean | undefined | null;
11476
- 'permissions': SpruceSchemas.Mercury.v2020_12_25.Permission[];
11477
- }
11478
- interface UpsertPermissionContractsEmitPayloadSchema extends SpruceSchema.Schema {
11479
- id: 'upsertPermissionContractsEmitPayload';
11480
- version: 'v2020_12_25';
11481
- namespace: 'Mercury';
11482
- name: '';
11483
- fields: {
11484
- /** Name. Human readable name for this contract */
11485
- 'name': {
11486
- label: 'Name';
11487
- type: 'text';
11488
- isRequired: true;
11489
- hint: 'Human readable name for this contract';
11490
- options: undefined;
11491
- };
11492
- /** Description. */
11493
- 'description': {
11494
- label: 'Description';
11495
- type: 'text';
11496
- options: undefined;
11497
- };
11498
- /** Require all permissions. */
11499
- 'requireAllPermissions': {
11500
- label: 'Require all permissions';
11501
- type: 'boolean';
11502
- defaultValue: false;
11503
- options: undefined;
11504
- };
11505
- /** . */
11506
- 'permissions': {
11507
- type: 'schema';
11508
- isRequired: true;
11509
- isArray: true;
11510
- minArrayLength: 0;
11511
- options: {
11512
- schema: SpruceSchemas.Mercury.v2020_12_25.PermissionSchema;
11513
- };
11514
- };
11515
- };
11516
- }
11517
- interface UpsertPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema> {
11518
- }
11519
- }
11520
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11521
- interface UpsertPermissionContractResponsePayload {
11522
- 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
11523
- }
11524
- interface UpsertPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
11525
- id: 'upsertPermissionContractResponsePayload';
11526
- version: 'v2020_12_25';
11527
- namespace: 'Mercury';
11528
- name: '';
11529
- fields: {
11530
- /** . */
11531
- 'permissionContract': {
11532
- type: 'schema';
11533
- isRequired: true;
11534
- options: {
11535
- schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
11536
- };
11537
- };
11538
- };
11539
- }
11540
- interface UpsertPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractResponsePayloadSchema> {
11541
- }
11542
- }
11543
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11544
- interface VoteForFeatureEmitPayload {
11545
- 'featureKey': string;
11546
- 'skillNamespace': string;
11547
- }
11548
- interface VoteForFeatureEmitPayloadSchema extends SpruceSchema.Schema {
11549
- id: 'voteForFeatureEmitPayload';
11550
- version: 'v2020_12_25';
11551
- namespace: 'Mercury';
11552
- name: '';
11553
- fields: {
11554
- /** . */
11555
- 'featureKey': {
11556
- type: 'id';
11557
- isRequired: true;
11558
- options: undefined;
11559
- };
11560
- /** . */
11561
- 'skillNamespace': {
11562
- type: 'id';
11563
- isRequired: true;
11564
- options: undefined;
11565
- };
11566
- };
11567
- }
11568
- interface VoteForFeatureEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema> {
11569
- }
11570
- }
11571
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11572
- interface VoteForFeatureEmitTargetAndPayload {
11573
- /** Source. */
11574
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11575
- 'payload': SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayload;
11576
- }
11577
- interface VoteForFeatureEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11578
- id: 'voteForFeatureEmitTargetAndPayload';
11579
- version: 'v2020_12_25';
11580
- namespace: 'Mercury';
11581
- name: '';
11582
- fields: {
11583
- /** Source. */
11584
- 'source': {
11585
- label: 'Source';
11586
- type: 'schema';
11587
- options: {
11588
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11589
- };
11590
- };
11591
- /** . */
11592
- 'payload': {
11593
- type: 'schema';
11594
- isRequired: true;
11595
- options: {
11596
- schema: SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema;
11597
- };
11598
- };
11599
- };
11600
- }
11601
- interface VoteForFeatureEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitTargetAndPayloadSchema> {
11602
- }
11603
- }
11604
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11605
- interface VoteForFeatureResponsePayload {
11606
- 'totalVotes': number;
11607
- }
11608
- interface VoteForFeatureResponsePayloadSchema extends SpruceSchema.Schema {
11609
- id: 'voteForFeatureResponsePayload';
11610
- version: 'v2020_12_25';
11611
- namespace: 'Mercury';
11612
- name: '';
11613
- fields: {
11614
- /** . */
11615
- 'totalVotes': {
11616
- type: 'number';
11617
- isRequired: true;
11618
- options: undefined;
11619
- };
11620
- };
11621
- }
11622
- interface VoteForFeatureResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureResponsePayloadSchema> {
11623
- }
11624
- }
11625
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11626
- interface WhoamiEmitTargetAndPayload {
11627
- /** Source. */
11628
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11629
- }
11630
- interface WhoamiEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11631
- id: 'whoamiEmitTargetAndPayload';
11632
- version: 'v2020_12_25';
11633
- namespace: 'Mercury';
11634
- name: '';
11635
- fields: {
11636
- /** Source. */
11637
- 'source': {
11638
- label: 'Source';
11639
- type: 'schema';
11640
- options: {
11641
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11642
- };
11643
- };
11644
- };
11645
- }
11646
- interface WhoamiEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.WhoamiEmitTargetAndPayloadSchema> {
11647
- }
11648
- }
11649
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11650
- interface DidInstallEmitTarget {
11651
- 'organizationId': string;
11652
- 'skillId': string;
11653
- }
11654
- interface DidInstallEmitTargetSchema extends SpruceSchema.Schema {
11655
- id: 'didInstallEmitTarget';
11656
- version: 'v2020_12_25';
11657
- namespace: 'Mercury';
11658
- name: '';
11659
- fields: {
11660
- /** . */
11661
- 'organizationId': {
11662
- type: 'id';
11663
- isRequired: true;
11664
- options: undefined;
11665
- };
11666
- /** . */
11667
- 'skillId': {
11668
- type: 'id';
11669
- isRequired: true;
11670
- options: undefined;
11671
- };
11672
- };
11673
- }
11674
- interface DidInstallEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema> {
11675
- }
11676
- }
11677
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11678
- interface DidInstallEmitTargetAndPayload {
11679
- /** Source. */
11680
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11681
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTarget;
11682
- }
11683
- interface DidInstallEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11684
- id: 'didInstallEmitTargetAndPayload';
11685
- version: 'v2020_12_25';
11686
- namespace: 'Mercury';
11687
- name: '';
11688
- fields: {
11689
- /** Source. */
11690
- 'source': {
11691
- label: 'Source';
11692
- type: 'schema';
11693
- options: {
11694
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11695
- };
11696
- };
11697
- /** . */
11698
- 'target': {
11699
- type: 'schema';
11700
- isRequired: true;
11701
- options: {
11702
- schema: SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema;
11703
- };
11704
- };
11705
- };
11706
- }
11707
- interface DidInstallEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetAndPayloadSchema> {
11708
- }
11709
- }
11710
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11711
- interface DidInstallResponsePayload {
11712
- }
11713
- interface DidInstallResponsePayloadSchema extends SpruceSchema.Schema {
11714
- id: 'didInstallResponsePayload';
11715
- version: 'v2020_12_25';
11716
- namespace: 'Mercury';
11717
- name: '';
11718
- fields: {};
11719
- }
11720
- interface DidInstallResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallResponsePayloadSchema> {
11721
- }
11722
- }
11723
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11724
- interface DidJoinOrganizationEmitTarget {
11725
- 'organizationId': string;
11726
- 'locationId'?: string | undefined | null;
11727
- }
11728
- interface DidJoinOrganizationEmitTargetSchema extends SpruceSchema.Schema {
11729
- id: 'didJoinOrganizationEmitTarget';
11730
- version: 'v2020_12_25';
11731
- namespace: 'Mercury';
11732
- name: '';
11733
- fields: {
11734
- /** . */
11735
- 'organizationId': {
11736
- type: 'id';
11737
- isRequired: true;
11738
- options: undefined;
11739
- };
11740
- /** . */
11741
- 'locationId': {
11742
- type: 'id';
11743
- options: undefined;
11744
- };
11745
- };
11746
- }
11747
- interface DidJoinOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema> {
11748
- }
11749
- }
11750
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11751
- interface DidJoinOrganizationEmitPayload {
11752
- 'personId': string;
11753
- 'roleId': string;
11754
- 'isFirstRole': boolean;
11755
- }
11756
- interface DidJoinOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
11757
- id: 'didJoinOrganizationEmitPayload';
11758
- version: 'v2020_12_25';
11759
- namespace: 'Mercury';
11760
- name: '';
11761
- fields: {
11762
- /** . */
11763
- 'personId': {
11764
- type: 'id';
11765
- isRequired: true;
11766
- options: undefined;
11767
- };
11768
- /** . */
11769
- 'roleId': {
11770
- type: 'id';
11771
- isRequired: true;
11772
- options: undefined;
11773
- };
11774
- /** . */
11775
- 'isFirstRole': {
11776
- type: 'boolean';
11777
- isRequired: true;
11778
- options: undefined;
11779
- };
11780
- };
11781
- }
11782
- interface DidJoinOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema> {
11783
- }
11784
- }
11785
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11786
- interface DidJoinOrganizationEmitTargetAndPayload {
11787
- /** Source. */
11788
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11789
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTarget;
11790
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayload;
11791
- }
11792
- interface DidJoinOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11793
- id: 'didJoinOrganizationEmitTargetAndPayload';
11794
- version: 'v2020_12_25';
11795
- namespace: 'Mercury';
11796
- name: '';
11797
- fields: {
11798
- /** Source. */
11799
- 'source': {
11800
- label: 'Source';
11801
- type: 'schema';
11802
- options: {
11803
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11804
- };
11805
- };
11806
- /** . */
11807
- 'target': {
11808
- type: 'schema';
11809
- isRequired: true;
11810
- options: {
11811
- schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema;
11812
- };
11813
- };
11814
- /** . */
11815
- 'payload': {
11816
- type: 'schema';
11817
- isRequired: true;
11818
- options: {
11819
- schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema;
11820
- };
11821
- };
11822
- };
11823
- }
11824
- interface DidJoinOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetAndPayloadSchema> {
11825
- }
11826
- }
11827
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11828
- interface MessageTemplateAddons {
11829
- 'nextINeedYouTo'?: string[] | undefined | null;
11830
- 'youShouldKnowThat'?: string[] | undefined | null;
11831
- 'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
11832
- }
11833
- interface MessageTemplateAddonsSchema extends SpruceSchema.Schema {
11834
- id: 'messageTemplateAddons';
11835
- version: 'v2020_12_25';
11836
- namespace: 'Mercury';
11837
- name: '';
11838
- fields: {
11839
- /** . */
11840
- 'nextINeedYouTo': {
11841
- type: 'text';
11842
- isArray: true;
11843
- options: undefined;
11844
- };
11845
- /** . */
11846
- 'youShouldKnowThat': {
11847
- type: 'text';
11848
- isArray: true;
11849
- options: undefined;
11850
- };
11851
- /** . */
11852
- 'links': {
11853
- type: 'schema';
11854
- isArray: true;
11855
- minArrayLength: 0;
11856
- options: {
11857
- schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
11858
- };
11859
- };
11860
- };
11861
- }
11862
- interface MessageTemplateAddonsEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema> {
11863
- }
11864
- }
11865
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11866
- interface DidJoinOrganizationResponsePayload {
11867
- 'messaging'?: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddons | undefined | null;
11868
- }
11869
- interface DidJoinOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
11870
- id: 'didJoinOrganizationResponsePayload';
11871
- version: 'v2020_12_25';
11872
- namespace: 'Mercury';
11873
- name: '';
11874
- fields: {
11875
- /** . */
11876
- 'messaging': {
11877
- type: 'schema';
11856
+ label: 'Avatar src';
11857
+ type: 'image';
11878
11858
  options: {
11879
- schema: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema;
11859
+ requiredSizes: ["*"];
11880
11860
  };
11881
11861
  };
11882
- };
11883
- }
11884
- interface DidJoinOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationResponsePayloadSchema> {
11885
- }
11886
- }
11887
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11888
- interface DidLeaveOrganizationEmitTarget {
11889
- 'organizationId': string;
11890
- 'locationId'?: string | undefined | null;
11891
- }
11892
- interface DidLeaveOrganizationEmitTargetSchema extends SpruceSchema.Schema {
11893
- id: 'didLeaveOrganizationEmitTarget';
11894
- version: 'v2020_12_25';
11895
- namespace: 'Mercury';
11896
- name: '';
11897
- fields: {
11898
- /** . */
11899
- 'organizationId': {
11900
- type: 'id';
11901
- isRequired: true;
11902
- options: undefined;
11903
- };
11904
- /** . */
11905
- 'locationId': {
11906
- type: 'id';
11907
- options: undefined;
11908
- };
11909
- };
11910
- }
11911
- interface DidLeaveOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema> {
11912
- }
11913
- }
11914
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11915
- interface DidLeaveOrganizationEmitPayload {
11916
- 'personId': string;
11917
- 'roleId': string;
11918
- 'isLastRole': boolean;
11919
- }
11920
- interface DidLeaveOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
11921
- id: 'didLeaveOrganizationEmitPayload';
11922
- version: 'v2020_12_25';
11923
- namespace: 'Mercury';
11924
- name: '';
11925
- fields: {
11926
- /** . */
11927
- 'personId': {
11928
- type: 'id';
11929
- isRequired: true;
11930
- options: undefined;
11931
- };
11932
- /** . */
11933
- 'roleId': {
11934
- type: 'id';
11935
- isRequired: true;
11936
- options: undefined;
11937
- };
11938
- /** . */
11939
- 'isLastRole': {
11940
- type: 'boolean';
11941
- isRequired: true;
11862
+ /** Phone. A number that can be texted */
11863
+ 'phone': {
11864
+ label: 'Phone';
11865
+ type: 'phone';
11866
+ isPrivate: true;
11867
+ hint: 'A number that can be texted';
11942
11868
  options: undefined;
11943
11869
  };
11944
11870
  };
11945
11871
  }
11946
- interface DidLeaveOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema> {
11872
+ interface UpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema> {
11947
11873
  }
11948
11874
  }
11949
11875
  namespace SpruceSchemas.Mercury.v2020_12_25 {
11950
- interface DidLeaveOrganizationEmitTargetAndPayload {
11876
+ interface UpdatePersonEmitTargetAndPayload {
11951
11877
  /** Source. */
11952
11878
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11953
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTarget;
11954
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayload;
11879
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTarget | undefined | null;
11880
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayload | undefined | null;
11955
11881
  }
11956
- interface DidLeaveOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11957
- id: 'didLeaveOrganizationEmitTargetAndPayload';
11882
+ interface UpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11883
+ id: 'updatePersonEmitTargetAndPayload';
11958
11884
  version: 'v2020_12_25';
11959
11885
  namespace: 'Mercury';
11960
11886
  name: '';
@@ -11970,225 +11896,315 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11970
11896
  /** . */
11971
11897
  'target': {
11972
11898
  type: 'schema';
11973
- isRequired: true;
11974
11899
  options: {
11975
- schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema;
11900
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetSchema;
11976
11901
  };
11977
11902
  };
11978
11903
  /** . */
11979
11904
  'payload': {
11980
11905
  type: 'schema';
11981
- isRequired: true;
11982
11906
  options: {
11983
- schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema;
11907
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema;
11984
11908
  };
11985
11909
  };
11986
11910
  };
11987
11911
  }
11988
- interface DidLeaveOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetAndPayloadSchema> {
11989
- }
11990
- }
11991
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11992
- interface DidLeaveOrganizationResponsePayload {
11993
- }
11994
- interface DidLeaveOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
11995
- id: 'didLeaveOrganizationResponsePayload';
11996
- version: 'v2020_12_25';
11997
- namespace: 'Mercury';
11998
- name: '';
11999
- fields: {};
12000
- }
12001
- interface DidLeaveOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationResponsePayloadSchema> {
11912
+ interface UpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetAndPayloadSchema> {
12002
11913
  }
12003
11914
  }
12004
11915
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12005
- interface DidMessageEmitPayload {
12006
- 'message': SpruceSchemas.Spruce.v2020_07_22.Message;
12007
- 'conversationState'?: string | undefined | null;
12008
- 'topic'?: string | undefined | null;
11916
+ interface UpdatePersonResponsePayload {
11917
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12009
11918
  }
12010
- interface DidMessageEmitPayloadSchema extends SpruceSchema.Schema {
12011
- id: 'didMessageEmitPayload';
11919
+ interface UpdatePersonResponsePayloadSchema extends SpruceSchema.Schema {
11920
+ id: 'updatePersonResponsePayload';
12012
11921
  version: 'v2020_12_25';
12013
11922
  namespace: 'Mercury';
12014
11923
  name: '';
12015
11924
  fields: {
12016
11925
  /** . */
12017
- 'message': {
11926
+ 'person': {
12018
11927
  type: 'schema';
12019
11928
  isRequired: true;
12020
11929
  options: {
12021
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageSchema;
11930
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12022
11931
  };
12023
11932
  };
12024
- /** . */
12025
- 'conversationState': {
12026
- type: 'text';
12027
- options: undefined;
12028
- };
12029
- /** . */
12030
- 'topic': {
12031
- type: 'text';
12032
- options: undefined;
12033
- };
12034
11933
  };
12035
11934
  }
12036
- interface DidMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema> {
11935
+ interface UpdatePersonResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonResponsePayloadSchema> {
12037
11936
  }
12038
11937
  }
12039
11938
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12040
- interface ConversationTopic {
12041
- 'key': string;
12042
- 'confidence': number;
12043
- 'label': string;
11939
+ interface UpdateRoleEmitTarget {
11940
+ 'roleId': string;
12044
11941
  }
12045
- interface ConversationTopicSchema extends SpruceSchema.Schema {
12046
- id: 'conversationTopic';
11942
+ interface UpdateRoleEmitTargetSchema extends SpruceSchema.Schema {
11943
+ id: 'updateRoleEmitTarget';
12047
11944
  version: 'v2020_12_25';
12048
11945
  namespace: 'Mercury';
12049
11946
  name: '';
12050
11947
  fields: {
12051
11948
  /** . */
12052
- 'key': {
12053
- type: 'text';
12054
- isRequired: true;
12055
- options: undefined;
12056
- };
12057
- /** . */
12058
- 'confidence': {
12059
- type: 'number';
12060
- isRequired: true;
12061
- options: undefined;
12062
- };
12063
- /** . */
12064
- 'label': {
12065
- type: 'text';
11949
+ 'roleId': {
11950
+ type: 'id';
12066
11951
  isRequired: true;
12067
11952
  options: undefined;
12068
11953
  };
12069
11954
  };
12070
11955
  }
12071
- interface ConversationTopicEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema> {
11956
+ interface UpdateRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema> {
12072
11957
  }
12073
11958
  }
12074
11959
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12075
- interface DidMessageResponsePayload {
12076
- 'transitionConversationTo'?: ("greeting" | "discovery" | "topic" | "closing") | undefined | null;
12077
- 'repairs'?: string[] | undefined | null;
12078
- 'topicChangers'?: string[] | undefined | null;
12079
- 'utterance'?: string | undefined | null;
12080
- 'suggestedTopics'?: SpruceSchemas.Mercury.v2020_12_25.ConversationTopic[] | undefined | null;
11960
+ interface UpdateRoleEmitPayload {
11961
+ /** Name. */
11962
+ 'name'?: string | undefined | null;
11963
+ /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11964
+ 'base'?: ("owner" | "groupManager" | "manager" | "teammate" | "anonymous" | "loggedIn" | "guest") | undefined | null;
11965
+ /** Description. */
11966
+ 'description'?: string | undefined | null;
11967
+ 'dateDeleted'?: number | undefined | null;
11968
+ 'organizationId'?: string | undefined | null;
11969
+ /** Public. Should I let people that are not part of this organization this role? */
11970
+ 'isPublic'?: boolean | undefined | null;
12081
11971
  }
12082
- interface DidMessageResponsePayloadSchema extends SpruceSchema.Schema {
12083
- id: 'didMessageResponsePayload';
11972
+ interface UpdateRoleEmitPayloadSchema extends SpruceSchema.Schema {
11973
+ id: 'updateRoleEmitPayload';
12084
11974
  version: 'v2020_12_25';
12085
11975
  namespace: 'Mercury';
12086
11976
  name: '';
12087
11977
  fields: {
12088
- /** . */
12089
- 'transitionConversationTo': {
11978
+ /** Name. */
11979
+ 'name': {
11980
+ label: 'Name';
11981
+ type: 'text';
11982
+ options: undefined;
11983
+ };
11984
+ /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11985
+ 'base': {
11986
+ label: 'Base';
12090
11987
  type: 'select';
11988
+ hint: 'A best practices starting point for a role based on the generalized roles at a company.';
12091
11989
  options: {
12092
11990
  choices: [{
12093
- "label": "Greeting";
12094
- "value": "greeting";
11991
+ "label": "Owner";
11992
+ "value": "owner";
12095
11993
  }, {
12096
- "label": "Discovery";
12097
- "value": "discovery";
11994
+ "label": "Group manager";
11995
+ "value": "groupManager";
12098
11996
  }, {
12099
- "label": "Topic";
12100
- "value": "topic";
11997
+ "label": "Manager";
11998
+ "value": "manager";
12101
11999
  }, {
12102
- "label": "Closing";
12103
- "value": "closing";
12000
+ "label": "Teammate";
12001
+ "value": "teammate";
12002
+ }, {
12003
+ "label": "Anonymous";
12004
+ "value": "anonymous";
12005
+ }, {
12006
+ "label": "Logged in";
12007
+ "value": "loggedIn";
12008
+ }, {
12009
+ "label": "Guest";
12010
+ "value": "guest";
12104
12011
  }];
12105
12012
  };
12106
12013
  };
12107
- /** . */
12108
- 'repairs': {
12014
+ /** Description. */
12015
+ 'description': {
12016
+ label: 'Description';
12109
12017
  type: 'text';
12110
- isArray: true;
12111
12018
  options: undefined;
12112
12019
  };
12113
12020
  /** . */
12114
- 'topicChangers': {
12115
- type: 'text';
12116
- isArray: true;
12021
+ 'dateDeleted': {
12022
+ type: 'number';
12023
+ options: undefined;
12024
+ };
12025
+ /** . */
12026
+ 'organizationId': {
12027
+ type: 'id';
12028
+ options: undefined;
12029
+ };
12030
+ /** Public. Should I let people that are not part of this organization this role? */
12031
+ 'isPublic': {
12032
+ label: 'Public';
12033
+ type: 'boolean';
12034
+ hint: 'Should I let people that are not part of this organization this role?';
12117
12035
  options: undefined;
12118
12036
  };
12037
+ };
12038
+ }
12039
+ interface UpdateRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema> {
12040
+ }
12041
+ }
12042
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12043
+ interface UpdateRoleEmitTargetAndPayload {
12044
+ /** Source. */
12045
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12046
+ 'target': SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTarget;
12047
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayload | undefined | null;
12048
+ }
12049
+ interface UpdateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12050
+ id: 'updateRoleEmitTargetAndPayload';
12051
+ version: 'v2020_12_25';
12052
+ namespace: 'Mercury';
12053
+ name: '';
12054
+ fields: {
12055
+ /** Source. */
12056
+ 'source': {
12057
+ label: 'Source';
12058
+ type: 'schema';
12059
+ options: {
12060
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12061
+ };
12062
+ };
12119
12063
  /** . */
12120
- 'utterance': {
12121
- type: 'text';
12122
- options: undefined;
12064
+ 'target': {
12065
+ type: 'schema';
12066
+ isRequired: true;
12067
+ options: {
12068
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema;
12069
+ };
12123
12070
  };
12124
12071
  /** . */
12125
- 'suggestedTopics': {
12072
+ 'payload': {
12126
12073
  type: 'schema';
12127
- isArray: true;
12128
12074
  options: {
12129
- schema: SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema;
12075
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema;
12130
12076
  };
12131
12077
  };
12132
12078
  };
12133
12079
  }
12134
- interface DidMessageResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageResponsePayloadSchema> {
12080
+ interface UpdateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetAndPayloadSchema> {
12135
12081
  }
12136
12082
  }
12137
12083
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12138
- interface DidSignupEmitPayload {
12139
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12084
+ interface UpdateRoleResponsePayload {
12085
+ 'role': SpruceSchemas.Spruce.v2020_07_22.Role;
12140
12086
  }
12141
- interface DidSignupEmitPayloadSchema extends SpruceSchema.Schema {
12142
- id: 'didSignupEmitPayload';
12087
+ interface UpdateRoleResponsePayloadSchema extends SpruceSchema.Schema {
12088
+ id: 'updateRoleResponsePayload';
12143
12089
  version: 'v2020_12_25';
12144
12090
  namespace: 'Mercury';
12145
12091
  name: '';
12146
12092
  fields: {
12147
12093
  /** . */
12148
- 'person': {
12094
+ 'role': {
12149
12095
  type: 'schema';
12150
12096
  isRequired: true;
12151
12097
  options: {
12152
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12098
+ schema: SpruceSchemas.Spruce.v2020_07_22.RoleSchema;
12153
12099
  };
12154
12100
  };
12155
12101
  };
12156
12102
  }
12157
- interface DidSignupEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema> {
12103
+ interface UpdateRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleResponsePayloadSchema> {
12158
12104
  }
12159
12105
  }
12160
12106
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12161
- interface DidUpdateFeedEmitPayload {
12162
- 'item': SpruceSchemas.Spruce.v2020_07_22.FeedItem;
12107
+ interface UpsertPermissionContractEmitTarget {
12108
+ 'organizationId': string;
12109
+ 'permissionContractId': string;
12110
+ 'roleId': string;
12111
+ 'skillId'?: string | undefined | null;
12163
12112
  }
12164
- interface DidUpdateFeedEmitPayloadSchema extends SpruceSchema.Schema {
12165
- id: 'didUpdateFeedEmitPayload';
12113
+ interface UpsertPermissionContractEmitTargetSchema extends SpruceSchema.Schema {
12114
+ id: 'upsertPermissionContractEmitTarget';
12166
12115
  version: 'v2020_12_25';
12167
12116
  namespace: 'Mercury';
12168
12117
  name: '';
12169
12118
  fields: {
12170
12119
  /** . */
12171
- 'item': {
12120
+ 'organizationId': {
12121
+ type: 'id';
12122
+ isRequired: true;
12123
+ options: undefined;
12124
+ };
12125
+ /** . */
12126
+ 'permissionContractId': {
12127
+ type: 'id';
12128
+ isRequired: true;
12129
+ options: undefined;
12130
+ };
12131
+ /** . */
12132
+ 'roleId': {
12133
+ type: 'id';
12134
+ isRequired: true;
12135
+ options: undefined;
12136
+ };
12137
+ /** . */
12138
+ 'skillId': {
12139
+ type: 'id';
12140
+ options: undefined;
12141
+ };
12142
+ };
12143
+ }
12144
+ interface UpsertPermissionContractEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema> {
12145
+ }
12146
+ }
12147
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12148
+ interface UpsertPermissionContractsEmitPayload {
12149
+ /** Name. Human readable name for this contract */
12150
+ 'name': string;
12151
+ /** Description. */
12152
+ 'description'?: string | undefined | null;
12153
+ /** Require all permissions. */
12154
+ 'requireAllPermissions'?: boolean | undefined | null;
12155
+ 'permissions': SpruceSchemas.Mercury.v2020_12_25.Permission[];
12156
+ }
12157
+ interface UpsertPermissionContractsEmitPayloadSchema extends SpruceSchema.Schema {
12158
+ id: 'upsertPermissionContractsEmitPayload';
12159
+ version: 'v2020_12_25';
12160
+ namespace: 'Mercury';
12161
+ name: '';
12162
+ fields: {
12163
+ /** Name. Human readable name for this contract */
12164
+ 'name': {
12165
+ label: 'Name';
12166
+ type: 'text';
12167
+ isRequired: true;
12168
+ hint: 'Human readable name for this contract';
12169
+ options: undefined;
12170
+ };
12171
+ /** Description. */
12172
+ 'description': {
12173
+ label: 'Description';
12174
+ type: 'text';
12175
+ options: undefined;
12176
+ };
12177
+ /** Require all permissions. */
12178
+ 'requireAllPermissions': {
12179
+ label: 'Require all permissions';
12180
+ type: 'boolean';
12181
+ defaultValue: false;
12182
+ options: undefined;
12183
+ };
12184
+ /** . */
12185
+ 'permissions': {
12172
12186
  type: 'schema';
12173
12187
  isRequired: true;
12188
+ isArray: true;
12189
+ minArrayLength: 0;
12174
12190
  options: {
12175
- schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
12191
+ schema: SpruceSchemas.Mercury.v2020_12_25.PermissionSchema;
12176
12192
  };
12177
12193
  };
12178
12194
  };
12179
12195
  }
12180
- interface DidUpdateFeedEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema> {
12196
+ interface UpsertPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema> {
12181
12197
  }
12182
12198
  }
12183
12199
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12184
- interface DidMessageEmitTargetAndPayload {
12200
+ interface UpsertPermissionContractEmitTargetAndPayload {
12185
12201
  /** Source. */
12186
12202
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12187
- 'target'?: SpruceSchemas.Spruce.v2020_07_22.MessageTarget | undefined | null;
12188
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayload;
12203
+ 'target': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTarget;
12204
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayload;
12189
12205
  }
12190
- interface DidMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12191
- id: 'didMessageEmitTargetAndPayload';
12206
+ interface UpsertPermissionContractEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12207
+ id: 'upsertPermissionContractEmitTargetAndPayload';
12192
12208
  version: 'v2020_12_25';
12193
12209
  namespace: 'Mercury';
12194
12210
  name: '';
@@ -12204,8 +12220,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12204
12220
  /** . */
12205
12221
  'target': {
12206
12222
  type: 'schema';
12223
+ isRequired: true;
12207
12224
  options: {
12208
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
12225
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema;
12209
12226
  };
12210
12227
  };
12211
12228
  /** . */
@@ -12213,64 +12230,73 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12213
12230
  type: 'schema';
12214
12231
  isRequired: true;
12215
12232
  options: {
12216
- schema: SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema;
12233
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema;
12217
12234
  };
12218
12235
  };
12219
12236
  };
12220
12237
  }
12221
- interface DidMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema> {
12238
+ interface UpsertPermissionContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetAndPayloadSchema> {
12222
12239
  }
12223
12240
  }
12224
12241
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12225
- interface DidSignupEmitTargetAndPayload {
12226
- /** Source. */
12227
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12228
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
12229
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayload;
12242
+ interface UpsertPermissionContractResponsePayload {
12243
+ 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
12230
12244
  }
12231
- interface DidSignupEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12232
- id: 'didSignupEmitTargetAndPayload';
12245
+ interface UpsertPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
12246
+ id: 'upsertPermissionContractResponsePayload';
12233
12247
  version: 'v2020_12_25';
12234
12248
  namespace: 'Mercury';
12235
12249
  name: '';
12236
12250
  fields: {
12237
- /** Source. */
12238
- 'source': {
12239
- label: 'Source';
12251
+ /** . */
12252
+ 'permissionContract': {
12240
12253
  type: 'schema';
12254
+ isRequired: true;
12241
12255
  options: {
12242
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12256
+ schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
12243
12257
  };
12244
12258
  };
12259
+ };
12260
+ }
12261
+ interface UpsertPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractResponsePayloadSchema> {
12262
+ }
12263
+ }
12264
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12265
+ interface VoteForFeatureEmitPayload {
12266
+ 'featureKey': string;
12267
+ 'skillNamespace': string;
12268
+ }
12269
+ interface VoteForFeatureEmitPayloadSchema extends SpruceSchema.Schema {
12270
+ id: 'voteForFeatureEmitPayload';
12271
+ version: 'v2020_12_25';
12272
+ namespace: 'Mercury';
12273
+ name: '';
12274
+ fields: {
12245
12275
  /** . */
12246
- 'target': {
12247
- type: 'schema';
12248
- options: {
12249
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
12250
- };
12276
+ 'featureKey': {
12277
+ type: 'id';
12278
+ isRequired: true;
12279
+ options: undefined;
12251
12280
  };
12252
12281
  /** . */
12253
- 'payload': {
12254
- type: 'schema';
12282
+ 'skillNamespace': {
12283
+ type: 'id';
12255
12284
  isRequired: true;
12256
- options: {
12257
- schema: SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema;
12258
- };
12285
+ options: undefined;
12259
12286
  };
12260
12287
  };
12261
12288
  }
12262
- interface DidSignupEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema> {
12289
+ interface VoteForFeatureEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema> {
12263
12290
  }
12264
12291
  }
12265
12292
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12266
- interface DidUpdateFeedEmitTargetAndPayload {
12293
+ interface VoteForFeatureEmitTargetAndPayload {
12267
12294
  /** Source. */
12268
12295
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12269
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
12270
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayload;
12296
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayload;
12271
12297
  }
12272
- interface DidUpdateFeedEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12273
- id: 'didUpdateFeedEmitTargetAndPayload';
12298
+ interface VoteForFeatureEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12299
+ id: 'voteForFeatureEmitTargetAndPayload';
12274
12300
  version: 'v2020_12_25';
12275
12301
  namespace: 'Mercury';
12276
12302
  name: '';
@@ -12284,57 +12310,46 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12284
12310
  };
12285
12311
  };
12286
12312
  /** . */
12287
- 'target': {
12288
- type: 'schema';
12289
- options: {
12290
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
12291
- };
12292
- };
12293
- /** . */
12294
12313
  'payload': {
12295
12314
  type: 'schema';
12296
12315
  isRequired: true;
12297
12316
  options: {
12298
- schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema;
12317
+ schema: SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema;
12299
12318
  };
12300
12319
  };
12301
12320
  };
12302
12321
  }
12303
- interface DidUpdateFeedEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetAndPayloadSchema> {
12322
+ interface VoteForFeatureEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitTargetAndPayloadSchema> {
12304
12323
  }
12305
12324
  }
12306
12325
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12307
- interface DidUpdatePersonEmitPayload {
12308
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12326
+ interface VoteForFeatureResponsePayload {
12327
+ 'totalVotes': number;
12309
12328
  }
12310
- interface DidUpdatePersonEmitPayloadSchema extends SpruceSchema.Schema {
12311
- id: 'didUpdatePersonEmitPayload';
12329
+ interface VoteForFeatureResponsePayloadSchema extends SpruceSchema.Schema {
12330
+ id: 'voteForFeatureResponsePayload';
12312
12331
  version: 'v2020_12_25';
12313
12332
  namespace: 'Mercury';
12314
12333
  name: '';
12315
12334
  fields: {
12316
12335
  /** . */
12317
- 'person': {
12318
- type: 'schema';
12336
+ 'totalVotes': {
12337
+ type: 'number';
12319
12338
  isRequired: true;
12320
- options: {
12321
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12322
- };
12339
+ options: undefined;
12323
12340
  };
12324
12341
  };
12325
12342
  }
12326
- interface DidUpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema> {
12343
+ interface VoteForFeatureResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureResponsePayloadSchema> {
12327
12344
  }
12328
12345
  }
12329
12346
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12330
- interface DidUpdatePersonEmitTargetAndPayload {
12347
+ interface WhoamiEmitTargetAndPayload {
12331
12348
  /** Source. */
12332
12349
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12333
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
12334
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayload;
12335
12350
  }
12336
- interface DidUpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12337
- id: 'didUpdatePersonEmitTargetAndPayload';
12351
+ interface WhoamiEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12352
+ id: 'whoamiEmitTargetAndPayload';
12338
12353
  version: 'v2020_12_25';
12339
12354
  namespace: 'Mercury';
12340
12355
  name: '';
@@ -12347,24 +12362,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12347
12362
  schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12348
12363
  };
12349
12364
  };
12350
- /** . */
12351
- 'target': {
12352
- type: 'schema';
12353
- options: {
12354
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
12355
- };
12356
- };
12357
- /** . */
12358
- 'payload': {
12359
- type: 'schema';
12360
- isRequired: true;
12361
- options: {
12362
- schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema;
12363
- };
12364
- };
12365
12365
  };
12366
12366
  }
12367
- interface DidUpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema> {
12367
+ interface WhoamiEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.WhoamiEmitTargetAndPayloadSchema> {
12368
12368
  }
12369
12369
  }
12370
12370
  }