@taiga-ai/mcp-server 0.37.0-dev.998 → 0.37.0-rc.1068
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 +35 -12
- package/dist/index.js +1564 -77
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24160,12 +24160,18 @@ var TaigaClient = class {
|
|
|
24160
24160
|
//#region ../../packages/types/dist/clouds.js
|
|
24161
24161
|
/**
|
|
24162
24162
|
* Cloud provider platforms that Taiga can connect to.
|
|
24163
|
+
*
|
|
24164
|
+
* `salesforce` is the Salesforce Platform (PRO-4337): where Apex and Lightning
|
|
24165
|
+
* Web Components run. Not a cloud Taiga connects to or deploys into -- the
|
|
24166
|
+
* customer's pipeline deploys to the org -- but the answer to "where does this
|
|
24167
|
+
* software run", which is what this list drives in the seeded policies.
|
|
24163
24168
|
*/
|
|
24164
24169
|
const CLOUD_PROVIDERS = [
|
|
24165
24170
|
"aws",
|
|
24166
24171
|
"gcp",
|
|
24167
24172
|
"azure",
|
|
24168
24173
|
"upcloud",
|
|
24174
|
+
"salesforce",
|
|
24169
24175
|
"kubernetes",
|
|
24170
24176
|
"digitalocean",
|
|
24171
24177
|
"vercel",
|
|
@@ -24176,75 +24182,1203 @@ const CLOUD_PROVIDERS = [
|
|
|
24176
24182
|
"other"
|
|
24177
24183
|
];
|
|
24178
24184
|
//#endregion
|
|
24179
|
-
//#region ../../packages/types/dist/
|
|
24180
|
-
/**
|
|
24181
|
-
*
|
|
24182
|
-
*
|
|
24183
|
-
*
|
|
24184
|
-
*
|
|
24185
|
-
*
|
|
24186
|
-
*
|
|
24187
|
-
*
|
|
24188
|
-
*
|
|
24189
|
-
*
|
|
24190
|
-
*
|
|
24191
|
-
*
|
|
24192
|
-
* -
|
|
24193
|
-
*
|
|
24194
|
-
|
|
24195
|
-
|
|
24196
|
-
|
|
24197
|
-
|
|
24198
|
-
|
|
24199
|
-
|
|
24200
|
-
*
|
|
24201
|
-
*
|
|
24202
|
-
*
|
|
24203
|
-
|
|
24204
|
-
|
|
24205
|
-
|
|
24206
|
-
|
|
24207
|
-
|
|
24208
|
-
|
|
24209
|
-
|
|
24210
|
-
|
|
24211
|
-
|
|
24212
|
-
|
|
24213
|
-
|
|
24214
|
-
|
|
24215
|
-
|
|
24216
|
-
|
|
24217
|
-
*
|
|
24218
|
-
*
|
|
24219
|
-
|
|
24220
|
-
|
|
24221
|
-
*
|
|
24222
|
-
*
|
|
24223
|
-
*
|
|
24224
|
-
*
|
|
24225
|
-
|
|
24226
|
-
|
|
24227
|
-
|
|
24228
|
-
*
|
|
24229
|
-
*
|
|
24230
|
-
*
|
|
24231
|
-
*
|
|
24232
|
-
*
|
|
24233
|
-
*
|
|
24234
|
-
*
|
|
24235
|
-
*
|
|
24236
|
-
*
|
|
24237
|
-
|
|
24238
|
-
|
|
24239
|
-
|
|
24240
|
-
|
|
24241
|
-
|
|
24242
|
-
*
|
|
24243
|
-
*
|
|
24244
|
-
*
|
|
24245
|
-
|
|
24246
|
-
|
|
24247
|
-
|
|
24185
|
+
//#region ../../packages/types/dist/ecosystems.js
|
|
24186
|
+
/**
|
|
24187
|
+
* Engineering ecosystems a tenant builds in.
|
|
24188
|
+
*
|
|
24189
|
+
* The structural twin of CLOUD_PROVIDERS: a discrete onboarding choice that
|
|
24190
|
+
* drives seeded policy content. Clouds say where the software runs; ecosystems
|
|
24191
|
+
* say what it is written in.
|
|
24192
|
+
*
|
|
24193
|
+
* Deliberately scoped to the runtimes the coding agent actually ships skills
|
|
24194
|
+
* for (`apps/agents/coding/src/coding/skills/loader.py`, `_RUNTIME_SKILLS`).
|
|
24195
|
+
* Offering a choice the agent cannot honour would be worse than not asking.
|
|
24196
|
+
* JVM was absent for that reason until the coding image gained the JDK, Maven,
|
|
24197
|
+
* Gradle, Ruby and PHP toolchains (PRO-1745) and the agent its `java`,
|
|
24198
|
+
* `ruby-rails` and `php-laravel` skills (PRO-2914); see the three entries
|
|
24199
|
+
* below.
|
|
24200
|
+
*
|
|
24201
|
+
* Frontend is its own entry rather than being bundled into `node`, because a
|
|
24202
|
+
* stack has tiers and a runtime list cannot express them. React-with-a-Python-
|
|
24203
|
+
* backend is one of the most common shapes there is; folding React into `node`
|
|
24204
|
+
* would force those tenants to declare a Node backend they do not run, and the
|
|
24205
|
+
* seeded policy would then approve Fastify for a Python shop. It also matches
|
|
24206
|
+
* the coding agent more closely, which already keeps `node-typescript` and
|
|
24207
|
+
* `react-nextjs` as separate skills under one runtime key.
|
|
24208
|
+
*
|
|
24209
|
+
* `nextjs` is the case that broke the tier model, and the reason it is its own
|
|
24210
|
+
* entry rather than react+node (PRO-809). Next.js occupies BOTH tiers: route
|
|
24211
|
+
* handlers and Server Actions are a backend, so `react` alone leaves a real
|
|
24212
|
+
* backend undeclared, while `react` + `node` approves Fastify and Drizzle at a
|
|
24213
|
+
* shop running neither. It also builds with its own bundler, so the react
|
|
24214
|
+
* preset's Vite row is wrong for it. One framework spanning two tiers is not
|
|
24215
|
+
* something hedged wording can fix; it needs its own entry.
|
|
24216
|
+
*
|
|
24217
|
+
* `other` is the escape hatch, and exists because its absence was a trap.
|
|
24218
|
+
* `CLOUD_PROVIDERS` has always had one; ecosystems did not, so a Vue, Angular
|
|
24219
|
+
* or Svelte shop had no true answer: declaring `react` is wrong, and declaring
|
|
24220
|
+
* nothing falls to `UNDECLARED_STACK_ROWS`, which opens with
|
|
24221
|
+
* "Frontend: React, TypeScript". Both paths asserted React at them. `other`
|
|
24222
|
+
* contributes no rows at all, so their approved-technology table is silent
|
|
24223
|
+
* about language rather than wrong about it.
|
|
24224
|
+
*
|
|
24225
|
+
* Note what `other` is NOT: an invitation to add Vue and friends as options.
|
|
24226
|
+
* The agent ships no skill for any of them, and the rule above still stands --
|
|
24227
|
+
* a skill first, then the option, never the reverse.
|
|
24228
|
+
*
|
|
24229
|
+
* `angular` is the first entry outside the React family, and it is its own
|
|
24230
|
+
* entry for the same reason `nextjs` is: the toolchain, not the language.
|
|
24231
|
+
* Angular builds with the Angular CLI's own esbuild-based builder rather than
|
|
24232
|
+
* Vite, lints with angular-eslint rather than oxlint, and (since v21) tests
|
|
24233
|
+
* with the CLI's Vitest builder rather than a bare Vitest config. Declaring
|
|
24234
|
+
* `react` at an Angular shop would seed every one of those rows wrong.
|
|
24235
|
+
*
|
|
24236
|
+
* It also retires the specific trap `other` was documented with: an Angular
|
|
24237
|
+
* shop previously had no true answer. Vue and Svelte still do not, and the
|
|
24238
|
+
* rule below is why -- Angular earned the entry by having a coding-agent
|
|
24239
|
+
* skill written for it first (PRO-1401), not the reverse.
|
|
24240
|
+
*
|
|
24241
|
+
* `nestjs` is the backend counterpart of that same rule, and its own entry
|
|
24242
|
+
* rather than folding into `node` for the same reason: the toolchain, not the
|
|
24243
|
+
* language. `node` approves Fastify, Zod and Drizzle and builds with Vite; a
|
|
24244
|
+
* NestJS service runs its own framework on the Express or Fastify adapter,
|
|
24245
|
+
* validates with class-validator DTOs, persists through Prisma or TypeORM, and
|
|
24246
|
+
* builds with the Nest CLI or Nx. Declaring `node` at a Nest shop would seed
|
|
24247
|
+
* every one of those rows wrong. Like Angular, it earned the entry by having
|
|
24248
|
+
* its coding-agent skill shipped first (PRO-1901), not the reverse.
|
|
24249
|
+
*
|
|
24250
|
+
* `react-native` is the mobile client tier, and a separate entry from `react`
|
|
24251
|
+
* for the same reason `nextjs` is (PRO-936). `react` is a web SPA that builds
|
|
24252
|
+
* with Vite and tests with Vitest/Playwright; React Native is an Expo-managed
|
|
24253
|
+
* mobile app that builds with the Expo/EAS toolchain and tests with jest-expo,
|
|
24254
|
+
* so declaring `react` would seed a web tenant's Vite/Vitest rows at a mobile
|
|
24255
|
+
* shop. Expo-managed is the default and the only variant here: a bare-workflow
|
|
24256
|
+
* React Native app is the same source with a different native build pipeline,
|
|
24257
|
+
* not a different approved-technology table, so it does not warrant its own id.
|
|
24258
|
+
*
|
|
24259
|
+
* `java`, `rails` and `laravel` are the server-rendered and API backends
|
|
24260
|
+
* outside JavaScript, Python and .NET (PRO-2915). `java` approves Spring Boot as
|
|
24261
|
+
* its framework the way `python` approves FastAPI or Django and `go` approves
|
|
24262
|
+
* chi: the table names what new work should use, and the picker's sublabel
|
|
24263
|
+
* says so ("Spring Boot, Maven or Gradle"). A JVM shop on another framework
|
|
24264
|
+
* picks `other` rather than being approved one it does not run. `rails` and
|
|
24265
|
+
* `laravel` are named by framework rather than language for the same reason:
|
|
24266
|
+
* a Ruby or PHP shop that runs neither has no table we could write for it.
|
|
24267
|
+
* Each followed the rule below -- its coding-agent skill shipped first.
|
|
24268
|
+
*
|
|
24269
|
+
* `salesforce` is Salesforce DX: Apex and Lightning Web Components kept as
|
|
24270
|
+
* source-format metadata in Git (`sfdx-project.json`, `force-app/`), PRO-4337.
|
|
24271
|
+
* It is a platform rather than a language, and its own entry for the toolchain
|
|
24272
|
+
* reason the others are: an LWC is JavaScript, but declaring `node` would
|
|
24273
|
+
* approve Fastify, Drizzle and a Vite build at a team whose code runs inside a
|
|
24274
|
+
* Salesforce org and deploys with the Salesforce CLI. Like the others it
|
|
24275
|
+
* followed the rule below: the import recognises Salesforce DX, the coding
|
|
24276
|
+
* agent runs the repository's own checks, and its `salesforce` skill shipped
|
|
24277
|
+
* first (PRO-4337). Apex compiles and its tests run only inside an org, so the
|
|
24278
|
+
* customer's pipeline stays the gate that runs them.
|
|
24279
|
+
*/
|
|
24280
|
+
const ECOSYSTEMS = [
|
|
24281
|
+
"react",
|
|
24282
|
+
"react-native",
|
|
24283
|
+
"angular",
|
|
24284
|
+
"nextjs",
|
|
24285
|
+
"node",
|
|
24286
|
+
"nestjs",
|
|
24287
|
+
"python",
|
|
24288
|
+
"dotnet",
|
|
24289
|
+
"go",
|
|
24290
|
+
"rust",
|
|
24291
|
+
"java",
|
|
24292
|
+
"rails",
|
|
24293
|
+
"laravel",
|
|
24294
|
+
"salesforce",
|
|
24295
|
+
"other"
|
|
24296
|
+
];
|
|
24297
|
+
//#endregion
|
|
24298
|
+
//#region ../../packages/types/dist/lenient-schema.js
|
|
24299
|
+
/**
|
|
24300
|
+
* Building blocks for reading JSON that arrives untyped -- a stored jsonb
|
|
24301
|
+
* column, an agent's answer, a document body -- as a parsed type rather than
|
|
24302
|
+
* a `Record<string, unknown>` narrowed field by field (PRO-2514).
|
|
24303
|
+
*
|
|
24304
|
+
* They encode the two leniencies a hand-written reader already had, so a
|
|
24305
|
+
* schema built from them accepts, drops and defaults exactly what the reader
|
|
24306
|
+
* it replaces did:
|
|
24307
|
+
*
|
|
24308
|
+
* - `lenient`: a field read only when it has the expected type, and otherwise
|
|
24309
|
+
* treated as absent. Never wrap a schema whose failure must surface: the
|
|
24310
|
+
* catch would swallow it and read a malformed value as "absent".
|
|
24311
|
+
* - `lenientList`: a list read item by item, where an item that does not parse
|
|
24312
|
+
* is skipped and the rest survive.
|
|
24313
|
+
*/
|
|
24314
|
+
/** A field read only when it has the expected type; anything else reads as absent. */
|
|
24315
|
+
function lenient(schema) {
|
|
24316
|
+
return schema.optional().catch(void 0);
|
|
24317
|
+
}
|
|
24318
|
+
/**
|
|
24319
|
+
* The item schema of every `lenientList`, which its transform otherwise hides:
|
|
24320
|
+
* read by the agent contract test, which walks each schema's keys to hold the
|
|
24321
|
+
* shared fixtures to them.
|
|
24322
|
+
*/
|
|
24323
|
+
const lenientListItems = /* @__PURE__ */ new WeakMap();
|
|
24324
|
+
/** A list read item by item: an item that does not parse is skipped, as the reader's `continue` did. */
|
|
24325
|
+
function lenientList(item) {
|
|
24326
|
+
const list = array(unknown$1()).transform((items) => items.flatMap((entry) => {
|
|
24327
|
+
const parsed = item.safeParse(entry);
|
|
24328
|
+
return parsed.success ? [parsed.data] : [];
|
|
24329
|
+
}));
|
|
24330
|
+
lenientListItems.set(list, item);
|
|
24331
|
+
return list;
|
|
24332
|
+
}
|
|
24333
|
+
//#endregion
|
|
24334
|
+
//#region ../../packages/types/dist/wire-fields.js
|
|
24335
|
+
/**
|
|
24336
|
+
* Zod fields shared by more than one wire schema, so a change to the rule
|
|
24337
|
+
* lands once rather than at every schema that carries the field.
|
|
24338
|
+
*/
|
|
24339
|
+
/**
|
|
24340
|
+
* Reusable optional-UUID field for nested schemas (e.g. discriminated-union
|
|
24341
|
+
* members that all accept an optional resource id). Centralising the rule
|
|
24342
|
+
* means a future change (UUID v7-only, error-message tweak) lands in one
|
|
24343
|
+
* place instead of N call sites.
|
|
24344
|
+
*/
|
|
24345
|
+
const optionalUuid = string$2().uuid().optional();
|
|
24346
|
+
/**
|
|
24347
|
+
* A source line anchor on a finding, or nothing.
|
|
24348
|
+
*
|
|
24349
|
+
* 0 means "no line anchor" -- a dependency in go.mod, a checkov rule on a
|
|
24350
|
+
* whole file -- and the scanners emit 0 for it. Rejecting it with `.min(1)`
|
|
24351
|
+
* bounced the WHOLE hardening report of staging run 01a07123 (52 findings,
|
|
24352
|
+
* `/findings/46/lineNumber too_small`), so the UI never saw the phase
|
|
24353
|
+
* (PRO-1481). Normalized to absent, never stored as 0. One schema for every
|
|
24354
|
+
* wire shape that carries a line (findings, narrative, residual findings) so
|
|
24355
|
+
* the next tightening cannot land on one of them and not the others.
|
|
24356
|
+
*/
|
|
24357
|
+
const optionalLineAnchor = number$1().int().min(0).optional().transform((v) => v ? v : void 0);
|
|
24358
|
+
//#endregion
|
|
24359
|
+
//#region ../../packages/types/dist/entitlements.js
|
|
24360
|
+
/**
|
|
24361
|
+
* Which agent implementation serves a planning job or build run (PRO-1331).
|
|
24362
|
+
* Recorded on `agent_jobs.runtime` / `build_runs.runtime` at dispatch so
|
|
24363
|
+
* outcomes can be compared per runtime and the UI can badge runs.
|
|
24364
|
+
*/
|
|
24365
|
+
const AGENT_RUNTIMES = ["legacy", "engineer"];
|
|
24366
|
+
//#endregion
|
|
24367
|
+
//#region ../../packages/types/dist/iso-countries.js
|
|
24368
|
+
/**
|
|
24369
|
+
* Every country in ISO 3166-1 (PRO-4404): the alpha-2 code and an English
|
|
24370
|
+
* short name, in name order.
|
|
24371
|
+
*
|
|
24372
|
+
* The names are the common English forms a person types into a picker
|
|
24373
|
+
* ("South Korea", "Russia", "Vietnam"), not the ISO long forms ("Korea,
|
|
24374
|
+
* Republic of"). The codes are the ISO ones: `GB` for the United Kingdom,
|
|
24375
|
+
* never `UK`. Kept as a constant rather than read from `Intl.DisplayNames`
|
|
24376
|
+
* so the API and every browser see the same list, whatever their ICU data.
|
|
24377
|
+
*
|
|
24378
|
+
* This is the set a tenant or a product market may name once the
|
|
24379
|
+
* `globalCountries` flag is on (`offeredCountries`). It says nothing about
|
|
24380
|
+
* what Taiga knows of a country's law: that is its region
|
|
24381
|
+
* (`COUNTRY_TO_REGION`) and its layers in the API.
|
|
24382
|
+
*/
|
|
24383
|
+
const ISO_COUNTRIES = [
|
|
24384
|
+
{
|
|
24385
|
+
code: "AF",
|
|
24386
|
+
name: "Afghanistan"
|
|
24387
|
+
},
|
|
24388
|
+
{
|
|
24389
|
+
code: "AX",
|
|
24390
|
+
name: "Åland Islands"
|
|
24391
|
+
},
|
|
24392
|
+
{
|
|
24393
|
+
code: "AL",
|
|
24394
|
+
name: "Albania"
|
|
24395
|
+
},
|
|
24396
|
+
{
|
|
24397
|
+
code: "DZ",
|
|
24398
|
+
name: "Algeria"
|
|
24399
|
+
},
|
|
24400
|
+
{
|
|
24401
|
+
code: "AS",
|
|
24402
|
+
name: "American Samoa"
|
|
24403
|
+
},
|
|
24404
|
+
{
|
|
24405
|
+
code: "AD",
|
|
24406
|
+
name: "Andorra"
|
|
24407
|
+
},
|
|
24408
|
+
{
|
|
24409
|
+
code: "AO",
|
|
24410
|
+
name: "Angola"
|
|
24411
|
+
},
|
|
24412
|
+
{
|
|
24413
|
+
code: "AI",
|
|
24414
|
+
name: "Anguilla"
|
|
24415
|
+
},
|
|
24416
|
+
{
|
|
24417
|
+
code: "AQ",
|
|
24418
|
+
name: "Antarctica"
|
|
24419
|
+
},
|
|
24420
|
+
{
|
|
24421
|
+
code: "AG",
|
|
24422
|
+
name: "Antigua and Barbuda"
|
|
24423
|
+
},
|
|
24424
|
+
{
|
|
24425
|
+
code: "AR",
|
|
24426
|
+
name: "Argentina"
|
|
24427
|
+
},
|
|
24428
|
+
{
|
|
24429
|
+
code: "AM",
|
|
24430
|
+
name: "Armenia"
|
|
24431
|
+
},
|
|
24432
|
+
{
|
|
24433
|
+
code: "AW",
|
|
24434
|
+
name: "Aruba"
|
|
24435
|
+
},
|
|
24436
|
+
{
|
|
24437
|
+
code: "AU",
|
|
24438
|
+
name: "Australia"
|
|
24439
|
+
},
|
|
24440
|
+
{
|
|
24441
|
+
code: "AT",
|
|
24442
|
+
name: "Austria"
|
|
24443
|
+
},
|
|
24444
|
+
{
|
|
24445
|
+
code: "AZ",
|
|
24446
|
+
name: "Azerbaijan"
|
|
24447
|
+
},
|
|
24448
|
+
{
|
|
24449
|
+
code: "BS",
|
|
24450
|
+
name: "Bahamas"
|
|
24451
|
+
},
|
|
24452
|
+
{
|
|
24453
|
+
code: "BH",
|
|
24454
|
+
name: "Bahrain"
|
|
24455
|
+
},
|
|
24456
|
+
{
|
|
24457
|
+
code: "BD",
|
|
24458
|
+
name: "Bangladesh"
|
|
24459
|
+
},
|
|
24460
|
+
{
|
|
24461
|
+
code: "BB",
|
|
24462
|
+
name: "Barbados"
|
|
24463
|
+
},
|
|
24464
|
+
{
|
|
24465
|
+
code: "BY",
|
|
24466
|
+
name: "Belarus"
|
|
24467
|
+
},
|
|
24468
|
+
{
|
|
24469
|
+
code: "BE",
|
|
24470
|
+
name: "Belgium"
|
|
24471
|
+
},
|
|
24472
|
+
{
|
|
24473
|
+
code: "BZ",
|
|
24474
|
+
name: "Belize"
|
|
24475
|
+
},
|
|
24476
|
+
{
|
|
24477
|
+
code: "BJ",
|
|
24478
|
+
name: "Benin"
|
|
24479
|
+
},
|
|
24480
|
+
{
|
|
24481
|
+
code: "BM",
|
|
24482
|
+
name: "Bermuda"
|
|
24483
|
+
},
|
|
24484
|
+
{
|
|
24485
|
+
code: "BT",
|
|
24486
|
+
name: "Bhutan"
|
|
24487
|
+
},
|
|
24488
|
+
{
|
|
24489
|
+
code: "BO",
|
|
24490
|
+
name: "Bolivia"
|
|
24491
|
+
},
|
|
24492
|
+
{
|
|
24493
|
+
code: "BQ",
|
|
24494
|
+
name: "Bonaire, Sint Eustatius and Saba"
|
|
24495
|
+
},
|
|
24496
|
+
{
|
|
24497
|
+
code: "BA",
|
|
24498
|
+
name: "Bosnia and Herzegovina"
|
|
24499
|
+
},
|
|
24500
|
+
{
|
|
24501
|
+
code: "BW",
|
|
24502
|
+
name: "Botswana"
|
|
24503
|
+
},
|
|
24504
|
+
{
|
|
24505
|
+
code: "BV",
|
|
24506
|
+
name: "Bouvet Island"
|
|
24507
|
+
},
|
|
24508
|
+
{
|
|
24509
|
+
code: "BR",
|
|
24510
|
+
name: "Brazil"
|
|
24511
|
+
},
|
|
24512
|
+
{
|
|
24513
|
+
code: "IO",
|
|
24514
|
+
name: "British Indian Ocean Territory"
|
|
24515
|
+
},
|
|
24516
|
+
{
|
|
24517
|
+
code: "BN",
|
|
24518
|
+
name: "Brunei"
|
|
24519
|
+
},
|
|
24520
|
+
{
|
|
24521
|
+
code: "BG",
|
|
24522
|
+
name: "Bulgaria"
|
|
24523
|
+
},
|
|
24524
|
+
{
|
|
24525
|
+
code: "BF",
|
|
24526
|
+
name: "Burkina Faso"
|
|
24527
|
+
},
|
|
24528
|
+
{
|
|
24529
|
+
code: "BI",
|
|
24530
|
+
name: "Burundi"
|
|
24531
|
+
},
|
|
24532
|
+
{
|
|
24533
|
+
code: "CV",
|
|
24534
|
+
name: "Cabo Verde"
|
|
24535
|
+
},
|
|
24536
|
+
{
|
|
24537
|
+
code: "KH",
|
|
24538
|
+
name: "Cambodia"
|
|
24539
|
+
},
|
|
24540
|
+
{
|
|
24541
|
+
code: "CM",
|
|
24542
|
+
name: "Cameroon"
|
|
24543
|
+
},
|
|
24544
|
+
{
|
|
24545
|
+
code: "CA",
|
|
24546
|
+
name: "Canada"
|
|
24547
|
+
},
|
|
24548
|
+
{
|
|
24549
|
+
code: "KY",
|
|
24550
|
+
name: "Cayman Islands"
|
|
24551
|
+
},
|
|
24552
|
+
{
|
|
24553
|
+
code: "CF",
|
|
24554
|
+
name: "Central African Republic"
|
|
24555
|
+
},
|
|
24556
|
+
{
|
|
24557
|
+
code: "TD",
|
|
24558
|
+
name: "Chad"
|
|
24559
|
+
},
|
|
24560
|
+
{
|
|
24561
|
+
code: "CL",
|
|
24562
|
+
name: "Chile"
|
|
24563
|
+
},
|
|
24564
|
+
{
|
|
24565
|
+
code: "CN",
|
|
24566
|
+
name: "China"
|
|
24567
|
+
},
|
|
24568
|
+
{
|
|
24569
|
+
code: "CX",
|
|
24570
|
+
name: "Christmas Island"
|
|
24571
|
+
},
|
|
24572
|
+
{
|
|
24573
|
+
code: "CC",
|
|
24574
|
+
name: "Cocos (Keeling) Islands"
|
|
24575
|
+
},
|
|
24576
|
+
{
|
|
24577
|
+
code: "CO",
|
|
24578
|
+
name: "Colombia"
|
|
24579
|
+
},
|
|
24580
|
+
{
|
|
24581
|
+
code: "KM",
|
|
24582
|
+
name: "Comoros"
|
|
24583
|
+
},
|
|
24584
|
+
{
|
|
24585
|
+
code: "CD",
|
|
24586
|
+
name: "Congo (Democratic Republic)"
|
|
24587
|
+
},
|
|
24588
|
+
{
|
|
24589
|
+
code: "CG",
|
|
24590
|
+
name: "Congo (Republic)"
|
|
24591
|
+
},
|
|
24592
|
+
{
|
|
24593
|
+
code: "CK",
|
|
24594
|
+
name: "Cook Islands"
|
|
24595
|
+
},
|
|
24596
|
+
{
|
|
24597
|
+
code: "CR",
|
|
24598
|
+
name: "Costa Rica"
|
|
24599
|
+
},
|
|
24600
|
+
{
|
|
24601
|
+
code: "CI",
|
|
24602
|
+
name: "Côte d'Ivoire"
|
|
24603
|
+
},
|
|
24604
|
+
{
|
|
24605
|
+
code: "HR",
|
|
24606
|
+
name: "Croatia"
|
|
24607
|
+
},
|
|
24608
|
+
{
|
|
24609
|
+
code: "CU",
|
|
24610
|
+
name: "Cuba"
|
|
24611
|
+
},
|
|
24612
|
+
{
|
|
24613
|
+
code: "CW",
|
|
24614
|
+
name: "Curaçao"
|
|
24615
|
+
},
|
|
24616
|
+
{
|
|
24617
|
+
code: "CY",
|
|
24618
|
+
name: "Cyprus"
|
|
24619
|
+
},
|
|
24620
|
+
{
|
|
24621
|
+
code: "CZ",
|
|
24622
|
+
name: "Czechia"
|
|
24623
|
+
},
|
|
24624
|
+
{
|
|
24625
|
+
code: "DK",
|
|
24626
|
+
name: "Denmark"
|
|
24627
|
+
},
|
|
24628
|
+
{
|
|
24629
|
+
code: "DJ",
|
|
24630
|
+
name: "Djibouti"
|
|
24631
|
+
},
|
|
24632
|
+
{
|
|
24633
|
+
code: "DM",
|
|
24634
|
+
name: "Dominica"
|
|
24635
|
+
},
|
|
24636
|
+
{
|
|
24637
|
+
code: "DO",
|
|
24638
|
+
name: "Dominican Republic"
|
|
24639
|
+
},
|
|
24640
|
+
{
|
|
24641
|
+
code: "EC",
|
|
24642
|
+
name: "Ecuador"
|
|
24643
|
+
},
|
|
24644
|
+
{
|
|
24645
|
+
code: "EG",
|
|
24646
|
+
name: "Egypt"
|
|
24647
|
+
},
|
|
24648
|
+
{
|
|
24649
|
+
code: "SV",
|
|
24650
|
+
name: "El Salvador"
|
|
24651
|
+
},
|
|
24652
|
+
{
|
|
24653
|
+
code: "GQ",
|
|
24654
|
+
name: "Equatorial Guinea"
|
|
24655
|
+
},
|
|
24656
|
+
{
|
|
24657
|
+
code: "ER",
|
|
24658
|
+
name: "Eritrea"
|
|
24659
|
+
},
|
|
24660
|
+
{
|
|
24661
|
+
code: "EE",
|
|
24662
|
+
name: "Estonia"
|
|
24663
|
+
},
|
|
24664
|
+
{
|
|
24665
|
+
code: "SZ",
|
|
24666
|
+
name: "Eswatini"
|
|
24667
|
+
},
|
|
24668
|
+
{
|
|
24669
|
+
code: "ET",
|
|
24670
|
+
name: "Ethiopia"
|
|
24671
|
+
},
|
|
24672
|
+
{
|
|
24673
|
+
code: "FK",
|
|
24674
|
+
name: "Falkland Islands"
|
|
24675
|
+
},
|
|
24676
|
+
{
|
|
24677
|
+
code: "FO",
|
|
24678
|
+
name: "Faroe Islands"
|
|
24679
|
+
},
|
|
24680
|
+
{
|
|
24681
|
+
code: "FJ",
|
|
24682
|
+
name: "Fiji"
|
|
24683
|
+
},
|
|
24684
|
+
{
|
|
24685
|
+
code: "FI",
|
|
24686
|
+
name: "Finland"
|
|
24687
|
+
},
|
|
24688
|
+
{
|
|
24689
|
+
code: "FR",
|
|
24690
|
+
name: "France"
|
|
24691
|
+
},
|
|
24692
|
+
{
|
|
24693
|
+
code: "GF",
|
|
24694
|
+
name: "French Guiana"
|
|
24695
|
+
},
|
|
24696
|
+
{
|
|
24697
|
+
code: "PF",
|
|
24698
|
+
name: "French Polynesia"
|
|
24699
|
+
},
|
|
24700
|
+
{
|
|
24701
|
+
code: "TF",
|
|
24702
|
+
name: "French Southern Territories"
|
|
24703
|
+
},
|
|
24704
|
+
{
|
|
24705
|
+
code: "GA",
|
|
24706
|
+
name: "Gabon"
|
|
24707
|
+
},
|
|
24708
|
+
{
|
|
24709
|
+
code: "GM",
|
|
24710
|
+
name: "Gambia"
|
|
24711
|
+
},
|
|
24712
|
+
{
|
|
24713
|
+
code: "GE",
|
|
24714
|
+
name: "Georgia"
|
|
24715
|
+
},
|
|
24716
|
+
{
|
|
24717
|
+
code: "DE",
|
|
24718
|
+
name: "Germany"
|
|
24719
|
+
},
|
|
24720
|
+
{
|
|
24721
|
+
code: "GH",
|
|
24722
|
+
name: "Ghana"
|
|
24723
|
+
},
|
|
24724
|
+
{
|
|
24725
|
+
code: "GI",
|
|
24726
|
+
name: "Gibraltar"
|
|
24727
|
+
},
|
|
24728
|
+
{
|
|
24729
|
+
code: "GR",
|
|
24730
|
+
name: "Greece"
|
|
24731
|
+
},
|
|
24732
|
+
{
|
|
24733
|
+
code: "GL",
|
|
24734
|
+
name: "Greenland"
|
|
24735
|
+
},
|
|
24736
|
+
{
|
|
24737
|
+
code: "GD",
|
|
24738
|
+
name: "Grenada"
|
|
24739
|
+
},
|
|
24740
|
+
{
|
|
24741
|
+
code: "GP",
|
|
24742
|
+
name: "Guadeloupe"
|
|
24743
|
+
},
|
|
24744
|
+
{
|
|
24745
|
+
code: "GU",
|
|
24746
|
+
name: "Guam"
|
|
24747
|
+
},
|
|
24748
|
+
{
|
|
24749
|
+
code: "GT",
|
|
24750
|
+
name: "Guatemala"
|
|
24751
|
+
},
|
|
24752
|
+
{
|
|
24753
|
+
code: "GG",
|
|
24754
|
+
name: "Guernsey"
|
|
24755
|
+
},
|
|
24756
|
+
{
|
|
24757
|
+
code: "GN",
|
|
24758
|
+
name: "Guinea"
|
|
24759
|
+
},
|
|
24760
|
+
{
|
|
24761
|
+
code: "GW",
|
|
24762
|
+
name: "Guinea-Bissau"
|
|
24763
|
+
},
|
|
24764
|
+
{
|
|
24765
|
+
code: "GY",
|
|
24766
|
+
name: "Guyana"
|
|
24767
|
+
},
|
|
24768
|
+
{
|
|
24769
|
+
code: "HT",
|
|
24770
|
+
name: "Haiti"
|
|
24771
|
+
},
|
|
24772
|
+
{
|
|
24773
|
+
code: "HM",
|
|
24774
|
+
name: "Heard Island and McDonald Islands"
|
|
24775
|
+
},
|
|
24776
|
+
{
|
|
24777
|
+
code: "HN",
|
|
24778
|
+
name: "Honduras"
|
|
24779
|
+
},
|
|
24780
|
+
{
|
|
24781
|
+
code: "HK",
|
|
24782
|
+
name: "Hong Kong"
|
|
24783
|
+
},
|
|
24784
|
+
{
|
|
24785
|
+
code: "HU",
|
|
24786
|
+
name: "Hungary"
|
|
24787
|
+
},
|
|
24788
|
+
{
|
|
24789
|
+
code: "IS",
|
|
24790
|
+
name: "Iceland"
|
|
24791
|
+
},
|
|
24792
|
+
{
|
|
24793
|
+
code: "IN",
|
|
24794
|
+
name: "India"
|
|
24795
|
+
},
|
|
24796
|
+
{
|
|
24797
|
+
code: "ID",
|
|
24798
|
+
name: "Indonesia"
|
|
24799
|
+
},
|
|
24800
|
+
{
|
|
24801
|
+
code: "IR",
|
|
24802
|
+
name: "Iran"
|
|
24803
|
+
},
|
|
24804
|
+
{
|
|
24805
|
+
code: "IQ",
|
|
24806
|
+
name: "Iraq"
|
|
24807
|
+
},
|
|
24808
|
+
{
|
|
24809
|
+
code: "IE",
|
|
24810
|
+
name: "Ireland"
|
|
24811
|
+
},
|
|
24812
|
+
{
|
|
24813
|
+
code: "IM",
|
|
24814
|
+
name: "Isle of Man"
|
|
24815
|
+
},
|
|
24816
|
+
{
|
|
24817
|
+
code: "IL",
|
|
24818
|
+
name: "Israel"
|
|
24819
|
+
},
|
|
24820
|
+
{
|
|
24821
|
+
code: "IT",
|
|
24822
|
+
name: "Italy"
|
|
24823
|
+
},
|
|
24824
|
+
{
|
|
24825
|
+
code: "JM",
|
|
24826
|
+
name: "Jamaica"
|
|
24827
|
+
},
|
|
24828
|
+
{
|
|
24829
|
+
code: "JP",
|
|
24830
|
+
name: "Japan"
|
|
24831
|
+
},
|
|
24832
|
+
{
|
|
24833
|
+
code: "JE",
|
|
24834
|
+
name: "Jersey"
|
|
24835
|
+
},
|
|
24836
|
+
{
|
|
24837
|
+
code: "JO",
|
|
24838
|
+
name: "Jordan"
|
|
24839
|
+
},
|
|
24840
|
+
{
|
|
24841
|
+
code: "KZ",
|
|
24842
|
+
name: "Kazakhstan"
|
|
24843
|
+
},
|
|
24844
|
+
{
|
|
24845
|
+
code: "KE",
|
|
24846
|
+
name: "Kenya"
|
|
24847
|
+
},
|
|
24848
|
+
{
|
|
24849
|
+
code: "KI",
|
|
24850
|
+
name: "Kiribati"
|
|
24851
|
+
},
|
|
24852
|
+
{
|
|
24853
|
+
code: "KW",
|
|
24854
|
+
name: "Kuwait"
|
|
24855
|
+
},
|
|
24856
|
+
{
|
|
24857
|
+
code: "KG",
|
|
24858
|
+
name: "Kyrgyzstan"
|
|
24859
|
+
},
|
|
24860
|
+
{
|
|
24861
|
+
code: "LA",
|
|
24862
|
+
name: "Laos"
|
|
24863
|
+
},
|
|
24864
|
+
{
|
|
24865
|
+
code: "LV",
|
|
24866
|
+
name: "Latvia"
|
|
24867
|
+
},
|
|
24868
|
+
{
|
|
24869
|
+
code: "LB",
|
|
24870
|
+
name: "Lebanon"
|
|
24871
|
+
},
|
|
24872
|
+
{
|
|
24873
|
+
code: "LS",
|
|
24874
|
+
name: "Lesotho"
|
|
24875
|
+
},
|
|
24876
|
+
{
|
|
24877
|
+
code: "LR",
|
|
24878
|
+
name: "Liberia"
|
|
24879
|
+
},
|
|
24880
|
+
{
|
|
24881
|
+
code: "LY",
|
|
24882
|
+
name: "Libya"
|
|
24883
|
+
},
|
|
24884
|
+
{
|
|
24885
|
+
code: "LI",
|
|
24886
|
+
name: "Liechtenstein"
|
|
24887
|
+
},
|
|
24888
|
+
{
|
|
24889
|
+
code: "LT",
|
|
24890
|
+
name: "Lithuania"
|
|
24891
|
+
},
|
|
24892
|
+
{
|
|
24893
|
+
code: "LU",
|
|
24894
|
+
name: "Luxembourg"
|
|
24895
|
+
},
|
|
24896
|
+
{
|
|
24897
|
+
code: "MO",
|
|
24898
|
+
name: "Macao"
|
|
24899
|
+
},
|
|
24900
|
+
{
|
|
24901
|
+
code: "MG",
|
|
24902
|
+
name: "Madagascar"
|
|
24903
|
+
},
|
|
24904
|
+
{
|
|
24905
|
+
code: "MW",
|
|
24906
|
+
name: "Malawi"
|
|
24907
|
+
},
|
|
24908
|
+
{
|
|
24909
|
+
code: "MY",
|
|
24910
|
+
name: "Malaysia"
|
|
24911
|
+
},
|
|
24912
|
+
{
|
|
24913
|
+
code: "MV",
|
|
24914
|
+
name: "Maldives"
|
|
24915
|
+
},
|
|
24916
|
+
{
|
|
24917
|
+
code: "ML",
|
|
24918
|
+
name: "Mali"
|
|
24919
|
+
},
|
|
24920
|
+
{
|
|
24921
|
+
code: "MT",
|
|
24922
|
+
name: "Malta"
|
|
24923
|
+
},
|
|
24924
|
+
{
|
|
24925
|
+
code: "MH",
|
|
24926
|
+
name: "Marshall Islands"
|
|
24927
|
+
},
|
|
24928
|
+
{
|
|
24929
|
+
code: "MQ",
|
|
24930
|
+
name: "Martinique"
|
|
24931
|
+
},
|
|
24932
|
+
{
|
|
24933
|
+
code: "MR",
|
|
24934
|
+
name: "Mauritania"
|
|
24935
|
+
},
|
|
24936
|
+
{
|
|
24937
|
+
code: "MU",
|
|
24938
|
+
name: "Mauritius"
|
|
24939
|
+
},
|
|
24940
|
+
{
|
|
24941
|
+
code: "YT",
|
|
24942
|
+
name: "Mayotte"
|
|
24943
|
+
},
|
|
24944
|
+
{
|
|
24945
|
+
code: "MX",
|
|
24946
|
+
name: "Mexico"
|
|
24947
|
+
},
|
|
24948
|
+
{
|
|
24949
|
+
code: "FM",
|
|
24950
|
+
name: "Micronesia"
|
|
24951
|
+
},
|
|
24952
|
+
{
|
|
24953
|
+
code: "MD",
|
|
24954
|
+
name: "Moldova"
|
|
24955
|
+
},
|
|
24956
|
+
{
|
|
24957
|
+
code: "MC",
|
|
24958
|
+
name: "Monaco"
|
|
24959
|
+
},
|
|
24960
|
+
{
|
|
24961
|
+
code: "MN",
|
|
24962
|
+
name: "Mongolia"
|
|
24963
|
+
},
|
|
24964
|
+
{
|
|
24965
|
+
code: "ME",
|
|
24966
|
+
name: "Montenegro"
|
|
24967
|
+
},
|
|
24968
|
+
{
|
|
24969
|
+
code: "MS",
|
|
24970
|
+
name: "Montserrat"
|
|
24971
|
+
},
|
|
24972
|
+
{
|
|
24973
|
+
code: "MA",
|
|
24974
|
+
name: "Morocco"
|
|
24975
|
+
},
|
|
24976
|
+
{
|
|
24977
|
+
code: "MZ",
|
|
24978
|
+
name: "Mozambique"
|
|
24979
|
+
},
|
|
24980
|
+
{
|
|
24981
|
+
code: "MM",
|
|
24982
|
+
name: "Myanmar"
|
|
24983
|
+
},
|
|
24984
|
+
{
|
|
24985
|
+
code: "NA",
|
|
24986
|
+
name: "Namibia"
|
|
24987
|
+
},
|
|
24988
|
+
{
|
|
24989
|
+
code: "NR",
|
|
24990
|
+
name: "Nauru"
|
|
24991
|
+
},
|
|
24992
|
+
{
|
|
24993
|
+
code: "NP",
|
|
24994
|
+
name: "Nepal"
|
|
24995
|
+
},
|
|
24996
|
+
{
|
|
24997
|
+
code: "NL",
|
|
24998
|
+
name: "Netherlands"
|
|
24999
|
+
},
|
|
25000
|
+
{
|
|
25001
|
+
code: "NC",
|
|
25002
|
+
name: "New Caledonia"
|
|
25003
|
+
},
|
|
25004
|
+
{
|
|
25005
|
+
code: "NZ",
|
|
25006
|
+
name: "New Zealand"
|
|
25007
|
+
},
|
|
25008
|
+
{
|
|
25009
|
+
code: "NI",
|
|
25010
|
+
name: "Nicaragua"
|
|
25011
|
+
},
|
|
25012
|
+
{
|
|
25013
|
+
code: "NE",
|
|
25014
|
+
name: "Niger"
|
|
25015
|
+
},
|
|
25016
|
+
{
|
|
25017
|
+
code: "NG",
|
|
25018
|
+
name: "Nigeria"
|
|
25019
|
+
},
|
|
25020
|
+
{
|
|
25021
|
+
code: "NU",
|
|
25022
|
+
name: "Niue"
|
|
25023
|
+
},
|
|
25024
|
+
{
|
|
25025
|
+
code: "NF",
|
|
25026
|
+
name: "Norfolk Island"
|
|
25027
|
+
},
|
|
25028
|
+
{
|
|
25029
|
+
code: "KP",
|
|
25030
|
+
name: "North Korea"
|
|
25031
|
+
},
|
|
25032
|
+
{
|
|
25033
|
+
code: "MK",
|
|
25034
|
+
name: "North Macedonia"
|
|
25035
|
+
},
|
|
25036
|
+
{
|
|
25037
|
+
code: "MP",
|
|
25038
|
+
name: "Northern Mariana Islands"
|
|
25039
|
+
},
|
|
25040
|
+
{
|
|
25041
|
+
code: "NO",
|
|
25042
|
+
name: "Norway"
|
|
25043
|
+
},
|
|
25044
|
+
{
|
|
25045
|
+
code: "OM",
|
|
25046
|
+
name: "Oman"
|
|
25047
|
+
},
|
|
25048
|
+
{
|
|
25049
|
+
code: "PK",
|
|
25050
|
+
name: "Pakistan"
|
|
25051
|
+
},
|
|
25052
|
+
{
|
|
25053
|
+
code: "PW",
|
|
25054
|
+
name: "Palau"
|
|
25055
|
+
},
|
|
25056
|
+
{
|
|
25057
|
+
code: "PS",
|
|
25058
|
+
name: "Palestine"
|
|
25059
|
+
},
|
|
25060
|
+
{
|
|
25061
|
+
code: "PA",
|
|
25062
|
+
name: "Panama"
|
|
25063
|
+
},
|
|
25064
|
+
{
|
|
25065
|
+
code: "PG",
|
|
25066
|
+
name: "Papua New Guinea"
|
|
25067
|
+
},
|
|
25068
|
+
{
|
|
25069
|
+
code: "PY",
|
|
25070
|
+
name: "Paraguay"
|
|
25071
|
+
},
|
|
25072
|
+
{
|
|
25073
|
+
code: "PE",
|
|
25074
|
+
name: "Peru"
|
|
25075
|
+
},
|
|
25076
|
+
{
|
|
25077
|
+
code: "PH",
|
|
25078
|
+
name: "Philippines"
|
|
25079
|
+
},
|
|
25080
|
+
{
|
|
25081
|
+
code: "PN",
|
|
25082
|
+
name: "Pitcairn Islands"
|
|
25083
|
+
},
|
|
25084
|
+
{
|
|
25085
|
+
code: "PL",
|
|
25086
|
+
name: "Poland"
|
|
25087
|
+
},
|
|
25088
|
+
{
|
|
25089
|
+
code: "PT",
|
|
25090
|
+
name: "Portugal"
|
|
25091
|
+
},
|
|
25092
|
+
{
|
|
25093
|
+
code: "PR",
|
|
25094
|
+
name: "Puerto Rico"
|
|
25095
|
+
},
|
|
25096
|
+
{
|
|
25097
|
+
code: "QA",
|
|
25098
|
+
name: "Qatar"
|
|
25099
|
+
},
|
|
25100
|
+
{
|
|
25101
|
+
code: "RE",
|
|
25102
|
+
name: "Réunion"
|
|
25103
|
+
},
|
|
25104
|
+
{
|
|
25105
|
+
code: "RO",
|
|
25106
|
+
name: "Romania"
|
|
25107
|
+
},
|
|
25108
|
+
{
|
|
25109
|
+
code: "RU",
|
|
25110
|
+
name: "Russia"
|
|
25111
|
+
},
|
|
25112
|
+
{
|
|
25113
|
+
code: "RW",
|
|
25114
|
+
name: "Rwanda"
|
|
25115
|
+
},
|
|
25116
|
+
{
|
|
25117
|
+
code: "BL",
|
|
25118
|
+
name: "Saint Barthélemy"
|
|
25119
|
+
},
|
|
25120
|
+
{
|
|
25121
|
+
code: "SH",
|
|
25122
|
+
name: "Saint Helena, Ascension and Tristan da Cunha"
|
|
25123
|
+
},
|
|
25124
|
+
{
|
|
25125
|
+
code: "KN",
|
|
25126
|
+
name: "Saint Kitts and Nevis"
|
|
25127
|
+
},
|
|
25128
|
+
{
|
|
25129
|
+
code: "LC",
|
|
25130
|
+
name: "Saint Lucia"
|
|
25131
|
+
},
|
|
25132
|
+
{
|
|
25133
|
+
code: "MF",
|
|
25134
|
+
name: "Saint Martin (French part)"
|
|
25135
|
+
},
|
|
25136
|
+
{
|
|
25137
|
+
code: "PM",
|
|
25138
|
+
name: "Saint Pierre and Miquelon"
|
|
25139
|
+
},
|
|
25140
|
+
{
|
|
25141
|
+
code: "VC",
|
|
25142
|
+
name: "Saint Vincent and the Grenadines"
|
|
25143
|
+
},
|
|
25144
|
+
{
|
|
25145
|
+
code: "WS",
|
|
25146
|
+
name: "Samoa"
|
|
25147
|
+
},
|
|
25148
|
+
{
|
|
25149
|
+
code: "SM",
|
|
25150
|
+
name: "San Marino"
|
|
25151
|
+
},
|
|
25152
|
+
{
|
|
25153
|
+
code: "ST",
|
|
25154
|
+
name: "Sao Tome and Principe"
|
|
25155
|
+
},
|
|
25156
|
+
{
|
|
25157
|
+
code: "SA",
|
|
25158
|
+
name: "Saudi Arabia"
|
|
25159
|
+
},
|
|
25160
|
+
{
|
|
25161
|
+
code: "SN",
|
|
25162
|
+
name: "Senegal"
|
|
25163
|
+
},
|
|
25164
|
+
{
|
|
25165
|
+
code: "RS",
|
|
25166
|
+
name: "Serbia"
|
|
25167
|
+
},
|
|
25168
|
+
{
|
|
25169
|
+
code: "SC",
|
|
25170
|
+
name: "Seychelles"
|
|
25171
|
+
},
|
|
25172
|
+
{
|
|
25173
|
+
code: "SL",
|
|
25174
|
+
name: "Sierra Leone"
|
|
25175
|
+
},
|
|
25176
|
+
{
|
|
25177
|
+
code: "SG",
|
|
25178
|
+
name: "Singapore"
|
|
25179
|
+
},
|
|
25180
|
+
{
|
|
25181
|
+
code: "SX",
|
|
25182
|
+
name: "Sint Maarten (Dutch part)"
|
|
25183
|
+
},
|
|
25184
|
+
{
|
|
25185
|
+
code: "SK",
|
|
25186
|
+
name: "Slovakia"
|
|
25187
|
+
},
|
|
25188
|
+
{
|
|
25189
|
+
code: "SI",
|
|
25190
|
+
name: "Slovenia"
|
|
25191
|
+
},
|
|
25192
|
+
{
|
|
25193
|
+
code: "SB",
|
|
25194
|
+
name: "Solomon Islands"
|
|
25195
|
+
},
|
|
25196
|
+
{
|
|
25197
|
+
code: "SO",
|
|
25198
|
+
name: "Somalia"
|
|
25199
|
+
},
|
|
25200
|
+
{
|
|
25201
|
+
code: "ZA",
|
|
25202
|
+
name: "South Africa"
|
|
25203
|
+
},
|
|
25204
|
+
{
|
|
25205
|
+
code: "GS",
|
|
25206
|
+
name: "South Georgia and the South Sandwich Islands"
|
|
25207
|
+
},
|
|
25208
|
+
{
|
|
25209
|
+
code: "KR",
|
|
25210
|
+
name: "South Korea"
|
|
25211
|
+
},
|
|
25212
|
+
{
|
|
25213
|
+
code: "SS",
|
|
25214
|
+
name: "South Sudan"
|
|
25215
|
+
},
|
|
25216
|
+
{
|
|
25217
|
+
code: "ES",
|
|
25218
|
+
name: "Spain"
|
|
25219
|
+
},
|
|
25220
|
+
{
|
|
25221
|
+
code: "LK",
|
|
25222
|
+
name: "Sri Lanka"
|
|
25223
|
+
},
|
|
25224
|
+
{
|
|
25225
|
+
code: "SD",
|
|
25226
|
+
name: "Sudan"
|
|
25227
|
+
},
|
|
25228
|
+
{
|
|
25229
|
+
code: "SR",
|
|
25230
|
+
name: "Suriname"
|
|
25231
|
+
},
|
|
25232
|
+
{
|
|
25233
|
+
code: "SJ",
|
|
25234
|
+
name: "Svalbard and Jan Mayen"
|
|
25235
|
+
},
|
|
25236
|
+
{
|
|
25237
|
+
code: "SE",
|
|
25238
|
+
name: "Sweden"
|
|
25239
|
+
},
|
|
25240
|
+
{
|
|
25241
|
+
code: "CH",
|
|
25242
|
+
name: "Switzerland"
|
|
25243
|
+
},
|
|
25244
|
+
{
|
|
25245
|
+
code: "SY",
|
|
25246
|
+
name: "Syria"
|
|
25247
|
+
},
|
|
25248
|
+
{
|
|
25249
|
+
code: "TW",
|
|
25250
|
+
name: "Taiwan"
|
|
25251
|
+
},
|
|
25252
|
+
{
|
|
25253
|
+
code: "TJ",
|
|
25254
|
+
name: "Tajikistan"
|
|
25255
|
+
},
|
|
25256
|
+
{
|
|
25257
|
+
code: "TZ",
|
|
25258
|
+
name: "Tanzania"
|
|
25259
|
+
},
|
|
25260
|
+
{
|
|
25261
|
+
code: "TH",
|
|
25262
|
+
name: "Thailand"
|
|
25263
|
+
},
|
|
25264
|
+
{
|
|
25265
|
+
code: "TL",
|
|
25266
|
+
name: "Timor-Leste"
|
|
25267
|
+
},
|
|
25268
|
+
{
|
|
25269
|
+
code: "TG",
|
|
25270
|
+
name: "Togo"
|
|
25271
|
+
},
|
|
25272
|
+
{
|
|
25273
|
+
code: "TK",
|
|
25274
|
+
name: "Tokelau"
|
|
25275
|
+
},
|
|
25276
|
+
{
|
|
25277
|
+
code: "TO",
|
|
25278
|
+
name: "Tonga"
|
|
25279
|
+
},
|
|
25280
|
+
{
|
|
25281
|
+
code: "TT",
|
|
25282
|
+
name: "Trinidad and Tobago"
|
|
25283
|
+
},
|
|
25284
|
+
{
|
|
25285
|
+
code: "TN",
|
|
25286
|
+
name: "Tunisia"
|
|
25287
|
+
},
|
|
25288
|
+
{
|
|
25289
|
+
code: "TR",
|
|
25290
|
+
name: "Türkiye"
|
|
25291
|
+
},
|
|
25292
|
+
{
|
|
25293
|
+
code: "TM",
|
|
25294
|
+
name: "Turkmenistan"
|
|
25295
|
+
},
|
|
25296
|
+
{
|
|
25297
|
+
code: "TC",
|
|
25298
|
+
name: "Turks and Caicos Islands"
|
|
25299
|
+
},
|
|
25300
|
+
{
|
|
25301
|
+
code: "TV",
|
|
25302
|
+
name: "Tuvalu"
|
|
25303
|
+
},
|
|
25304
|
+
{
|
|
25305
|
+
code: "UG",
|
|
25306
|
+
name: "Uganda"
|
|
25307
|
+
},
|
|
25308
|
+
{
|
|
25309
|
+
code: "UA",
|
|
25310
|
+
name: "Ukraine"
|
|
25311
|
+
},
|
|
25312
|
+
{
|
|
25313
|
+
code: "AE",
|
|
25314
|
+
name: "United Arab Emirates"
|
|
25315
|
+
},
|
|
25316
|
+
{
|
|
25317
|
+
code: "GB",
|
|
25318
|
+
name: "United Kingdom"
|
|
25319
|
+
},
|
|
25320
|
+
{
|
|
25321
|
+
code: "US",
|
|
25322
|
+
name: "United States"
|
|
25323
|
+
},
|
|
25324
|
+
{
|
|
25325
|
+
code: "UM",
|
|
25326
|
+
name: "United States Minor Outlying Islands"
|
|
25327
|
+
},
|
|
25328
|
+
{
|
|
25329
|
+
code: "UY",
|
|
25330
|
+
name: "Uruguay"
|
|
25331
|
+
},
|
|
25332
|
+
{
|
|
25333
|
+
code: "UZ",
|
|
25334
|
+
name: "Uzbekistan"
|
|
25335
|
+
},
|
|
25336
|
+
{
|
|
25337
|
+
code: "VU",
|
|
25338
|
+
name: "Vanuatu"
|
|
25339
|
+
},
|
|
25340
|
+
{
|
|
25341
|
+
code: "VA",
|
|
25342
|
+
name: "Vatican City"
|
|
25343
|
+
},
|
|
25344
|
+
{
|
|
25345
|
+
code: "VE",
|
|
25346
|
+
name: "Venezuela"
|
|
25347
|
+
},
|
|
25348
|
+
{
|
|
25349
|
+
code: "VN",
|
|
25350
|
+
name: "Vietnam"
|
|
25351
|
+
},
|
|
25352
|
+
{
|
|
25353
|
+
code: "VG",
|
|
25354
|
+
name: "Virgin Islands (British)"
|
|
25355
|
+
},
|
|
25356
|
+
{
|
|
25357
|
+
code: "VI",
|
|
25358
|
+
name: "Virgin Islands (U.S.)"
|
|
25359
|
+
},
|
|
25360
|
+
{
|
|
25361
|
+
code: "WF",
|
|
25362
|
+
name: "Wallis and Futuna"
|
|
25363
|
+
},
|
|
25364
|
+
{
|
|
25365
|
+
code: "EH",
|
|
25366
|
+
name: "Western Sahara"
|
|
25367
|
+
},
|
|
25368
|
+
{
|
|
25369
|
+
code: "YE",
|
|
25370
|
+
name: "Yemen"
|
|
25371
|
+
},
|
|
25372
|
+
{
|
|
25373
|
+
code: "ZM",
|
|
25374
|
+
name: "Zambia"
|
|
25375
|
+
},
|
|
25376
|
+
{
|
|
25377
|
+
code: "ZW",
|
|
25378
|
+
name: "Zimbabwe"
|
|
25379
|
+
}
|
|
25380
|
+
];
|
|
25381
|
+
//#endregion
|
|
24248
25382
|
//#region ../../packages/types/dist/tenants.js
|
|
24249
25383
|
const TENANT_DOCUMENT_TYPES = [
|
|
24250
25384
|
"policy_security",
|
|
@@ -24334,6 +25468,17 @@ const CONTROL_ID_SOURCE = "[A-Z][A-Z0-9]{1,5}(?:-[A-Z][A-Z0-9]{1,5})*-\\d+(?:\\.
|
|
|
24334
25468
|
function isControlId(text) {
|
|
24335
25469
|
return new RegExp(`^${CONTROL_ID_SOURCE}$`).test(text);
|
|
24336
25470
|
}
|
|
25471
|
+
const SUPPORTED_INDUSTRIES = [
|
|
25472
|
+
"technology",
|
|
25473
|
+
"telecom",
|
|
25474
|
+
"healthcare",
|
|
25475
|
+
"manufacturing",
|
|
25476
|
+
"defense",
|
|
25477
|
+
"fintech",
|
|
25478
|
+
"public_sector",
|
|
25479
|
+
"energy",
|
|
25480
|
+
"other"
|
|
25481
|
+
];
|
|
24337
25482
|
const EU_COUNTRIES = [
|
|
24338
25483
|
{
|
|
24339
25484
|
code: "AT",
|
|
@@ -24479,14 +25624,63 @@ const UK_COUNTRIES = [{
|
|
|
24479
25624
|
];
|
|
24480
25625
|
/** Countries available during closed beta. Expand as we open new markets. */
|
|
24481
25626
|
const BETA_COUNTRIES = ["FI"];
|
|
24482
|
-
|
|
25627
|
+
/**
|
|
25628
|
+
* Countries offered only while the `regulations` flag is on (PRO-3419,
|
|
25629
|
+
* PRO-3420): every EU member but Finland, and Norway. Each of them has a
|
|
25630
|
+
* national layer of its own (`overlays/countries/`), independently reviewed in
|
|
25631
|
+
* PRO-4371. A country without one would say so on the Regulations page
|
|
25632
|
+
* (`TenantRegulations.context.countryLayer`). Iceland and Liechtenstein stay
|
|
25633
|
+
* unoffered. They go with the flag when it is removed.
|
|
25634
|
+
*/
|
|
25635
|
+
const PREVIEW_COUNTRIES = [
|
|
25636
|
+
...EU_COUNTRIES.map((c) => c.code).filter((code) => !BETA_COUNTRIES.includes(code)),
|
|
25637
|
+
"NO",
|
|
25638
|
+
"GB"
|
|
25639
|
+
];
|
|
24483
25640
|
EU_COUNTRIES.filter((c) => BETA_COUNTRIES.includes(c.code));
|
|
25641
|
+
/** Every country Taiga can name is offered: what a stored country may be, whatever the flags. */
|
|
25642
|
+
const EVERY_COUNTRY_OFFERED = {
|
|
25643
|
+
regulations: true,
|
|
25644
|
+
globalCountries: true
|
|
25645
|
+
};
|
|
25646
|
+
/**
|
|
25647
|
+
* The countries a tenant may choose. The caller passes its own resolution of
|
|
25648
|
+
* the flags, so the API's validation and the web's picker cannot disagree
|
|
25649
|
+
* about which countries exist. With `globalCountries` on, every ISO 3166
|
|
25650
|
+
* country, in name order. It opens nothing while `regulations` is off: what a
|
|
25651
|
+
* country outside every region gets (the no-layer notice, the market step
|
|
25652
|
+
* that brings its EU markets' law) is regulations content.
|
|
25653
|
+
*/
|
|
25654
|
+
function offeredCountries(offer) {
|
|
25655
|
+
if (!offer.regulations) return [...BETA_COUNTRIES];
|
|
25656
|
+
if (offer.globalCountries) return ISO_COUNTRIES.map((c) => c.code);
|
|
25657
|
+
return [...BETA_COUNTRIES, ...PREVIEW_COUNTRIES];
|
|
25658
|
+
}
|
|
24484
25659
|
Object.fromEntries([
|
|
24485
25660
|
...EU_COUNTRIES.map((c) => [c.code, "eu"]),
|
|
24486
25661
|
...EEA_COUNTRIES.map((c) => [c.code, "eea"]),
|
|
24487
25662
|
...UK_COUNTRIES.map((c) => [c.code, "uk"])
|
|
24488
25663
|
]);
|
|
24489
25664
|
//#endregion
|
|
25665
|
+
//#region ../../packages/types/dist/frameworks.js
|
|
25666
|
+
/**
|
|
25667
|
+
* Security and compliance frameworks an organization can say it follows
|
|
25668
|
+
* (PRO-4405): certification and assurance frameworks it chooses, as opposed
|
|
25669
|
+
* to the laws its country, region and industries impose. A chosen framework
|
|
25670
|
+
* joins the overlay chain as its own layer and the Regulations page lists it
|
|
25671
|
+
* with the reason `chosen`. Offered only while the `frameworks` flag is on.
|
|
25672
|
+
*
|
|
25673
|
+
* The ids are the `FrameworkRef.id`s the framework overlays declare
|
|
25674
|
+
* (`apps/api/src/modules/tenants/data/overlays/frameworks/`), so a chosen id
|
|
25675
|
+
* and the regulation it lists are the same string.
|
|
25676
|
+
*
|
|
25677
|
+
* Which frameworks are offered is a licensing decision as much as a product
|
|
25678
|
+
* one (`regulations/README.md`, "Frameworks the organisation follows"): a
|
|
25679
|
+
* framework whose licence does not allow use in a commercial product (CIS
|
|
25680
|
+
* Controls, the CSA CCM) is not listed here until Taiga holds one.
|
|
25681
|
+
*/
|
|
25682
|
+
const COMPLIANCE_FRAMEWORKS = ["iso-27001"];
|
|
25683
|
+
//#endregion
|
|
24490
25684
|
//#region ../../packages/types/dist/factories.js
|
|
24491
25685
|
const FACTORY_DOCUMENT_TYPES = ["factory_instructions"];
|
|
24492
25686
|
/** The single canonical factory-document type (the free-form Factory Instructions doc). */
|
|
@@ -26355,6 +27549,14 @@ const CHANGE_REQUEST_MAX_CHARS = 1e4;
|
|
|
26355
27549
|
* (PRO-3313): one per product and licence, under the
|
|
26356
27550
|
* licence's SPDX id as its key, for whoever can change the
|
|
26357
27551
|
* organization's approved list. Advisory.
|
|
27552
|
+
* - `policy_attestation` a product's controls about how it is run wait on a
|
|
27553
|
+
* person's word (PRO-4239): the breach drill, the DPIA under
|
|
27554
|
+
* review, the processors under contract -- what no scanner
|
|
27555
|
+
* or document shows. One per product, raised while any such
|
|
27556
|
+
* control has no current attestation or has one about to
|
|
27557
|
+
* run out, and answered by attesting them, on the
|
|
27558
|
+
* Regulations tab or in Action required's pane. Only with
|
|
27559
|
+
* the `regulations` flag on. Advisory.
|
|
26358
27560
|
*/
|
|
26359
27561
|
const REQUEST_KINDS = [
|
|
26360
27562
|
"stop",
|
|
@@ -26365,7 +27567,8 @@ const REQUEST_KINDS = [
|
|
|
26365
27567
|
"maintenance_review",
|
|
26366
27568
|
"policy_review",
|
|
26367
27569
|
"document_check",
|
|
26368
|
-
"license_review"
|
|
27570
|
+
"license_review",
|
|
27571
|
+
"policy_attestation"
|
|
26369
27572
|
];
|
|
26370
27573
|
/** Every way a request can be answered, whatever its kind. */
|
|
26371
27574
|
const REQUEST_EXITS = [
|
|
@@ -26380,7 +27583,8 @@ const REQUEST_EXITS = [
|
|
|
26380
27583
|
"request_changes",
|
|
26381
27584
|
"done",
|
|
26382
27585
|
"dismiss",
|
|
26383
|
-
"reviewed"
|
|
27586
|
+
"reviewed",
|
|
27587
|
+
"attested"
|
|
26384
27588
|
];
|
|
26385
27589
|
/** The most ids an answer's `seen` carries; a longer list is not sent, and the review is not checked. */
|
|
26386
27590
|
const REVIEW_SEEN_MAX = 1e4;
|
|
@@ -26838,6 +28042,24 @@ function licensePackageStanding(decisions, pkg) {
|
|
|
26838
28042
|
fix: FIX_STAGES.flatMap((stage) => fixes.filter((f) => f.stage === stage))[0] ?? null
|
|
26839
28043
|
};
|
|
26840
28044
|
}
|
|
28045
|
+
/** The longest attestation link taken, in characters (PRO-4387). */
|
|
28046
|
+
const ATTESTATION_LINK_MAX_LENGTH = 2e3;
|
|
28047
|
+
/**
|
|
28048
|
+
* Whether `value` is a link an attestation may carry (PRO-4387): an absolute
|
|
28049
|
+
* http or https URL, no longer than {@link ATTESTATION_LINK_MAX_LENGTH}. Any
|
|
28050
|
+
* other scheme (`javascript:`, `data:`, `file:`) is refused, because the link
|
|
28051
|
+
* is shown to every reader of the control and opened on a click.
|
|
28052
|
+
*/
|
|
28053
|
+
function isAttestationLink(value) {
|
|
28054
|
+
if (value.length === 0 || value.length > 2e3) return false;
|
|
28055
|
+
if (/[\s<>"]/.test(value) || [...value].some((char) => char.charCodeAt(0) < 32 || char.charCodeAt(0) === 127)) return false;
|
|
28056
|
+
try {
|
|
28057
|
+
const url = new URL(value);
|
|
28058
|
+
return (url.protocol === "https:" || url.protocol === "http:") && url.hostname.length > 0;
|
|
28059
|
+
} catch {
|
|
28060
|
+
return false;
|
|
28061
|
+
}
|
|
28062
|
+
}
|
|
26841
28063
|
//#endregion
|
|
26842
28064
|
//#region ../../packages/types/dist/maintenance-advisory.js
|
|
26843
28065
|
/**
|
|
@@ -26892,6 +28114,74 @@ object({
|
|
|
26892
28114
|
})).catch([])
|
|
26893
28115
|
});
|
|
26894
28116
|
//#endregion
|
|
28117
|
+
//#region ../../packages/types/dist/scope-triggers.js
|
|
28118
|
+
/**
|
|
28119
|
+
* What a product has to be, or do, for a piece of the organization's policy
|
|
28120
|
+
* content to bind it (PRO-4369): the scope triggers, one plain question per
|
|
28121
|
+
* trigger, and which content rests on which trigger.
|
|
28122
|
+
*
|
|
28123
|
+
* An organization's policies carry every regulation its country, regions,
|
|
28124
|
+
* markets and industries bring. One product is bound by only some of them: a
|
|
28125
|
+
* telecom group's HR tool provides no public communications service, and a
|
|
28126
|
+
* healthcare company's marketing site processes no health data. The content
|
|
28127
|
+
* already says why it applies: its layer's industry, its `basis`, and the
|
|
28128
|
+
* stand-down rules between layers. This module turns that into questions a
|
|
28129
|
+
* product is asked once, so an exclusion on the product's Regulations tab
|
|
28130
|
+
* traces to a recorded answer instead of a guess from the product's text.
|
|
28131
|
+
*
|
|
28132
|
+
* Questions are written per TRIGGER, never per regulation: every section that
|
|
28133
|
+
* rests on the same trigger is answered by the same question. The API derives
|
|
28134
|
+
* `SCOPE_CONTENT` from its overlay registry (`scopeContent()` in
|
|
28135
|
+
* `overlays/scope.ts`), and `scope.test.ts` there fails when this copy drifts
|
|
28136
|
+
* from it. It is here so the synced graph scopes a product's policies as REST
|
|
28137
|
+
* does, the way `MARKET_CONTENT_COUNTRIES` serves the market step.
|
|
28138
|
+
*
|
|
28139
|
+
* Nothing here changes any tenant's documents or any product's conformance:
|
|
28140
|
+
* what reads the answers lands behind the `productScope` flag.
|
|
28141
|
+
*/
|
|
28142
|
+
/**
|
|
28143
|
+
* The closed vocabulary. A trigger names a fact about the product, not an act:
|
|
28144
|
+
* one act can rest on several, and one trigger carries many acts.
|
|
28145
|
+
*/
|
|
28146
|
+
const SCOPE_TRIGGERS = [
|
|
28147
|
+
"telecom_service",
|
|
28148
|
+
"health_data",
|
|
28149
|
+
"medical_device",
|
|
28150
|
+
"financial_service",
|
|
28151
|
+
"public_body",
|
|
28152
|
+
"energy_operator",
|
|
28153
|
+
"manufactured_product",
|
|
28154
|
+
"defense",
|
|
28155
|
+
"ai_system",
|
|
28156
|
+
"ai_high_risk",
|
|
28157
|
+
"consumer_facing"
|
|
28158
|
+
];
|
|
28159
|
+
/**
|
|
28160
|
+
* Every trigger an industry's content rests on (PRO-4424): its default, and
|
|
28161
|
+
* the ones its layers declare of their own. A product is of the industry
|
|
28162
|
+
* while any of them holds; it is out of it only when every one is confirmed
|
|
28163
|
+
* `no`. The healthcare layer's medical-device sections rest on
|
|
28164
|
+
* `medical_device`, so a device maker that processes no health data is still
|
|
28165
|
+
* a healthcare product. `technology` and `other` carry no industry content.
|
|
28166
|
+
*/
|
|
28167
|
+
const INDUSTRY_SCOPE_TRIGGERS = {
|
|
28168
|
+
telecom: ["telecom_service"],
|
|
28169
|
+
healthcare: ["health_data", "medical_device"],
|
|
28170
|
+
fintech: ["financial_service"],
|
|
28171
|
+
public_sector: ["public_body"],
|
|
28172
|
+
energy: ["energy_operator"],
|
|
28173
|
+
manufacturing: ["manufactured_product"],
|
|
28174
|
+
defense: ["defense"],
|
|
28175
|
+
technology: [],
|
|
28176
|
+
other: []
|
|
28177
|
+
};
|
|
28178
|
+
//#endregion
|
|
28179
|
+
//#region ../../packages/types/dist/product-scope.js
|
|
28180
|
+
const SCOPE_ANSWER_VALUES = ["yes", "no"];
|
|
28181
|
+
/** The longest note a person may leave beside a confirmed answer. */
|
|
28182
|
+
const SCOPE_ANSWER_NOTE_MAX_LENGTH = 1e3;
|
|
28183
|
+
new Map(Object.entries(INDUSTRY_SCOPE_TRIGGERS).flatMap(([industry, triggers]) => triggers.map((trigger) => [trigger, industry])));
|
|
28184
|
+
//#endregion
|
|
26895
28185
|
//#region ../../packages/types/dist/finding-controls.js
|
|
26896
28186
|
/**
|
|
26897
28187
|
* A committed credential.
|
|
@@ -27640,7 +28930,12 @@ strictObject({ type: productDocumentType }), object({
|
|
|
27640
28930
|
literal(6),
|
|
27641
28931
|
literal(12)
|
|
27642
28932
|
]),
|
|
27643
|
-
note: string$2().trim().max(1e3).optional()
|
|
28933
|
+
note: string$2().trim().max(1e3).optional(),
|
|
28934
|
+
link: string$2().trim().max(ATTESTATION_LINK_MAX_LENGTH).refine(isAttestationLink, { message: "Must be an http or https link" }).optional()
|
|
28935
|
+
}), strictObject({
|
|
28936
|
+
trigger: _enum(SCOPE_TRIGGERS),
|
|
28937
|
+
answer: _enum(SCOPE_ANSWER_VALUES),
|
|
28938
|
+
note: string$2().trim().max(SCOPE_ANSWER_NOTE_MAX_LENGTH).optional()
|
|
27644
28939
|
}), strictObject({ environments: array(string$2()).default(["development"]) }), object({ id: string$2().uuid() }), strictObject({
|
|
27645
28940
|
connection: newCloudConnection,
|
|
27646
28941
|
environment: object({
|
|
@@ -27764,6 +29059,105 @@ object({
|
|
|
27764
29059
|
});
|
|
27765
29060
|
/** A value GitHub's redirect carries back: a state token, or a one-time code. */
|
|
27766
29061
|
const githubCallbackSecret = string$2().trim().min(1).max(1024);
|
|
29062
|
+
/** Every country Taiga knows; the server refuses one it does not offer yet. */
|
|
29063
|
+
const KNOWN_COUNTRIES = offeredCountries(EVERY_COUNTRY_OFFERED);
|
|
29064
|
+
const knownCountry = string$2().length(2).refine((code) => KNOWN_COUNTRIES.includes(code), { message: "Unsupported country" });
|
|
29065
|
+
strictObject({
|
|
29066
|
+
industries: array(_enum(SUPPORTED_INDUSTRIES)).min(1).optional(),
|
|
29067
|
+
country: knownCountry.optional(),
|
|
29068
|
+
servesEu: boolean().optional(),
|
|
29069
|
+
frameworks: array(_enum(COMPLIANCE_FRAMEWORKS)).max(COMPLIANCE_FRAMEWORKS.length).optional(),
|
|
29070
|
+
cloudProviders: array(_enum(CLOUD_PROVIDERS)).min(1).optional(),
|
|
29071
|
+
ecosystems: array(_enum(ECOSYSTEMS)).min(1).optional(),
|
|
29072
|
+
productMarkets: strictObject({
|
|
29073
|
+
productId: uuid,
|
|
29074
|
+
countries: array(knownCountry).max(ISO_COUNTRIES.length),
|
|
29075
|
+
notOfferedAtHome: boolean().optional()
|
|
29076
|
+
}).optional(),
|
|
29077
|
+
overrides: record(string$2().max(100), array(string$2().max(200)).max(200)).optional()
|
|
29078
|
+
}).refine(({ industries, country, servesEu, frameworks, cloudProviders, ecosystems, productMarkets }) => [
|
|
29079
|
+
industries,
|
|
29080
|
+
country,
|
|
29081
|
+
servesEu,
|
|
29082
|
+
frameworks,
|
|
29083
|
+
cloudProviders,
|
|
29084
|
+
ecosystems,
|
|
29085
|
+
productMarkets
|
|
29086
|
+
].some((x) => x !== void 0), { message: "Provide at least one context field to change" });
|
|
29087
|
+
object({
|
|
29088
|
+
context: object({
|
|
29089
|
+
industries: array(string$2()),
|
|
29090
|
+
country: string$2().optional(),
|
|
29091
|
+
operatingRegions: array(string$2()),
|
|
29092
|
+
marketCountries: array(string$2()),
|
|
29093
|
+
frameworks: array(string$2()),
|
|
29094
|
+
cloudProviders: array(_enum(CLOUD_PROVIDERS)),
|
|
29095
|
+
ecosystems: array(_enum(ECOSYSTEMS))
|
|
29096
|
+
}),
|
|
29097
|
+
documents: array(object({
|
|
29098
|
+
type: string$2(),
|
|
29099
|
+
name: string$2(),
|
|
29100
|
+
action: _enum([
|
|
29101
|
+
"seed",
|
|
29102
|
+
"publish",
|
|
29103
|
+
"skip-edited",
|
|
29104
|
+
"backfilled",
|
|
29105
|
+
"up-to-date"
|
|
29106
|
+
]),
|
|
29107
|
+
sections: array(object({
|
|
29108
|
+
key: string$2(),
|
|
29109
|
+
changeType: _enum([
|
|
29110
|
+
"added",
|
|
29111
|
+
"removed",
|
|
29112
|
+
"modified",
|
|
29113
|
+
"reattributed"
|
|
29114
|
+
]),
|
|
29115
|
+
before: string$2().nullable(),
|
|
29116
|
+
after: string$2().nullable(),
|
|
29117
|
+
source: string$2().nullable()
|
|
29118
|
+
})).optional(),
|
|
29119
|
+
conflicts: array(object({
|
|
29120
|
+
key: string$2(),
|
|
29121
|
+
stored: string$2().nullable(),
|
|
29122
|
+
incoming: string$2().nullable()
|
|
29123
|
+
})).optional()
|
|
29124
|
+
})),
|
|
29125
|
+
regulations: object({
|
|
29126
|
+
added: array(object({
|
|
29127
|
+
id: string$2(),
|
|
29128
|
+
name: string$2()
|
|
29129
|
+
})),
|
|
29130
|
+
removed: array(object({
|
|
29131
|
+
id: string$2(),
|
|
29132
|
+
name: string$2()
|
|
29133
|
+
})),
|
|
29134
|
+
affectedProducts: number$1().int().nonnegative()
|
|
29135
|
+
}).optional()
|
|
29136
|
+
});
|
|
29137
|
+
/**
|
|
29138
|
+
* A derivation's source (PRO-1077, PRO-3680), as the derive routes take one,
|
|
29139
|
+
* except that a file arrives as a staged upload (`beginDeriveSourceUpload`)
|
|
29140
|
+
* rather than inline: the push carries at most 1 MiB.
|
|
29141
|
+
*/
|
|
29142
|
+
const deriveSource = discriminatedUnion("kind", [
|
|
29143
|
+
strictObject({
|
|
29144
|
+
kind: literal("text"),
|
|
29145
|
+
name: string$2().min(1).max(200),
|
|
29146
|
+
content: string$2().min(1).max(5e4)
|
|
29147
|
+
}),
|
|
29148
|
+
strictObject({
|
|
29149
|
+
kind: literal("tenant_document"),
|
|
29150
|
+
tenantDocumentId: uuid
|
|
29151
|
+
}),
|
|
29152
|
+
strictObject({
|
|
29153
|
+
kind: literal("custom_document"),
|
|
29154
|
+
customDocumentId: uuid
|
|
29155
|
+
}),
|
|
29156
|
+
strictObject({
|
|
29157
|
+
kind: literal("upload"),
|
|
29158
|
+
uploadId: uuid
|
|
29159
|
+
})
|
|
29160
|
+
]);
|
|
27767
29161
|
strictObject({
|
|
27768
29162
|
displayName: string$2().trim().min(1).max(255),
|
|
27769
29163
|
baseUrl: string$2().trim().min(1).max(480),
|
|
@@ -27851,7 +29245,81 @@ strictObject({
|
|
|
27851
29245
|
}), object({
|
|
27852
29246
|
principalArn: string$2().nullable(),
|
|
27853
29247
|
externalId: string$2()
|
|
27854
|
-
})
|
|
29248
|
+
}), object({ documentsMoved: number$1().int() }), strictObject({
|
|
29249
|
+
mfaRequired: boolean().optional(),
|
|
29250
|
+
mfaGracePeriodDays: number$1().int().min(0).max(90).optional(),
|
|
29251
|
+
sessionTimeoutMinutes: number$1().int().min(60).max(10080).nullable().optional()
|
|
29252
|
+
}).refine((change) => Object.keys(change).length > 0, { message: "At least one field must be provided" }), strictObject({ azureTenantId: uuid }), strictObject({ enforced: boolean() }), strictObject({ domain: string$2().trim().toLowerCase().min(1).max(253).regex(/^(?=.{1,253}$)(?!-)[a-z0-9-]{1,63}(?<!-)(\.(?!-)[a-z0-9-]{1,63}(?<!-))+$/, "Enter a valid domain, e.g. acme.com") }), object({ domainId: string$2() }), strictObject({
|
|
29253
|
+
repositoryId: uuid.optional(),
|
|
29254
|
+
branch: string$2().max(255).optional()
|
|
29255
|
+
}), object({ packages: array(string$2()) }), object({ snapshot: object({
|
|
29256
|
+
source: string$2(),
|
|
29257
|
+
sourceVersion: string$2().nullable(),
|
|
29258
|
+
sourceLabel: string$2().nullable(),
|
|
29259
|
+
syncedAt: string$2(),
|
|
29260
|
+
variables: object({
|
|
29261
|
+
light: record(string$2(), string$2()),
|
|
29262
|
+
dark: record(string$2(), string$2())
|
|
29263
|
+
}),
|
|
29264
|
+
filesRead: array(string$2()).optional(),
|
|
29265
|
+
unavailableReason: string$2().optional()
|
|
29266
|
+
}).nullable() }), object({
|
|
29267
|
+
byComponent: record(string$2(), number$1()),
|
|
29268
|
+
artifactsReferencingAny: number$1()
|
|
29269
|
+
}), strictObject({
|
|
29270
|
+
fileName: string$2().trim().min(1).max(200),
|
|
29271
|
+
mimeType: _enum([
|
|
29272
|
+
"application/pdf",
|
|
29273
|
+
"text/csv",
|
|
29274
|
+
"application/msword",
|
|
29275
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
29276
|
+
"application/vnd.ms-excel",
|
|
29277
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
29278
|
+
"text/html",
|
|
29279
|
+
"text/plain",
|
|
29280
|
+
"text/markdown"
|
|
29281
|
+
]),
|
|
29282
|
+
sizeBytes: number$1().int().positive(),
|
|
29283
|
+
sha256
|
|
29284
|
+
}), object({ upload: uploadGrant }), strictObject({
|
|
29285
|
+
policyType: _enum(TENANT_DOCUMENT_TYPES).refine((type) => type.startsWith("policy_"), "Not a policy"),
|
|
29286
|
+
instruction: string$2().min(1).max(2e3),
|
|
29287
|
+
sourceDocuments: array(deriveSource).min(1).max(10),
|
|
29288
|
+
targetSectionKeys: array(string$2().min(1)).optional()
|
|
29289
|
+
}), strictObject({
|
|
29290
|
+
instruction: string$2().min(1).max(2e3),
|
|
29291
|
+
sourceDocuments: array(deriveSource).min(1).max(10)
|
|
29292
|
+
}), strictObject({
|
|
29293
|
+
name: string$2().min(2).max(50),
|
|
29294
|
+
description: string$2().min(1).max(2e3)
|
|
29295
|
+
}), strictObject({ components: array(strictObject({
|
|
29296
|
+
name: string$2().min(2).max(50),
|
|
29297
|
+
source: string$2().min(1)
|
|
29298
|
+
})).min(1).max(24) }), object({ results: array(discriminatedUnion("ok", [object({
|
|
29299
|
+
name: string$2(),
|
|
29300
|
+
ok: literal(true),
|
|
29301
|
+
code: string$2()
|
|
29302
|
+
}), object({
|
|
29303
|
+
name: string$2(),
|
|
29304
|
+
ok: literal(false),
|
|
29305
|
+
errors: array(object({
|
|
29306
|
+
message: string$2(),
|
|
29307
|
+
line: number$1().int().nullable(),
|
|
29308
|
+
column: number$1().int().nullable()
|
|
29309
|
+
}))
|
|
29310
|
+
})])) });
|
|
29311
|
+
object({ record: object({
|
|
29312
|
+
name: string$2(),
|
|
29313
|
+
value: string$2()
|
|
29314
|
+
}).nullable() });
|
|
29315
|
+
discriminatedUnion("kind", [strictObject({
|
|
29316
|
+
kind: literal("initiativesPlanned"),
|
|
29317
|
+
proposalMessageId: string$2().uuid(),
|
|
29318
|
+
jobId: string$2().uuid()
|
|
29319
|
+
}), strictObject({
|
|
29320
|
+
kind: literal("initiativeEditApplied"),
|
|
29321
|
+
proposalMessageId: string$2().uuid()
|
|
29322
|
+
})]);
|
|
27855
29323
|
strictObject({ kind: _enum(["sbom", "notices"]) }), object({
|
|
27856
29324
|
url: string$2().url().nullable(),
|
|
27857
29325
|
expiresAt: string$2().nullable()
|
|
@@ -28127,6 +29595,9 @@ const TOOLSET_OF = {
|
|
|
28127
29595
|
taiga_retry_knowledge: "documents"
|
|
28128
29596
|
};
|
|
28129
29597
|
/**
|
|
29598
|
+
* What steers agents leaves with them: knowledge, a factory's instructions
|
|
29599
|
+
* and the design tokens, as the app hides those pages by the same rule.
|
|
29600
|
+
*
|
|
28130
29601
|
* Deliver & Operate's tools (PRO-3834): initiatives, plans, runs and the line, fixes, environments, deployments,
|
|
28131
29602
|
* monitoring and delivery metrics. An organization whose plan refuses delivery work does not see them, as its web app
|
|
28132
29603
|
* shows none of their views; the API says which (`deliveryIncluded` at introspection), so the plan, not the key,
|
|
@@ -28159,7 +29630,18 @@ const DELIVERY_TOOLS = /* @__PURE__ */ new Set([
|
|
|
28159
29630
|
"taiga_get_deployments",
|
|
28160
29631
|
"taiga_get_monitoring",
|
|
28161
29632
|
"taiga_get_delivery_metrics",
|
|
28162
|
-
"taiga_sync_design_tokens"
|
|
29633
|
+
"taiga_sync_design_tokens",
|
|
29634
|
+
"taiga_get_design_tokens",
|
|
29635
|
+
"taiga_get_design_token_sync",
|
|
29636
|
+
"taiga_update_design_tokens",
|
|
29637
|
+
"taiga_get_factory_document",
|
|
29638
|
+
"taiga_update_factory_document",
|
|
29639
|
+
"taiga_publish_factory_document",
|
|
29640
|
+
"taiga_list_knowledge",
|
|
29641
|
+
"taiga_get_knowledge",
|
|
29642
|
+
"taiga_add_knowledge",
|
|
29643
|
+
"taiga_delete_knowledge",
|
|
29644
|
+
"taiga_retry_knowledge"
|
|
28163
29645
|
]);
|
|
28164
29646
|
/**
|
|
28165
29647
|
* TAIGA_TOOLSETS as written: comma-separated names, or "all"; a name it does not know is said, not ignored, and so
|
|
@@ -38874,7 +40356,8 @@ function readWith(row, backlogRead) {
|
|
|
38874
40356
|
case "setup": return `taiga_list_setup_tasks (${productRead})`;
|
|
38875
40357
|
case "document_review": return `taiga_get_product_document (${productRead}, type: ${String(dataOf(row)["documentType"])})`;
|
|
38876
40358
|
case "maintenance_review": return `taiga_list_findings (${productRead})`;
|
|
38877
|
-
case "policy_review":
|
|
40359
|
+
case "policy_review":
|
|
40360
|
+
case "policy_attestation": return `taiga_get_policy_standing (${productRead})`;
|
|
38878
40361
|
default: return;
|
|
38879
40362
|
}
|
|
38880
40363
|
}
|
|
@@ -38894,6 +40377,7 @@ function titleOf(row) {
|
|
|
38894
40377
|
case "maintenance_review": return `Review ${String(data["openFindings"])} findings`;
|
|
38895
40378
|
case "policy_review": return `Review ${String(data["openDivergences"])} policy violations`;
|
|
38896
40379
|
case "license_review": return `Review license ${String(data["license"])}`;
|
|
40380
|
+
case "policy_attestation": return `Confirm ${String(data["needing"])} controls, ${String(data["lapsing"])} running out soon`;
|
|
38897
40381
|
default: return String(row["kind"]);
|
|
38898
40382
|
}
|
|
38899
40383
|
}
|
|
@@ -39145,7 +40629,9 @@ const REPOSITORY_SUMMARY_FIELDS = [
|
|
|
39145
40629
|
"repositoryName",
|
|
39146
40630
|
"repositoryUrl",
|
|
39147
40631
|
"effectiveBranch",
|
|
39148
|
-
"isManaged"
|
|
40632
|
+
"isManaged",
|
|
40633
|
+
"buildable",
|
|
40634
|
+
"writable"
|
|
39149
40635
|
];
|
|
39150
40636
|
/** How many of the latest runs to carry; taiga_list_runs pages the rest. */
|
|
39151
40637
|
const BUILDS_IN_CONTEXT = 5;
|
|
@@ -54782,6 +56268,7 @@ const LINK_FIELDS = [
|
|
|
54782
56268
|
"baseBranch",
|
|
54783
56269
|
"effectiveBranch",
|
|
54784
56270
|
"buildable",
|
|
56271
|
+
"writable",
|
|
54785
56272
|
"isManaged"
|
|
54786
56273
|
];
|
|
54787
56274
|
const INSTALLATION_FIELDS = [
|