@sprucelabs/mercury-core-events 15.0.225 → 15.0.227

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[];
@@ -7824,6 +8545,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7824
8545
  interface SendMessageTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema> {
7825
8546
  }
7826
8547
  }
8548
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8549
+ interface SendMessageEmitTargetAndPayload {
8550
+ /** Source. */
8551
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
8552
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
8553
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
8554
+ }
8555
+ interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
8556
+ id: 'sendMessageEmitTargetAndPayload';
8557
+ version: 'v2020_12_25';
8558
+ namespace: 'Mercury';
8559
+ name: '';
8560
+ fields: {
8561
+ /** Source. */
8562
+ 'source': {
8563
+ label: 'Source';
8564
+ type: 'schema';
8565
+ options: {
8566
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
8567
+ };
8568
+ };
8569
+ /** . */
8570
+ 'target': {
8571
+ type: 'schema';
8572
+ options: {
8573
+ schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
8574
+ };
8575
+ };
8576
+ /** . */
8577
+ 'payload': {
8578
+ type: 'schema';
8579
+ isRequired: true;
8580
+ options: {
8581
+ schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
8582
+ };
8583
+ };
8584
+ };
8585
+ }
8586
+ interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
8587
+ }
8588
+ }
7827
8589
  namespace SpruceSchemas.Mercury.v2020_12_25 {
7828
8590
  interface SendMessageMessagePayload {
7829
8591
  'classification': ("auth" | "transactional" | "promotional" | "incoming");
@@ -7923,47 +8685,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7923
8685
  interface SendMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema> {
7924
8686
  }
7925
8687
  }
7926
- namespace SpruceSchemas.Mercury.v2020_12_25 {
7927
- interface SendMessageEmitTargetAndPayload {
7928
- /** Source. */
7929
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
7930
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
7931
- 'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
7932
- }
7933
- interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
7934
- id: 'sendMessageEmitTargetAndPayload';
7935
- version: 'v2020_12_25';
7936
- namespace: 'Mercury';
7937
- name: '';
7938
- fields: {
7939
- /** Source. */
7940
- 'source': {
7941
- label: 'Source';
7942
- type: 'schema';
7943
- options: {
7944
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
7945
- };
7946
- };
7947
- /** . */
7948
- 'target': {
7949
- type: 'schema';
7950
- options: {
7951
- schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
7952
- };
7953
- };
7954
- /** . */
7955
- 'payload': {
7956
- type: 'schema';
7957
- isRequired: true;
7958
- options: {
7959
- schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
7960
- };
7961
- };
7962
- };
7963
- }
7964
- interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
7965
- }
7966
- }
7967
8688
  namespace SpruceSchemas.Mercury.v2020_12_25 {
7968
8689
  interface SendMessageResponsePayload {
7969
8690
  'message': SpruceSchemas.Spruce.v2020_07_22.Message;
@@ -8076,6 +8797,30 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8076
8797
  interface SubmitErrorMessageFeedbackEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SubmitErrorMessageFeedbackEmitTargetAndPayloadSchema> {
8077
8798
  }
8078
8799
  }
8800
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8801
+ interface SyncEventContractsEmitPayload {
8802
+ 'contract': SpruceSchemas.Mercury.v2020_12_25.EventContract;
8803
+ }
8804
+ interface SyncEventContractsEmitPayloadSchema extends SpruceSchema.Schema {
8805
+ id: 'syncEventContractsEmitPayload';
8806
+ version: 'v2020_12_25';
8807
+ namespace: 'Mercury';
8808
+ name: '';
8809
+ importsWhenRemote: ['import \'@sprucelabs/mercury-types\''];
8810
+ fields: {
8811
+ /** . */
8812
+ 'contract': {
8813
+ type: 'schema';
8814
+ isRequired: true;
8815
+ options: {
8816
+ schema: SpruceSchemas.Mercury.v2020_12_25.EventContractSchema;
8817
+ };
8818
+ };
8819
+ };
8820
+ }
8821
+ interface SyncEventContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitPayloadSchema> {
8822
+ }
8823
+ }
8079
8824
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8080
8825
  interface SyncEventContractsEmitTargetAndPayload {
8081
8826
  /** Source. */
@@ -8109,30 +8854,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8109
8854
  interface SyncEventContractsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitTargetAndPayloadSchema> {
8110
8855
  }
8111
8856
  }
8112
- namespace SpruceSchemas.Mercury.v2020_12_25 {
8113
- interface SyncEventContractsEmitPayload {
8114
- 'contract': SpruceSchemas.Mercury.v2020_12_25.EventContract;
8115
- }
8116
- interface SyncEventContractsEmitPayloadSchema extends SpruceSchema.Schema {
8117
- id: 'syncEventContractsEmitPayload';
8118
- version: 'v2020_12_25';
8119
- namespace: 'Mercury';
8120
- name: '';
8121
- importsWhenRemote: ['import \'@sprucelabs/mercury-types\''];
8122
- fields: {
8123
- /** . */
8124
- 'contract': {
8125
- type: 'schema';
8126
- isRequired: true;
8127
- options: {
8128
- schema: SpruceSchemas.Mercury.v2020_12_25.EventContractSchema;
8129
- };
8130
- };
8131
- };
8132
- }
8133
- interface SyncEventContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncEventContractsEmitPayloadSchema> {
8134
- }
8135
- }
8136
8857
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8137
8858
  interface SyncEventContractsResponsePayload {
8138
8859
  /** Event names. */
@@ -8184,6 +8905,31 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8184
8905
  interface SyncPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsEmitPayloadSchema> {
8185
8906
  }
8186
8907
  }
8908
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
8909
+ interface SyncPermissionContractsResponsePayload {
8910
+ 'contractRecords': SpruceSchemas.Mercury.v2020_12_25.FullPermissionContract[];
8911
+ }
8912
+ interface SyncPermissionContractsResponsePayloadSchema extends SpruceSchema.Schema {
8913
+ id: 'syncPermissionContractsResponsePayload';
8914
+ version: 'v2020_12_25';
8915
+ namespace: 'Mercury';
8916
+ name: '';
8917
+ fields: {
8918
+ /** . */
8919
+ 'contractRecords': {
8920
+ type: 'schema';
8921
+ isRequired: true;
8922
+ isArray: true;
8923
+ minArrayLength: 0;
8924
+ options: {
8925
+ schema: SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema;
8926
+ };
8927
+ };
8928
+ };
8929
+ }
8930
+ interface SyncPermissionContractsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsResponsePayloadSchema> {
8931
+ }
8932
+ }
8187
8933
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8188
8934
  interface SyncPermissionContractsEmitTargetAndPayload {
8189
8935
  /** Source. */
@@ -8270,44 +9016,19 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
8270
9016
  }
8271
9017
  }
