@originator-profile/model 0.4.0-beta.1 → 0.4.0-beta.4

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/dist/index.d.cts CHANGED
@@ -837,7 +837,7 @@ declare const AllowedOrigin: {
837
837
  readonly format: "uri";
838
838
  };
839
839
  }];
840
- readonly description: "Content Attestation によって表明される情報の対象となる [origin](https://www.rfc-editor.org/rfc/rfc6454#section-7)";
840
+ readonly description: string;
841
841
  };
842
842
  type AllowedOrigin = FromSchema<typeof AllowedOrigin>;
843
843
 
@@ -1427,7 +1427,7 @@ declare const AdvertisementCA: {
1427
1427
  readonly format: "uri";
1428
1428
  };
1429
1429
  }];
1430
- readonly description: "Content Attestation によって表明される情報の対象となる [origin](https://www.rfc-editor.org/rfc/rfc6454#section-7)";
1430
+ readonly description: string;
1431
1431
  };
1432
1432
  readonly target: {
1433
1433
  readonly type: "array";
@@ -1597,7 +1597,7 @@ declare const AdvertisementCA: {
1597
1597
  readonly format: "uri";
1598
1598
  };
1599
1599
  }];
1600
- readonly description: "Content Attestation によって表明される情報の対象となる [origin](https://www.rfc-editor.org/rfc/rfc6454#section-7)";
1600
+ readonly description: string;
1601
1601
  };
1602
1602
  };
1603
1603
  readonly required: readonly ["allowedOrigin"];
@@ -1716,7 +1716,7 @@ declare const ArticleCA: {
1716
1716
  readonly format: "uri";
1717
1717
  };
1718
1718
  }];
1719
- readonly description: "Content Attestation によって表明される情報の対象となる [origin](https://www.rfc-editor.org/rfc/rfc6454#section-7)";
1719
+ readonly description: string;
1720
1720
  };
1721
1721
  readonly target: {
1722
1722
  readonly type: "array";
@@ -1810,7 +1810,7 @@ declare const ArticleCA: {
1810
1810
  };
1811
1811
  readonly description: {
1812
1812
  readonly type: "string";
1813
- readonly description: "コンテンツの説明(プレーンテキスト)。";
1813
+ readonly description: "コンテンツの説明(文字列)。";
1814
1814
  };
1815
1815
  readonly image: {
1816
1816
  readonly title: "画像";
@@ -1993,7 +1993,7 @@ declare const ContentAttestation: {
1993
1993
  readonly format: "uri";
1994
1994
  };
1995
1995
  }];
1996
- readonly description: "Content Attestation によって表明される情報の対象となる [origin](https://www.rfc-editor.org/rfc/rfc6454#section-7)";
1996
+ readonly description: string;
1997
1997
  };
1998
1998
  readonly target: {
1999
1999
  readonly type: "array";
@@ -2150,7 +2150,7 @@ declare const UnsignedContentAttestation: {
2150
2150
  readonly format: "uri";
2151
2151
  };
2152
2152
  }];
2153
- readonly description: "Content Attestation によって表明される情報の対象となる [origin](https://www.rfc-editor.org/rfc/rfc6454#section-7)";
2153
+ readonly description: string;
2154
2154
  };
