@tier0/sdk-v2 0.9.0 → 0.9.1
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 +4 -4
- package/dist/cjs/capabilities.js +3 -1
- package/dist/cjs/capabilities.js.map +1 -1
- package/dist/cjs/uns-v2/generated.d.ts +4 -4
- package/dist/cjs/uns-v2/generated.js +4 -4
- package/dist/cjs/uns-v2/generated.js.map +1 -1
- package/dist/esm/capabilities.js +3 -1
- package/dist/esm/capabilities.js.map +1 -1
- package/dist/esm/uns-v2/generated.d.ts +4 -4
- package/dist/esm/uns-v2/generated.js +4 -4
- package/dist/esm/uns-v2/generated.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/capabilities.js
CHANGED
|
@@ -52,6 +52,7 @@ const streamOperations = ['read', 'configure', 'validate', 'deploy', 'execute',
|
|
|
52
52
|
const resourceOperations = {
|
|
53
53
|
source: ['test', 'discover', 'enable'],
|
|
54
54
|
stream: ['deploy', 'execute'],
|
|
55
|
+
'stream.requests.invoke.v1': ['invoke'],
|
|
55
56
|
};
|
|
56
57
|
function operationFields(value, code, fail) {
|
|
57
58
|
if (value.operations === undefined)
|
|
@@ -59,7 +60,8 @@ function operationFields(value, code, fail) {
|
|
|
59
60
|
if (!Array.isArray(value.operations))
|
|
60
61
|
return fail();
|
|
61
62
|
const operations = [];
|
|
62
|
-
const supported = code === 'source' ? sourceOperations : code === 'stream' ? streamOperations :
|
|
63
|
+
const supported = code === 'source' ? sourceOperations : code === 'stream' ? streamOperations :
|
|
64
|
+
code === 'stream.requests.invoke.v1' ? ['invoke'] : [];
|
|
63
65
|
const seen = new Set();
|
|
64
66
|
for (const item of value.operations) {
|
|
65
67
|
if (!record(item) || !text(item.operation))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAA6B,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,KAAK,CAAC;YACzD,MAAM,IAAI,eAAe,CAAC,4CAA4C,EAAE;gBACtE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,cAAc,KAAK,CAAC,IAAI,EAAE;aAC5D,CAAC,CAAC;QACL,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,QAAQ,CAAC;QACvC,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAClF,MAAM,IAAI,eAAe,CAAC,oCAAoC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,2BAA2B,EAAE,CAAC,CAAC;YACtH,CAAC;YACD,MAAM,IAAI,eAAe,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;QACnF,CAAC;QACD,OAAO,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAClD,CAAC;CACF;AAED,sGAAsG;AACtG,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,kBAAkB,EAAE,CAAC","sourcesContent":["import { CloudTransport, CloudTransportError, type CloudTransportConfig } from './cloud-transport.js';\nimport { getClient, type HttpClient } from './openapi/client.js';\n\nexport type CapabilityCode = 'namespace.v2' | 'source' | 'stream' | 'stream.requests.v1' | 'stream.requests.invoke.v1';\nexport type CapabilityState = 'disabled' | 'not_supported' | 'unavailable' | 'readiness_unknown' | 'ready';\n\nexport interface CapabilityDiagnostics {\n reasonCode?: string;\n checkedAt?: string;\n validUntil?: string;\n retryAfterMs?: number;\n}\n\nexport interface CapabilityOperation extends CapabilityDiagnostics {\n operation: string;\n state: CapabilityState;\n reasonCode: string;\n requiresResourceCheck: boolean;\n}\n\nexport interface PublicCapability extends CapabilityDiagnostics {\n code: CapabilityCode;\n /** Discovery does not grant access to a resource or confirm a successful run. */\n state: CapabilityState;\n reasonCode: string;\n contractVersions: string[];\n operations?: CapabilityOperation[];\n}\n\nexport interface CapabilityDeprecation {\n contract: string;\n replacement?: string;\n sunsetAt?: string;\n}\n\nexport interface CapabilityDiscoverResponse {\n product: 'cloud' | 'enterprise';\n /** Trusted server configuration only; absent when unconfigured. */\n productVersion?: string;\n contractVersion: '2.0';\n apiContractVersions: string[];\n /** Public SDK contract labels, not npm package versions. */\n sdkContractVersions: string[];\n capabilities: PublicCapability[];\n deprecations: CapabilityDeprecation[];\n}\n\nexport interface CapabilityErrorInfo {\n status?: number;\n /** Gateway string code (including unknown future codes), or an SDK-local CAPABILITY_* code. */\n errorCode: string;\n}\n\nexport class CapabilityError extends Error {\n readonly status?: number;\n readonly errorCode: string;\n readonly retryable = false;\n\n constructor(message: string, info: CapabilityErrorInfo) {\n super(message);\n this.name = 'CapabilityError';\n this.status = info.status;\n this.errorCode = info.errorCode;\n }\n}\n\nconst contracts: Partial<Record<CapabilityCode, string[]>> = {\n 'namespace.v2': ['openapi/v2'],\n 'source': ['openapi/v2'],\n 'stream': ['openapi/v2'],\n};\n\nfunction record(value: unknown): value is Record<string, unknown> {\n return value !== null && typeof value === 'object' && !Array.isArray(value);\n}\nfunction text(value: unknown): value is string {\n return typeof value === 'string' && value.length > 0;\n}\nfunction strings(value: unknown): value is string[] {\n return Array.isArray(value) && value.every(text) && new Set(value).size === value.length;\n}\n\n\nfunction diagnostics(value: Record<string, unknown>, fail: () => never): CapabilityDiagnostics {\n const result: CapabilityDiagnostics = {};\n for (const field of ['reasonCode', 'checkedAt', 'validUntil'] as const) {\n if (value[field] === undefined) continue;\n if (!text(value[field])) return fail();\n if (field !== 'reasonCode' && (!/^\\d{4}-\\d\\d-\\d\\d[Tt]\\d\\d:\\d\\d:\\d\\d(?:\\.\\d+)?(?:[Zz]|[+-]\\d\\d:\\d\\d)$/.test(value[field]) ||\n !Number.isFinite(Date.parse(value[field])))) return fail();\n result[field] = value[field];\n }\n if (value.retryAfterMs !== undefined) {\n if (typeof value.retryAfterMs !== 'number' || !Number.isSafeInteger(value.retryAfterMs) || value.retryAfterMs < 0) return fail();\n result.retryAfterMs = value.retryAfterMs;\n }\n if (result.validUntil !== undefined && (value.state !== 'ready' || result.checkedAt === undefined ||\n Date.parse(result.validUntil) <= Date.parse(result.checkedAt))) return fail();\n return result;\n}\n\nconst sourceOperations = ['read', 'configure', 'test', 'discover', 'enable', 'disable'];\nconst streamOperations = ['read', 'configure', 'validate', 'deploy', 'execute', 'disable'];\nconst resourceOperations: Partial<Record<CapabilityCode, readonly string[]>> = {\n source: ['test', 'discover', 'enable'],\n stream: ['deploy', 'execute'],\n};\n\nfunction operationFields(value: Record<string, unknown>, code: CapabilityCode, fail: () => never): { operations?: CapabilityOperation[] } {\n if (value.operations === undefined) return {};\n if (!Array.isArray(value.operations)) return fail();\n const operations: CapabilityOperation[] = [];\n const supported = code === 'source' ? sourceOperations : code === 'stream' ? streamOperations : [];\n const seen = new Set<string>();\n for (const item of value.operations) {\n if (!record(item) || !text(item.operation)) return fail();\n if (!supported.includes(item.operation)) continue;\n if (seen.has(item.operation)) return fail();\n seen.add(item.operation);\n if (!text(item.reasonCode) || typeof item.requiresResourceCheck !== 'boolean' ||\n (value.state === 'disabled' && item.state !== 'disabled') ||\n (resourceOperations[code]?.includes(item.operation) && !item.requiresResourceCheck) ||\n !['disabled', 'not_supported', 'unavailable', 'readiness_unknown', 'ready'].includes(item.state as string)) return fail();\n operations.push({operation: item.operation, state: item.state as CapabilityState, reasonCode: item.reasonCode,\n requiresResourceCheck: item.requiresResourceCheck, ...diagnostics(item, fail)});\n }\n return { operations };\n}\n\n/** Validate and explicitly project the frozen contract; unknown capabilities/extension fields are ignored. */\nfunction discovery(value: unknown, status: number, accepted: Partial<Record<CapabilityCode, string[]>>): CapabilityDiscoverResponse {\n const fail = (version = false): never => {\n throw new CapabilityError(version ? 'Unsupported capability contract version.' : 'Invalid capability discovery response.', {\n status, errorCode: version ? 'CAPABILITY_UNSUPPORTED_VERSION' : 'CAPABILITY_PROTOCOL_ERROR',\n });\n };\n if (!record(value)) return fail();\n if (!text(value.product) || !text(value.contractVersion) ||\n !strings(value.apiContractVersions) || !strings(value.sdkContractVersions) ||\n !Array.isArray(value.capabilities) || !Array.isArray(value.deprecations) ||\n (value.productVersion !== undefined && !text(value.productVersion))) return fail();\n if (!['cloud', 'enterprise'].includes(value.product) || value.contractVersion !== '2.0' ||\n !value.apiContractVersions.includes('openapi/v2')) return fail(true);\n\n const capabilities: PublicCapability[] = [];\n const seen = new Set<string>();\n for (const item of value.capabilities) {\n if (!record(item) || !text(item.code)) return fail();\n if (!Object.prototype.hasOwnProperty.call(accepted, item.code)) continue;\n const code = item.code as CapabilityCode;\n if (seen.has(code)) return fail();\n seen.add(code);\n if (!text(item.reasonCode) ||\n !['disabled', 'not_supported', 'unavailable', 'readiness_unknown', 'ready'].includes(item.state as string) ||\n !strings(item.contractVersions)) return fail();\n if (accepted[code]!.some(version =>\n !(item.contractVersions as string[]).includes(version) ||\n (version.startsWith('openapi/') && !(value.apiContractVersions as string[]).includes(version)))) return fail(true);\n capabilities.push({\n code, state: item.state as CapabilityState, reasonCode: item.reasonCode,\n contractVersions: [...item.contractVersions],\n ...diagnostics(item, fail),\n ...operationFields(item, code, fail),\n });\n }\n const deprecations: CapabilityDeprecation[] = [];\n for (const item of value.deprecations) {\n if (!record(item) || !text(item.contract) ||\n (item.replacement !== undefined && !text(item.replacement)) ||\n (item.sunsetAt !== undefined && !text(item.sunsetAt))) return fail();\n deprecations.push({ contract: item.contract,\n ...(item.replacement === undefined ? {} : { replacement: item.replacement as string }),\n ...(item.sunsetAt === undefined ? {} : { sunsetAt: item.sunsetAt as string }),\n });\n }\n return {\n product: value.product as CapabilityDiscoverResponse['product'], ...(value.productVersion === undefined ? {} : { productVersion: value.productVersion as string }),\n contractVersion: '2.0', apiContractVersions: [...value.apiContractVersions],\n sdkContractVersions: [...value.sdkContractVersions],\n capabilities, deprecations,\n };\n}\n\nexport class CapabilitiesClient {\n protected transport: CloudTransport;\n protected readonly contracts: Partial<Record<CapabilityCode, string[]>> = contracts;\n\n constructor(resolveClient: () => HttpClient = getClient, config: CloudTransportConfig = {}) {\n this.transport = new CloudTransport(resolveClient, config);\n }\n\n /** Workspace comes exclusively from the authenticated key. One POST, no automatic retries or caching. */\n async discover(): Promise<CapabilityDiscoverResponse> {\n if (arguments.length !== 0) throw new TypeError('Tier0 SDK: capability discovery accepts no arguments.');\n let response: Awaited<ReturnType<CloudTransport['post']>>;\n try {\n response = await this.transport.post('/openapi/v2/capabilities/discover', {});\n } catch (error) {\n if (!(error instanceof CloudTransportError)) throw error;\n throw new CapabilityError('Capability discovery HTTP exchange failed.', {\n status: error.status, errorCode: `CAPABILITY_${error.kind}`,\n });\n }\n const { value, status, ok } = response;\n if (!ok) {\n if (!record(value) || !text(value.errorCode) || typeof value.message !== 'string') {\n throw new CapabilityError('Invalid capability error response.', { status, errorCode: 'CAPABILITY_PROTOCOL_ERROR' });\n }\n throw new CapabilityError(value.message, { status, errorCode: value.errorCode });\n }\n return discovery(value, status, this.contracts);\n }\n}\n\n/** Uses configureClient()/runtime environment, resolving the host and workspace key on every call. */\nexport const capabilities = new CapabilitiesClient();\n"]}
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAA6B,MAAM,sBAAsB,CAAC;AACtG,OAAO,EAAE,SAAS,EAAmB,MAAM,qBAAqB,CAAC;AAoDjE,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAC/B,MAAM,CAAU;IAChB,SAAS,CAAS;IAClB,SAAS,GAAG,KAAK,CAAC;IAE3B,YAAY,OAAe,EAAE,IAAyB;QACpD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,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EAAE;aAC5D,CAAC,CAAC;QACL,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,QAAQ,CAAC;QACvC,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAClF,MAAM,IAAI,eAAe,CAAC,oCAAoC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,2BAA2B,EAAE,CAAC,CAAC;YACtH,CAAC;YACD,MAAM,IAAI,eAAe,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;QACnF,CAAC;QACD,OAAO,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAClD,CAAC;CACF;AAED,sGAAsG;AACtG,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,kBAAkB,EAAE,CAAC","sourcesContent":["import { CloudTransport, CloudTransportError, type CloudTransportConfig } from './cloud-transport.js';\nimport { getClient, type HttpClient } from './openapi/client.js';\n\nexport type CapabilityCode = 'namespace.v2' | 'source' | 'stream' | 'stream.requests.v1' | 'stream.requests.invoke.v1';\nexport type CapabilityState = 'disabled' | 'not_supported' | 'unavailable' | 'readiness_unknown' | 'ready';\n\nexport interface CapabilityDiagnostics {\n reasonCode?: string;\n checkedAt?: string;\n validUntil?: string;\n retryAfterMs?: number;\n}\n\nexport interface CapabilityOperation extends CapabilityDiagnostics {\n operation: string;\n state: CapabilityState;\n reasonCode: string;\n requiresResourceCheck: boolean;\n}\n\nexport interface PublicCapability extends CapabilityDiagnostics {\n code: CapabilityCode;\n /** Discovery does not grant access to a resource or confirm a successful run. */\n state: CapabilityState;\n reasonCode: string;\n contractVersions: string[];\n operations?: CapabilityOperation[];\n}\n\nexport interface CapabilityDeprecation {\n contract: string;\n replacement?: string;\n sunsetAt?: string;\n}\n\nexport interface CapabilityDiscoverResponse {\n product: 'cloud' | 'enterprise';\n /** Trusted server configuration only; absent when unconfigured. */\n productVersion?: string;\n contractVersion: '2.0';\n apiContractVersions: string[];\n /** Public SDK contract labels, not npm package versions. */\n sdkContractVersions: string[];\n capabilities: PublicCapability[];\n deprecations: CapabilityDeprecation[];\n}\n\nexport interface CapabilityErrorInfo {\n status?: number;\n /** Gateway string code (including unknown future codes), or an SDK-local CAPABILITY_* code. */\n errorCode: string;\n}\n\nexport class CapabilityError extends Error {\n readonly status?: number;\n readonly errorCode: string;\n readonly retryable = false;\n\n constructor(message: string, info: CapabilityErrorInfo) {\n super(message);\n this.name = 'CapabilityError';\n this.status = info.status;\n this.errorCode = info.errorCode;\n }\n}\n\nconst contracts: Partial<Record<CapabilityCode, string[]>> = {\n 'namespace.v2': ['openapi/v2'],\n 'source': ['openapi/v2'],\n 'stream': ['openapi/v2'],\n};\n\nfunction record(value: unknown): value is Record<string, unknown> {\n return value !== null && typeof value === 'object' && !Array.isArray(value);\n}\nfunction text(value: unknown): value is string {\n return typeof value === 'string' && value.length > 0;\n}\nfunction strings(value: unknown): value is string[] {\n return Array.isArray(value) && value.every(text) && new Set(value).size === value.length;\n}\n\n\nfunction diagnostics(value: Record<string, unknown>, fail: () => never): CapabilityDiagnostics {\n const result: CapabilityDiagnostics = {};\n for (const field of ['reasonCode', 'checkedAt', 'validUntil'] as const) {\n if (value[field] === undefined) continue;\n if (!text(value[field])) return fail();\n if (field !== 'reasonCode' && (!/^\\d{4}-\\d\\d-\\d\\d[Tt]\\d\\d:\\d\\d:\\d\\d(?:\\.\\d+)?(?:[Zz]|[+-]\\d\\d:\\d\\d)$/.test(value[field]) ||\n !Number.isFinite(Date.parse(value[field])))) return fail();\n result[field] = value[field];\n }\n if (value.retryAfterMs !== undefined) {\n if (typeof value.retryAfterMs !== 'number' || !Number.isSafeInteger(value.retryAfterMs) || value.retryAfterMs < 0) return fail();\n result.retryAfterMs = value.retryAfterMs;\n }\n if (result.validUntil !== undefined && (value.state !== 'ready' || result.checkedAt === undefined ||\n Date.parse(result.validUntil) <= Date.parse(result.checkedAt))) return fail();\n return result;\n}\n\nconst sourceOperations = ['read', 'configure', 'test', 'discover', 'enable', 'disable'];\nconst streamOperations = ['read', 'configure', 'validate', 'deploy', 'execute', 'disable'];\nconst resourceOperations: Partial<Record<CapabilityCode, readonly string[]>> = {\n source: ['test', 'discover', 'enable'],\n stream: ['deploy', 'execute'],\n 'stream.requests.invoke.v1': ['invoke'],\n};\n\nfunction operationFields(value: Record<string, unknown>, code: CapabilityCode, fail: () => never): { operations?: CapabilityOperation[] } {\n if (value.operations === undefined) return {};\n if (!Array.isArray(value.operations)) return fail();\n const operations: CapabilityOperation[] = [];\n const supported = code === 'source' ? sourceOperations : code === 'stream' ? streamOperations :\n code === 'stream.requests.invoke.v1' ? ['invoke'] : [];\n const seen = new Set<string>();\n for (const item of value.operations) {\n if (!record(item) || !text(item.operation)) return fail();\n if (!supported.includes(item.operation)) continue;\n if (seen.has(item.operation)) return fail();\n seen.add(item.operation);\n if (!text(item.reasonCode) || typeof item.requiresResourceCheck !== 'boolean' ||\n (value.state === 'disabled' && item.state !== 'disabled') ||\n (resourceOperations[code]?.includes(item.operation) && !item.requiresResourceCheck) ||\n !['disabled', 'not_supported', 'unavailable', 'readiness_unknown', 'ready'].includes(item.state as string)) return fail();\n operations.push({operation: item.operation, state: item.state as CapabilityState, reasonCode: item.reasonCode,\n requiresResourceCheck: item.requiresResourceCheck, ...diagnostics(item, fail)});\n }\n return { operations };\n}\n\n/** Validate and explicitly project the frozen contract; unknown capabilities/extension fields are ignored. */\nfunction discovery(value: unknown, status: number, accepted: Partial<Record<CapabilityCode, string[]>>): CapabilityDiscoverResponse {\n const fail = (version = false): never => {\n throw new CapabilityError(version ? 'Unsupported capability contract version.' : 'Invalid capability discovery response.', {\n status, errorCode: version ? 'CAPABILITY_UNSUPPORTED_VERSION' : 'CAPABILITY_PROTOCOL_ERROR',\n });\n };\n if (!record(value)) return fail();\n if (!text(value.product) || !text(value.contractVersion) ||\n !strings(value.apiContractVersions) || !strings(value.sdkContractVersions) ||\n !Array.isArray(value.capabilities) || !Array.isArray(value.deprecations) ||\n (value.productVersion !== undefined && !text(value.productVersion))) return fail();\n if (!['cloud', 'enterprise'].includes(value.product) || value.contractVersion !== '2.0' ||\n !value.apiContractVersions.includes('openapi/v2')) return fail(true);\n\n const capabilities: PublicCapability[] = [];\n const seen = new Set<string>();\n for (const item of value.capabilities) {\n if (!record(item) || !text(item.code)) return fail();\n if (!Object.prototype.hasOwnProperty.call(accepted, item.code)) continue;\n const code = item.code as CapabilityCode;\n if (seen.has(code)) return fail();\n seen.add(code);\n if (!text(item.reasonCode) ||\n !['disabled', 'not_supported', 'unavailable', 'readiness_unknown', 'ready'].includes(item.state as string) ||\n !strings(item.contractVersions)) return fail();\n if (accepted[code]!.some(version =>\n !(item.contractVersions as string[]).includes(version) ||\n (version.startsWith('openapi/') && !(value.apiContractVersions as string[]).includes(version)))) return fail(true);\n capabilities.push({\n code, state: item.state as CapabilityState, reasonCode: item.reasonCode,\n contractVersions: [...item.contractVersions],\n ...diagnostics(item, fail),\n ...operationFields(item, code, fail),\n });\n }\n const deprecations: CapabilityDeprecation[] = [];\n for (const item of value.deprecations) {\n if (!record(item) || !text(item.contract) ||\n (item.replacement !== undefined && !text(item.replacement)) ||\n (item.sunsetAt !== undefined && !text(item.sunsetAt))) return fail();\n deprecations.push({ contract: item.contract,\n ...(item.replacement === undefined ? {} : { replacement: item.replacement as string }),\n ...(item.sunsetAt === undefined ? {} : { sunsetAt: item.sunsetAt as string }),\n });\n }\n return {\n product: value.product as CapabilityDiscoverResponse['product'], ...(value.productVersion === undefined ? {} : { productVersion: value.productVersion as string }),\n contractVersion: '2.0', apiContractVersions: [...value.apiContractVersions],\n sdkContractVersions: [...value.sdkContractVersions],\n capabilities, deprecations,\n };\n}\n\nexport class CapabilitiesClient {\n protected transport: CloudTransport;\n protected readonly contracts: Partial<Record<CapabilityCode, string[]>> = contracts;\n\n constructor(resolveClient: () => HttpClient = getClient, config: CloudTransportConfig = {}) {\n this.transport = new CloudTransport(resolveClient, config);\n }\n\n /** Workspace comes exclusively from the authenticated key. One POST, no automatic retries or caching. */\n async discover(): Promise<CapabilityDiscoverResponse> {\n if (arguments.length !== 0) throw new TypeError('Tier0 SDK: capability discovery accepts no arguments.');\n let response: Awaited<ReturnType<CloudTransport['post']>>;\n try {\n response = await this.transport.post('/openapi/v2/capabilities/discover', {});\n } catch (error) {\n if (!(error instanceof CloudTransportError)) throw error;\n throw new CapabilityError('Capability discovery HTTP exchange failed.', {\n status: error.status, errorCode: `CAPABILITY_${error.kind}`,\n });\n }\n const { value, status, ok } = response;\n if (!ok) {\n if (!record(value) || !text(value.errorCode) || typeof value.message !== 'string') {\n throw new CapabilityError('Invalid capability error response.', { status, errorCode: 'CAPABILITY_PROTOCOL_ERROR' });\n }\n throw new CapabilityError(value.message, { status, errorCode: value.errorCode });\n }\n return discovery(value, status, this.contracts);\n }\n}\n\n/** Uses configureClient()/runtime environment, resolving the host and workspace key on every call. */\nexport const capabilities = new CapabilitiesClient();\n"]}
|
|
@@ -9814,10 +9814,10 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
|
|
|
9814
9814
|
};
|
|
9815
9815
|
export declare const UNS_V2_CONTRACT_PROVENANCE: {
|
|
9816
9816
|
readonly repository: "FREEZONEX/Tier0-Backend";
|
|
9817
|
-
readonly revision: "
|
|
9817
|
+
readonly revision: "5ba6c3af432d5200674f7cb1a3edd31b255ef64b";
|
|
9818
9818
|
readonly version: "5.0.0";
|
|
9819
9819
|
readonly source: "service/unssvr/internal/domain/unsv2/contract_generated.go#ContractJSON";
|
|
9820
|
-
readonly cloudRevision: "
|
|
9820
|
+
readonly cloudRevision: "5ba6c3af432d5200674f7cb1a3edd31b255ef64b";
|
|
9821
9821
|
readonly cloudContractRevision: "cloud-source-impact/2+source-vendor/2+app-create-capability/1+data/3+record-reads/1+stream-receipt/1+stream-run-error/1+collection-namespace/1+business-name/1+http-acquisition/2+http-source-role/1+http-source-request/1+sql-inline-credentials/1+app-collection/2+collection-ownership/1+metadata/1+app-context/3+collection-ttl/1+error-model/1+crud-consolidation/1+record-insert-return/1+lifecycle-consolidation/1+mutation-defaults/1+api-surface/2+source-stream-single-model+app-data/2+hosted-control/1+source-bindings/1+record-notifications/1+record-delete-samples/1+stream-history/1+app-collections/1+http-in/1+app-resource-access/2+stream-control-probe-retirement/1+http-push-retirement/1";
|
|
9822
9822
|
readonly resolvedCloudContract: true;
|
|
9823
9823
|
readonly enterpriseBase: {
|
|
@@ -9838,7 +9838,7 @@ export declare const UNS_V2_CONTRACT_PROVENANCE: {
|
|
|
9838
9838
|
readonly schemaUpdates: readonly [{
|
|
9839
9839
|
readonly scope: "source-stream-acquisition";
|
|
9840
9840
|
readonly repository: "FREEZONEX/Tier0-Backend";
|
|
9841
|
-
readonly revision: "
|
|
9841
|
+
readonly revision: "5ba6c3af432d5200674f7cb1a3edd31b255ef64b";
|
|
9842
9842
|
readonly sourceKind: "committed";
|
|
9843
9843
|
readonly source: "share/unscontract/manifest.json";
|
|
9844
9844
|
readonly sourceSHA256: "c92e134799190fda29360a2983692ed47fb421a85fa7d92267ce091ac263dac8";
|
|
@@ -9864,7 +9864,7 @@ export declare const UNS_V2_CONTRACT_PROVENANCE: {
|
|
|
9864
9864
|
readonly contract: "a8c280d90b9d865a80637d7b563bd72611aead54bf0422a0cf83e05feaacd724";
|
|
9865
9865
|
readonly cloudSupport: "4ff9d5ff69e35e38459287cf15df45ab627684e2e2294dfd1e076ebc4fc34b46";
|
|
9866
9866
|
readonly manifest: "c92e134799190fda29360a2983692ed47fb421a85fa7d92267ce091ac263dac8";
|
|
9867
|
-
readonly provenance: "
|
|
9867
|
+
readonly provenance: "5b80e631aaba726b90ef69845d95e798ff35163c3cf98352e23ee71e4e90bde0";
|
|
9868
9868
|
readonly registry: "c74313c217742d50391a94c09e60d5c5bd1a89c305fa4145cbf23b35ba7dbcdb";
|
|
9869
9869
|
};
|
|
9870
9870
|
readonly publicOperationCount: 82;
|
|
@@ -89,10 +89,10 @@ export const UNS_V2_STREAM_OPERATIONS = {
|
|
|
89
89
|
export const UNS_V2_CODEC_SCHEMAS = { "UnsV2CatalogReq": { "k": "o" }, "UnsV2TransactionQuery": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "sort": { "r": "UnsV2PipelineSort" }, "limit": { "k": "j" }, "expectCount": { "r": "UnsV2QueryCountExpectation" } } }, "UnsV2QueryCountExpectation": { "k": "u", "a": [] }, "UnsV2FieldOperation": { "k": "u", "a": [{ "k": "o" }, { "k": "o", "p": { "value": { "k": "a", "i": {} } } }, { "k": "o" }] }, "UnsV2ResultBinding": { "k": "o" }, "UnsV2Page": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" } } }, "UnsV2TimeRange": { "k": "o", "p": { "from": { "k": "j" }, "to": { "k": "j" } } }, "UnsV2History": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" }, "timeRange": { "r": "UnsV2TimeRange" } } }, "UnsV2SelectedRecord": { "k": "o", "p": { "history": { "r": "UnsV2History" } } }, "UnsV2ReferenceTarget": { "k": "o" }, "UnsV2PipelinePage": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }, { "k": "o" }] }] }, "UnsV2Envelope": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "Outcome" }, { "r": "AppContext" }, { "r": "AppKeyCreated" }, { "r": "AppKeyRevoked" }, { "k": "o", "p": { "results": { "k": "a", "i": { "k": "o" } } } }, { "k": "o", "p": { "capabilities": { "k": "o" } } }] } } }, "UnsV2DiscoverySearchReq": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" } } }, "UnsV2CollectionDescribeReq": { "k": "o" }, "UnsV2RecordTransactionReq": { "k": "o", "p": { "items": { "k": "a", "i": { "r": "UnsV2RecordChange" } }, "assertLocks": { "k": "a", "i": { "k": "o" } } } }, "UnsV2Identity": { "k": "u", "a": [{ "k": "o" }] }, "AppCollectionContext": { "k": "o", "p": { "indexes": { "k": "a", "i": { "r": "IndexSpec" } }, "permissions": { "k": "a", "i": {} }, "recordSchema": { "r": "Schema" }, "sampleSchema": { "r": "Schema" }, "createCapability": { "r": "CloudAppCreateCapability" }, "revision": { "k": "j" }, "indexStatus": { "k": "a", "i": { "r": "IndexState" } }, "ttl": { "k": "u", "a": [{ "r": "CloudCollectionTTL" }] } } }, "AppContext": { "k": "o", "p": { "collections": { "k": "a", "i": { "r": "AppCollectionContext" } }, "platformPermissions": { "k": "a", "i": {} }, "revision": { "k": "j" }, "limits": { "r": "CloudAppDataLimits" } } }, "AppKeyCreated": { "k": "o", "p": { "resourceKeys": { "k": "a", "i": {} } } }, "AppKeyRevoked": { "k": "o" }, "CollectionDescription": { "k": "o", "p": { "fields": { "k": "a", "i": { "r": "DiscoveredField" } }, "indexStatus": { "k": "a", "i": { "r": "IndexState" } }, "indexes": { "k": "a", "i": { "r": "IndexSpec" } }, "recordSchema": { "r": "Schema" }, "relationships": { "k": "a", "i": { "r": "CollectionRelationship" } }, "revision": { "k": "j" }, "sampleSchema": { "r": "Schema" } } }, "CollectionRelationship": { "k": "o" }, "CollectionSemantics": { "k": "o", "p": { "fields": { "k": "a", "i": { "r": "FieldSemantics" } }, "relationships": { "k": "a", "i": { "r": "CollectionRelationship" } } } }, "DiscoveredField": { "k": "o", "p": { "enum": { "k": "a", "i": {} } } }, "DiscoveryCollection": { "k": "o", "p": { "revision": { "k": "j" } } }, "DiscoveryResult": { "k": "o", "p": { "asOf": { "k": "j" }, "list": { "k": "a", "i": { "r": "DiscoveryCollection" } }, "nextPage": { "k": "j" }, "page": { "k": "j" }, "size": { "k": "j" }, "total": { "k": "j" } } }, "Fault": { "k": "o", "p": { "details": { "k": "a", "i": { "k": "o" } }, "retry": { "r": "ErrorRetry" }, "candidates": { "k": "a", "i": { "k": "o" } }, "conditionIndex": { "k": "j" } } }, "FieldBinding": { "k": "o", "p": { "collectionId": { "r": "UnsV2Identity" }, "recordId": { "r": "UnsV2Identity" } } }, "FieldSemantics": { "k": "o" }, "HTTPConnection": { "k": "o", "p": { "oauth": { "r": "OAuthConfig" }, "parameters": { "k": "o" }, "port": { "k": "j" }, "headers": { "k": "o" } } }, "IndexSpec": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "IndexState": { "k": "o", "p": { "spec": { "r": "IndexSpec" } } }, "MQTTOptions": { "k": "o", "p": { "qos": { "k": "j" }, "serverSubscribeTopics": { "k": "a", "i": {} }, "subscriptions": { "k": "o", "x": { "k": "j" } }, "topicFilters": { "k": "a", "i": {} } } }, "ModbusOptions": { "k": "o", "p": { "pollIntervalMs": { "k": "j" }, "ranges": { "k": "a", "i": { "r": "ModbusRange" } }, "unitId": { "k": "j" } } }, "ModbusRange": { "k": "o", "p": { "address": { "k": "j" }, "quantity": { "k": "j" }, "unitId": { "k": "j" } } }, "OAuthConfig": { "k": "o" }, "OPCUAOptions": { "k": "o", "p": { "nodeIds": { "k": "a", "i": {} }, "samplingIntervalMs": { "k": "j" }, "serverNodes": { "k": "a", "i": { "r": "OPCUAServerNode" } } } }, "OPCUAServerNode": { "k": "o" }, "Outcome": { "k": "o", "p": { "results": { "k": "a", "i": { "r": "Result" } }, "summary": { "r": "OutcomeSummary" } } }, "OutcomeSummary": { "k": "o", "p": { "failed": { "k": "j" }, "notExecuted": { "k": "j" }, "succeeded": { "k": "j" }, "total": { "k": "j" }, "unknown": { "k": "j" } } }, "RecordDocument": { "k": "o", "p": { "data": { "k": "o" }, "revision": { "k": "j" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "sourceTime": { "k": "j" }, "lock": { "r": "CloudRecordLockView" } } }, "Result": { "k": "o", "p": { "document": { "r": "RecordDocument" }, "error": { "r": "Fault" }, "query": { "r": "TransactionQueryResult" }, "release": { "k": "j" }, "revision": { "k": "j" } } }, "RuntimeStreamDefinition": { "k": "o", "p": { "extensions": { "k": "o" }, "timeoutMs": { "k": "j" }, "sourceBindings": { "k": "a", "i": { "k": "o", "p": { "configRevision": { "k": "j" }, "acquisition": { "k": "o" } } } } } }, "Schema": { "k": "o", "p": { "enum": { "k": "a", "i": {} }, "items": { "r": "Schema" }, "maximum": { "k": "n" }, "minimum": { "k": "n" }, "properties": { "k": "o", "x": { "r": "Schema" } }, "required": { "k": "a", "i": {} } } }, "SourceDefinition": { "k": "u", "a": [] }, "TransactionQueryResult": { "k": "o", "p": { "records": { "k": "a", "i": { "r": "RecordDocument" } }, "total": { "k": "j" } } }, "UnsV2SourceStateUpdateReq": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o", "p": { "expectedRevision": { "k": "j" } } } } } }, "UnsV2SourceStateUpdateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "Outcome" } } }, "UnsV2SourceRuntimeGetReq": { "k": "o" }, "UnsV2SourceRuntimeGetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "revision": { "k": "j" }, "state": { "k": "o", "p": { "schemaVersion": { "k": "j" }, "lastDataAt": { "k": "j" }, "checkedAt": { "k": "j" }, "resources": { "k": "a", "i": { "k": "o" } }, "streams": { "k": "o", "x": { "k": "o", "p": { "revision": { "k": "j" }, "leaseUntil": { "k": "j" }, "nextRunAt": { "k": "j" }, "page": { "k": "j" }, "lastDataAt": { "k": "j" }, "records": { "k": "j" }, "sequence": { "k": "j" }, "retries": { "k": "j" } } } } } } } } } }, "UnsV2SourceProtocolsListReq": { "k": "o" }, "UnsV2SourceProtocolsListResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o" } } }, "UnsV2SourceValidateReq": { "k": "u", "a": [] }, "UnsV2SourceValidateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o" } } }, "UnsV2SourceProbeReq": { "k": "o", "p": { "timeoutMs": { "k": "j" } } }, "UnsV2SourceProbeResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o" } } }, "UnsV2StreamProgramVersionsListReq": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" } } }, "UnsV2StreamProgramVersionsListResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "list": { "k": "a", "i": { "k": "o", "p": { "release": { "k": "j" }, "createdAt": { "k": "j" }, "document": { "k": "u", "a": [{ "r": "CloudStreamDocument" }, { "k": "o", "p": { "timeoutMs": { "k": "j" } } }] } } } }, "total": { "k": "j" }, "page": { "k": "j" }, "size": { "k": "j" } } } } }, "UnsV2StreamProgramDeployReq": { "k": "o", "p": { "expectedRevision": { "k": "j" }, "expectedSourceRevision": { "k": "j" } } }, "UnsV2StreamProgramDeployResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "CloudStreamProgramView" }, { "r": "CloudPreviewResult" }] } } }, "UnsV2StreamProgramRollbackReq": { "k": "o", "p": { "expectedRevision": { "k": "j" }, "expectedSourceRevision": { "k": "j" } } }, "UnsV2StreamProgramRollbackResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "CloudStreamProgramView" }, { "r": "CloudPreviewResult" }] } } }, "UnsV2SampleAppendResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "Outcome" } } }, "UnsV2RecordFindResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudRecordPage" } } }, "UnsV2RecordCountResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudCappedCount" } } }, "UnsV2RecordAggregatePipelineResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudRecordAggregatePage" } } }, "UnsV2RecordExplainResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "matchedCount": { "k": "j" }, "sampleIds": { "k": "a", "i": {} }, "plan": { "k": "o" } } } } }, "UnsV2RecordInsertOneResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "value": { "r": "RecordDocument" } } } } }, "UnsV2RecordUpdateOneResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "matchedCount": { "k": "j" }, "modifiedCount": { "k": "j" }, "value": { "r": "CloudNullableRecordDocument" } } } } }, "UnsV2RecordReplaceOneResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "matchedCount": { "k": "j" }, "modifiedCount": { "k": "j" }, "value": { "r": "CloudNullableRecordDocument" } } } } }, "UnsV2RecordDeleteOneResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "deletedCount": { "k": "j" }, "value": { "r": "CloudNullableRecordDocument" } } } } }, "UnsV2RecordUpdateManyResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [] } } }, "UnsV2RecordDeleteManyResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [] } } }, "UnsV2RecordBulkWriteResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "insertedCount": { "k": "j" }, "matchedCount": { "k": "j" }, "modifiedCount": { "k": "j" }, "deletedCount": { "k": "j" }, "upsertedCount": { "k": "j" }, "insertedIds": { "k": "o" }, "upsertedIds": { "k": "o" }, "nextIndex": { "k": "j" }, "unknownUntil": { "k": "j" }, "writeErrors": { "k": "a", "i": { "r": "CloudWriteError" } } } } } }, "UnsV2SampleLatestValuesReq": { "k": "o", "p": { "recordIds": { "k": "a", "i": {} } } }, "UnsV2SampleLatestValuesResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "series": { "k": "a", "i": { "k": "o", "p": { "sample": { "r": "CloudNullableSampleDocument" } } } } } } } }, "UnsV2SampleDeleteRangeResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "deletedCount": { "k": "j" } } } } }, "UnsV2RecordChange": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }, { "k": "u", "a": [{ "k": "o" }, { "k": "o" }] }, { "k": "u", "a": [{ "k": "o" }, { "k": "o" }] }, { "k": "u", "a": [{ "k": "o" }, { "k": "o" }] }] }, "UnsV2DataFilter": { "k": "o", "p": { "$and": { "k": "a", "i": { "r": "UnsV2DataFilter" } }, "$or": { "k": "a", "i": { "r": "UnsV2DataFilter" } }, "$nor": { "k": "a", "i": { "r": "UnsV2DataFilter" } }, "$not": { "r": "UnsV2DataFilter" }, "$expr": { "r": "UnsV2PipelineExpression" } }, "x": { "k": "u", "a": [{ "r": "UnsV2FilterScalar" }, { "r": "UnsV2FieldPredicate" }] } }, "UnsV2FilterScalar": { "k": "u", "a": [{ "k": "n" }] }, "UnsV2ArrayElementFilter": { "k": "o" }, "UnsV2FieldComparisons": { "k": "o", "p": { "$eq": { "r": "UnsV2FilterScalar" }, "$ne": { "r": "UnsV2FilterScalar" }, "$gt": { "r": "UnsV2FilterScalar" }, "$gte": { "r": "UnsV2FilterScalar" }, "$lt": { "r": "UnsV2FilterScalar" }, "$lte": { "r": "UnsV2FilterScalar" }, "$in": { "k": "a", "i": { "r": "UnsV2FilterScalar" } }, "$nin": { "k": "a", "i": { "r": "UnsV2FilterScalar" } }, "$all": { "k": "a", "i": {} }, "$size": { "k": "j" }, "$elemMatch": { "r": "UnsV2ArrayElementFilter" } } }, "UnsV2FieldPredicate": { "k": "o", "p": { "$eq": { "r": "UnsV2FilterScalar" }, "$ne": { "r": "UnsV2FilterScalar" }, "$gt": { "r": "UnsV2FilterScalar" }, "$gte": { "r": "UnsV2FilterScalar" }, "$lt": { "r": "UnsV2FilterScalar" }, "$lte": { "r": "UnsV2FilterScalar" }, "$in": { "k": "a", "i": { "r": "UnsV2FilterScalar" } }, "$nin": { "k": "a", "i": { "r": "UnsV2FilterScalar" } }, "$all": { "k": "a", "i": {} }, "$size": { "k": "j" }, "$elemMatch": { "r": "UnsV2ArrayElementFilter" }, "$not": { "r": "UnsV2FieldComparisons" } } }, "UnsV2PipelineExpression": { "k": "u", "a": [{ "r": "UnsV2FilterScalar" }, { "k": "o", "p": { "$ifNull": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$add": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$subtract": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$multiply": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$divide": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$literal": { "r": "UnsV2FilterScalar" } } }, { "k": "o", "p": { "$eq": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$ne": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$gt": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$gte": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$lt": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$lte": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$and": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$or": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$not": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$cond": { "k": "u", "a": [{ "k": "a", "i": { "r": "UnsV2PipelineExpression" } }, { "k": "o", "p": { "if": { "r": "UnsV2PipelineExpression" }, "then": { "r": "UnsV2PipelineExpression" }, "else": { "r": "UnsV2PipelineExpression" } } }] } } }, { "k": "o", "p": { "$concat": { "k": "a", "i": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$toLower": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$toUpper": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$strLenCP": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$toString": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$toDecimal": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$toLong": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$toBool": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$trim": { "k": "o", "p": { "input": { "r": "UnsV2PipelineExpression" }, "chars": { "r": "UnsV2PipelineExpression" } } } } }, { "k": "o", "p": { "$convert": { "k": "o", "p": { "input": { "r": "UnsV2PipelineExpression" } } } } }, { "k": "o", "p": { "$dateTrunc": { "k": "o", "p": { "date": { "r": "UnsV2PipelineExpression" }, "binSize": { "k": "j" } } } } }] }, "UnsV2PipelineAccumulator": { "k": "u", "a": [{ "k": "o", "p": { "$sum": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$avg": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$min": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$max": { "r": "UnsV2PipelineExpression" } } }, { "k": "o", "p": { "$count": { "k": "o" } } }] }, "UnsV2PipelineSort": { "k": "a", "i": { "k": "a", "i": { "k": "u", "a": [{ "k": "j" }] } } }, "UnsV2DistinctBy": { "k": "o" }, "UnsV2Distinct": { "k": "o", "p": { "by": { "r": "UnsV2DistinctBy" } } }, "UnsV2Frequencies": { "k": "o", "p": { "by": { "k": "u", "a": [{ "r": "UnsV2DistinctBy" }] } } }, "UnsV2PipelineStage": { "k": "u", "a": [{ "k": "o", "p": { "$match": { "r": "UnsV2DataFilter" } } }, { "k": "o", "p": { "$project": { "k": "o", "x": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$set": { "k": "o", "x": { "r": "UnsV2PipelineExpression" } } } }, { "k": "o", "p": { "$sort": { "r": "UnsV2PipelineSort" } } }, { "k": "o", "p": { "$group": { "k": "o", "p": { "_id": { "k": "u", "a": [{ "r": "UnsV2PipelineExpression" }, { "k": "o", "x": { "r": "UnsV2PipelineExpression" } }] } }, "x": { "r": "UnsV2PipelineAccumulator" } } } }, { "k": "o", "p": { "$distinct": { "r": "UnsV2Distinct" } } }, { "k": "o", "p": { "$frequencies": { "r": "UnsV2Frequencies" } } }, { "k": "o", "p": { "$lookup": { "k": "u", "a": [{ "k": "o" }, { "k": "o" }] } } }, { "k": "o", "p": { "$unwind": { "k": "u", "a": [{ "k": "o" }] } } }, { "k": "o", "p": { "$skip": { "k": "j" } } }, { "k": "o", "p": { "$limit": { "k": "j" } } }, { "k": "o" }, { "k": "o" }] }, "UnsV2DataDiscoverResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "DiscoveryResult" } } }, "UnsV2CollectionDescribeResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CollectionDescription" } } }, "UnsV2RecordTransactionExecuteResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "Outcome" } } }, "UnsV2NamespaceQuery": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" }, "kinds": { "k": "a", "i": {} }, "ids": { "k": "a", "i": {} } } }, "UnsV2NamespaceDocumentedRequest": { "k": "o", "p": { "queries": { "k": "a", "i": { "r": "UnsV2NamespaceQuery" } } } }, "UnsV2TopicsQuery": { "k": "o", "p": { "include": { "k": "a", "i": {} }, "records": { "r": "UnsV2Page" }, "selectedRecord": { "r": "UnsV2SelectedRecord" } } }, "UnsV2TopicsDocumentedRequest": { "k": "o", "p": { "queries": { "k": "a", "i": { "r": "UnsV2TopicsQuery" } } } }, "UnsV2ReferencesQuery": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" }, "targets": { "k": "a", "i": { "r": "UnsV2ReferenceTarget" } }, "relationKinds": { "k": "a", "i": {} }, "kinds": { "k": "a", "i": {} } } }, "UnsV2ReferencesDocumentedRequest": { "k": "o", "p": { "queries": { "k": "a", "i": { "r": "UnsV2ReferencesQuery" } } } }, "UnsV2JobsQuery": { "k": "o", "p": { "jobIds": { "k": "a", "i": {} } } }, "UnsV2JobsDocumentedRequest": { "k": "o", "p": { "queries": { "k": "a", "i": { "r": "UnsV2JobsQuery" } } } }, "UnsV2ErrorResponse": { "k": "o", "p": { "code": { "k": "j" }, "error": { "r": "Fault" } } }, "UnsV2RecordFilter": { "k": "o" }, "UnsV2RecordGetReq": { "k": "o", "p": { "ids": { "k": "a", "i": {} }, "projection": { "k": "o", "x": { "k": "u", "a": [{ "k": "j" }] } } } }, "UnsV2RecordGetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudRecordGetResult" } } }, "UnsV2SampleAppendReq": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o", "p": { "time": { "k": "j" }, "data": { "k": "o" } } } } } }, "UnsV2RecordFindReq": { "k": "u", "a": [] }, "UnsV2RecordCountReq": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "maxCount": { "k": "j" } } }, "UnsV2RecordAggregatePipelineReq": { "k": "u", "a": [] }, "UnsV2RecordExplainReq": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "sort": { "r": "UnsV2PipelineSort" }, "limit": { "k": "j" } } }, "UnsV2RecordInsertOneReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "UnsV2RecordUpdateOneReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "UnsV2RecordReplaceOneReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "UnsV2RecordDeleteOneReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "UnsV2RecordUpdateManyReq": { "k": "o", "p": { "expectedRevision": { "k": "j" }, "filter": { "r": "UnsV2DataFilter" }, "update": { "k": "o" }, "arrayFilters": { "k": "a", "i": { "k": "o" } }, "maxDocs": { "k": "j" }, "assertLocks": { "k": "a", "i": { "k": "o" } }, "lockTokens": { "k": "o" } } }, "UnsV2RecordDeleteManyReq": { "k": "o", "p": { "expectedRevision": { "k": "j" }, "filter": { "r": "UnsV2DataFilter" }, "maxDocs": { "k": "j" }, "assertLocks": { "k": "a", "i": { "k": "o" } }, "lockTokens": { "k": "o" } } }, "UnsV2RecordBulkWriteReq": { "k": "o", "p": { "expectedRevision": { "k": "j" }, "operations": { "k": "a", "i": { "k": "u", "a": [{ "k": "o", "p": { "insertOne": { "k": "o", "p": { "data": { "k": "o" } } } } }, { "k": "o", "p": { "updateOne": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "sort": { "r": "UnsV2PipelineSort" }, "update": { "k": "o" }, "arrayFilters": { "k": "a", "i": { "k": "o" } } } } } }, { "k": "o", "p": { "replaceOne": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "sort": { "r": "UnsV2PipelineSort" }, "replacement": { "k": "o" } } } } }, { "k": "o", "p": { "deleteOne": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "sort": { "r": "UnsV2PipelineSort" } } } } }] } }, "assertLocks": { "k": "a", "i": { "k": "o" } }, "lockTokens": { "k": "o" } } }, "UnsV2SampleDeleteRangeReq": { "k": "o", "p": { "recordIds": { "k": "a", "i": {} }, "from": { "k": "j" }, "to": { "k": "j" } } }, "CloudSourceConfig": { "k": "u", "a": [{ "k": "o", "p": { "options": { "k": "o" }, "auth": { "k": "o" }, "tls": { "k": "o" } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o" } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o" } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o" } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o" } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o" } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o" } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o" } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o", "p": { "acctId": { "k": "u", "a": [] }, "lcid": { "k": "u", "a": [] }, "user": { "k": "u", "a": [] } } } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o", "p": { "clientId": { "k": "u", "a": [] } } } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o" } } } } }, { "k": "o", "p": { "auth": { "k": "o" }, "options": { "k": "o", "p": { "headers": { "k": "o" }, "parameters": { "k": "o" } } } } }] }, "CloudSourceDocument": { "k": "u", "a": [] }, "CloudStreamRequestDefinition": { "k": "o", "p": { "inputSchema": { "k": "o" }, "outputSchema": { "k": "o" }, "timeoutMs": { "k": "j" } } }, "CloudStreamScript": { "k": "o", "p": { "timeoutMs": { "k": "j" } } }, "CloudSourceBinding": { "k": "o", "p": { "configRevision": { "k": "j" }, "resources": { "k": "a", "i": {} }, "acquisition": { "k": "o" } } }, "CloudStreamEntry": { "k": "o", "p": { "config": { "k": "o" }, "request": { "r": "CloudStreamRequestDefinition" } } }, "CloudStreamDocument": { "k": "o", "p": { "script": { "r": "CloudStreamScript" }, "sources": { "k": "a", "i": { "r": "CloudSourceBinding" } }, "entries": { "k": "a", "i": { "r": "CloudStreamEntry" } }, "messages": { "k": "a", "i": { "r": "CloudStreamMessageDeclaration" } } } }, "CloudSourceDocumentView": { "k": "o", "p": { "revision": { "k": "j" }, "document": { "r": "CloudSourceDocument" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "platformReadiness": { "r": "CloudPlatformReadiness" } } }, "CloudStreamDocumentView": { "k": "o", "p": { "revision": { "k": "j" }, "document": { "r": "CloudStreamDocument" }, "activeDocument": { "r": "CloudStreamDocument" }, "activeRelease": { "k": "j" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "platformReadiness": { "r": "CloudPlatformReadiness" } } }, "CloudSourceDeleteReq": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o", "p": { "expectedRevision": { "k": "j" } } } } } }, "CloudSourceDeleteResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "Outcome" } } }, "CloudStreamProgramListReq": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" } } }, "CloudStreamProgramListResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "list": { "k": "a", "i": { "r": "CloudStreamProgramSummary" } }, "total": { "k": "j" }, "page": { "k": "j" }, "size": { "k": "j" }, "nextPage": { "k": "j" } } } } }, "CloudStreamProgramDeleteReq": { "k": "o", "p": { "expectedRevision": { "k": "j" } } }, "CloudStreamProgramDeleteResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "k": "o", "p": { "revision": { "k": "j" } } }, { "r": "CloudPreviewResult" }] } } }, "CloudSourceDocumentGetReq": { "k": "o" }, "CloudSourceDocumentGetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "CloudSourceDocumentView" }, { "r": "CloudSourceDocumentSummary" }] } } }, "CloudSourceDocumentCreateReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o", "p": { "credentials": { "k": "o" }, "document": { "k": "o", "p": { "config": { "k": "o" } } } } }, { "k": "o", "p": { "credentials": { "k": "o" }, "document": { "k": "o" } } }] }] }, "CloudSourceDocumentCreateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "CloudSourceDocumentView" }, { "r": "CloudPreviewResult" }, { "r": "Outcome" }] } } }, "CloudSourceDocumentUpdateReq": { "k": "u", "a": [{ "k": "u", "a": [] }] }, "CloudSourceDocumentUpdateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "CloudSourceDocumentView" }, { "r": "CloudPreviewResult" }, { "r": "Outcome" }] } } }, "CloudStreamDocumentGetReq": { "k": "o" }, "CloudStreamDocumentGetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "CloudStreamDocumentView" }, { "r": "CloudStreamDocumentSummary" }] } } }, "CloudStreamDocumentCreateReq": { "k": "u", "a": [] }, "CloudStreamDocumentCreateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "CloudStreamDocumentView" }, { "r": "CloudPreviewResult" }] } } }, "CloudStreamDocumentUpdateReq": { "k": "u", "a": [] }, "CloudStreamDocumentUpdateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "CloudStreamDocumentView" }, { "r": "CloudPreviewResult" }] } } }, "CloudPreviewResult": { "k": "o" }, "CloudSourceDocumentListReq": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" } } }, "CloudSourceDocumentListResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "list": { "k": "a", "i": { "k": "u", "a": [{ "r": "CloudSourceDocumentView" }, { "r": "CloudSourceSummaryView" }] } }, "total": { "k": "j" }, "page": { "k": "j" }, "size": { "k": "j" }, "nextPage": { "k": "j" } } } } }, "CloudStreamDocumentDisableReq": { "k": "o", "p": { "expectedRevision": { "k": "j" }, "expectedActiveRelease": { "k": "j" } } }, "CloudStreamDocumentDisableResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "u", "a": [{ "r": "CloudStreamStopView" }, { "r": "CloudPreviewResult" }] } } }, "CloudStreamDocumentValidateReq": { "k": "u", "a": [] }, "CloudStreamDocumentValidateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "issues": { "k": "a", "i": { "k": "o" } }, "normalizedDocument": { "r": "CloudStreamDocument" } } } } }, "CloudSourceSummaryView": { "k": "o", "p": { "revision": { "k": "j" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "platformReadiness": { "r": "CloudPlatformReadiness" } } }, "CloudStreamProgramSummary": { "k": "o", "p": { "revision": { "k": "j" }, "activeRelease": { "k": "j" }, "document": { "k": "o" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "platformReadiness": { "r": "CloudPlatformReadiness" } } }, "CloudSourceImpactReq": { "k": "u", "a": [{ "k": "u", "a": [] }, { "k": "o" }] }, "CloudSourceHistoryReq": { "k": "o", "p": { "beforeRevision": { "k": "j" }, "size": { "k": "j" } } }, "CloudSourceImpactResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "sourceRevision": { "k": "j" }, "complete": { "k": "j" }, "counts": { "k": "o", "p": { "draft": { "k": "j" }, "activeRelease": { "k": "j" }, "historicalRelease": { "k": "j" } } }, "restrictedCount": { "k": "j" }, "references": { "k": "a", "i": { "k": "o", "p": { "streamRevision": { "k": "j" }, "release": { "k": "j" }, "configRevision": { "k": "j" }, "streamDeleted": { "k": "j" }, "parentMissing": { "k": "j" } } } }, "nextOffset": { "k": "j" }, "expiresAt": { "k": "j" } } } } }, "CloudSourceHistoryResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "currentRevision": { "k": "j" }, "deleted": { "k": "j" }, "total": { "k": "j" }, "missingRevisionCount": { "k": "j" }, "nextBeforeRevision": { "k": "j" }, "revisions": { "k": "a", "i": { "k": "o", "p": { "revision": { "k": "j" }, "createdTime": { "k": "j" } } } } } } } }, "CloudStreamStopView": { "k": "o", "p": { "revision": { "k": "j" }, "activeRelease": { "k": "j" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" } } }, "CloudSourceObservationsGetReq": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o", "p": { "expectedRevision": { "k": "j" } } } } } }, "CloudSourceObservationsGetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o", "p": { "revision": { "k": "j" }, "acceptedCaptures": { "k": "j" }, "committedWrites": { "k": "j" }, "failedRuns": { "k": "j" }, "lastDataAt": { "k": "i" } } } }, "window": { "k": "o", "p": { "from": { "k": "i" }, "to": { "k": "i" } } }, "checkedAt": { "k": "i" } } } } }, "CloudStreamObservationGetReq": { "k": "o" }, "CloudStreamObservationGetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "revision": { "k": "j" }, "stats": { "k": "o", "p": { "admitted": { "k": "j" }, "completed": { "k": "j" }, "failed": { "k": "j" }, "unknown": { "k": "j" }, "pending": { "k": "j" }, "durationSamples": { "k": "j" }, "successRate": { "k": "n" }, "averageDurationMs": { "k": "n" } } }, "window": { "k": "o", "p": { "from": { "k": "i" }, "to": { "k": "i" } } }, "checkedAt": { "k": "i" } } } } }, "CloudStreamRunsListReq": { "k": "o", "p": { "size": { "k": "j" } } }, "CloudStreamRunsListResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o", "p": { "createdAt": { "k": "i" }, "finishedAt": { "k": "i" }, "durationMs": { "k": "n" }, "responseSentAt": { "k": "i" }, "error": { "r": "CloudStreamRunError" } } } }, "checkedAt": { "k": "i" } } } } }, "CloudStreamSampleTestReq": { "k": "o", "p": { "document": { "r": "CloudStreamDocument" } } }, "CloudStreamSampleTestResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "writePreview": { "k": "a", "i": { "k": "o" } }, "logs": { "k": "a", "i": { "k": "o" } }, "durationMs": { "k": "j" } } } } }, "CloudAppDataGrant": { "k": "o", "p": { "permissions": { "k": "a", "i": {} }, "dataRule": { "r": "CloudAppDataRule" } } }, "CloudAppDataPolicyGetReq": { "k": "o" }, "CloudAppDataPolicyUpdateReq": { "k": "u", "a": [] }, "CloudAppDataPolicy": { "k": "o", "p": { "revision": { "k": "j" }, "collections": { "k": "a", "i": { "r": "CloudAppDataGrant" } } } }, "CloudAppDataPolicyGetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudAppDataPolicy" } } }, "CloudAppDataPolicyMutationResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "Outcome" } } }, "CloudDataAppContextReq": { "k": "o" }, "CloudDataAppContextResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "AppContext" } } }, "CloudAppStreamPolicyGetReq": { "k": "o" }, "CloudAppStreamPolicyUpdateReq": { "k": "o", "p": { "expectedRevision": { "k": "j" }, "platformPermissions": { "k": "a", "i": {} }, "messageTopics": { "k": "a", "i": { "r": "CloudStreamMessageTopicPermission" } } } }, "CloudAppStreamPolicy": { "k": "o", "p": { "revision": { "k": "j" }, "platformPermissions": { "k": "a", "i": {} }, "messageTopics": { "k": "a", "i": { "r": "CloudStreamMessageTopicPermission" } } } }, "CloudAppStreamPolicyGetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudAppStreamPolicy" } } }, "CloudAppStreamPolicyMutationResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "Outcome" } } }, "CloudAppDataRuleTransition": { "k": "o" }, "CloudAppDataRulePrincipal": { "k": "o", "p": { "permissions": { "k": "a", "i": {} }, "readFields": { "k": "a", "i": {} }, "writeFields": { "k": "a", "i": {} }, "writeStates": { "k": "a", "i": {} }, "transitions": { "k": "a", "i": { "r": "CloudAppDataRuleTransition" } } } }, "CloudAppDataRule": { "k": "o", "p": { "principals": { "k": "a", "i": { "r": "CloudAppDataRulePrincipal" } } } }, "CloudAppCollectionDeclaration": { "k": "o", "p": { "recordSchema": { "r": "Schema" }, "indexes": { "k": "a", "i": { "r": "IndexSpec" } } } }, "CloudAppCollectionsEnsureReq": { "k": "o", "p": { "collections": { "k": "a", "i": { "r": "CloudAppCollectionDeclaration" } } } }, "CloudAppCollectionSchemaNote": { "k": "o" }, "CloudAppCollectionWarning": { "k": "o" }, "CloudAppCollectionEnsureResult": { "k": "o", "p": { "revision": { "k": "j" }, "ignored": { "k": "a", "i": { "r": "CloudAppCollectionSchemaNote" } }, "warnings": { "k": "a", "i": { "r": "CloudAppCollectionWarning" } }, "indexStatus": { "k": "a", "i": { "r": "IndexState" } } } }, "CloudAppCollectionsEnsureResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "results": { "k": "a", "i": { "r": "CloudAppCollectionEnsureResult" } } } } } }, "CloudAppCollectionsSchemaReplaceReq": { "k": "o", "p": { "recordSchema": { "r": "Schema" }, "indexes": { "k": "a", "i": { "r": "IndexSpec" } }, "expectedRevision": { "k": "j" } } }, "CloudAppCollectionRetired": { "k": "o", "p": { "paths": { "k": "a", "i": {} }, "enumValues": { "k": "a", "i": { "k": "o", "p": { "values": { "k": "a", "i": {} } } } } } }, "CloudAppCollectionsSchemaReplaceResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "revision": { "k": "j" }, "retired": { "r": "CloudAppCollectionRetired" }, "checkedRecords": { "k": "j" }, "warnings": { "k": "a", "i": { "r": "CloudAppCollectionWarning" } }, "indexStatus": { "k": "a", "i": { "r": "IndexState" } } } } } }, "CloudAppCollectionAliasReq": { "k": "o" }, "CloudAppCollectionStateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "revision": { "k": "j" } } } } }, "CloudAppCollectionsListReq": { "k": "o" }, "CloudAppCollectionView": { "k": "o", "p": { "recordSchema": { "r": "Schema" }, "indexes": { "k": "a", "i": { "r": "IndexSpec" } }, "indexStatus": { "k": "a", "i": { "r": "IndexState" } }, "retired": { "r": "CloudAppCollectionRetired" }, "revision": { "k": "j" }, "updatedAt": { "k": "j" } } }, "CloudAppCollectionsListResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "collections": { "k": "a", "i": { "r": "CloudAppCollectionView" } } } } } }, "CloudRecordSubscribeReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "CloudRecordChangeEvent": { "k": "o", "p": { "revision": { "k": "j" }, "occurredAt": { "k": "j" } } }, "CloudRecordSubscribeReset": { "k": "o" }, "CloudRecordSubscribeResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "events": { "k": "a", "i": { "r": "CloudRecordChangeEvent" } }, "reset": { "k": "u", "a": [{ "r": "CloudRecordSubscribeReset" }] } } } } }, "CloudStreamRequestGrantGetReq": { "k": "o" }, "CloudStreamRequestGrantTargetRevision": { "k": "o", "p": { "revision": { "k": "j" } } }, "CloudStreamRequestGrantSetReq": { "k": "u", "a": [] }, "CloudStreamRequestGrantTargetInfo": { "k": "o", "p": { "revision": { "k": "j" }, "active": { "k": "j" }, "current": { "k": "j" } } }, "CloudStreamRequestGrantInfo": { "k": "o", "p": { "recipientEligible": { "k": "j" }, "recipientActions": { "k": "a", "i": {} }, "registered": { "k": "j" }, "active": { "k": "j" }, "revision": { "k": "j" }, "actions": { "k": "a", "i": {} }, "targets": { "k": "a", "i": { "r": "CloudStreamRequestGrantTargetInfo" } }, "createdTime": { "k": "j" }, "updatedTime": { "k": "j" }, "activationSupported": { "k": "j" } } }, "CloudStreamRequestGrantMutation": { "k": "o", "p": { "revision": { "k": "j" }, "active": { "k": "j" } } }, "CloudStreamRequestGrantGetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudStreamRequestGrantInfo" } } }, "CloudStreamRequestGrantSetResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudStreamRequestGrantMutation" } } }, "CloudAppDataGrantChange": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }, { "k": "o" }] }] }, "CloudAppStreamAccessListReq": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" }, "includeInactive": { "k": "j" } } }, "CloudAppStreamAccessItem": { "k": "o", "p": { "actions": { "k": "a", "i": {} }, "configuredActive": { "k": "j" }, "blockedReasons": { "k": "a", "i": {} }, "revision": { "k": "j" } } }, "CloudAppStreamAccessPage": { "k": "o", "p": { "items": { "k": "a", "i": { "r": "CloudAppStreamAccessItem" } }, "page": { "k": "j" }, "size": { "k": "j" }, "total": { "k": "j" } } }, "CloudAppStreamAccessListResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudAppStreamAccessPage" } } }, "CloudSourceDiscoverReq": { "k": "o", "p": { "expectedRevision": { "k": "j" } } }, "CloudSourceDiscoverResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "revision": { "k": "j" }, "resources": { "k": "a", "i": { "k": "o" } } } } } }, "CloudStreamMessageTopicPermission": { "k": "o" }, "CloudStreamMessageDeclaration": { "k": "o" }, "UnsV2SampleFindReq": { "k": "u", "a": [] }, "UnsV2SampleFindResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudSamplePage" } } }, "UnsV2SampleAggregateReq": { "k": "u", "a": [] }, "UnsV2SampleAggregateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "CloudDataPage" } } }, "UnsV2RecordLockReq": { "k": "u", "a": [] }, "UnsV2RecordLockResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "locks": { "k": "a", "i": { "r": "CloudRecordLeaseGrant" } } } } } }, "UnsV2RecordRenewReq": { "k": "o", "p": { "locks": { "k": "a", "i": { "k": "o" } }, "ttlMs": { "k": "j" } } }, "UnsV2RecordRenewResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "locks": { "k": "a", "i": { "k": "o", "p": { "expiresAt": { "k": "j" } } } } } } } }, "UnsV2RecordUnlockReq": { "k": "u", "a": [{ "k": "o" }, { "k": "o" }] }, "UnsV2RecordUnlockResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "unlockedCount": { "k": "j" } } } } }, "UnsV2RecordRestoreReq": { "k": "o", "p": { "ids": { "k": "a", "i": {} } } }, "UnsV2RecordRestoreResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "restoredCount": { "k": "j" }, "restoredIds": { "k": "a", "i": {} } } } } }, "CloudRecordTotalOption": { "k": "o", "p": { "max": { "k": "j" } } }, "CloudAppCreateCapability": { "k": "o", "p": { "appRevision": { "k": "j" }, "collectionRevision": { "k": "j" }, "inputSchema": { "r": "Schema" } } }, "CloudDataPage": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o" } }, "pageInfo": { "r": "CloudPageInfo" } } }, "CloudRecordLockView": { "k": "o", "p": { "expiresAt": { "k": "j" }, "fence": { "k": "j" }, "since": { "k": "j" } } }, "CloudNullableRecordDocument": { "k": "o", "p": { "data": { "k": "o" }, "revision": { "k": "j" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "sourceTime": { "k": "j" }, "lock": { "r": "CloudRecordLockView" } } }, "SampleDocument": { "k": "o", "p": { "time": { "k": "j" }, "receivedAt": { "k": "j" }, "data": { "k": "o" } } }, "CloudNullableSampleDocument": { "k": "o", "p": { "time": { "k": "j" }, "receivedAt": { "k": "j" }, "data": { "k": "o" } } }, "CloudPageInfo": { "k": "o", "p": { "nextPage": { "k": "j" } } }, "CloudCappedCount": { "k": "o", "p": { "count": { "k": "j" } } }, "CloudRecordPage": { "k": "o", "p": { "items": { "k": "a", "i": { "r": "RecordDocument" } }, "pageInfo": { "r": "CloudPageInfo" }, "total": { "r": "CloudCappedCount" } } }, "CloudSamplePage": { "k": "o", "p": { "items": { "k": "a", "i": { "r": "SampleDocument" } }, "pageInfo": { "r": "CloudPageInfo" } } }, "CloudRecordAggregatePage": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o" } }, "pageInfo": { "r": "CloudPageInfo" }, "total": { "r": "CloudCappedCount" } } }, "CloudDistinctResult": { "k": "o", "p": { "values": { "k": "a", "i": {} }, "pageInfo": { "r": "CloudPageInfo" } } }, "CloudRecordGetResult": { "k": "o", "p": { "items": { "k": "a", "i": { "r": "RecordDocument" } }, "missing": { "k": "a", "i": {} } } }, "CloudDistinctPage": { "k": "o", "p": { "page": { "k": "j" }, "size": { "k": "j" } } }, "CloudWriteError": { "k": "o", "p": { "index": { "k": "j" }, "error": { "r": "Fault" } } }, "CloudRecordLeaseGrant": { "k": "o", "p": { "expiresAt": { "k": "j" }, "fence": { "k": "j" }, "record": { "r": "RecordDocument" } } }, "CloudRecordBatchQuery": { "k": "u", "a": [{ "k": "u", "a": [] }, { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "maxCount": { "k": "j" } } }, { "k": "u", "a": [] }, { "k": "u", "a": [] }, { "k": "o", "p": { "ids": { "k": "a", "i": {} }, "projection": { "k": "o", "x": { "k": "u", "a": [{ "k": "j" }] } } } }] }, "CloudRecordBatchQueryResult": { "k": "u", "a": [{ "k": "o", "p": { "data": { "k": "u", "a": [{ "r": "CloudRecordPage" }, { "r": "CloudCappedCount" }, { "r": "CloudDistinctResult" }, { "r": "CloudRecordAggregatePage" }, { "r": "CloudRecordGetResult" }] } } }, { "k": "o", "p": { "error": { "r": "Fault" } } }] }, "UnsV2RecordQueryBatchReq": { "k": "o", "p": { "queries": { "k": "a", "i": { "r": "CloudRecordBatchQuery" } } } }, "UnsV2RecordQueryBatchResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "results": { "k": "o", "x": { "r": "CloudRecordBatchQueryResult" } } } } } }, "CloudStreamProgramView": { "k": "o", "p": { "revision": { "k": "j" }, "activeRelease": { "k": "j" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "document": { "k": "o", "p": { "timeoutMs": { "k": "j" } } }, "platformReadiness": { "r": "CloudPlatformReadiness" } } }, "CloudStreamRunError": { "k": "o" }, "CloudSourceCreateCredentials": { "k": "u", "a": [{ "k": "o", "p": { "material": { "k": "o" } } }, { "k": "o", "p": { "material": { "k": "o" } } }, { "k": "o", "p": { "material": { "k": "o" } } }, { "k": "o", "p": { "material": { "k": "o" } } }, { "k": "o", "p": { "material": { "k": "o" } } }] }, "UnsV2MetadataFindReq": { "k": "u", "a": [] }, "UnsV2MetadataFindResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "r": "MetadataPage" } } }, "UnsV2MetadataCountReq": { "k": "u", "a": [] }, "UnsV2MetadataCountResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "count": { "k": "j" } } } } }, "UnsV2MetadataAggregateReq": { "k": "u", "a": [] }, "UnsV2MetadataAggregateResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o" } }, "pageInfo": { "r": "CloudPageInfo" } } } } }, "UnsV2MetadataInsertOneReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "UnsV2MetadataInsertOneResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o" } } }, "UnsV2MetadataUpdateOneReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "UnsV2MetadataUpdateOneResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "matchedCount": { "k": "j" }, "modifiedCount": { "k": "j" }, "value": { "r": "MetadataNullableDocument" } } } } }, "UnsV2MetadataReplaceOneReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "UnsV2MetadataReplaceOneResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "matchedCount": { "k": "j" }, "modifiedCount": { "k": "j" }, "value": { "r": "MetadataNullableDocument" } } } } }, "UnsV2MetadataDeleteOneReq": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o" }] }] }, "UnsV2MetadataDeleteOneResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "deletedCount": { "k": "j" }, "value": { "r": "MetadataNullableDocument" } } } } }, "UnsV2MetadataUpdateManyReq": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "update": { "k": "o", "p": { "$set": { "k": "o" }, "$unset": { "k": "o" }, "$setOnInsert": { "k": "o" } } }, "maxDocs": { "k": "j" } } }, "UnsV2MetadataUpdateManyResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "matchedCount": { "k": "j" }, "modifiedCount": { "k": "j" }, "results": { "k": "a", "i": { "r": "MetadataBulkResult" } }, "errors": { "k": "a", "i": { "k": "o", "p": { "index": { "k": "j" }, "error": { "r": "Fault" } } } } } } } }, "UnsV2MetadataDeleteManyReq": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "maxDocs": { "k": "j" } } }, "UnsV2MetadataDeleteManyResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "deletedCount": { "k": "j" }, "results": { "k": "a", "i": { "r": "MetadataBulkResult" } }, "errors": { "k": "a", "i": { "k": "o", "p": { "index": { "k": "j" }, "error": { "r": "Fault" } } } } } } } }, "UnsV2MetadataRestoreReq": { "k": "o", "p": { "items": { "k": "a", "i": { "k": "o", "p": { "expectedRevision": { "k": "j" } } } } } }, "UnsV2MetadataRestoreResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "restoredCount": { "k": "j" }, "items": { "k": "a", "i": { "r": "MetadataDocument" } } } } } }, "UnsV2MetadataBulkWriteReq": { "k": "o", "p": { "operations": { "k": "a", "i": { "k": "u", "a": [{ "k": "o", "p": { "insertOne": { "r": "MetadataBulkInsertOne" } } }, { "k": "o", "p": { "updateOne": { "r": "MetadataBulkUpdateOne" } } }, { "k": "o", "p": { "replaceOne": { "r": "MetadataBulkReplaceOne" } } }, { "k": "o", "p": { "deleteOne": { "r": "MetadataBulkDeleteOne" } } }, { "k": "o", "p": { "restoreOne": { "r": "MetadataBulkRestoreOne" } } }] } } } }, "UnsV2MetadataBulkWriteResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "insertedCount": { "k": "j" }, "matchedCount": { "k": "j" }, "modifiedCount": { "k": "j" }, "deletedCount": { "k": "j" }, "restoredCount": { "k": "j" }, "upsertedCount": { "k": "j" }, "insertedIds": { "k": "o" }, "upsertedIds": { "k": "o" }, "results": { "k": "a", "i": { "r": "MetadataBulkResult" } }, "errors": { "k": "a", "i": { "k": "o", "p": { "index": { "k": "j" }, "error": { "r": "Fault" } } } }, "nextIndex": { "k": "j" }, "unknownUntil": { "k": "j" } } } } }, "UnsV2MetadataTransactReq": { "k": "o", "p": { "operations": { "k": "a", "i": { "r": "MetadataTransactionOperation" } } } }, "UnsV2MetadataTransactResponse": { "k": "o", "p": { "code": { "k": "j" }, "data": { "k": "o", "p": { "results": { "k": "a", "i": { "r": "MetadataTransactionResult" } } } } } }, "CloudCollectionTTL": { "k": "o", "p": { "expireAfterSeconds": { "k": "j" } } }, "CloudAppDataLimits": { "k": "o", "p": { "count": { "k": "o", "p": { "defaultMax": { "k": "j" }, "max": { "k": "j" } } }, "total": { "k": "o", "p": { "defaultMax": { "k": "j" }, "max": { "k": "j" } } }, "queryBatch": { "k": "o", "p": { "maxQueries": { "k": "j" }, "maxRows": { "k": "j" }, "maxBytes": { "k": "j" } } }, "get": { "k": "o", "p": { "maxIds": { "k": "j" } } }, "subscribe": { "k": "o", "p": { "maxCollections": { "k": "j" }, "maxRecordIds": { "k": "j" }, "heartbeatMs": { "k": "j" }, "retentionMs": { "k": "j" } } }, "ttl": { "k": "o", "p": { "minSeconds": { "k": "j" }, "maxSeconds": { "k": "j" }, "maxPerCollection": { "k": "j" } } }, "concurrency": { "k": "o", "p": { "reads": { "k": "j" }, "writes": { "k": "j" }, "queueMs": { "k": "j" } } }, "idempotencyWindowMs": { "k": "j" } } }, "ErrorRetry": { "k": "o", "p": { "afterMs": { "k": "j" } } }, "MetadataDocument": { "k": "o", "p": { "revision": { "k": "j" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "deletedAt": { "k": "j" }, "data": { "k": "o" } } }, "MetadataNullableDocument": { "k": "u", "a": [{ "r": "MetadataDocument" }] }, "MetadataPage": { "k": "o", "p": { "items": { "k": "a", "i": { "r": "MetadataDocument" } }, "pageInfo": { "r": "CloudPageInfo" } } }, "MetadataDirectoryInput": { "k": "o", "p": { "parentId": { "k": "u", "a": [{ "r": "UnsV2Identity" }] }, "schemaVersion": { "k": "j" } } }, "MetadataTopicInput": { "k": "o", "p": { "collectionId": { "r": "UnsV2Identity" }, "fields": { "k": "a", "i": { "r": "FieldBinding" } }, "parentId": { "k": "u", "a": [{ "r": "UnsV2Identity" }] }, "schemaVersion": { "k": "j" } } }, "MetadataCollectionInput": { "k": "o", "p": { "indexes": { "k": "a", "i": { "r": "IndexSpec" } }, "recordSchema": { "r": "Schema" }, "sampleSchema": { "r": "Schema" }, "schemaVersion": { "k": "j" }, "semantics": { "r": "CollectionSemantics" }, "parentId": { "k": "u", "a": [{ "r": "UnsV2Identity" }] } } }, "MetadataBulkResult": { "k": "o", "p": { "index": { "k": "j" }, "matchedCount": { "k": "j" }, "modifiedCount": { "k": "j" }, "deletedCount": { "k": "j" }, "restoredCount": { "k": "j" }, "value": { "r": "MetadataNullableDocument" }, "error": { "r": "Fault" } } }, "MetadataTransactionResult": { "k": "o", "p": { "matchedCount": { "k": "j" }, "modifiedCount": { "k": "j" }, "deletedCount": { "k": "j" }, "restoredCount": { "k": "j" }, "value": { "r": "MetadataNullableDocument" } } }, "MetadataBulkInsertOne": { "k": "o", "p": { "data": { "k": "o" } } }, "MetadataBulkUpdateOne": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "sort": { "r": "UnsV2PipelineSort" }, "expectedRevision": { "k": "j" }, "update": { "k": "o", "p": { "$set": { "k": "o" }, "$unset": { "k": "o" }, "$setOnInsert": { "k": "o" } } } } }, "MetadataBulkReplaceOne": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "sort": { "r": "UnsV2PipelineSort" }, "expectedRevision": { "k": "j" }, "replacement": { "k": "o" } } }, "MetadataBulkDeleteOne": { "k": "o", "p": { "filter": { "r": "UnsV2DataFilter" }, "sort": { "r": "UnsV2PipelineSort" }, "expectedRevision": { "k": "j" } } }, "MetadataBulkRestoreOne": { "k": "o", "p": { "expectedRevision": { "k": "j" } } }, "MetadataTransactionOperation": { "k": "u", "a": [{ "k": "u", "a": [{ "k": "o", "p": { "data": { "r": "MetadataDirectoryInput" }, "replacement": { "r": "MetadataDirectoryInput" } } }, { "k": "o", "p": { "data": { "r": "MetadataTopicInput" }, "replacement": { "r": "MetadataTopicInput" } } }, { "k": "o", "p": { "data": { "r": "MetadataCollectionInput" }, "replacement": { "r": "MetadataCollectionInput" } } }] }] }, "CloudSourceDocumentPatch": { "k": "o", "p": { "config": { "r": "CloudSourceConfig" } } }, "CloudSourceDocumentSummary": { "k": "o", "p": { "revision": { "k": "j" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "platformReadiness": { "r": "CloudPlatformReadiness" } } }, "CloudStreamDocumentSummary": { "k": "o", "p": { "revision": { "k": "j" }, "createdAt": { "k": "j" }, "updatedAt": { "k": "j" }, "activeRelease": { "k": "j" }, "platformReadiness": { "r": "CloudPlatformReadiness" } } }, "CloudPlatformReadiness": { "k": "o", "p": { "retryAfterMs": { "k": "j" } } } };
|
|
90
90
|
export const UNS_V2_CONTRACT_PROVENANCE = {
|
|
91
91
|
"repository": "FREEZONEX/Tier0-Backend",
|
|
92
|
-
"revision": "
|
|
92
|
+
"revision": "5ba6c3af432d5200674f7cb1a3edd31b255ef64b",
|
|
93
93
|
"version": "5.0.0",
|
|
94
94
|
"source": "service/unssvr/internal/domain/unsv2/contract_generated.go#ContractJSON",
|
|
95
|
-
"cloudRevision": "
|
|
95
|
+
"cloudRevision": "5ba6c3af432d5200674f7cb1a3edd31b255ef64b",
|
|
96
96
|
"cloudContractRevision": "cloud-source-impact/2+source-vendor/2+app-create-capability/1+data/3+record-reads/1+stream-receipt/1+stream-run-error/1+collection-namespace/1+business-name/1+http-acquisition/2+http-source-role/1+http-source-request/1+sql-inline-credentials/1+app-collection/2+collection-ownership/1+metadata/1+app-context/3+collection-ttl/1+error-model/1+crud-consolidation/1+record-insert-return/1+lifecycle-consolidation/1+mutation-defaults/1+api-surface/2+source-stream-single-model+app-data/2+hosted-control/1+source-bindings/1+record-notifications/1+record-delete-samples/1+stream-history/1+app-collections/1+http-in/1+app-resource-access/2+stream-control-probe-retirement/1+http-push-retirement/1",
|
|
97
97
|
"resolvedCloudContract": true,
|
|
98
98
|
"enterpriseBase": {
|
|
@@ -114,7 +114,7 @@ export const UNS_V2_CONTRACT_PROVENANCE = {
|
|
|
114
114
|
{
|
|
115
115
|
"scope": "source-stream-acquisition",
|
|
116
116
|
"repository": "FREEZONEX/Tier0-Backend",
|
|
117
|
-
"revision": "
|
|
117
|
+
"revision": "5ba6c3af432d5200674f7cb1a3edd31b255ef64b",
|
|
118
118
|
"sourceKind": "committed",
|
|
119
119
|
"source": "share/unscontract/manifest.json",
|
|
120
120
|
"sourceSHA256": "c92e134799190fda29360a2983692ed47fb421a85fa7d92267ce091ac263dac8",
|
|
@@ -149,7 +149,7 @@ export const UNS_V2_CONTRACT_PROVENANCE = {
|
|
|
149
149
|
"contract": "a8c280d90b9d865a80637d7b563bd72611aead54bf0422a0cf83e05feaacd724",
|
|
150
150
|
"cloudSupport": "4ff9d5ff69e35e38459287cf15df45ab627684e2e2294dfd1e076ebc4fc34b46",
|
|
151
151
|
"manifest": "c92e134799190fda29360a2983692ed47fb421a85fa7d92267ce091ac263dac8",
|
|
152
|
-
"provenance": "
|
|
152
|
+
"provenance": "5b80e631aaba726b90ef69845d95e798ff35163c3cf98352e23ee71e4e90bde0",
|
|
153
153
|
"registry": "c74313c217742d50391a94c09e60d5c5bd1a89c305fa4145cbf23b35ba7dbcdb"
|
|
154
154
|
},
|
|
155
155
|
"publicOperationCount": 82,
|