@raytio/types 7.2.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,36 +37,74 @@ Hovering over the type in VSCode will display documentation and available proper
37
37
  - [AA](#aa)
38
38
  - [AATag](#aatag)
39
39
  - [AId](#aid)
40
+ - [CId](#cid)
40
41
  - [Colors](#colors)
42
+ - [CommonFields](#commonfields)
41
43
  - [CommonSchemaAttributes](#commonschemaattributes)
42
44
  - [ConditionallyRequired](#conditionallyrequired)
43
45
  - [ContactPoint](#contactpoint)
46
+ - [ContentUrl](#contenturl)
44
47
  - [CustomFonts](#customfonts)
48
+ - [Customer](#customer)
49
+ - [CustomerSite](#customersite)
50
+ - [CustomerSiteUse](#customersiteuse)
51
+ - [CustomerUser](#customeruser)
45
52
  - [DataTypes](#datatypes)
46
53
  - [Encrypted](#encrypted)
47
54
  - [GId](#gid)
55
+ - [GPMId](#gpmid)
48
56
  - [IId](#iid)
49
57
  - [Instance](#instance)
58
+ - [InstanceWithoutData](#instancewithoutdata)
59
+ - [KId](#kid)
50
60
  - [LId](#lid)
61
+ - [LOCId](#locid)
62
+ - [Link](#link)
51
63
  - [Location](#location)
52
64
  - [Lookup](#lookup)
65
+ - [MId](#mid)
66
+ - [Merchant](#merchant)
67
+ - [MerchantApprovalStatusCode](#merchantapprovalstatuscode)
68
+ - [MerchantClassCode](#merchantclasscode)
69
+ - [MerchantStatusCode](#merchantstatuscode)
70
+ - [MerchantTypeCode](#merchanttypecode)
53
71
  - [NId](#nid)
72
+ - [NId2](#nid2)
54
73
  - [OId](#oid)
55
74
  - [Organization](#organization)
75
+ - [PCId](#pcid)
56
76
  - [PId](#pid)
77
+ - [PKId](#pkid)
78
+ - [PLId](#plid)
79
+ - [PLLId](#pllid)
80
+ - [PMId](#pmid)
81
+ - [PRCId](#prcid)
82
+ - [PRid](#prid)
83
+ - [PTId](#ptid)
57
84
  - [Party](#party)
58
85
  - [PartyMetadata](#partymetadata)
59
86
  - [PartySite](#partysite)
87
+ - [PaymentMethod](#paymentmethod)
88
+ - [PaymentProcessor](#paymentprocessor)
89
+ - [PermissionType](#permissiontype)
90
+ - [PriceList](#pricelist)
91
+ - [PriceListLine](#pricelistline)
60
92
  - [ProfileObject](#profileobject)
61
93
  - [RealVer](#realver)
62
94
  - [Relationship](#relationship)
95
+ - [SId](#sid)
96
+ - [SLId](#slid)
63
97
  - [Schema](#schema)
64
98
  - [SchemaField](#schemafield)
65
99
  - [SchemaFieldTag](#schemafieldtag)
100
+ - [SchemaName](#schemaname)
66
101
  - [SchemaTag](#schematag)
67
102
  - [SchemaType](#schematype)
68
103
  - [ServerSchemaField](#serverschemafield)
69
104
  - [SubmissionStatus](#submissionstatus)
105
+ - [Subscription](#subscription)
106
+ - [SubscriptionLine](#subscriptionline)
107
+ - [TId](#tid)
70
108
  - [UId](#uid)
71
109
  - [Urn](#urn)
72
110
  - [UrnNodeType](#urnnodetype)
@@ -74,7 +112,9 @@ Hovering over the type in VSCode will display documentation and available proper
74
112
  - [Verification](#verification)
75
113
  - [VerificationPayload](#verificationpayload)
76
114
  - [VerificationProvider](#verificationprovider)
115
+ - [VerificationType](#verificationtype)
77
116
  - [WId](#wid)
117
+ - [WSId](#wsid)
78
118
  - [Webhook](#webhook)
79
119
  - [WebhookStatus](#webhookstatus)
80
120
  - [WizardConfig](#wizardconfig)
@@ -98,13 +138,14 @@ Hovering over the type in VSCode will display documentation and available proper
98
138
  | `active?` | `boolean` | - |
99
139
  | `auth_list_enabled?` | `boolean` | if true, only specific email addresses can submit the form |
100
140
  | `callback_uri?` | `string`[] | - |
141
+ | `customer_id` | [`CId`](#cid) | - |
101
142
  | `description?` | `string` | - |
102
143
  | `end_date?` | `Date` | - |
103
144
  | `key?` | `string` | - |
104
145
  | `logout_uri?` | `string`[] | - |
105
146
  | `metadata?` | `unknown` | - |
106
147
  | `name` | `string` | - |
107
- | `org_id` | [`OId`](#oid) | the id of the associated organization |
148
+ | `org_id?` | [`OId`](#oid) | the id of the associated organization |
108
149
  | `picture?` | [`Urn`](#urn) | **`Deprecated`** see !2101 |
109
150
  | `picture_url?` | `string` | Easy to use AA logo url for pasting into emails |
110
151
  | `ruleset?` | `unknown` | configuration for the submission rules |
@@ -113,7 +154,7 @@ Hovering over the type in VSCode will display documentation and available proper
113
154
  | `service_provider_n_id?` | [`NId`](#nid) | the n_id of the associated service provider |
114
155
  | `start_date?` | `Date` | Currently Unused Attributes |
115
156
  | `tags?` | [`AATag`](#aatag)[] | - |
116
- | `theme?` | { `colors?`: [`Colors`](#colors) ; `font?`: [`CustomFonts`](modules.md#customfonts) } | - |
157
+ | `theme?` | { `colors?`: [`Colors`](#colors) ; `font?`: [`CustomFonts`](#customfonts) } | - |
117
158
  | `theme.colors?` | [`Colors`](#colors) | - |
118
159
  | `theme.font?` | [`CustomFonts`](#customfonts) | - |
119
160
 
@@ -133,6 +174,14 @@ An `a_id` is the ID of an [AA](#aa)
133
174
 
134
175
  ___
135
176
 
177
+ ### CId
178
+
179
+ Ƭ **CId**: `StringWithIdentity`<``"CId"``\>
180
+
181
+ A `c_id` is the ID of a [Customer](#customer), (will eventually replace org_id)
182
+
183
+ ___
184
+
136
185
  ### Colors
137
186
 
138
187
  Ƭ **Colors**: `Object`
@@ -166,6 +215,45 @@ ___
166
215
 
167
216
  ___
168
217
 
218
+ ### CommonFields
219
+
220
+ Ƭ **CommonFields**<`IdType`, `Metadata`\>: `Object`
221
+
222
+ Every object in the new database has these fields. In the
223
+ interest of type-safety, the `id` should be one of the
224
+ well-known IDs that extend StringWithIdentity (e.g.
225
+ [NId](#nid) or [AId](#aid)). If the ID is irrelevant, then
226
+ use `CommonFields<never>` rather than `CommonFields<string>`.
227
+ This will deliberately prevent you from utilising the `id`
228
+ field until you define a special type for that ID.
229
+
230
+ This is especially important with the new API where it is much
231
+ easier to mix up the different types of IDs.
232
+
233
+ #### Type parameters
234
+
235
+ | Name | Type |
236
+ | :------ | :------ |
237
+ | `IdType` | extends `StringWithIdentity`<`string`\> |
238
+ | `Metadata` | `unknown` |
239
+
240
+ #### Type declaration
241
+
242
+ | Name | Type | Description |
243
+ | :------ | :------ | :------ |
244
+ | `active` | `boolean` | - |
245
+ | `end_date` | `string` | ISO Date |
246
+ | `id` | `IdType` | - |
247
+ | `metadata` | `Metadata` \| `undefined` | - |
248
+ | `resource_group?` | `string` | - |
249
+ | `resource_name?` | `string` | - |
250
+ | `resource_url?` | `string` | - |
251
+ | `row_version?` | `number` | - |
252
+ | `start_date` | `string` | ISO Date |
253
+ | `tenant_id?` | `string` | - |
254
+
255
+ ___
256
+
169
257
  ### CommonSchemaAttributes
170
258
 
171
259
  Ƭ **CommonSchemaAttributes**: `Object`
@@ -178,7 +266,8 @@ not exported. Attributes that are identical in both client schema & server schem
178
266
  | :------ | :------ | :------ |
179
267
  | `description` | `string` | - |
180
268
  | `description_decorator?` | ``"md"`` | specifies that the description is formatted in markdown |
181
- | `display?` | { `expand?`: { `fields`: `string`[] ; `label`: `string` }[] ; `head_main?`: { `fields`: `string`[] ; `format?`: `string` } ; `head_sub?`: { `fields`: `string`[] ; `format?`: `string` } } | - |
269
+ | `display?` | { `compact_table?`: `boolean` ; `expand?`: { `fields`: `string`[] ; `label`: `string` }[] ; `head_main?`: { `fields`: `string`[] ; `format?`: `string` } ; `head_sub?`: { `fields`: `string`[] ; `format?`: `string` } ; `tabular?`: { `fields`: `string`[] } } | - |
270
+ | `display.compact_table?` | `boolean` | determines if profile pages should display using compacted 'MiniPO' view or deafult view |
182
271
  | `display.expand?` | { `fields`: `string`[] ; `label`: `string` }[] | list of fields that should not be shown by default, unless you expand a collpase section which has a name from the label property. Array because there could be multiple expand groups |
183
272
  | `display.head_main?` | { `fields`: `string`[] ; `format?`: `string` } | list of fields to be considered the header/name of the PO fields joined with a space unless `format` format string is supplied |
184
273
  | `display.head_main.fields` | `string`[] | - |
@@ -186,13 +275,15 @@ not exported. Attributes that are identical in both client schema & server schem
186
275
  | `display.head_sub?` | { `fields`: `string`[] ; `format?`: `string` } | list of fields to be considered the subheader of the PO fields joined with a space unless `format` format string is supplied |
187
276
  | `display.head_sub.fields` | `string`[] | - |
188
277
  | `display.head_sub.format?` | `string` | - |
278
+ | `display.tabular?` | { `fields`: `string`[] } | By default, the admin dashboard shows columns for all fields in listed in `head_main`. In rare cases you can use this property to specify a different set of fields to show to admins by default. |
279
+ | `display.tabular.fields` | `string`[] | - |
189
280
  | `i18n?` | { `[locale: string]`: { `[fieldNameOrGroupName: string]`: [`ServerSchemaField`](#serverschemafield) & { `title_plural?`: `string` }; `$loading_create_sub_obj`: { `title`: `string` } ; `$loading_delete_pending_ver`: { `title`: `string` } ; `$loading_extract`: { `title`: `string` } ; `$loading_link_to_person`: { `title`: `string` } ; `$loading_long_verification_message`: { `description?`: `string` ; `title?`: `string` } ; `$loading_pending_ver_resubmit`: { `title`: `string` } ; `$loading_permission`: { `title`: `string` } ; `$loading_save`: { `title`: `string` } ; `$loading_update`: { `title`: `string` } ; `$loading_upload`: { `title`: `string` } ; `$loading_verify`: { `title`: `string` } ; `$schema`: { `description?`: `string` ; `title`: `string` ; `title_plural?`: `string` } }; } | - |
190
- | `onboard_properties?` | { `organizations?`: { `access_applications?`: { `links?`: { `description`: `string` ; `wizardConfig`: `Omit`<[`WizardConfig`](#wizardconfig), ``"a_id"``\> }[] ; `properties`: `Omit`<[`AA`](modules.md#aa), ``"org_id"``\> }[] ; `properties`: [`Organization`](modules.md#organization) }[] ; `profile_objects?`: { `properties`: `Record`<`string`, `unknown`\> ; `schema_name`: `string` }[] ; `relationships?`: { `from`: `string` ; `properties?`: `Record`<`string`, `string`\> ; `to`: `string` ; `type`: `string` }[] ; `return_to?`: `string` } | only the schema used for the onboarding wizard have this property |
191
- | `onboard_properties.organizations?` | { `access_applications?`: { `links?`: { `description`: `string` ; `wizardConfig`: `Omit`<[`WizardConfig`](#wizardconfig), ``"a_id"``\> }[] ; `properties`: `Omit`<[`AA`](modules.md#aa), ``"org_id"``\> }[] ; `properties`: [`Organization`](modules.md#organization) }[] | Organizations that should be created. NOTE: if multiple are specified, when the wizard completes, the _first one_ will be selected |
192
- | `onboard_properties.profile_objects?` | { `properties`: `Record`<`string`, `unknown`\> ; `schema_name`: `string` }[] | Profile Objects that should be created |
281
+ | `onboard_properties?` | { `organizations?`: { `access_applications?`: { `links?`: { `description`: `string` ; `wizardConfig`: `Omit`<[`WizardConfig`](#wizardconfig), ``"a_id"``\> }[] ; `properties`: `Omit`<[`AA`](#aa), ``"org_id"``\> }[] ; `properties`: [`Organization`](#organization) }[] ; `profile_objects?`: { `properties`: `Record`<`string`, `unknown`\> ; `schema_name`: [`SchemaName`](#schemaname) }[] ; `relationships?`: { `from`: `string` ; `properties?`: `Record`<`string`, `string`\> ; `to`: `string` ; `type`: `string` }[] ; `return_to?`: `string` } | only the schema used for the onboarding wizard have this property |
282
+ | `onboard_properties.organizations?` | { `access_applications?`: { `links?`: { `description`: `string` ; `wizardConfig`: `Omit`<[`WizardConfig`](#wizardconfig), ``"a_id"``\> }[] ; `properties`: `Omit`<[`AA`](#aa), ``"org_id"``\> }[] ; `properties`: [`Organization`](#organization) }[] | Organizations that should be created. NOTE: if multiple are specified, when the wizard completes, the _first one_ will be selected |
283
+ | `onboard_properties.profile_objects?` | { `properties`: `Record`<`string`, `unknown`\> ; `schema_name`: [`SchemaName`](#schemaname) }[] | Profile Objects that should be created |
193
284
  | `onboard_properties.relationships?` | { `from`: `string` ; `properties?`: `Record`<`string`, `string`\> ; `to`: `string` ; `type`: `string` }[] | Relationships that should be created |
194
285
  | `onboard_properties.return_to?` | `string` | The relative path in the client to redirect to once finished. May include variables |
195
- | `relationships?` | { `anyOf?`: `string`[] ; `direction`: ``"from"`` ; `multiple?`: `boolean` ; `oneOf?`: `string`[] ; `properties?`: { `[fieldName: string]`: [`SchemaField`](#schemafield); } ; `relationship_name`: `string` ; `required?`: `string`[] ; `required_relationship?`: `boolean` ; `type`: `string` }[] | - |
286
+ | `relationships?` | { `anyOf?`: [`SchemaName`](#schemaname)[] ; `direction`: ``"from"`` ; `multiple?`: `boolean` ; `oneOf?`: ([`SchemaName`](#schemaname) \| ``"instance"``)[] ; `properties?`: { `[fieldName: string]`: [`SchemaField`](#schemafield); } ; `relationship_name`: `string` ; `required?`: `string`[] ; `required_relationship?`: `boolean` ; `type`: `string` }[] | - |
196
287
  | `schema_group?` | `string` | the group that a schema belongs to, such as "passports". This is useful for forms that accept different types of similar documents. |
197
288
  | `schema_type?` | [`SchemaType`](#schematype) | - |
198
289
  | `tags?` | [`SchemaTag`](#schematag)[] | - |
@@ -218,30 +309,15 @@ ___
218
309
 
219
310
  ### ContactPoint
220
311
 
221
- Ƭ **ContactPoint**: `Object`
312
+ Ƭ **ContactPoint**: [`CommonFields`](#commonfields)<[`PCId`](#pcid)\> & { `contact_point_purpose`: `string` ; `contact_point_type`: `string` ; `e164`: `string` \| ``null`` ; `e164_suffix`: `string` \| ``null`` ; `e164_type`: `string` \| ``null`` ; `email_address`: `string` ; `email_address_preferred_format`: `string` ; `party_id`: [`PRid`](#prid) ; `url`: `string` \| ``null`` ; `url_type`: `string` \| ``null`` ; `uuid`: `string` \| `undefined` }
222
313
 
223
314
  A Contact Point for an Organization
224
315
 
225
- #### Type declaration
316
+ ___
226
317
 
227
- | Name | Type |
228
- | :------ | :------ |
229
- | `active` | `boolean` |
230
- | `contact_point_purpose` | `string` |
231
- | `contact_point_type` | `string` |
232
- | `e164` | `string` \| ``null`` |
233
- | `e164_suffix` | `string` \| ``null`` |
234
- | `e164_type` | `string` \| ``null`` |
235
- | `email_address` | `string` |
236
- | `email_address_preferred_format` | `string` |
237
- | `end_date` | `string` |
238
- | `id` | `string` |
239
- | `metadata` | `unknown` |
240
- | `start_date` | `string` |
241
- | `to_table` | `string` |
242
- | `url` | `string` \| ``null`` |
243
- | `url_type` | `string` \| ``null`` |
244
- | `uuid` | `string` \| `undefined` |
318
+ ### ContentUrl
319
+
320
+ Ƭ **ContentUrl**: \`url:${string}\`
245
321
 
246
322
  ___
247
323
 
@@ -258,6 +334,34 @@ ___
258
334
 
259
335
  ___
260
336
 
337
+ ### Customer
338
+
339
+ Ƭ **Customer**: [`CommonFields`](#commonfields)<[`CId`](#cid)\> & { `customer_code`: `string` ; `owner_email`: `string` ; `party_description`: [`OId`](#oid) ; `party_id`: [`PRid`](#prid) ; `permission_type`: [`PermissionType`](#permissiontype) \| ``null`` ; `prm_parties?`: [`Party`](#party) ; `user_email`: `string` ; `user_id`: [`UId`](#uid) \| ``null`` }
340
+
341
+ An organization/customer, directly returned by the API
342
+
343
+ ___
344
+
345
+ ### CustomerSite
346
+
347
+ Ƭ **CustomerSite**: [`CommonFields`](#commonfields)<`never`\> & { `customer_site_code`: `string` ; `customer_site_status_code`: `string` ; `org_id`: [`OId`](#oid) ; `party_site_id`: `string` }
348
+
349
+ ___
350
+
351
+ ### CustomerSiteUse
352
+
353
+ Ƭ **CustomerSiteUse**: [`CommonFields`](#commonfields)<`never`\> & { `customer_site_id`: `string` ; `customer_site_use_name`: `string` ; `customer_site_use_purpose_code`: `string` ; `freight_term_code`: `string` \| ``null`` ; `org_id`: [`OId`](#oid) ; `payment_term_id`: `string` ; `price_list_version_id`: `string` \| ``null`` }
354
+
355
+ ___
356
+
357
+ ### CustomerUser
358
+
359
+ Ƭ **CustomerUser**: [`CommonFields`](#commonfields)<[`CId`](#cid)\> & { `customer_code`: `string` ; `group_name`: `string` \| ``null`` ; `owner_email`: `string` ; `owner_id`: [`UId`](#uid) ; `party_description`: [`OId`](#oid) ; `party_id`: [`PRid`](#prid) ; `party_name`: `string` ; `permission_type`: [`PermissionType`](#permissiontype) \| ``null`` ; `user_email`: `string` \| ``null`` ; `user_id`: [`UId`](#uid) \| ``null`` }
360
+
361
+ Organization Customer / User, Returned directly by the API
362
+
363
+ ___
364
+
261
365
  ### DataTypes
262
366
 
263
367
  Ƭ **DataTypes**: ``"string"`` \| ``"number"`` \| ``"boolean"`` \| ``"object"`` \| ``"integer"`` \| ``"array"`` \| ``"null"``
@@ -295,6 +399,14 @@ A `g_id` is the ID of a group
295
399
 
296
400
  ___
297
401
 
402
+ ### GPMId
403
+
404
+ Ƭ **GPMId**: `StringWithIdentity`<``"GPMId"``\>
405
+
406
+ A `gpm_id` is the ID of a Verification Type
407
+
408
+ ___
409
+
298
410
  ### IId
299
411
 
300
412
  Ƭ **IId**: `StringWithIdentity`<``"IId"``\>
@@ -305,39 +417,24 @@ ___
305
417
 
306
418
  ### Instance
307
419
 
308
- Ƭ **Instance**: `Object`
420
+ Ƭ **Instance**: [`InstanceWithoutData`](#instancewithoutdata) & { `keys`: { `[nId2: NId2]`: { `[fieldName: string]`: { `data`: `string` }; }; } ; `profile_objects`: [`ProfileObject`](#profileobject)[] ; `relationships`: [`Relationship`](#relationship)[] }
309
421
 
310
- #### Type declaration
422
+ The API used to store data in this format, but it no
423
+ longer does :( so `@raytio/core` reconstructs this object.
311
424
 
312
- | Name | Type | Description |
313
- | :------ | :------ | :------ |
314
- | `_state?` | [`SubmissionStatus`](#submissionstatus) | **`Deprecated`** The status of a submission |
315
- | `a_id` | [`AId`](#aid) | ID of the access application this submission was made to |
316
- | `aa_name` | `string` | name of the access application this submission was made to |
317
- | `aack_id?` | `string` | Key (Can be used to retrieve instance) |
318
- | `active?` | `boolean` | Activity Status |
319
- | `confirmation_code` | `string` | Code that validates information has been shared |
320
- | `data_provider_email` | `string` | Email of user who shared the data |
321
- | `device_id?` | `unknown` | Device Id |
322
- | `end_date` | `string` | Latest date in which the shared information was available |
323
- | `i_id` | [`IId`](#iid) | Access application instance ID |
324
- | `instance_version?` | `unknown` | Instance Version |
325
- | `keys` | { `[nId: NId]`: { `[fieldName: string]`: { `data`: `string` ; `n_id`: [`NId`](#nid) }; }; } | - |
326
- | `metadata?` | `unknown` | Metadata |
327
- | `platform_footer_html?` | `unknown` | Footer Html |
328
- | `previous_state?` | [`SubmissionStatus`](#submissionstatus) | Previous status of the shared information |
329
- | `profile_objects` | [`ProfileObject`](#profileobject)[] | data associated is access application's instance |
330
- | `reference` | `string` | reference provided by the user who shared the data |
331
- | `related_offers?` | `unknown` | Related Offers |
332
- | `related_service_types?` | `unknown` | Related Service Types |
333
- | `relationships?` | [`Relationship`](#relationship)[] | - |
334
- | `score?` | `unknown` | added by the client once it calculates the score |
335
- | `service_provider_n_id?` | [`NId`](#nid) | Service provider ID |
336
- | `source_ip?` | `unknown` | Source IP |
337
- | `start_date` | `string` | Earliest date on which the shared information was available |
338
- | `state` | [`SubmissionStatus`](#submissionstatus) | The status of a submission |
339
- | `sub_service_provider_hash?` | `string` | Hash of the Service Provider ID |
340
- | `thread` | `string` | - |
425
+ ___
426
+
427
+ ### InstanceWithoutData
428
+
429
+ Ƭ **InstanceWithoutData**: [`CommonFields`](#commonfields)<[`IId`](#iid), { `message?`: `string` }\> & { `aa_id`: [`AId`](#aid) ; `aack_id`: [`KId`](#kid) ; `confirmation_code`: `string` ; `data_provider_email`: `string` ; `device_id?`: `unknown` ; `instance_version?`: `unknown` ; `platform_footer_html?`: `unknown` ; `previous_state?`: [`SubmissionStatus`](#submissionstatus) ; `reference`: `string` ; `related_offers?`: `unknown` ; `related_service_types?`: `unknown` ; `score?`: `unknown` ; `service_provider_n_id`: [`NId`](#nid) ; `source_ip?`: `unknown` ; `state`: [`SubmissionStatus`](#submissionstatus) ; `sub_service_provider_hash`: `string` ; `thread`: `string` }
430
+
431
+ ___
432
+
433
+ ### KId
434
+
435
+ Ƭ **KId**: `StringWithIdentity`<``"KId"``\>
436
+
437
+ A `k_id` (also called a `aack_id` or a `publicKeyId`) is the ID of an AA's public key
341
438
 
342
439
  ___
343
440
 
@@ -349,42 +446,40 @@ An `l_id` is the ID of any data stored in the KV-Store
349
446
 
350
447
  ___
351
448
 
352
- ### Location
449
+ ### LOCId
353
450
 
354
- Ƭ **Location**: `Object`
451
+ Ƭ **LOCId**: `StringWithIdentity`<``"LOCId"``\>
355
452
 
356
- An Organization Location
453
+ A `loc_id` is the ID of a location
454
+
455
+ ___
456
+
457
+ ### Link
458
+
459
+ Ƭ **Link**: `Object`
460
+
461
+ Link used for an Access Application, including all additional information
357
462
 
358
463
  #### Type declaration
359
464
 
360
465
  | Name | Type |
361
466
  | :------ | :------ |
362
- | `active` | `boolean` |
363
- | `address_line_1` | `string` \| ``null`` |
364
- | `address_line_2` | `string` \| ``null`` |
365
- | `address_line_3` | `string` \| ``null`` |
366
- | `address_line_4` | `string` \| ``null`` |
367
- | `administrative_area_level_1` | `string` \| ``null`` |
368
- | `administrative_area_level_2` | `string` \| ``null`` |
369
- | `administrative_area_level_3` | `string` \| ``null`` |
370
- | `city` | `string` \| ``null`` |
371
- | `country` | `string` \| ``null`` |
372
- | `end_date` | `string` |
373
- | `geolocation` | `string` \| ``null`` |
374
- | `geolocation_outline` | `string` \| ``null`` |
375
- | `id` | `string` |
376
- | `locality` | `string` \| ``null`` |
377
- | `location_description` | `string` \| ``null`` |
378
- | `location_name` | `string` |
379
- | `metadata` | `unknown` |
380
- | `postal_code` | `string` |
381
- | `postal_code_suffix` | `string` \| ``null`` |
382
- | `premise` | `string` \| ``null`` |
383
- | `region` | `string` \| ``null`` |
384
- | `route` | `string` \| ``null`` |
385
- | `start_date` | `string` |
386
- | `street_number` | `string` \| ``null`` |
387
- | `subpremise` | `string` \| ``null`` |
467
+ | `a_id` | [`AId`](#aid) |
468
+ | `code` | [`LId`](#lid) |
469
+ | `details?` | [`AA`](#aa) |
470
+ | `id` | [`NId`](#nid) |
471
+ | `isDefault?` | `boolean` |
472
+ | `name` | `string` |
473
+ | `subtitle` | `string` |
474
+ | `url` | `string` |
475
+
476
+ ___
477
+
478
+ ### Location
479
+
480
+ Ƭ **Location**: [`CommonFields`](#commonfields)<[`LOCId`](#locid)\> & { `address_line_1`: `string` \| ``null`` ; `address_line_2`: `string` \| ``null`` ; `address_line_3`: `string` \| ``null`` ; `address_line_4`: `string` \| ``null`` ; `administrative_area_level_1`: `string` \| ``null`` ; `administrative_area_level_2`: `string` \| ``null`` ; `administrative_area_level_3`: `string` \| ``null`` ; `city`: `string` \| ``null`` ; `country`: `string` \| ``null`` ; `geolocation`: `string` \| ``null`` ; `geolocation_outline`: `string` \| ``null`` ; `locality`: `string` \| ``null`` ; `location_description`: `string` \| ``null`` ; `location_name`: `string` ; `postal_code`: `string` ; `postal_code_suffix`: `string` \| ``null`` ; `premise`: `string` \| ``null`` ; `region`: `string` \| ``null`` ; `route`: `string` \| ``null`` ; `street_number`: `string` \| ``null`` ; `subpremise`: `string` \| ``null`` }
481
+
482
+ An Organization Location
388
483
 
389
484
  ___
390
485
 
@@ -405,6 +500,44 @@ ___
405
500
 
406
501
  ___
407
502
 
503
+ ### MId
504
+
505
+ Ƭ **MId**: `StringWithIdentity`<``"MId"``\>
506
+
507
+ A `m_id` is the ID of a Merchant
508
+
509
+ ___
510
+
511
+ ### Merchant
512
+
513
+ Ƭ **Merchant**: [`CommonFields`](#commonfields)<[`MId`](#mid)\> & { `merchant_approval_status_code`: [`MerchantApprovalStatusCode`](#merchantapprovalstatuscode) \| ``null`` ; `merchant_class_code`: [`MerchantClassCode`](#merchantclasscode) \| ``null`` ; `merchant_common_name`: `string` \| ``null`` ; `merchant_common_name_i18n`: `Json` \| ``null`` ; `merchant_description`: `string` \| ``null`` ; `merchant_description_i18n`: `Json` \| ``null`` ; `merchant_image_url_logo`: `string` \| ``null`` ; `merchant_image_url_thumbnail`: `string` \| ``null`` ; `merchant_name`: `string` \| ``null`` ; `merchant_name_i18n`: `Json` \| ``null`` ; `merchant_status_code`: [`MerchantStatusCode`](#merchantstatuscode) \| ``null`` ; `merchant_type_code`: [`MerchantTypeCode`](#merchanttypecode) \| ``null`` ; `party_id`: [`PRid`](#prid) }
514
+
515
+ ___
516
+
517
+ ### MerchantApprovalStatusCode
518
+
519
+ Ƭ **MerchantApprovalStatusCode**: ``"PENDING"`` \| ``"APPROVED"``
520
+
521
+ ___
522
+
523
+ ### MerchantClassCode
524
+
525
+ Ƭ **MerchantClassCode**: ``"CLASS_1"`` \| ``"CLASS_2"``
526
+
527
+ ___
528
+
529
+ ### MerchantStatusCode
530
+
531
+ Ƭ **MerchantStatusCode**: ``"ACTIVE"`` \| ``"INACTIVE"``
532
+
533
+ ___
534
+
535
+ ### MerchantTypeCode
536
+
537
+ Ƭ **MerchantTypeCode**: ``"TYPE_1"`` \| ``"TYPE_2"``
538
+
539
+ ___
540
+
408
541
  ### NId
409
542
 
410
543
  Ƭ **NId**: `StringWithIdentity`<``"NId"``\>
@@ -413,12 +546,22 @@ An `n_id` is the ID of a [ProfileObject](#profileobject)
413
546
 
414
547
  ___
415
548
 
549
+ ### NId2
550
+
551
+ Ƭ **NId2**: `StringWithIdentity`<``"NId2"``\>
552
+
553
+ ⚠️ This ID duplicates the [NId](#nid) and should only be used in exceptional circumstances
554
+
555
+ ___
556
+
416
557
  ### OId
417
558
 
418
559
  Ƭ **OId**: `StringWithIdentity`<``"OId"``\>
419
560
 
420
561
  An `o_id` is the ID of an [Organization](#organization)
421
562
 
563
+ NOTE: Will be deprecated soon. Use CId instead.
564
+
422
565
  ___
423
566
 
424
567
  ### Organization
@@ -432,11 +575,20 @@ NOTE: this is different to how the schema defines an Organization. **The schema
432
575
 
433
576
  | Name | Type |
434
577
  | :------ | :------ |
435
- | `address` | `unknown` |
436
- | `customer` | `unknown` |
437
- | `email` | `string` |
438
- | `id` | [`OId`](#oid) |
578
+ | `address?` | `unknown` |
579
+ | `contact_point?` | `Pick`<[`ContactPoint`](#contactpoint), ``"email_address"`` \| ``"id"``\> |
580
+ | `customerUsers` | [`CustomerUser`](#customeruser)[] |
581
+ | `id` | [`CId`](#cid) |
439
582
  | `name` | `string` |
583
+ | `orgId` | [`OId`](#oid) |
584
+
585
+ ___
586
+
587
+ ### PCId
588
+
589
+ Ƭ **PCId**: `StringWithIdentity`<``"PCId"``\>
590
+
591
+ A `pc_id` is the ID of a Party Contact Point
440
592
 
441
593
  ___
442
594
 
@@ -448,25 +600,65 @@ A `p_id` is the ID of a [Relationship](#relationship)
448
600
 
449
601
  ___
450
602
 
451
- ### Party
603
+ ### PKId
452
604
 
453
- Ƭ **Party**: `Object`
605
+ Ƭ **PKId**: `StringWithIdentity`<``"PKId"``\>
454
606
 
455
- An Organisation
607
+ A `pk_id` is the ID of an AA's private key
456
608
 
457
- #### Type declaration
609
+ ___
458
610
 
459
- | Name | Type |
460
- | :------ | :------ |
461
- | `active` | `boolean` |
462
- | `end_date` | `string` |
463
- | `id` | `string` |
464
- | `metadata` | [`PartyMetadata`](#partymetadata) |
465
- | `party_description` | `string` |
466
- | `party_name` | `string` |
467
- | `party_number` | `number` |
468
- | `party_type` | `string` |
469
- | `start_date` | `string` |
611
+ ### PLId
612
+
613
+ Ƭ **PLId**: `StringWithIdentity`<``"PLId"``\>
614
+
615
+ A `pl_id` is the ID of a PriceList
616
+
617
+ ___
618
+
619
+ ### PLLId
620
+
621
+ Ƭ **PLLId**: `StringWithIdentity`<``"PLLId"``\>
622
+
623
+ A `pll_id` is the ID of a PriceListLine/Plan
624
+
625
+ ___
626
+
627
+ ### PMId
628
+
629
+ Ƭ **PMId**: `StringWithIdentity`<``"PMId"``\>
630
+
631
+ A `pm_id` is the ID of a PaymentMethod
632
+
633
+ ___
634
+
635
+ ### PRCId
636
+
637
+ Ƭ **PRCId**: `StringWithIdentity`<``"PRCId"``\>
638
+
639
+ A `prc_id` is the ID of a Price
640
+
641
+ ___
642
+
643
+ ### PRid
644
+
645
+ Ƭ **PRid**: `StringWithIdentity`<``"PRid"``\>
646
+
647
+ A `pr_id` is the ID of a [Party](#party)
648
+
649
+ ___
650
+
651
+ ### PTId
652
+
653
+ Ƭ **PTId**: `StringWithIdentity`<``"PTId"``\>
654
+
655
+ A `pt_id` is the ID of a PaymentProcessor
656
+
657
+ ___
658
+
659
+ ### Party
660
+
661
+ Ƭ **Party**: [`CommonFields`](#commonfields)<[`PRid`](#prid), [`PartyMetadata`](#partymetadata)\> & { `far_customers`: [`CommonFields`](#commonfields)<[`CId`](#cid)\> & { `customer_approval_status_code`: `string` ; `customer_class_code`: `string` ; `customer_status_code`: `string` ; `customer_type_code`: `string` ; `far_customers_customer_approval_status_lookup`: [`Lookup`](#lookup) ; `far_customers_customer_class_lookup`: [`Lookup`](#lookup) ; `far_customers_customer_status_lookup`: [`Lookup`](#lookup) ; `far_customers_customer_type_lookup`: [`Lookup`](#lookup) ; `far_customers_freight_terms_lookup`: [`Lookup`](#lookup) ; `freight_term_code`: `string` ; `price_list_version_id`: `string` \| ``null`` }[] ; `party_description`: [`OId`](#oid) ; `party_image_url_logo`: `string` \| ``null`` ; `party_name`: `string` ; `party_type`: `string` }
470
662
 
471
663
  ___
472
664
 
@@ -489,32 +681,81 @@ ___
489
681
 
490
682
  ### PartySite
491
683
 
492
- Ƭ **PartySite**: `Object`
684
+ Ƭ **PartySite**: [`CommonFields`](#commonfields)<`never`\> & { `location_id`: `number` ; `party_id`: [`PRid`](#prid) ; `party_site_description`: `string` \| ``null`` ; `party_site_name`: `string` ; `party_use_primary`: `string` ; `party_uses`: `string`[] }
493
685
 
494
686
  An Organization Site
495
687
 
688
+ ___
689
+
690
+ ### PaymentMethod
691
+
692
+ Ƭ **PaymentMethod**: [`CommonFields`](#commonfields)<[`PMId`](#pmid)\> & { `address_line1_check?`: `string` \| ``null`` ; `address_postal_code_check?`: `string` \| ``null`` ; `card_expiry_month`: `number` ; `card_expiry_year`: `number` ; `card_fingerprint?`: `string` \| ``null`` ; `card_funding_method`: `string` ; `card_last_4_digits`: `string` ; `customer_id`: [`CId`](#cid) ; `cvc_check?`: `string` \| ``null`` ; `payer_payment_method_type`: `string` ; `payment_method_available_networks`: `string`[] \| `string` ; `payment_method_country_code`: `string` \| ``null`` ; `payment_method_preferred_network?`: `string` \| ``null`` ; `payment_method_scheme`: `string` ; `payment_processor_id`: `string` ; `payment_processor_payment_method_id`: `string` ; `primary_payment_method`: `boolean` ; `three_d_secure_usage?`: `string` \| ``null`` }
693
+
694
+ ___
695
+
696
+ ### PaymentProcessor
697
+
698
+ Ƭ **PaymentProcessor**: [`CommonFields`](#commonfields)<[`PTId`](#ptid)\> & { `party_id`: [`PRid`](#prid) ; `payment_processor_name`: `string` ; `payment_processor_system`: `string` }
699
+
700
+ ___
701
+
702
+ ### PermissionType
703
+
704
+ Ƭ **PermissionType**: ``"ADMINS"`` \| ``"VIEWS"`` \| ``"EDITS"`` \| ``"OWNS"``
705
+
706
+ ___
707
+
708
+ ### PriceList
709
+
710
+ Ƭ **PriceList**: `Object`
711
+
712
+ #### Type declaration
713
+
714
+ | Name | Type |
715
+ | :------ | :------ |
716
+ | `id` | [`PLId`](#plid) |
717
+ | `pcm_price_list_versions?` | [{ `id`: `string` ; `pcm_price_list_lines`: [`PriceListLine`](#pricelistline)[] ; `price_list_version_name`: `string` }] |
718
+ | `price_list_currency` | `string` |
719
+ | `price_list_description?` | `string` |
720
+ | `price_list_description_i18n?` | `string` |
721
+ | `price_list_name` | `string` |
722
+ | `price_list_name_i18n?` | `string` |
723
+ | `price_list_type` | `string` |
724
+
725
+ ___
726
+
727
+ ### PriceListLine
728
+
729
+ Ƭ **PriceListLine**: `Object`
730
+
496
731
  #### Type declaration
497
732
 
498
733
  | Name | Type |
499
734
  | :------ | :------ |
500
- | `active` | `boolean` |
501
- | `end_date` | `string` |
502
- | `id` | `string` |
503
- | `location_number` | `number` |
504
- | `metadata` | `unknown` |
505
- | `party_id` | `string` |
506
- | `party_site_description` | `string` \| ``null`` |
507
- | `party_site_name` | `string` |
508
- | `party_site_number` | `string` \| ``null`` |
509
- | `party_use_primary` | `string` |
510
- | `party_uses` | `string`[] |
511
- | `start_date` | `string` |
735
+ | `id` | [`PLLId`](#pllid) |
736
+ | `pcm_prices` | { `amount`: `number` ; `billing_recurrence`: `string` ; `gpm_items`: { `id`: `string` ; `item_description`: `string` ; `item_description_i18n`: `string` \| ``null`` ; `item_key`: `string` ; `item_name`: `string` ; `item_name_i18n`: `string` \| ``null`` ; `primary_uom`: `string` } ; `id`: [`PRCId`](#prcid) ; `price_currency`: `string` ; `recurring_billing_interval`: `string` \| ``null`` ; `recurring_billing_interval_count`: `number` ; `recurring_billing_scheme`: `string` ; `recurring_billing_usage_type`: `string` } |
737
+ | `pcm_prices.amount` | `number` |
738
+ | `pcm_prices.billing_recurrence` | `string` |
739
+ | `pcm_prices.gpm_items` | { `id`: `string` ; `item_description`: `string` ; `item_description_i18n`: `string` \| ``null`` ; `item_key`: `string` ; `item_name`: `string` ; `item_name_i18n`: `string` \| ``null`` ; `primary_uom`: `string` } |
740
+ | `pcm_prices.gpm_items.id` | `string` |
741
+ | `pcm_prices.gpm_items.item_description` | `string` |
742
+ | `pcm_prices.gpm_items.item_description_i18n` | `string` \| ``null`` |
743
+ | `pcm_prices.gpm_items.item_key` | `string` |
744
+ | `pcm_prices.gpm_items.item_name` | `string` |
745
+ | `pcm_prices.gpm_items.item_name_i18n` | `string` \| ``null`` |
746
+ | `pcm_prices.gpm_items.primary_uom` | `string` |
747
+ | `pcm_prices.id` | [`PRCId`](#prcid) |
748
+ | `pcm_prices.price_currency` | `string` |
749
+ | `pcm_prices.recurring_billing_interval` | `string` \| ``null`` |
750
+ | `pcm_prices.recurring_billing_interval_count` | `number` |
751
+ | `pcm_prices.recurring_billing_scheme` | `string` |
752
+ | `pcm_prices.recurring_billing_usage_type` | `string` |
512
753
 
513
754
  ___
514
755
 
515
756
  ### ProfileObject
516
757
 
517
- Ƭ **ProfileObject**<`Properties`\>: `Object`
758
+ Ƭ **ProfileObject**<`Properties`\>: `Partial`<[`CommonFields`](#commonfields)<[`NId2`](#nid2)\>\> & { `labels`: `string`[] ; `n_id`: [`NId`](#nid) ; `properties`: `Properties` }
518
759
 
519
760
  You can supply an option type argument if you know exactly what the properties will be
520
761
 
@@ -524,14 +765,6 @@ You can supply an option type argument if you know exactly what the properties w
524
765
  | :------ | :------ |
525
766
  | `Properties` | `Json` |
526
767
 
527
- #### Type declaration
528
-
529
- | Name | Type |
530
- | :------ | :------ |
531
- | `labels` | `string`[] |
532
- | `n_id` | [`NId`](#nid) |
533
- | `properties` | `Properties` |
534
-
535
768
  ___
536
769
 
537
770
  ### RealVer
@@ -565,19 +798,38 @@ ___
565
798
 
566
799
  | Name | Type |
567
800
  | :------ | :------ |
801
+ | `active?` | `boolean` |
568
802
  | `end` | [`Urn`](#urn) |
803
+ | `end_date?` | `string` |
569
804
  | `p_id` | [`PId`](#pid) |
570
805
  | `properties?` | { `[fieldName: string]`: `unknown`; `name?`: `string` ; `p_id`: [`PId`](#pid) } |
571
806
  | `properties.name?` | `string` |
572
807
  | `properties.p_id` | [`PId`](#pid) |
573
808
  | `start` | [`Urn`](#urn) |
809
+ | `start_date?` | `string` |
574
810
  | `type` | `string` |
575
811
 
576
812
  ___
577
813
 
814
+ ### SId
815
+
816
+ Ƭ **SId**: `StringWithIdentity`<``"SId"``\>
817
+
818
+ A `s_id` is the ID of a Subscription
819
+
820
+ ___
821
+
822
+ ### SLId
823
+
824
+ Ƭ **SLId**: `StringWithIdentity`<``"SLId"``\>
825
+
826
+ A `sl_id` is the ID of a SubscriptionLine
827
+
828
+ ___
829
+
578
830
  ### Schema
579
831
 
580
- Ƭ **Schema**: [`CommonSchemaAttributes`](#commonschemaattributes) & { `clientLocale?`: `string` ; `end_date?`: `string` ; `groupNames?`: `Record`<`string`, `string`\> ; `group_title?`: `string` ; `isProfileSchema?`: `boolean` ; `isSpSchema?`: `boolean` ; `name`: `string` ; `properties`: { `[fieldName: string]`: [`SchemaField`](modules.md#schemafield); } ; `required?`: (`string` \| [`ConditionallyRequired`](modules.md#conditionallyrequired))[] ; `start_date?`: `string` ; `timing?`: `Record`<``"extract"`` \| ``"live_person"`` \| ``"verify_pending_delay"``, `number`\> ; `type?`: [`DataTypes`](modules.md#datatypes) ; `verified_fields?`: (`string` \| [`ConditionallyRequired`](modules.md#conditionallyrequired))[] ; `version`: `string` ; `wasExpandedByClient?`: `boolean` }
832
+ Ƭ **Schema**: [`CommonSchemaAttributes`](#commonschemaattributes) & { `clientLocale?`: `string` ; `database?`: { `primary_key`: `string` ; `table`: `string` } ; `end_date?`: `string` ; `groupNames?`: `Record`<`string`, `string`\> ; `group_title?`: `string` ; `isProfileSchema?`: `boolean` ; `isSpSchema?`: `boolean` ; `name`: [`SchemaName`](#schemaname) ; `properties`: { `[fieldName: string]`: [`SchemaField`](#schemafield); } ; `required?`: (`string` \| [`ConditionallyRequired`](#conditionallyrequired))[] ; `start_date?`: `string` ; `timing?`: `Record`<``"extract"`` \| ``"live_person"`` \| ``"verify_pending_delay"``, `number`\> ; `type?`: [`DataTypes`](#datatypes) ; `verified_fields?`: (`string` \| [`ConditionallyRequired`](#conditionallyrequired))[] ; `version`: `string` ; `wasExpandedByClient?`: `boolean` }
581
833
 
582
834
  Raytio's variant of JSON Schema, as used by the client. It is a modified version
583
835
  of what the API returns.
@@ -593,12 +845,13 @@ ___
593
845
  | Name | Type | Description |
594
846
  | :------ | :------ | :------ |
595
847
  | `$id?` | `string` | **`Deprecated`** don't use, it's inconsistent |
596
- | `$ref?` | `string` | If this field refers to a sub-object |
848
+ | `$ref?` | [`SchemaName`](#schemaname) | If this field refers to a sub-object |
597
849
  | `add_row_btn_label?` | `string` | if this field is a table input, this determines the text to show on the "Add Row" btn |
598
850
  | `allOf?` | [{ `$ref`: `string` }, [`ServerSchemaField`](#serverschemafield)] | - |
599
851
  | `content?` | `string` | only checkbox uses this prop |
600
852
  | `contentEncoding?` | ``"base64"`` | - |
601
853
  | `contentMediaType?` | `string` | - |
854
+ | `content_source?` | `string` | determines where an image is sourced from |
602
855
  | `default?` | `unknown` | the default value |
603
856
  | `default_signature_name?` | `string` | used on fields that are a signature file picker, see !849 also used to determine if the MediaPicker should be shown inline |
604
857
  | `description?` | `string` | - |
@@ -607,9 +860,11 @@ ___
607
860
  | `encrypt_require?` | `boolean` | if true, the user must have encryption enabled to save this data, see #1324 |
608
861
  | `enum?` | (`string` \| `number` \| `boolean`)[] | - |
609
862
  | `examples?` | `unknown`[] | - |
863
+ | `foreign_key_of?` | [`SchemaName`](#schemaname) | if this field is a foreign key, i.e. it is a primary key of a different schema, then that other's schema name should be listed here. e.g. ```json { "name": "ss_AA", "properties": { "org_id": { "foreign_key_of": "ss_Org" } } } ``` |
610
864
  | `format?` | ``"date"`` \| ``"date-time"`` \| ``"uri"`` | - |
865
+ | `hash_inputs?` | `string` | the input string for a platform_unique_id |
611
866
  | `image_silhouette?` | `string` | If this schema requires a photo of a document, you can specify a URL to a silhouette image which will be overlaid on top of the camera. For best results, the image should have a transparent background + minimal white foreground |
612
- | `items?` | { `properties`: { `[subFieldName: string]`: [`SchemaField`](#schemafield); } ; `type`: [`DataTypes`](modules.md#datatypes) } | `items` is used for nested arrays, (while `properties` is used for nested objects) |
867
+ | `items?` | { `properties`: { `[subFieldName: string]`: [`SchemaField`](#schemafield); } ; `type`: [`DataTypes`](#datatypes) } | `items` is used for nested arrays, (while `properties` is used for nested objects) |
613
868
  | `items.properties` | { `[subFieldName: string]`: [`SchemaField`](#schemafield); } | - |
614
869
  | `items.type` | [`DataTypes`](#datatypes) | - |
615
870
  | `lookup?` | `string` | URL to a JSON file in the `Lookup` format |
@@ -636,13 +891,21 @@ ___
636
891
 
637
892
  ### SchemaFieldTag
638
893
 
639
- Ƭ **SchemaFieldTag**: ``"password"`` \| \`group:${string}\` \| \`upload-group:${string}\` \| ``"display:stars"`` \| ``"display:no_autofill"`` \| ``"display:currency"`` \| ``"display:cascade"`` \| ``"display:survey"`` \| ``"display:quoting"`` \| ``"display:customModal"`` \| \`display:replace:'${string}':'${string}'\` \| ``"display:terms_conditions"`` \| \`display:main\_media:${string}\` \| ``"date_component:day"`` \| ``"date_component:month"`` \| ``"date_component:year"`` \| ``"action:client_upload"`` \| ``"action:require_webauthn"`` \| ``"verify:show_if_pending"`` \| ``"special:hide_select_behind_button"`` \| ``"type:capture_geolocation"`` \| ``"type:extract_required"``
894
+ Ƭ **SchemaFieldTag**: ``"password"`` \| \`group:${string}\` \| \`upload-group:${string}\` \| ``"display:stars"`` \| ``"display:no_autofill"`` \| ``"display:currency"`` \| ``"display:cascade"`` \| ``"display:survey"`` \| ``"display:quoting"`` \| ``"display:customModal"`` \| ``"display:mask"`` \| \`display:replace:('${string}', '${string}')\` \| ``"display:terms_conditions"`` \| \`display:main\_media:${string}\` \| ``"date_component:day"`` \| ``"date_component:month"`` \| ``"date_component:year"`` \| ``"action:allow_copy"`` \| ``"action:allow_unreplace"`` \| ``"action:allow_password_compromise_check"`` \| ``"action:client_upload"`` \| ``"action:hash"`` \| ``"action:require_webauthn"`` \| ``"action:generate_pepper:"`` \| ``"verify:show_if_pending"`` \| ``"special:hide_select_behind_button"`` \| ``"type:capture_geolocation"`` \| ``"type:extract_required"``
895
+
896
+ ___
897
+
898
+ ### SchemaName
899
+
900
+ Ƭ **SchemaName**: `StringWithIdentity`<``"SchemaName"``\>
901
+
902
+ A `SchemaName` is the ID of a [Schema](#schema)
640
903
 
641
904
  ___
642
905
 
643
906
  ### SchemaTag
644
907
 
645
- Ƭ **SchemaTag**: ``"action:experimental_pass_object_store_id"`` \| ``"action:verify"`` \| ``"default_camera:rear"`` \| ``"default_camera:front"`` \| \`oauth2\_component:name:${string}\` \| \`oauth2\_component:redirect\_url:${string}\` \| \`time:${string}:${number}\` \| \`link\_to:${string}:${string}\` \| ``"type:service_provider"`` \| ``"type:service_offer"`` \| ``"type:marketplace"`` \| ``"type:client_only"`` \| ``"type:globally_unique_field"``
908
+ Ƭ **SchemaTag**: ``"action:experimental_pass_object_store_id"`` \| ``"action:verify"`` \| \`action:display\_qr\_code:${string}:${string}\` \| ``"default_camera:rear"`` \| ``"default_camera:front"`` \| \`oauth2\_component:name:${string}\` \| \`oauth2\_component:redirect\_url:${string}\` \| \`time:${string}:${number}\` \| \`link\_to:${string}:${string}\` \| ``"display:default_view:edit"`` \| ``"type:service_provider"`` \| ``"type:service_offer"`` \| ``"type:marketplace"`` \| ``"type:client_only"`` \| ``"type:globally_unique_field"``
646
909
 
647
910
  ___
648
911
 
@@ -668,6 +931,26 @@ ___
668
931
 
669
932
  ___
670
933
 
934
+ ### Subscription
935
+
936
+ Ƭ **Subscription**: [`CommonFields`](#commonfields)<[`SId`](#sid)\> & { `billing_cycle_day_of_month`: `number` \| ``null`` ; `billing_cycle_day_of_week`: `number` \| ``null`` ; `billing_cycle_hour`: `number` \| ``null`` ; `billing_cycle_minute`: `number` \| ``null`` ; `billing_cycle_month`: `number` \| ``null`` ; `billing_cycle_second`: `number` \| ``null`` ; `cancellation_effective_date`: `string` \| ``null`` ; `cancellation_final_invoice_action`: `string` ; `cancellation_request_date`: `string` \| ``null`` ; `cancellation_request_reason`: `string` \| ``null`` ; `current_billing_period_end`: `string` \| ``null`` ; `current_billing_period_start`: `string` ; `subscribed_to_customer_id`: `string` ; `subscribed_to_customer_site_id`: `string` \| ``null`` ; `subscribed_to_party_contact_point_id`: `string` ; `subscription_name`: `string` ; `subscription_name_i18n`: `string` \| ``null`` }
937
+
938
+ ___
939
+
940
+ ### SubscriptionLine
941
+
942
+ Ƭ **SubscriptionLine**: [`CommonFields`](#commonfields)<[`SLId`](#slid)\> & { `billing_subscription_id`: [`SId`](#sid) ; `metadata`: `string` \| ``null`` ; `price_id`: [`PRCId`](#prcid) ; `subscribed_qty`: `number` }
943
+
944
+ ___
945
+
946
+ ### TId
947
+
948
+ Ƭ **TId**: `StringWithIdentity`<``"TId"``\>
949
+
950
+ A `t_id` is the ID of a transaction
951
+
952
+ ___
953
+
671
954
  ### UId
672
955
 
673
956
  Ƭ **UId**: `StringWithIdentity`<``"UId"``\>
@@ -678,7 +961,7 @@ ___
678
961
 
679
962
  ### Urn
680
963
 
681
- Ƭ **Urn**: \`urn:user:${UId}\` \| \`urn:profile\_object:${NId}\` \| \`urn:instance:${IId}\` \| \`urn:temp\_object:${LId}\` \| \`urn:schema:${string}\` \| \`urn:document:${NId}\`
964
+ Ƭ **Urn**: \`urn:user:${UId}\` \| \`urn:profile\_object:${NId}\` \| \`urn:instance:${IId}\` \| \`urn:temp\_object:${LId}\` \| \`urn:schema:${SchemaName}\` \| \`urn:document:${NId}\`
682
965
 
683
966
  e.g. "urn:user:..."
684
967
 
@@ -708,7 +991,7 @@ ___
708
991
 
709
992
  ### Verification
710
993
 
711
- Ƭ **Verification**<`WithValue`\>: [`ProfileObject`](#profileobject)<{ `field`: `string` ; `n_id`: [`NId`](modules.md#nid) ; `valid_until?`: `string` ; `verifications`: [{ `data`: [`VerificationPayload`](modules.md#verificationpayload)<`WithValue`\> ; `hashing_algorithm?`: ``"SHA512"`` ; `key_id?`: `string` ; `key_urn?`: `string` ; `signature`: `string` ; `signing_algorithm?`: ``"RSASSA_PSS_SHA_512"`` }] }\>
994
+ Ƭ **Verification**<`WithValue`\>: [`ProfileObject`](#profileobject)<{ `field`: `string` ; `n_id`: [`NId`](#nid) ; `valid_until?`: `string` ; `verifications`: [{ `data`: [`VerificationPayload`](#verificationpayload)<`WithValue`\> ; `hashing_algorithm?`: ``"SHA512"`` ; `key_id?`: `string` ; `key_urn?`: `string` ; `signature`: `string` ; `signing_algorithm?`: ``"RSASSA_PSS_SHA_512"`` }] }\>
712
995
 
713
996
  Different APIs inconsistently include the `value` prop. If you know it exists,
714
997
  use `Verification<true>`, otherwise just `Verification`. Verifications from
@@ -724,7 +1007,7 @@ ___
724
1007
 
725
1008
  ### VerificationPayload
726
1009
 
727
- Ƭ **VerificationPayload**<`WithValue`\>: { `field`: `string` ; `metadata?`: { `[otherAttributes: string]`: `unknown`; `pending_details?`: { `pending_time`: ``"short"`` \| ``"long"`` ; `pending_type`: ``"time"`` \| ``"user"`` } ; `safeHarbourScore?`: [`SafeHarbourCode`](enums/SafeHarbourCode.md) ; `status?`: ``"pending"`` } ; `passed`: `boolean` ; `request_div`: `string` ; `schema?`: `string` ; `source`: `string` ; `source_hashed_n_id?`: [`NId`](#nid) ; `source_n_id?`: [`NId`](modules.md#nid) ; `type?`: ``null`` ; `v_id`: `string` ; `verification_date`: `string` ; `verifier_div`: `string` ; `verifier_id?`: [`NId`](modules.md#nid) ; `verifier_service_id?`: [`NId`](modules.md#nid) ; `verifier_source_id?`: [`NId`](modules.md#nid) } & `WithValue` extends ``true`` ? { `value`: `string` \| `number` } : {}
1010
+ Ƭ **VerificationPayload**<`WithValue`\>: { `field`: `string` ; `metadata?`: { `[otherAttributes: string]`: `unknown`; `pending_details?`: { `pending_time`: ``"short"`` \| ``"long"`` ; `pending_type`: ``"time"`` \| ``"user"`` } ; `safeHarbourScore?`: [`SafeHarbourCode`](enums/SafeHarbourCode.md) ; `status?`: ``"pending"`` \| ``"approved"`` ; `validation?`: { `id`: `string` ; `url`: `string` } } ; `passed`: `boolean` ; `request_div`: `string` ; `schema?`: [`SchemaName`](#schemaname) ; `source`: `string` ; `source_hashed_n_id?`: [`NId`](#nid) ; `source_n_id?`: [`NId`](#nid) ; `type?`: ``null`` ; `v_id`: `string` ; `verification_date`: `string` ; `verification_type_id`: [`GPMId`](#gpmid) ; `verifier_div`: `string` ; `verifier_id?`: [`NId`](#nid) ; `verifier_service_id?`: [`NId`](#nid) ; `verifier_source_id?`: [`NId`](#nid) } & `WithValue` extends ``true`` ? { `value`: `string` \| `number` } : {}
728
1011
 
729
1012
  #### Type parameters
730
1013
 
@@ -747,10 +1030,17 @@ These `n_id`s point to service provider profile objects
747
1030
  | `dataSourceNId?` | [`NId`](#nid) | - |
748
1031
  | `date?` | `Date` | the date which the verification was verified on, or last re-verified on |
749
1032
  | `serviceProviderNId?` | [`NId`](#nid) | - |
1033
+ | `verificationTypeId?` | [`GPMId`](#gpmid) | - |
750
1034
  | `verifierNId?` | [`NId`](#nid) | - |
751
1035
 
752
1036
  ___
753
1037
 
1038
+ ### VerificationType
1039
+
1040
+ Ƭ **VerificationType**: [`CommonFields`](#commonfields)<[`GPMId`](#gpmid)\> & { `asset`: `boolean` \| ``null`` ; `inventory_organization_number`: `number` \| ``null`` ; `item_description`: `string` ; `item_description_i18n`: `Json` \| ``null`` ; `item_dimension_height`: `number` \| ``null`` ; `item_dimension_length`: `number` \| ``null`` ; `item_dimension_uom`: `string` \| ``null`` ; `item_dimension_width`: `number` \| ``null`` ; `item_key`: `string` ; `item_key_01`: `string` \| ``null`` ; `item_key_02`: `string` \| ``null`` ; `item_key_03`: `string` \| ``null`` ; `item_mass`: `number` \| ``null`` ; `item_mass_uom`: `string` \| ``null`` ; `item_name`: `string` ; `item_name_i18n`: `Json` \| ``null`` ; `item_number`: `number` ; `item_type`: `string` \| ``null`` ; `item_volume`: `number` \| ``null`` ; `item_volume_uom`: `string` \| ``null`` ; `org_number`: `number` ; `primary_uom`: `string` ; `purchased`: `boolean` \| ``null`` ; `returnable`: `boolean` \| ``null`` ; `secondary_uom`: `string` \| ``null`` ; `shipped`: `boolean` \| ``null`` ; `source_organization_number`: `number` \| ``null`` ; `source_type`: `string` \| ``null`` ; `stocked`: `boolean` \| ``null`` ; `transacted`: `boolean` \| ``null`` }
1041
+
1042
+ ___
1043
+
754
1044
  ### WId
755
1045
 
756
1046
  Ƭ **WId**: `StringWithIdentity`<``"WId"``\>
@@ -759,6 +1049,14 @@ A `wi_id` is the ID of a [Webhook](#webhook)
759
1049
 
760
1050
  ___
761
1051
 
1052
+ ### WSId
1053
+
1054
+ Ƭ **WSId**: `StringWithIdentity`<``"WSId"``\>
1055
+
1056
+ A `ws_id` is the ID of a transition
1057
+
1058
+ ___
1059
+
762
1060
  ### Webhook
763
1061
 
764
1062
  Ƭ **Webhook**: `Object`
@@ -817,10 +1115,10 @@ in the query parameters, it needs to be base64 and/or url encoded.
817
1115
  | `return_to?` | `string` | the callback url to redirect to once complete. Must be in the AA's list of authorized callback urls |
818
1116
  | `review_text?` | `string` | the text on the WizardReview page |
819
1117
  | `sharing_data_message?` | `string` | the loading message to show next to the spinner after the review screen |
820
- | `signature_schema?` | `string` | if specified, a Wizard will be shown on the review page with this schema |
1118
+ | `signature_schema?` | [`SchemaName`](#schemaname) | if specified, a Wizard will be shown on the review page with this schema |
821
1119
  | `skip_share?` | `boolean` | **`Deprecated`** added in !244 but never used |
822
1120
  | `submit_text?` | `string` | the submit button label |
823
- | `terms_schema?` | `string` | if specified, a Wizard will be shown on the review page with this schema |
1121
+ | `terms_schema?` | [`SchemaName`](#schemaname) | if specified, a Wizard will be shown on the review page with this schema |
824
1122
  | `update_reference?` | `boolean` | whether the user can change the reference, if there is one in the QP |
825
1123
  | `webauthn_type?` | (``"usb"`` \| ``"nfc"`` \| ``"ble"`` \| ``"internal"``)[] | if specified, the user must validate their WebAuthN credential before they can submit the form |
826
1124
 
@@ -860,7 +1158,7 @@ configuration data for a single wizard page ([WizardConfig](#wizardconfig))
860
1158
  | `profile?` | `boolean` | if explictly == false, then it's an AO (not a PO), in which case there can only be one schema |
861
1159
  | `reverify_header?` | `string` | custom text & header that's displayed on reverfication modal for expired PO |
862
1160
  | `reverify_text?` | `string` | - |
863
- | `schemas` | `string`[] | - |
1161
+ | `schemas` | [`SchemaName`](#schemaname)[] | - |
864
1162
  | `selection_hierarchy_json?` | `string` | a URL to a preset for configuing NestedSchemaSelect. DeepConfig |
865
1163
  | `service_provider_link?` | `boolean` | see #463 |
866
1164
  | `share?` | ``"profile"`` \| ``"verification"`` \| ``"both"`` | the information to share. undefined implies both. |
@@ -887,8 +1185,8 @@ This is what's returned by the API
887
1185
  | :------ | :------ | :------ |
888
1186
  | `active` | ``true`` | - |
889
1187
  | `end_date` | `string` | ISO Date. If this tag exists, the schema is deprecated. |
890
- | `schema` | [`CommonSchemaAttributes`](#commonschemaattributes) & { `$id?`: `string` ; `$schema?`: `string` ; `allOf?`: { `$ref?`: `string` ; `if?`: `Partial`<[`WrappedSchema`](modules.md#wrappedschema)[``"schema"``]\> ; `then?`: `Partial`<[`WrappedSchema`](modules.md#wrappedschema)[``"schema"``]\> }[] ; `definitions?`: `Record`<`string`, { `$ref`: [`Urn`](modules.md#urn) }\> ; `properties`: { `[fieldName: string]`: [`ServerSchemaField`](modules.md#serverschemafield); } ; `required?`: `string`[] ; `verified_fields?`: `string`[] } | - |
891
- | `schema_name` | `string` | Schema Name Type and Version Properties |
1188
+ | `schema` | [`CommonSchemaAttributes`](#commonschemaattributes) & { `$id?`: `string` ; `$schema?`: `string` ; `allOf?`: { `$ref?`: `string` ; `if?`: `Partial`<[`WrappedSchema`](#wrappedschema)[``"schema"``]\> ; `then?`: `Partial`<[`WrappedSchema`](#wrappedschema)[``"schema"``]\> }[] ; `definitions?`: `Record`<`string`, { `$ref`: [`Urn`](#urn) }\> ; `properties`: { `[fieldName: string]`: [`ServerSchemaField`](#serverschemafield); } ; `required?`: `string`[] ; `verified_fields?`: `string`[] } | - |
1189
+ | `schema_name` | [`SchemaName`](#schemaname) | Schema Name Type and Version Properties |
892
1190
  | `schema_type` | [`SchemaType`](#schematype) | - |
893
1191
  | `schema_version` | `string` | - |
894
1192
  | `start_date` | `string` | ISO Date |