2155
2155
  readonly target: {
2156
2156
  readonly type: "array";
@@ -2164,7 +2164,7 @@ declare const UnsignedContentAttestation: {
2164
2164
  readonly enum: readonly ["TextTargetIntegrity", "VisibleTextTargetIntegrity", "HtmlTargetIntegrity", "ExternalResourceTargetIntegrity"];
2165
2165
  };
2166
2166
  readonly content: {
2167
- readonly oneOf: readonly [{
2167
+ readonly anyOf: readonly [{
2168
2168
  readonly type: "array";
2169
2169
  readonly items: {
2170
2170
  readonly type: "string";
@@ -2191,6 +2191,293 @@ declare const UnsignedContentAttestation: {
2191
2191
  };
2192
2192
  type UnsignedContentAttestation = FromSchema<typeof UnsignedContentAttestation>;
2193
2193
 
2194
+ declare const AdvertorialCA: {
2195
+ readonly type: "object";
2196
+ readonly additionalProperties: true;
2197
+ readonly allOf: readonly [{
2198
+ readonly type: "object";
2199
+ readonly additionalProperties: true;
2200
+ readonly allOf: readonly [{
2201
+ readonly type: "object";
2202
+ readonly additionalProperties: true;
2203
+ readonly properties: {
2204
+ readonly "@context": {
2205
+ readonly type: "array";
2206
+ readonly allOf: readonly [{
2207
+ readonly contains: {
2208
+ readonly const: "https://www.w3.org/ns/credentials/v2";
2209
+ };
2210
+ }, {
2211
+ readonly contains: {
2212
+ readonly const: "https://originator-profile.org/ns/credentials/v1";
2213
+ };
2214
+ }];
2215
+ };
2216
+ readonly type: {
2217
+ readonly type: "array";
2218
+ readonly contains: {
2219
+ readonly const: "VerifiableCredential";
2220
+ };
2221
+ };
2222
+ readonly issuer: {
2223
+ readonly type: "string";
2224
+ readonly format: "uri";
2225
+ };
2226
+ readonly credentialSubject: {
2227
+ readonly type: "object";
2228
+ readonly additionalProperties: true;
2229
+ readonly properties: {
2230
+ readonly id: {
2231
+ readonly type: "string";
2232
+ readonly format: "uri";
2233
+ };
2234
+ };
2235
+ readonly required: readonly ["id"];
2236
+ };
2237
+ };
2238
+ readonly required: readonly ["@context", "type", "issuer", "credentialSubject"];
2239
+ }, {
2240
+ readonly type: "object";
2241
+ readonly additionalProperties: true;
2242
+ readonly properties: {
2243
+ readonly "@context": {
2244
+ readonly type: "array";
2245
+ readonly allOf: readonly [{
2246
+ readonly contains: {
2247
+ readonly const: "https://www.w3.org/ns/credentials/v2";
2248
+ };
2249
+ }, {
2250
+ readonly contains: {
2251
+ readonly const: "https://originator-profile.org/ns/credentials/v1";
2252
+ };
2253
+ }];
2254
+ };
2255
+ readonly type: {
2256
+ readonly type: "array";
2257
+ readonly contains: {
2258
+ readonly const: "ContentAttestation";
2259
+ };
2260
+ };
2261
+ readonly credentialSubject: {
2262
+ readonly type: "object";
2263
+ readonly additionalProperties: true;
2264
+ readonly properties: {
2265
+ readonly id: {
2266
+ readonly title: "CA ID";
2267
+ readonly type: "string";
2268
+ readonly format: "uri";
2269
+ };
2270
+ readonly type: {
2271
+ readonly title: "JSON-LD タイプ";
2272
+ readonly type: "string";
2273
+ };
2274
+ };
2275
+ readonly required: readonly ["id", "type"];
2276
+ };
2277
+ readonly allowedUrl: {
2278
+ readonly title: "Allowed URLs";
2279
+ readonly anyOf: readonly [{
2280
+ readonly type: "string";
2281
+ readonly format: "uri";
2282
+ }, {
2283
+ readonly type: "array";
2284
+ readonly items: {
2285
+ readonly type: "string";
2286
+ readonly format: "uri";
2287
+ };
2288
+ readonly minItems: 1;
2289
+ }];
2290
+ readonly description: "Content Attestation によって表明される情報の対象となる URL です。 文字列は必ず URL Pattern string でなければなりません (MUST)。空配列にしてはなりません (MUST NOT)。";
2291
+ };
2292
+ readonly allowedOrigin: {
2293
+ readonly title: "Allowed Origin";
2294
+ readonly anyOf: readonly [{
2295
+ readonly type: "string";
2296
+ readonly format: "uri";
2297
+ }, {
2298
+ readonly type: "array";
2299
+ readonly items: {
2300
+ readonly type: "string";
2301
+ readonly format: "uri";
2302
+ };
2303
+ }];
2304
+ readonly description: string;
2305
+ };
2306
+ readonly target: {
2307
+ readonly type: "array";
2308
+ readonly items: {
2309
+ readonly title: "Target";
2310
+ readonly oneOf: readonly [{
2311
+ readonly title: "Basic Target";
2312
+ readonly type: "object";
2313
+ readonly additionalProperties: true;
2314
+ readonly properties: {
2315
+ readonly type: {
2316
+ readonly type: "string";
2317
+ readonly enum: readonly ["TextTargetIntegrity", "VisibleTextTargetIntegrity", "HtmlTargetIntegrity"];
2318
+ };
2319
+ readonly integrity: {
2320
+ readonly type: "string";
2321
+ readonly description: "ハッシュ値の形式は Subresource Integrity セクション 3.1 の Integrity metadata でなければなりません (MUST)。";
2322
+ };
2323
+ readonly cssSelector: {
2324
+ readonly type: "string";
2325
+ readonly description: "CSS セレクター";
2326
+ };
2327
+ };
2328
+ readonly required: readonly ["type", "integrity", "cssSelector"];
2329
+ }, {
2330
+ readonly title: "External Resource Target";
2331
+ readonly type: "object";
2332
+ readonly additionalProperties: true;
2333
+ readonly properties: {
2334
+ readonly type: {
2335
+ readonly type: "string";
2336
+ readonly const: "ExternalResourceTargetIntegrity";
2337
+ };
2338
+ readonly integrity: {
2339
+ readonly type: "string";
2340
+ readonly description: "ハッシュ値の形式は Subresource Integrity セクション 3.1 の Integrity metadata でなければなりません (MUST)。";
2341
+ };
2342
+ };
2343
+ readonly required: readonly ["type", "integrity"];
2344
+ }];
2345
+ };
2346
+ readonly minItems: 1;
2347
+ };
2348
+ };
2349
+ readonly required: readonly ["@context", "type", "credentialSubject", "target"];
2350
+ }];
2351
+ }, {
2352
+ readonly type: "object";
2353
+ readonly additionalProperties: true;
2354
+ readonly properties: {
2355
+ readonly "@context": {
2356
+ readonly type: "array";
2357
+ readonly additionalItems: false;
2358
+ readonly minItems: 4;
2359
+ readonly items: readonly [{
2360
+ readonly type: "string";
2361
+ readonly const: "https://www.w3.org/ns/credentials/v2";
2362
+ }, {
2363
+ readonly type: "string";
2364
+ readonly const: "https://originator-profile.org/ns/credentials/v1";
2365
+ }, {
2366
+ readonly type: "string";
2367
+ readonly const: "https://originator-profile.org/ns/cip/v1";
2368
+ }, {
2369
+ readonly type: "object";
2370
+ readonly properties: {
2371
+ readonly "@language": {
2372
+ readonly type: "string";
2373
+ readonly title: "言語コード";
2374
+ };
2375
+ };
2376
+ readonly required: readonly ["@language"];
2377
+ }];
2378
+ };
2379
+ readonly credentialSubject: {
2380
+ readonly type: "object";
2381
+ readonly additionalProperties: false;
2382
+ readonly properties: {
2383
+ readonly id: {
2384
+ readonly type: "string";
2385
+ readonly format: "uri";
2386
+ readonly description: "CA ID";
2387
+ };
2388
+ readonly type: {
2389
+ readonly type: "string";
2390
+ readonly const: "Advertorial";
2391
+ };
2392
+ readonly headline: {
2393
+ readonly type: "string";
2394
+ readonly description: "記事広告のタイトル。";
2395
+ };
2396
+ readonly description: {
2397
+ readonly type: "string";
2398
+ readonly description: "記事広告の説明(文字列)。";
2399
+ };
2400
+ readonly image: {
2401
+ readonly title: "画像";
2402
+ readonly type: "object";
2403
+ readonly properties: {
2404
+ readonly id: {
2405
+ readonly type: "string";
2406
+ readonly format: "uri";
2407
+ };
2408
+ readonly digestSRI: {
2409
+ readonly type: "string";
2410
+ readonly title: "Integrity Metadata";
2411
+ readonly description: "Subresource Integrity (SRI) digest";
2412
+ };
2413
+ };
2414
+ readonly required: readonly ["id"];
2415
+ };
2416
+ readonly datePublished: {
2417
+ readonly title: "公開日時";
2418
+ readonly type: "string";
2419
+ readonly description: "http://www.w3.org/2001/XMLSchema#dateTime 形式の公開日時";
2420
+ };
2421
+ readonly dateModified: {
2422
+ readonly title: "最終更新日時";
2423
+ readonly type: "string";
2424
+ readonly description: "http://www.w3.org/2001/XMLSchema#dateTime 形式の最終更新日時";
2425
+ };
2426
+ readonly author: {
2427
+ readonly title: "著者名";
2428
+ readonly type: "array";
2429
+ readonly items: {
2430
+ readonly type: "string";
2431
+ };
2432
+ };
2433
+ readonly editor: {
2434
+ readonly title: "編集者名";
2435
+ readonly type: "array";
2436
+ readonly items: {
2437
+ readonly type: "string";
2438
+ };
2439
+ };
2440
+ readonly sponsor: {
2441
+ readonly title: "スポンサー名";
2442
+ readonly type: "array";
2443
+ readonly items: {
2444
+ readonly type: "string";
2445
+ };
2446
+ };
2447
+ readonly genre: {
2448
+ readonly title: "ジャンル";
2449
+ readonly type: "string";
2450
+ };
2451
+ };
2452
+ readonly required: readonly ["id", "type", "headline", "description"];
2453
+ };
2454
+ readonly allowedUrl: {
2455
+ readonly title: "Allowed URLs";
2456
+ readonly anyOf: readonly [{
2457
+ readonly type: "string";
2458
+ readonly format: "uri";
2459
+ }, {
2460
+ readonly type: "array";
2461
+ readonly items: {
2462
+ readonly type: "string";
2463
+ readonly format: "uri";
2464
+ };
2465
+ readonly minItems: 1;
2466
+ }];
2467
+ readonly description: "Content Attestation によって表明される情報の対象となる URL です。 文字列は必ず URL Pattern string でなければなりません (MUST)。空配列にしてはなりません (MUST NOT)。";
2468
+ };
2469
+ };
2470
+ readonly required: readonly ["@context", "type", "credentialSubject", "allowedUrl"];
2471
+ }];
2472
+ readonly not: {
2473
+ readonly properties: {
2474
+ readonly allowedOrigin: {};
2475
+ };
2476
+ readonly required: readonly ["allowedOrigin"];
2477
+ };
2478
+ };
2479
+ type AdvertorialCA = FromSchema<typeof AdvertorialCA>;
2480
+
2194
2481
  declare const ContentAttestationSetItem: {
2195
2482
  readonly title: "Content Attestation Set Item";
2196
2483
  readonly oneOf: readonly [{
@@ -6779,7 +7066,7 @@ declare const RawTarget: {
6779
7066
  readonly enum: readonly ["TextTargetIntegrity", "VisibleTextTargetIntegrity", "HtmlTargetIntegrity", "ExternalResourceTargetIntegrity"];
6780
7067
  };
6781
7068
  readonly content: {
6782
- readonly oneOf: readonly [{
7069
+ readonly anyOf: readonly [{
6783
7070
  readonly type: "array";
6784
7071
  readonly items: {
6785
7072
  readonly type: "string";
@@ -7158,7 +7445,7 @@ declare const WebsiteProfile: {
7158
7445
  readonly format: "uri";
7159
7446
  };
7160
7447
  }];
7161
- readonly description: "Content Attestation によって表明される情報の対象となる [origin](https://www.rfc-editor.org/rfc/rfc6454#section-7)";
7448
+ readonly description: string;
7162
7449
  };
7163
7450
  };
7164
7451
  readonly required: readonly ["id", "type", "name", "url"];
@@ -7210,7 +7497,7 @@ declare const WebsiteProfile: {
7210
7497
  readonly format: "uri";
7211
7498
  };
7212
7499
  }];
7213
- readonly description: "Content Attestation によって表明される情報の対象となる [origin](https://www.rfc-editor.org/rfc/rfc6454#section-7)";
7500
+ readonly description: string;
7214
7501
  };
7215
7502
  };
7216
7503
  readonly required: readonly ["id", "type", "name", "allowedOrigin"];
@@ -7222,4 +7509,4 @@ declare const WebsiteProfile: {
7222
7509
  };
7223
7510
  type WebsiteProfile = FromSchema<typeof WebsiteProfile>;
7224
7511
 
7225
- export { Advertisement, AdvertisementCA, AllowedOrigin, AllowedUrl, ArticleCA, type BaseTarget, BasicTarget, Certificate, CertificationSystem, ContentAttestation, ContentAttestationSet, ContentAttestationSetItem, CoreProfile, Dp, DpAllowedOrigins, DpHtml, DpItem, DpText, DpVisibleText, ExternalResourceTarget, Image, JapaneseExistenceCertificate, JapaneseExistenceCertificateProperties, Jwk, Jwks, JwtDpPayload, JwtOpPayload, JwtProfilePayload, OgWebsite, Op, OpCertifier, OpCredential, OpHolder, OpItem, OpVc, OpVerifier, OriginatorProfileSet, OriginatorProfileSetItem, Profile, RawTarget, Request, SiteProfile, Target, UnsignedContentAttestation, User, WebMediaProfile, WebsiteProfile };
7512
+ export { Advertisement, AdvertisementCA, AdvertorialCA, AllowedOrigin, AllowedUrl, ArticleCA, type BaseTarget, BasicTarget, Certificate, CertificationSystem, ContentAttestation, ContentAttestationSet, ContentAttestationSetItem, CoreProfile, Dp, DpAllowedOrigins, DpHtml, DpItem, DpText, DpVisibleText, ExternalResourceTarget, Image, JapaneseExistenceCertificate, JapaneseExistenceCertificateProperties, Jwk, Jwks, JwtDpPayload, JwtOpPayload, JwtProfilePayload, OgWebsite, Op, OpCertifier, OpCredential, OpHolder, OpItem, OpVc, OpVerifier, OriginatorProfileSet, OriginatorProfileSetItem, Profile, RawTarget, Request, SiteProfile, Target, UnsignedContentAttestation, User, WebMediaProfile, WebsiteProfile };