8272
9018
  namespace SpruceSchemas.Mercury.v2020_12_25 {
8273
- interface SyncPermissionContractsResponsePayload {
8274
- 'contractRecords': SpruceSchemas.Mercury.v2020_12_25.FullPermissionContract[];
9019
+ interface UnInstallSkillEmitTarget {
9020
+ 'skillId': string;
9021
+ 'organizationId': string;
8275
9022
  }
8276
- interface SyncPermissionContractsResponsePayloadSchema extends SpruceSchema.Schema {
8277
- id: 'syncPermissionContractsResponsePayload';
9023
+ interface UnInstallSkillEmitTargetSchema extends SpruceSchema.Schema {
9024
+ id: 'unInstallSkillEmitTarget';
8278
9025
  version: 'v2020_12_25';
8279
9026
  namespace: 'Mercury';
8280
9027
  name: '';
8281
9028
  fields: {
8282
9029
  /** . */
8283
- 'contractRecords': {
8284
- type: 'schema';
8285
- isRequired: true;
8286
- isArray: true;
8287
- minArrayLength: 0;
8288
- options: {
8289
- schema: SpruceSchemas.Mercury.v2020_12_25.FullPermissionContractSchema;
8290
- };
8291
- };
8292
- };
8293
- }
8294
- interface SyncPermissionContractsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SyncPermissionContractsResponsePayloadSchema> {
8295
- }
8296
- }
8297
- namespace SpruceSchemas.Mercury.v2020_12_25 {
8298
- interface UnInstallSkillEmitTarget {
8299
- 'skillId': string;
8300
- 'organizationId': string;
8301
- }
8302
- interface UnInstallSkillEmitTargetSchema extends SpruceSchema.Schema {
8303
- id: 'unInstallSkillEmitTarget';
8304
- version: 'v2020_12_25';
8305
- namespace: 'Mercury';
8306
- name: '';
8307
- fields: {
8308
- /** . */
8309
- 'skillId': {
8310
- type: 'id';
9030
+ 'skillId': {
9031
+ type: 'id';
8311
9032
  isRequired: true;
8312
9033
  options: undefined;
8313
9034
  };
@@ -11131,829 +11852,34 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11131
11852
  };
11132
11853
  /** Avatar src. */
11133
11854
  'avatar': {
11134
- label: 'Avatar src';
11135
- type: 'image';
11136
- options: {
11137
- requiredSizes: ["*"];
11138
- };
11139
- };
11140
- /** Phone. A number that can be texted */
11141
- 'phone': {
11142
- label: 'Phone';
11143
- type: 'phone';
11144
- isPrivate: true;
11145
- hint: 'A number that can be texted';
11146
- options: undefined;
11147
- };
11148
- };
11149
- }
11150
- interface UpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema> {
11151
- }
11152
- }
11153
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11154
- interface UpdatePersonEmitTargetAndPayload {
11155
- /** Source. */
11156
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11157
- 'target'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTarget | undefined | null;
11158
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayload | undefined | null;
11159
- }
11160
- interface UpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11161
- id: 'updatePersonEmitTargetAndPayload';
11162
- version: 'v2020_12_25';
11163
- namespace: 'Mercury';
11164
- name: '';
11165
- fields: {
11166
- /** Source. */
11167
- 'source': {
11168
- label: 'Source';
11169
- type: 'schema';
11170
- options: {
11171
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11172
- };
11173
- };
11174
- /** . */
11175
- 'target': {
11176
- type: 'schema';
11177
- options: {
11178
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetSchema;
11179
- };
11180
- };
11181
- /** . */
11182
- 'payload': {
11183
- type: 'schema';
11184
- options: {
11185
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema;
11186
- };
11187
- };
11188
- };
11189
- }
11190
- interface UpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetAndPayloadSchema> {
11191
- }
11192
- }
11193
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11194
- interface UpdatePersonResponsePayload {
11195
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
11196
- }
11197
- interface UpdatePersonResponsePayloadSchema extends SpruceSchema.Schema {
11198
- id: 'updatePersonResponsePayload';
11199
- version: 'v2020_12_25';
11200
- namespace: 'Mercury';
11201
- name: '';
11202
- fields: {
11203
- /** . */
11204
- 'person': {
11205
- type: 'schema';
11206
- isRequired: true;
11207
- options: {
11208
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
11209
- };
11210
- };
11211
- };
11212
- }
11213
- interface UpdatePersonResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonResponsePayloadSchema> {
11214
- }
11215
- }
11216
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11217
- interface UpdateRoleEmitTarget {
11218
- 'roleId': string;
11219
- }
11220
- interface UpdateRoleEmitTargetSchema extends SpruceSchema.Schema {
11221
- id: 'updateRoleEmitTarget';
11222
- version: 'v2020_12_25';
11223
- namespace: 'Mercury';
11224
- name: '';
11225
- fields: {
11226
- /** . */
11227
- 'roleId': {
11228
- type: 'id';
11229
- isRequired: true;
11230
- options: undefined;
11231
- };
11232
- };
11233
- }
11234
- interface UpdateRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema> {
11235
- }
11236
- }
11237
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11238
- interface UpdateRoleEmitPayload {
11239
- /** Name. */
11240
- 'name'?: string | undefined | null;
11241
- /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11242
- 'base'?: ("owner" | "groupManager" | "manager" | "teammate" | "anonymous" | "loggedIn" | "guest") | undefined | null;
11243
- /** Description. */
11244
- 'description'?: string | undefined | null;
11245
- 'dateDeleted'?: number | undefined | null;
11246
- 'organizationId'?: string | undefined | null;
11247
- /** Public. Should I let people that are not part of this organization this role? */
11248
- 'isPublic'?: boolean | undefined | null;
11249
- }
11250
- interface UpdateRoleEmitPayloadSchema extends SpruceSchema.Schema {
11251
- id: 'updateRoleEmitPayload';
11252
- version: 'v2020_12_25';
11253
- namespace: 'Mercury';
11254
- name: '';
11255
- fields: {
11256
- /** Name. */
11257
- 'name': {
11258
- label: 'Name';
11259
- type: 'text';
11260
- options: undefined;
11261
- };
11262
- /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11263
- 'base': {
11264
- label: 'Base';
11265
- type: 'select';
11266
- hint: 'A best practices starting point for a role based on the generalized roles at a company.';
11267
- options: {
11268
- choices: [{
11269
- "label": "Owner";
11270
- "value": "owner";
11271
- }, {
11272
- "label": "Group manager";
11273
- "value": "groupManager";
11274
- }, {
11275
- "label": "Manager";
11276
- "value": "manager";
11277
- }, {
11278
- "label": "Teammate";
11279
- "value": "teammate";
11280
- }, {
11281
- "label": "Anonymous";
11282
- "value": "anonymous";
11283
- }, {
11284
- "label": "Logged in";
11285
- "value": "loggedIn";
11286
- }, {
11287
- "label": "Guest";
11288
- "value": "guest";
11289
- }];
11290
- };
11291
- };
11292
- /** Description. */
11293
- 'description': {
11294
- label: 'Description';
11295
- type: 'text';
11296
- options: undefined;
11297
- };
11298
- /** . */
11299
- 'dateDeleted': {
11300
- type: 'number';
11301
- options: undefined;
11302
- };
11303
- /** . */
11304
- 'organizationId': {
11305
- type: 'id';
11306
- options: undefined;
11307
- };
11308
- /** Public. Should I let people that are not part of this organization this role? */
11309
- 'isPublic': {
11310
- label: 'Public';
11311
- type: 'boolean';
11312
- hint: 'Should I let people that are not part of this organization this role?';
11313
- options: undefined;
11314
- };
11315
- };
11316
- }
11317
- interface UpdateRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema> {
11318
- }
11319
- }
11320
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11321
- interface UpdateRoleEmitTargetAndPayload {
11322
- /** Source. */
11323
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11324
- 'target': SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTarget;
11325
- 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayload | undefined | null;
11326
- }
11327
- interface UpdateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11328
- id: 'updateRoleEmitTargetAndPayload';
11329
- version: 'v2020_12_25';
11330
- namespace: 'Mercury';
11331
- name: '';
11332
- fields: {
11333
- /** Source. */
11334
- 'source': {
11335
- label: 'Source';
11336
- type: 'schema';
11337
- options: {
11338
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11339
- };
11340
- };
11341
- /** . */
11342
- 'target': {
11343
- type: 'schema';
11344
- isRequired: true;
11345
- options: {
11346
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema;
11347
- };
11348
- };
11349
- /** . */
11350
- 'payload': {
11351
- type: 'schema';
11352
- options: {
11353
- schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema;
11354
- };
11355
- };
11356
- };
11357
- }
11358
- interface UpdateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetAndPayloadSchema> {
11359
- }
11360
- }
11361
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11362
- interface UpdateRoleResponsePayload {
11363
- 'role': SpruceSchemas.Spruce.v2020_07_22.Role;
11364
- }
11365
- interface UpdateRoleResponsePayloadSchema extends SpruceSchema.Schema {
11366
- id: 'updateRoleResponsePayload';
11367
- version: 'v2020_12_25';
11368
- namespace: 'Mercury';
11369
- name: '';
11370
- fields: {
11371
- /** . */
11372
- 'role': {
11373
- type: 'schema';
11374
- isRequired: true;
11375
- options: {
11376
- schema: SpruceSchemas.Spruce.v2020_07_22.RoleSchema;
11377
- };
11378
- };
11379
- };
11380
- }
11381
- interface UpdateRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleResponsePayloadSchema> {
11382
- }
11383
- }
11384
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11385
- interface UpsertPermissionContractEmitTarget {
11386
- 'organizationId': string;
11387
- 'permissionContractId': string;
11388
- 'roleId': string;
11389
- 'skillId'?: string | undefined | null;
11390
- }
11391
- interface UpsertPermissionContractEmitTargetSchema extends SpruceSchema.Schema {
11392
- id: 'upsertPermissionContractEmitTarget';
11393
- version: 'v2020_12_25';
11394
- namespace: 'Mercury';
11395
- name: '';
11396
- fields: {
11397
- /** . */
11398
- 'organizationId': {
11399
- type: 'id';
11400
- isRequired: true;
11401
- options: undefined;
11402
- };
11403
- /** . */
11404
- 'permissionContractId': {
11405
- type: 'id';
11406
- isRequired: true;
11407
- options: undefined;
11408
- };
11409
- /** . */
11410
- 'roleId': {
11411
- type: 'id';
11412
- isRequired: true;
11413
- options: undefined;
11414
- };
11415
- /** . */
11416
- 'skillId': {
11417
- type: 'id';
11418
- options: undefined;
11419
- };
11420
- };
11421
- }
11422
- interface UpsertPermissionContractEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema> {
11423
- }
11424
- }
11425
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11426
- interface UpsertPermissionContractEmitTargetAndPayload {
11427
- /** Source. */
11428
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11429
- 'target': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTarget;
11430
- 'payload': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayload;
11431
- }
11432
- interface UpsertPermissionContractEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11433
- id: 'upsertPermissionContractEmitTargetAndPayload';
11434
- version: 'v2020_12_25';
11435
- namespace: 'Mercury';
11436
- name: '';
11437
- fields: {
11438
- /** Source. */
11439
- 'source': {
11440
- label: 'Source';
11441
- type: 'schema';
11442
- options: {
11443
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11444
- };
11445
- };
11446
- /** . */
11447
- 'target': {
11448
- type: 'schema';
11449
- isRequired: true;
11450
- options: {
11451
- schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema;
11452
- };
11453
- };
11454
- /** . */
11455
- 'payload': {
11456
- type: 'schema';
11457
- isRequired: true;
11458
- options: {
11459
- schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema;
11460
- };
11461
- };
11462
- };
11463
- }
11464
- interface UpsertPermissionContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetAndPayloadSchema> {
11465
- }
11466
- }
11467
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11468
- interface UpsertPermissionContractsEmitPayload {
11469
- /** Name. Human readable name for this contract */
11470
- 'name': string;
11471
- /** Description. */
11472
- 'description'?: string | undefined | null;
11473
- /** Require all permissions. */
11474
- 'requireAllPermissions'?: boolean | undefined | null;
11475
- 'permissions': SpruceSchemas.Mercury.v2020_12_25.Permission[];
11476
- }
11477
- interface UpsertPermissionContractsEmitPayloadSchema extends SpruceSchema.Schema {
11478
- id: 'upsertPermissionContractsEmitPayload';
11479
- version: 'v2020_12_25';
11480
- namespace: 'Mercury';
11481
- name: '';
11482
- fields: {
11483
- /** Name. Human readable name for this contract */
11484
- 'name': {
11485
- label: 'Name';
11486
- type: 'text';
11487
- isRequired: true;
11488
- hint: 'Human readable name for this contract';
11489
- options: undefined;
11490
- };
11491
- /** Description. */
11492
- 'description': {
11493
- label: 'Description';
11494
- type: 'text';
11495
- options: undefined;
11496
- };
11497
- /** Require all permissions. */
11498
- 'requireAllPermissions': {
11499
- label: 'Require all permissions';
11500
- type: 'boolean';
11501
- defaultValue: false;
11502
- options: undefined;
11503
- };
11504
- /** . */
11505
- 'permissions': {
11506
- type: 'schema';
11507
- isRequired: true;
11508
- isArray: true;
11509
- minArrayLength: 0;
11510
- options: {
11511
- schema: SpruceSchemas.Mercury.v2020_12_25.PermissionSchema;
11512
- };
11513
- };
11514
- };
11515
- }
11516
- interface UpsertPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema> {
11517
- }
11518
- }
11519
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11520
- interface UpsertPermissionContractResponsePayload {
11521
- 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
11522
- }
11523
- interface UpsertPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
11524
- id: 'upsertPermissionContractResponsePayload';
11525
- version: 'v2020_12_25';
11526
- namespace: 'Mercury';
11527
- name: '';
11528
- fields: {
11529
- /** . */
11530
- 'permissionContract': {
11531
- type: 'schema';
11532
- isRequired: true;
11533
- options: {
11534
- schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
11535
- };
11536
- };
11537
- };
11538
- }
11539
- interface UpsertPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractResponsePayloadSchema> {
11540
- }
11541
- }
11542
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11543
- interface VoteForFeatureEmitPayload {
11544
- 'featureKey': string;
11545
- 'skillNamespace': string;
11546
- }
11547
- interface VoteForFeatureEmitPayloadSchema extends SpruceSchema.Schema {
11548
- id: 'voteForFeatureEmitPayload';
11549
- version: 'v2020_12_25';
11550
- namespace: 'Mercury';
11551
- name: '';
11552
- fields: {
11553
- /** . */
11554
- 'featureKey': {
11555
- type: 'id';
11556
- isRequired: true;
11557
- options: undefined;
11558
- };
11559
- /** . */
11560
- 'skillNamespace': {
11561
- type: 'id';
11562
- isRequired: true;
11563
- options: undefined;
11564
- };
11565
- };
11566
- }
11567
- interface VoteForFeatureEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema> {
11568
- }
11569
- }
11570
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11571
- interface VoteForFeatureEmitTargetAndPayload {
11572
- /** Source. */
11573
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11574
- 'payload': SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayload;
11575
- }
11576
- interface VoteForFeatureEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11577
- id: 'voteForFeatureEmitTargetAndPayload';
11578
- version: 'v2020_12_25';
11579
- namespace: 'Mercury';
11580
- name: '';
11581
- fields: {
11582
- /** Source. */
11583
- 'source': {
11584
- label: 'Source';
11585
- type: 'schema';
11586
- options: {
11587
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11588
- };
11589
- };
11590
- /** . */
11591
- 'payload': {
11592
- type: 'schema';
11593
- isRequired: true;
11594
- options: {
11595
- schema: SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema;
11596
- };
11597
- };
11598
- };
11599
- }
11600
- interface VoteForFeatureEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitTargetAndPayloadSchema> {
11601
- }
11602
- }
11603
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11604
- interface VoteForFeatureResponsePayload {
11605
- 'totalVotes': number;
11606
- }
11607
- interface VoteForFeatureResponsePayloadSchema extends SpruceSchema.Schema {
11608
- id: 'voteForFeatureResponsePayload';
11609
- version: 'v2020_12_25';
11610
- namespace: 'Mercury';
11611
- name: '';
11612
- fields: {
11613
- /** . */
11614
- 'totalVotes': {
11615
- type: 'number';
11616
- isRequired: true;
11617
- options: undefined;
11618
- };
11619
- };
11620
- }
11621
- interface VoteForFeatureResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureResponsePayloadSchema> {
11622
- }
11623
- }
11624
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11625
- interface WhoamiEmitTargetAndPayload {
11626
- /** Source. */
11627
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11628
- }
11629
- interface WhoamiEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11630
- id: 'whoamiEmitTargetAndPayload';
11631
- version: 'v2020_12_25';
11632
- namespace: 'Mercury';
11633
- name: '';
11634
- fields: {
11635
- /** Source. */
11636
- 'source': {
11637
- label: 'Source';
11638
- type: 'schema';
11639
- options: {
11640
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11641
- };
11642
- };
11643
- };
11644
- }
11645
- interface WhoamiEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.WhoamiEmitTargetAndPayloadSchema> {
11646
- }
11647
- }
11648
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11649
- interface DidInstallEmitTarget {
11650
- 'organizationId': string;
11651
- 'skillId': string;
11652
- }
11653
- interface DidInstallEmitTargetSchema extends SpruceSchema.Schema {
11654
- id: 'didInstallEmitTarget';
11655
- version: 'v2020_12_25';
11656
- namespace: 'Mercury';
11657
- name: '';
11658
- fields: {
11659
- /** . */
11660
- 'organizationId': {
11661
- type: 'id';
11662
- isRequired: true;
11663
- options: undefined;
11664
- };
11665
- /** . */
11666
- 'skillId': {
11667
- type: 'id';
11668
- isRequired: true;
11669
- options: undefined;
11670
- };
11671
- };
11672
- }
11673
- interface DidInstallEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema> {
11674
- }
11675
- }
11676
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11677
- interface DidInstallEmitTargetAndPayload {
11678
- /** Source. */
11679
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11680
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTarget;
11681
- }
11682
- interface DidInstallEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11683
- id: 'didInstallEmitTargetAndPayload';
11684
- version: 'v2020_12_25';
11685
- namespace: 'Mercury';
11686
- name: '';
11687
- fields: {
11688
- /** Source. */
11689
- 'source': {
11690
- label: 'Source';
11691
- type: 'schema';
11692
- options: {
11693
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11694
- };
11695
- };
11696
- /** . */
11697
- 'target': {
11698
- type: 'schema';
11699
- isRequired: true;
11700
- options: {
11701
- schema: SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema;
11702
- };
11703
- };
11704
- };
11705
- }
11706
- interface DidInstallEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetAndPayloadSchema> {
11707
- }
11708
- }
11709
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11710
- interface DidInstallResponsePayload {
11711
- }
11712
- interface DidInstallResponsePayloadSchema extends SpruceSchema.Schema {
11713
- id: 'didInstallResponsePayload';
11714
- version: 'v2020_12_25';
11715
- namespace: 'Mercury';
11716
- name: '';
11717
- fields: {};
11718
- }
11719
- interface DidInstallResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallResponsePayloadSchema> {
11720
- }
11721
- }
11722
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11723
- interface DidJoinOrganizationEmitTarget {
11724
- 'organizationId': string;
11725
- 'locationId'?: string | undefined | null;
11726
- }
11727
- interface DidJoinOrganizationEmitTargetSchema extends SpruceSchema.Schema {
11728
- id: 'didJoinOrganizationEmitTarget';
11729
- version: 'v2020_12_25';
11730
- namespace: 'Mercury';
11731
- name: '';
11732
- fields: {
11733
- /** . */
11734
- 'organizationId': {
11735
- type: 'id';
11736
- isRequired: true;
11737
- options: undefined;
11738
- };
11739
- /** . */
11740
- 'locationId': {
11741
- type: 'id';
11742
- options: undefined;
11743
- };
11744
- };
11745
- }
11746
- interface DidJoinOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema> {
11747
- }
11748
- }
11749
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11750
- interface DidJoinOrganizationEmitPayload {
11751
- 'personId': string;
11752
- 'roleId': string;
11753
- 'isFirstRole': boolean;
11754
- }
11755
- interface DidJoinOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
11756
- id: 'didJoinOrganizationEmitPayload';
11757
- version: 'v2020_12_25';
11758
- namespace: 'Mercury';
11759
- name: '';
11760
- fields: {
11761
- /** . */
11762
- 'personId': {
11763
- type: 'id';
11764
- isRequired: true;
11765
- options: undefined;
11766
- };
11767
- /** . */
11768
- 'roleId': {
11769
- type: 'id';
11770
- isRequired: true;
11771
- options: undefined;
11772
- };
11773
- /** . */
11774
- 'isFirstRole': {
11775
- type: 'boolean';
11776
- isRequired: true;
11777
- options: undefined;
11778
- };
11779
- };
11780
- }
11781
- interface DidJoinOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema> {
11782
- }
11783
- }
11784
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11785
- interface DidJoinOrganizationEmitTargetAndPayload {
11786
- /** Source. */
11787
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11788
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTarget;
11789
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayload;
11790
- }
11791
- interface DidJoinOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11792
- id: 'didJoinOrganizationEmitTargetAndPayload';
11793
- version: 'v2020_12_25';
11794
- namespace: 'Mercury';
11795
- name: '';
11796
- fields: {
11797
- /** Source. */
11798
- 'source': {
11799
- label: 'Source';
11800
- type: 'schema';
11801
- options: {
11802
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
11803
- };
11804
- };
11805
- /** . */
11806
- 'target': {
11807
- type: 'schema';
11808
- isRequired: true;
11809
- options: {
11810
- schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetSchema;
11811
- };
11812
- };
11813
- /** . */
11814
- 'payload': {
11815
- type: 'schema';
11816
- isRequired: true;
11817
- options: {
11818
- schema: SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitPayloadSchema;
11819
- };
11820
- };
11821
- };
11822
- }
11823
- interface DidJoinOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationEmitTargetAndPayloadSchema> {
11824
- }
11825
- }
11826
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11827
- interface MessageTemplateAddons {
11828
- 'nextINeedYouTo'?: string[] | undefined | null;
11829
- 'youShouldKnowThat'?: string[] | undefined | null;
11830
- 'links'?: SpruceSchemas.Spruce.v2020_07_22.Link[] | undefined | null;
11831
- }
11832
- interface MessageTemplateAddonsSchema extends SpruceSchema.Schema {
11833
- id: 'messageTemplateAddons';
11834
- version: 'v2020_12_25';
11835
- namespace: 'Mercury';
11836
- name: '';
11837
- fields: {
11838
- /** . */
11839
- 'nextINeedYouTo': {
11840
- type: 'text';
11841
- isArray: true;
11842
- options: undefined;
11843
- };
11844
- /** . */
11845
- 'youShouldKnowThat': {
11846
- type: 'text';
11847
- isArray: true;
11848
- options: undefined;
11849
- };
11850
- /** . */
11851
- 'links': {
11852
- type: 'schema';
11853
- isArray: true;
11854
- minArrayLength: 0;
11855
- options: {
11856
- schema: SpruceSchemas.Spruce.v2020_07_22.LinkSchema;
11857
- };
11858
- };
11859
- };
11860
- }
11861
- interface MessageTemplateAddonsEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema> {
11862
- }
11863
- }
11864
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11865
- interface DidJoinOrganizationResponsePayload {
11866
- 'messaging'?: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddons | undefined | null;
11867
- }
11868
- interface DidJoinOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
11869
- id: 'didJoinOrganizationResponsePayload';
11870
- version: 'v2020_12_25';
11871
- namespace: 'Mercury';
11872
- name: '';
11873
- fields: {
11874
- /** . */
11875
- 'messaging': {
11876
- type: 'schema';
11855
+ label: 'Avatar src';
11856
+ type: 'image';
11877
11857
  options: {
11878
- schema: SpruceSchemas.Mercury.v2020_12_25.MessageTemplateAddonsSchema;
11858
+ requiredSizes: ["*"];
11879
11859
  };
11880
11860
  };
11881
- };
11882
- }
11883
- interface DidJoinOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidJoinOrganizationResponsePayloadSchema> {
11884
- }
11885
- }
11886
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11887
- interface DidLeaveOrganizationEmitTarget {
11888
- 'organizationId': string;
11889
- 'locationId'?: string | undefined | null;
11890
- }
11891
- interface DidLeaveOrganizationEmitTargetSchema extends SpruceSchema.Schema {
11892
- id: 'didLeaveOrganizationEmitTarget';
11893
- version: 'v2020_12_25';
11894
- namespace: 'Mercury';
11895
- name: '';
11896
- fields: {
11897
- /** . */
11898
- 'organizationId': {
11899
- type: 'id';
11900
- isRequired: true;
11901
- options: undefined;
11902
- };
11903
- /** . */
11904
- 'locationId': {
11905
- type: 'id';
11906
- options: undefined;
11907
- };
11908
- };
11909
- }
11910
- interface DidLeaveOrganizationEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema> {
11911
- }
11912
- }
11913
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11914
- interface DidLeaveOrganizationEmitPayload {
11915
- 'personId': string;
11916
- 'roleId': string;
11917
- 'isLastRole': boolean;
11918
- }
11919
- interface DidLeaveOrganizationEmitPayloadSchema extends SpruceSchema.Schema {
11920
- id: 'didLeaveOrganizationEmitPayload';
11921
- version: 'v2020_12_25';
11922
- namespace: 'Mercury';
11923
- name: '';
11924
- fields: {
11925
- /** . */
11926
- 'personId': {
11927
- type: 'id';
11928
- isRequired: true;
11929
- options: undefined;
11930
- };
11931
- /** . */
11932
- 'roleId': {
11933
- type: 'id';
11934
- isRequired: true;
11935
- options: undefined;
11936
- };
11937
- /** . */
11938
- 'isLastRole': {
11939
- type: 'boolean';
11940
- isRequired: true;
11861
+ /** Phone. A number that can be texted */
11862
+ 'phone': {
11863
+ label: 'Phone';
11864
+ type: 'phone';
11865
+ isPrivate: true;
11866
+ hint: 'A number that can be texted';
11941
11867
  options: undefined;
11942
11868
  };
11943
11869
  };
11944
11870
  }
11945
- interface DidLeaveOrganizationEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema> {
11871
+ interface UpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema> {
11946
11872
  }
11947
11873
  }
11948
11874
  namespace SpruceSchemas.Mercury.v2020_12_25 {
11949
- interface DidLeaveOrganizationEmitTargetAndPayload {
11875
+ interface UpdatePersonEmitTargetAndPayload {
11950
11876
  /** Source. */
11951
11877
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
11952
- 'target': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTarget;
11953
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayload;
11878
+ 'target'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTarget | undefined | null;
11879
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayload | undefined | null;
11954
11880
  }
11955
- interface DidLeaveOrganizationEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11956
- id: 'didLeaveOrganizationEmitTargetAndPayload';
11881
+ interface UpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
11882
+ id: 'updatePersonEmitTargetAndPayload';
11957
11883
  version: 'v2020_12_25';
11958
11884
  namespace: 'Mercury';
11959
11885
  name: '';
@@ -11969,225 +11895,315 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11969
11895
  /** . */
11970
11896
  'target': {
11971
11897
  type: 'schema';
11972
- isRequired: true;
11973
11898
  options: {
11974
- schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetSchema;
11899
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetSchema;
11975
11900
  };
11976
11901
  };
11977
11902
  /** . */
11978
11903
  'payload': {
11979
11904
  type: 'schema';
11980
- isRequired: true;
11981
11905
  options: {
11982
- schema: SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitPayloadSchema;
11906
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitPayloadSchema;
11983
11907
  };
11984
11908
  };
11985
11909
  };
11986
11910
  }
11987
- interface DidLeaveOrganizationEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationEmitTargetAndPayloadSchema> {
11988
- }
11989
- }
11990
- namespace SpruceSchemas.Mercury.v2020_12_25 {
11991
- interface DidLeaveOrganizationResponsePayload {
11992
- }
11993
- interface DidLeaveOrganizationResponsePayloadSchema extends SpruceSchema.Schema {
11994
- id: 'didLeaveOrganizationResponsePayload';
11995
- version: 'v2020_12_25';
11996
- namespace: 'Mercury';
11997
- name: '';
11998
- fields: {};
11999
- }
12000
- interface DidLeaveOrganizationResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationResponsePayloadSchema> {
11911
+ interface UpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonEmitTargetAndPayloadSchema> {
12001
11912
  }
12002
11913
  }
12003
11914
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12004
- interface DidMessageEmitPayload {
12005
- 'message': SpruceSchemas.Spruce.v2020_07_22.Message;
12006
- 'conversationState'?: string | undefined | null;
12007
- 'topic'?: string | undefined | null;
11915
+ interface UpdatePersonResponsePayload {
11916
+ 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12008
11917
  }
12009
- interface DidMessageEmitPayloadSchema extends SpruceSchema.Schema {
12010
- id: 'didMessageEmitPayload';
11918
+ interface UpdatePersonResponsePayloadSchema extends SpruceSchema.Schema {
11919
+ id: 'updatePersonResponsePayload';
12011
11920
  version: 'v2020_12_25';
12012
11921
  namespace: 'Mercury';
12013
11922
  name: '';
12014
11923
  fields: {
12015
11924
  /** . */
12016
- 'message': {
11925
+ 'person': {
12017
11926
  type: 'schema';
12018
11927
  isRequired: true;
12019
11928
  options: {
12020
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageSchema;
11929
+ schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12021
11930
  };
12022
11931
  };
12023
- /** . */
12024
- 'conversationState': {
12025
- type: 'text';
12026
- options: undefined;
12027
- };
12028
- /** . */
12029
- 'topic': {
12030
- type: 'text';
12031
- options: undefined;
12032
- };
12033
11932
  };
12034
11933
  }
12035
- interface DidMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema> {
11934
+ interface UpdatePersonResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdatePersonResponsePayloadSchema> {
12036
11935
  }
12037
11936
  }
12038
11937
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12039
- interface ConversationTopic {
12040
- 'key': string;
12041
- 'confidence': number;
12042
- 'label': string;
11938
+ interface UpdateRoleEmitTarget {
11939
+ 'roleId': string;
12043
11940
  }
12044
- interface ConversationTopicSchema extends SpruceSchema.Schema {
12045
- id: 'conversationTopic';
11941
+ interface UpdateRoleEmitTargetSchema extends SpruceSchema.Schema {
11942
+ id: 'updateRoleEmitTarget';
12046
11943
  version: 'v2020_12_25';
12047
11944
  namespace: 'Mercury';
12048
11945
  name: '';
12049
11946
  fields: {
12050
11947
  /** . */
12051
- 'key': {
12052
- type: 'text';
12053
- isRequired: true;
12054
- options: undefined;
12055
- };
12056
- /** . */
12057
- 'confidence': {
12058
- type: 'number';
12059
- isRequired: true;
12060
- options: undefined;
12061
- };
12062
- /** . */
12063
- 'label': {
12064
- type: 'text';
11948
+ 'roleId': {
11949
+ type: 'id';
12065
11950
  isRequired: true;
12066
11951
  options: undefined;
12067
11952
  };
12068
11953
  };
12069
11954
  }
12070
- interface ConversationTopicEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema> {
11955
+ interface UpdateRoleEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema> {
12071
11956
  }
12072
11957
  }
12073
11958
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12074
- interface DidMessageResponsePayload {
12075
- 'transitionConversationTo'?: ("greeting" | "discovery" | "topic" | "closing") | undefined | null;
12076
- 'repairs'?: string[] | undefined | null;
12077
- 'topicChangers'?: string[] | undefined | null;
12078
- 'utterance'?: string | undefined | null;
12079
- 'suggestedTopics'?: SpruceSchemas.Mercury.v2020_12_25.ConversationTopic[] | undefined | null;
11959
+ interface UpdateRoleEmitPayload {
11960
+ /** Name. */
11961
+ 'name'?: string | undefined | null;
11962
+ /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11963
+ 'base'?: ("owner" | "groupManager" | "manager" | "teammate" | "anonymous" | "loggedIn" | "guest") | undefined | null;
11964
+ /** Description. */
11965
+ 'description'?: string | undefined | null;
11966
+ 'dateDeleted'?: number | undefined | null;
11967
+ 'organizationId'?: string | undefined | null;
11968
+ /** Public. Should I let people that are not part of this organization this role? */
11969
+ 'isPublic'?: boolean | undefined | null;
12080
11970
  }
12081
- interface DidMessageResponsePayloadSchema extends SpruceSchema.Schema {
12082
- id: 'didMessageResponsePayload';
11971
+ interface UpdateRoleEmitPayloadSchema extends SpruceSchema.Schema {
11972
+ id: 'updateRoleEmitPayload';
12083
11973
  version: 'v2020_12_25';
12084
11974
  namespace: 'Mercury';
12085
11975
  name: '';
12086
11976
  fields: {
12087
- /** . */
12088
- 'transitionConversationTo': {
11977
+ /** Name. */
11978
+ 'name': {
11979
+ label: 'Name';
11980
+ type: 'text';
11981
+ options: undefined;
11982
+ };
11983
+ /** Base. A best practices starting point for a role based on the generalized roles at a company. */
11984
+ 'base': {
11985
+ label: 'Base';
12089
11986
  type: 'select';
11987
+ hint: 'A best practices starting point for a role based on the generalized roles at a company.';
12090
11988
  options: {
12091
11989
  choices: [{
12092
- "label": "Greeting";
12093
- "value": "greeting";
11990
+ "label": "Owner";
11991
+ "value": "owner";
12094
11992
  }, {
12095
- "label": "Discovery";
12096
- "value": "discovery";
11993
+ "label": "Group manager";
11994
+ "value": "groupManager";
12097
11995
  }, {
12098
- "label": "Topic";
12099
- "value": "topic";
11996
+ "label": "Manager";
11997
+ "value": "manager";
12100
11998
  }, {
12101
- "label": "Closing";
12102
- "value": "closing";
11999
+ "label": "Teammate";
12000
+ "value": "teammate";
12001
+ }, {
12002
+ "label": "Anonymous";
12003
+ "value": "anonymous";
12004
+ }, {
12005
+ "label": "Logged in";
12006
+ "value": "loggedIn";
12007
+ }, {
12008
+ "label": "Guest";
12009
+ "value": "guest";
12103
12010
  }];
12104
12011
  };
12105
12012
  };
12106
- /** . */
12107
- 'repairs': {
12013
+ /** Description. */
12014
+ 'description': {
12015
+ label: 'Description';
12108
12016
  type: 'text';
12109
- isArray: true;
12110
12017
  options: undefined;
12111
12018
  };
12112
12019
  /** . */
12113
- 'topicChangers': {
12114
- type: 'text';
12115
- isArray: true;
12020
+ 'dateDeleted': {
12021
+ type: 'number';
12022
+ options: undefined;
12023
+ };
12024
+ /** . */
12025
+ 'organizationId': {
12026
+ type: 'id';
12027
+ options: undefined;
12028
+ };
12029
+ /** Public. Should I let people that are not part of this organization this role? */
12030
+ 'isPublic': {
12031
+ label: 'Public';
12032
+ type: 'boolean';
12033
+ hint: 'Should I let people that are not part of this organization this role?';
12116
12034
  options: undefined;
12117
12035
  };
12036
+ };
12037
+ }
12038
+ interface UpdateRoleEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema> {
12039
+ }
12040
+ }
12041
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12042
+ interface UpdateRoleEmitTargetAndPayload {
12043
+ /** Source. */
12044
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12045
+ 'target': SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTarget;
12046
+ 'payload'?: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayload | undefined | null;
12047
+ }
12048
+ interface UpdateRoleEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12049
+ id: 'updateRoleEmitTargetAndPayload';
12050
+ version: 'v2020_12_25';
12051
+ namespace: 'Mercury';
12052
+ name: '';
12053
+ fields: {
12054
+ /** Source. */
12055
+ 'source': {
12056
+ label: 'Source';
12057
+ type: 'schema';
12058
+ options: {
12059
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12060
+ };
12061
+ };
12118
12062
  /** . */
12119
- 'utterance': {
12120
- type: 'text';
12121
- options: undefined;
12063
+ 'target': {
12064
+ type: 'schema';
12065
+ isRequired: true;
12066
+ options: {
12067
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetSchema;
12068
+ };
12122
12069
  };
12123
12070
  /** . */
12124
- 'suggestedTopics': {
12071
+ 'payload': {
12125
12072
  type: 'schema';
12126
- isArray: true;
12127
12073
  options: {
12128
- schema: SpruceSchemas.Mercury.v2020_12_25.ConversationTopicSchema;
12074
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitPayloadSchema;
12129
12075
  };
12130
12076
  };
12131
12077
  };
12132
12078
  }
12133
- interface DidMessageResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageResponsePayloadSchema> {
12079
+ interface UpdateRoleEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleEmitTargetAndPayloadSchema> {
12134
12080
  }
12135
12081
  }
12136
12082
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12137
- interface DidSignupEmitPayload {
12138
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12083
+ interface UpdateRoleResponsePayload {
12084
+ 'role': SpruceSchemas.Spruce.v2020_07_22.Role;
12139
12085
  }
12140
- interface DidSignupEmitPayloadSchema extends SpruceSchema.Schema {
12141
- id: 'didSignupEmitPayload';
12086
+ interface UpdateRoleResponsePayloadSchema extends SpruceSchema.Schema {
12087
+ id: 'updateRoleResponsePayload';
12142
12088
  version: 'v2020_12_25';
12143
12089
  namespace: 'Mercury';
12144
12090
  name: '';
12145
12091
  fields: {
12146
12092
  /** . */
12147
- 'person': {
12093
+ 'role': {
12148
12094
  type: 'schema';
12149
12095
  isRequired: true;
12150
12096
  options: {
12151
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12097
+ schema: SpruceSchemas.Spruce.v2020_07_22.RoleSchema;
12152
12098
  };
12153
12099
  };
12154
12100
  };
12155
12101
  }
12156
- interface DidSignupEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema> {
12102
+ interface UpdateRoleResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpdateRoleResponsePayloadSchema> {
12157
12103
  }
12158
12104
  }
12159
12105
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12160
- interface DidUpdateFeedEmitPayload {
12161
- 'item': SpruceSchemas.Spruce.v2020_07_22.FeedItem;
12106
+ interface UpsertPermissionContractEmitTarget {
12107
+ 'organizationId': string;
12108
+ 'permissionContractId': string;
12109
+ 'roleId': string;
12110
+ 'skillId'?: string | undefined | null;
12162
12111
  }
12163
- interface DidUpdateFeedEmitPayloadSchema extends SpruceSchema.Schema {
12164
- id: 'didUpdateFeedEmitPayload';
12112
+ interface UpsertPermissionContractEmitTargetSchema extends SpruceSchema.Schema {
12113
+ id: 'upsertPermissionContractEmitTarget';
12165
12114
  version: 'v2020_12_25';
12166
12115
  namespace: 'Mercury';
12167
12116
  name: '';
12168
12117
  fields: {
12169
12118
  /** . */
12170
- 'item': {
12119
+ 'organizationId': {
12120
+ type: 'id';
12121
+ isRequired: true;
12122
+ options: undefined;
12123
+ };
12124
+ /** . */
12125
+ 'permissionContractId': {
12126
+ type: 'id';
12127
+ isRequired: true;
12128
+ options: undefined;
12129
+ };
12130
+ /** . */
12131
+ 'roleId': {
12132
+ type: 'id';
12133
+ isRequired: true;
12134
+ options: undefined;
12135
+ };
12136
+ /** . */
12137
+ 'skillId': {
12138
+ type: 'id';
12139
+ options: undefined;
12140
+ };
12141
+ };
12142
+ }
12143
+ interface UpsertPermissionContractEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema> {
12144
+ }
12145
+ }
12146
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12147
+ interface UpsertPermissionContractsEmitPayload {
12148
+ /** Name. Human readable name for this contract */
12149
+ 'name': string;
12150
+ /** Description. */
12151
+ 'description'?: string | undefined | null;
12152
+ /** Require all permissions. */
12153
+ 'requireAllPermissions'?: boolean | undefined | null;
12154
+ 'permissions': SpruceSchemas.Mercury.v2020_12_25.Permission[];
12155
+ }
12156
+ interface UpsertPermissionContractsEmitPayloadSchema extends SpruceSchema.Schema {
12157
+ id: 'upsertPermissionContractsEmitPayload';
12158
+ version: 'v2020_12_25';
12159
+ namespace: 'Mercury';
12160
+ name: '';
12161
+ fields: {
12162
+ /** Name. Human readable name for this contract */
12163
+ 'name': {
12164
+ label: 'Name';
12165
+ type: 'text';
12166
+ isRequired: true;
12167
+ hint: 'Human readable name for this contract';
12168
+ options: undefined;
12169
+ };
12170
+ /** Description. */
12171
+ 'description': {
12172
+ label: 'Description';
12173
+ type: 'text';
12174
+ options: undefined;
12175
+ };
12176
+ /** Require all permissions. */
12177
+ 'requireAllPermissions': {
12178
+ label: 'Require all permissions';
12179
+ type: 'boolean';
12180
+ defaultValue: false;
12181
+ options: undefined;
12182
+ };
12183
+ /** . */
12184
+ 'permissions': {
12171
12185
  type: 'schema';
12172
12186
  isRequired: true;
12187
+ isArray: true;
12188
+ minArrayLength: 0;
12173
12189
  options: {
12174
- schema: SpruceSchemas.Spruce.v2020_07_22.FeedItemSchema;
12190
+ schema: SpruceSchemas.Mercury.v2020_12_25.PermissionSchema;
12175
12191
  };
12176
12192
  };
12177
12193
  };
12178
12194
  }
12179
- interface DidUpdateFeedEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema> {
12195
+ interface UpsertPermissionContractsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema> {
12180
12196
  }
12181
12197
  }
12182
12198
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12183
- interface DidMessageEmitTargetAndPayload {
12199
+ interface UpsertPermissionContractEmitTargetAndPayload {
12184
12200
  /** Source. */
12185
12201
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12186
- 'target'?: SpruceSchemas.Spruce.v2020_07_22.MessageTarget | undefined | null;
12187
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayload;
12202
+ 'target': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTarget;
12203
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayload;
12188
12204
  }
12189
- interface DidMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12190
- id: 'didMessageEmitTargetAndPayload';
12205
+ interface UpsertPermissionContractEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12206
+ id: 'upsertPermissionContractEmitTargetAndPayload';
12191
12207
  version: 'v2020_12_25';
12192
12208
  namespace: 'Mercury';
12193
12209
  name: '';
@@ -12203,8 +12219,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12203
12219
  /** . */
12204
12220
  'target': {
12205
12221
  type: 'schema';
12222
+ isRequired: true;
12206
12223
  options: {
12207
- schema: SpruceSchemas.Spruce.v2020_07_22.MessageTargetSchema;
12224
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetSchema;
12208
12225
  };
12209
12226
  };
12210
12227
  /** . */
@@ -12212,64 +12229,73 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12212
12229
  type: 'schema';
12213
12230
  isRequired: true;
12214
12231
  options: {
12215
- schema: SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitPayloadSchema;
12232
+ schema: SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractsEmitPayloadSchema;
12216
12233
  };
12217
12234
  };
12218
12235
  };
12219
12236
  }
12220
- interface DidMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema> {
12237
+ interface UpsertPermissionContractEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractEmitTargetAndPayloadSchema> {
12221
12238
  }
12222
12239
  }
12223
12240
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12224
- interface DidSignupEmitTargetAndPayload {
12225
- /** Source. */
12226
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12227
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
12228
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayload;
12241
+ interface UpsertPermissionContractResponsePayload {
12242
+ 'permissionContract': SpruceSchemas.Mercury.v2020_12_25.PermissionContract;
12229
12243
  }
12230
- interface DidSignupEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12231
- id: 'didSignupEmitTargetAndPayload';
12244
+ interface UpsertPermissionContractResponsePayloadSchema extends SpruceSchema.Schema {
12245
+ id: 'upsertPermissionContractResponsePayload';
12232
12246
  version: 'v2020_12_25';
12233
12247
  namespace: 'Mercury';
12234
12248
  name: '';
12235
12249
  fields: {
12236
- /** Source. */
12237
- 'source': {
12238
- label: 'Source';
12250
+ /** . */
12251
+ 'permissionContract': {
12239
12252
  type: 'schema';
12253
+ isRequired: true;
12240
12254
  options: {
12241
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12255
+ schema: SpruceSchemas.Mercury.v2020_12_25.PermissionContractSchema;
12242
12256
  };
12243
12257
  };
12258
+ };
12259
+ }
12260
+ interface UpsertPermissionContractResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.UpsertPermissionContractResponsePayloadSchema> {
12261
+ }
12262
+ }
12263
+ namespace SpruceSchemas.Mercury.v2020_12_25 {
12264
+ interface VoteForFeatureEmitPayload {
12265
+ 'featureKey': string;
12266
+ 'skillNamespace': string;
12267
+ }
12268
+ interface VoteForFeatureEmitPayloadSchema extends SpruceSchema.Schema {
12269
+ id: 'voteForFeatureEmitPayload';
12270
+ version: 'v2020_12_25';
12271
+ namespace: 'Mercury';
12272
+ name: '';
12273
+ fields: {
12244
12274
  /** . */
12245
- 'target': {
12246
- type: 'schema';
12247
- options: {
12248
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
12249
- };
12275
+ 'featureKey': {
12276
+ type: 'id';
12277
+ isRequired: true;
12278
+ options: undefined;
12250
12279
  };
12251
12280
  /** . */
12252
- 'payload': {
12253
- type: 'schema';
12281
+ 'skillNamespace': {
12282
+ type: 'id';
12254
12283
  isRequired: true;
12255
- options: {
12256
- schema: SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitPayloadSchema;
12257
- };
12284
+ options: undefined;
12258
12285
  };
12259
12286
  };
12260
12287
  }
12261
- interface DidSignupEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema> {
12288
+ interface VoteForFeatureEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema> {
12262
12289
  }
12263
12290
  }
12264
12291
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12265
- interface DidUpdateFeedEmitTargetAndPayload {
12292
+ interface VoteForFeatureEmitTargetAndPayload {
12266
12293
  /** Source. */
12267
12294
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12268
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
12269
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayload;
12295
+ 'payload': SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayload;
12270
12296
  }
12271
- interface DidUpdateFeedEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12272
- id: 'didUpdateFeedEmitTargetAndPayload';
12297
+ interface VoteForFeatureEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12298
+ id: 'voteForFeatureEmitTargetAndPayload';
12273
12299
  version: 'v2020_12_25';
12274
12300
  namespace: 'Mercury';
12275
12301
  name: '';
@@ -12283,57 +12309,46 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12283
12309
  };
12284
12310
  };
12285
12311
  /** . */
12286
- 'target': {
12287
- type: 'schema';
12288
- options: {
12289
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
12290
- };
12291
- };
12292
- /** . */
12293
12312
  'payload': {
12294
12313
  type: 'schema';
12295
12314
  isRequired: true;
12296
12315
  options: {
12297
- schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitPayloadSchema;
12316
+ schema: SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitPayloadSchema;
12298
12317
  };
12299
12318
  };
12300
12319
  };
12301
12320
  }
12302
- interface DidUpdateFeedEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetAndPayloadSchema> {
12321
+ interface VoteForFeatureEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureEmitTargetAndPayloadSchema> {
12303
12322
  }
12304
12323
  }
12305
12324
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12306
- interface DidUpdatePersonEmitPayload {
12307
- 'person': SpruceSchemas.Spruce.v2020_07_22.Person;
12325
+ interface VoteForFeatureResponsePayload {
12326
+ 'totalVotes': number;
12308
12327
  }
12309
- interface DidUpdatePersonEmitPayloadSchema extends SpruceSchema.Schema {
12310
- id: 'didUpdatePersonEmitPayload';
12328
+ interface VoteForFeatureResponsePayloadSchema extends SpruceSchema.Schema {
12329
+ id: 'voteForFeatureResponsePayload';
12311
12330
  version: 'v2020_12_25';
12312
12331
  namespace: 'Mercury';
12313
12332
  name: '';
12314
12333
  fields: {
12315
12334
  /** . */
12316
- 'person': {
12317
- type: 'schema';
12335
+ 'totalVotes': {
12336
+ type: 'number';
12318
12337
  isRequired: true;
12319
- options: {
12320
- schema: SpruceSchemas.Spruce.v2020_07_22.PersonSchema;
12321
- };
12338
+ options: undefined;
12322
12339
  };
12323
12340
  };
12324
12341
  }
12325
- interface DidUpdatePersonEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema> {
12342
+ interface VoteForFeatureResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.VoteForFeatureResponsePayloadSchema> {
12326
12343
  }
12327
12344
  }
12328
12345
  namespace SpruceSchemas.Mercury.v2020_12_25 {
12329
- interface DidUpdatePersonEmitTargetAndPayload {
12346
+ interface WhoamiEmitTargetAndPayload {
12330
12347
  /** Source. */
12331
12348
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
12332
- 'target'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTarget | undefined | null;
12333
- 'payload': SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayload;
12334
12349
  }
12335
- interface DidUpdatePersonEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12336
- id: 'didUpdatePersonEmitTargetAndPayload';
12350
+ interface WhoamiEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
12351
+ id: 'whoamiEmitTargetAndPayload';
12337
12352
  version: 'v2020_12_25';
12338
12353
  namespace: 'Mercury';
12339
12354
  name: '';
@@ -12346,24 +12361,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
12346
12361
  schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
12347
12362
  };
12348
12363
  };
12349
- /** . */
12350
- 'target': {
12351
- type: 'schema';
12352
- options: {
12353
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventTargetSchema;
12354
- };
12355
- };
12356
- /** . */
12357
- 'payload': {
12358
- type: 'schema';
12359
- isRequired: true;
12360
- options: {
12361
- schema: SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitPayloadSchema;
12362
- };
12363
- };
12364
12364
  };
12365
12365
  }
12366
- interface DidUpdatePersonEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema> {
12366
+ interface WhoamiEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.WhoamiEmitTargetAndPayloadSchema> {
12367
12367
  }
12368
12368
  }
12369
12369
  }