@native-marketing/sdk 0.3.5 → 0.3.7

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.
@@ -13326,6 +13326,8 @@ export interface paths {
13326
13326
  contentAvailable: boolean;
13327
13327
  projectBound: boolean | null;
13328
13328
  selected: boolean;
13329
+ referenceRepairRequired?: boolean;
13330
+ resourceLinked?: boolean;
13329
13331
  /** Format: uri */
13330
13332
  originalUrl: string | null;
13331
13333
  evidenceRefs: string[];
@@ -13491,6 +13493,8 @@ export interface paths {
13491
13493
  contentAvailable: boolean;
13492
13494
  projectBound: boolean | null;
13493
13495
  selected: boolean;
13496
+ referenceRepairRequired?: boolean;
13497
+ resourceLinked?: boolean;
13494
13498
  /** Format: uri */
13495
13499
  originalUrl: string | null;
13496
13500
  evidenceRefs: string[];
@@ -72738,6 +72742,645 @@ export interface paths {
72738
72742
  patch?: never;
72739
72743
  trace?: never;
72740
72744
  };
72745
+ '/tenants/{tenantCode}/knowledge/reference-repair/preview': {
72746
+ parameters: {
72747
+ query?: never;
72748
+ header?: never;
72749
+ path?: never;
72750
+ cookie?: never;
72751
+ };
72752
+ get: {
72753
+ parameters: {
72754
+ query: {
72755
+ sourceRef: string;
72756
+ };
72757
+ header?: never;
72758
+ path: {
72759
+ tenantCode: string;
72760
+ };
72761
+ cookie?: never;
72762
+ };
72763
+ requestBody?: never;
72764
+ responses: {
72765
+ /** @description Default Response */
72766
+ 200: {
72767
+ headers: {
72768
+ [name: string]: unknown;
72769
+ };
72770
+ content: {
72771
+ 'application/json': {
72772
+ sourceRef: string;
72773
+ remoteRef: string;
72774
+ basisHash: string;
72775
+ sourceTenantId: string;
72776
+ item: {
72777
+ ref: string;
72778
+ ownerTenantId: string;
72779
+ resourceType: string;
72780
+ /** @enum {string} */
72781
+ originType: 'LEGACY_PROJECT' | 'TENANT_AUTHOR' | 'TENANT_SOURCE';
72782
+ identityHash: string;
72783
+ /** @enum {string} */
72784
+ identityKind: 'CAS_BYTES' | 'REFERENCE_RECORD_DIGEST';
72785
+ kind: string;
72786
+ classification: string;
72787
+ mediaType: string;
72788
+ title: string;
72789
+ summary: string;
72790
+ readable: boolean;
72791
+ reasonCodes: string[];
72792
+ };
72793
+ byteLength: number;
72794
+ /** @enum {boolean} */
72795
+ verified: true;
72796
+ };
72797
+ };
72798
+ };
72799
+ /** @description Default Response */
72800
+ 400: {
72801
+ headers: {
72802
+ [name: string]: unknown;
72803
+ };
72804
+ content: {
72805
+ 'application/json': {
72806
+ error: {
72807
+ code: string;
72808
+ message: string;
72809
+ requestId?: string;
72810
+ };
72811
+ };
72812
+ };
72813
+ };
72814
+ /** @description Default Response */
72815
+ 401: {
72816
+ headers: {
72817
+ [name: string]: unknown;
72818
+ };
72819
+ content: {
72820
+ 'application/json': {
72821
+ error: {
72822
+ code: string;
72823
+ message: string;
72824
+ requestId?: string;
72825
+ };
72826
+ };
72827
+ };
72828
+ };
72829
+ /** @description Default Response */
72830
+ 403: {
72831
+ headers: {
72832
+ [name: string]: unknown;
72833
+ };
72834
+ content: {
72835
+ 'application/json': {
72836
+ error: {
72837
+ code: string;
72838
+ message: string;
72839
+ requestId?: string;
72840
+ };
72841
+ };
72842
+ };
72843
+ };
72844
+ /** @description Default Response */
72845
+ 404: {
72846
+ headers: {
72847
+ [name: string]: unknown;
72848
+ };
72849
+ content: {
72850
+ 'application/json': {
72851
+ error: {
72852
+ code: string;
72853
+ message: string;
72854
+ requestId?: string;
72855
+ };
72856
+ };
72857
+ };
72858
+ };
72859
+ /** @description Default Response */
72860
+ 409: {
72861
+ headers: {
72862
+ [name: string]: unknown;
72863
+ };
72864
+ content: {
72865
+ 'application/json': {
72866
+ error: {
72867
+ code: string;
72868
+ message: string;
72869
+ requestId?: string;
72870
+ };
72871
+ };
72872
+ };
72873
+ };
72874
+ /** @description Default Response */
72875
+ 413: {
72876
+ headers: {
72877
+ [name: string]: unknown;
72878
+ };
72879
+ content: {
72880
+ 'application/json': {
72881
+ error: {
72882
+ code: string;
72883
+ message: string;
72884
+ requestId?: string;
72885
+ };
72886
+ };
72887
+ };
72888
+ };
72889
+ /** @description Default Response */
72890
+ 415: {
72891
+ headers: {
72892
+ [name: string]: unknown;
72893
+ };
72894
+ content: {
72895
+ 'application/json': {
72896
+ error: {
72897
+ code: string;
72898
+ message: string;
72899
+ requestId?: string;
72900
+ };
72901
+ };
72902
+ };
72903
+ };
72904
+ /** @description Default Response */
72905
+ 502: {
72906
+ headers: {
72907
+ [name: string]: unknown;
72908
+ };
72909
+ content: {
72910
+ 'application/json': {
72911
+ error: {
72912
+ code: string;
72913
+ message: string;
72914
+ requestId?: string;
72915
+ };
72916
+ };
72917
+ };
72918
+ };
72919
+ /** @description Default Response */
72920
+ 503: {
72921
+ headers: {
72922
+ [name: string]: unknown;
72923
+ };
72924
+ content: {
72925
+ 'application/json': {
72926
+ error: {
72927
+ code: string;
72928
+ message: string;
72929
+ requestId?: string;
72930
+ };
72931
+ };
72932
+ };
72933
+ };
72934
+ };
72935
+ };
72936
+ put?: never;
72937
+ post?: never;
72938
+ delete?: never;
72939
+ options?: never;
72940
+ head?: never;
72941
+ patch?: never;
72942
+ trace?: never;
72943
+ };
72944
+ '/tenants/{tenantCode}/knowledge/reference-repair': {
72945
+ parameters: {
72946
+ query?: never;
72947
+ header?: never;
72948
+ path?: never;
72949
+ cookie?: never;
72950
+ };
72951
+ get?: never;
72952
+ put?: never;
72953
+ post: {
72954
+ parameters: {
72955
+ query?: never;
72956
+ header?: never;
72957
+ path: {
72958
+ tenantCode: string;
72959
+ };
72960
+ cookie?: never;
72961
+ };
72962
+ requestBody: {
72963
+ content: {
72964
+ 'application/json': {
72965
+ sourceRef: string;
72966
+ requestId: string;
72967
+ expectedBasisHash: string;
72968
+ };
72969
+ };
72970
+ };
72971
+ responses: {
72972
+ /** @description Default Response */
72973
+ 200: {
72974
+ headers: {
72975
+ [name: string]: unknown;
72976
+ };
72977
+ content: {
72978
+ 'application/json': {
72979
+ result: {
72980
+ /** Format: uuid */
72981
+ id: string;
72982
+ ref: string;
72983
+ /** Format: uuid */
72984
+ tenantId: string;
72985
+ /** @enum {string} */
72986
+ sourceType:
72987
+ | 'KNOWLEDGE'
72988
+ | 'INSIGHT'
72989
+ | 'TREND'
72990
+ | 'HOT_TOPIC'
72991
+ | 'WORLD_FACT'
72992
+ | 'NEWS'
72993
+ | 'CASE_EVIDENCE'
72994
+ | 'HUMAN_IDEA'
72995
+ | 'EXTERNAL_REFERENCE';
72996
+ sourceRef: string;
72997
+ sourceAuthority: string;
72998
+ /** Format: date-time */
72999
+ observedAt: string | null;
73000
+ /** Format: date-time */
73001
+ validUntil: string | null;
73002
+ evidenceRef: string | null;
73003
+ snapshotHash: string | null;
73004
+ metadata: {
73005
+ [key: string]: unknown;
73006
+ };
73007
+ /** Format: date-time */
73008
+ createdAt: string;
73009
+ };
73010
+ replayed: boolean;
73011
+ };
73012
+ };
73013
+ };
73014
+ /** @description Default Response */
73015
+ 400: {
73016
+ headers: {
73017
+ [name: string]: unknown;
73018
+ };
73019
+ content: {
73020
+ 'application/json': {
73021
+ error: {
73022
+ code: string;
73023
+ message: string;
73024
+ requestId?: string;
73025
+ };
73026
+ };
73027
+ };
73028
+ };
73029
+ /** @description Default Response */
73030
+ 401: {
73031
+ headers: {
73032
+ [name: string]: unknown;
73033
+ };
73034
+ content: {
73035
+ 'application/json': {
73036
+ error: {
73037
+ code: string;
73038
+ message: string;
73039
+ requestId?: string;
73040
+ };
73041
+ };
73042
+ };
73043
+ };
73044
+ /** @description Default Response */
73045
+ 403: {
73046
+ headers: {
73047
+ [name: string]: unknown;
73048
+ };
73049
+ content: {
73050
+ 'application/json': {
73051
+ error: {
73052
+ code: string;
73053
+ message: string;
73054
+ requestId?: string;
73055
+ };
73056
+ };
73057
+ };
73058
+ };
73059
+ /** @description Default Response */
73060
+ 404: {
73061
+ headers: {
73062
+ [name: string]: unknown;
73063
+ };
73064
+ content: {
73065
+ 'application/json': {
73066
+ error: {
73067
+ code: string;
73068
+ message: string;
73069
+ requestId?: string;
73070
+ };
73071
+ };
73072
+ };
73073
+ };
73074
+ /** @description Default Response */
73075
+ 409: {
73076
+ headers: {
73077
+ [name: string]: unknown;
73078
+ };
73079
+ content: {
73080
+ 'application/json': {
73081
+ error: {
73082
+ code: string;
73083
+ message: string;
73084
+ requestId?: string;
73085
+ };
73086
+ };
73087
+ };
73088
+ };
73089
+ /** @description Default Response */
73090
+ 413: {
73091
+ headers: {
73092
+ [name: string]: unknown;
73093
+ };
73094
+ content: {
73095
+ 'application/json': {
73096
+ error: {
73097
+ code: string;
73098
+ message: string;
73099
+ requestId?: string;
73100
+ };
73101
+ };
73102
+ };
73103
+ };
73104
+ /** @description Default Response */
73105
+ 415: {
73106
+ headers: {
73107
+ [name: string]: unknown;
73108
+ };
73109
+ content: {
73110
+ 'application/json': {
73111
+ error: {
73112
+ code: string;
73113
+ message: string;
73114
+ requestId?: string;
73115
+ };
73116
+ };
73117
+ };
73118
+ };
73119
+ /** @description Default Response */
73120
+ 502: {
73121
+ headers: {
73122
+ [name: string]: unknown;
73123
+ };
73124
+ content: {
73125
+ 'application/json': {
73126
+ error: {
73127
+ code: string;
73128
+ message: string;
73129
+ requestId?: string;
73130
+ };
73131
+ };
73132
+ };
73133
+ };
73134
+ /** @description Default Response */
73135
+ 503: {
73136
+ headers: {
73137
+ [name: string]: unknown;
73138
+ };
73139
+ content: {
73140
+ 'application/json': {
73141
+ error: {
73142
+ code: string;
73143
+ message: string;
73144
+ requestId?: string;
73145
+ };
73146
+ };
73147
+ };
73148
+ };
73149
+ };
73150
+ };
73151
+ delete?: never;
73152
+ options?: never;
73153
+ head?: never;
73154
+ patch?: never;
73155
+ trace?: never;
73156
+ };
73157
+ '/tenants/{tenantCode}/knowledge/reference-repair/receipt': {
73158
+ parameters: {
73159
+ query?: never;
73160
+ header?: never;
73161
+ path?: never;
73162
+ cookie?: never;
73163
+ };
73164
+ get: {
73165
+ parameters: {
73166
+ query: {
73167
+ requestId: string;
73168
+ };
73169
+ header?: never;
73170
+ path: {
73171
+ tenantCode: string;
73172
+ };
73173
+ cookie?: never;
73174
+ };
73175
+ requestBody?: never;
73176
+ responses: {
73177
+ /** @description Default Response */
73178
+ 200: {
73179
+ headers: {
73180
+ [name: string]: unknown;
73181
+ };
73182
+ content: {
73183
+ 'application/json':
73184
+ | {
73185
+ /** @enum {string} */
73186
+ state: 'FOUND';
73187
+ result: {
73188
+ /** Format: uuid */
73189
+ id: string;
73190
+ ref: string;
73191
+ /** Format: uuid */
73192
+ tenantId: string;
73193
+ /** @enum {string} */
73194
+ sourceType:
73195
+ | 'KNOWLEDGE'
73196
+ | 'INSIGHT'
73197
+ | 'TREND'
73198
+ | 'HOT_TOPIC'
73199
+ | 'WORLD_FACT'
73200
+ | 'NEWS'
73201
+ | 'CASE_EVIDENCE'
73202
+ | 'HUMAN_IDEA'
73203
+ | 'EXTERNAL_REFERENCE';
73204
+ sourceRef: string;
73205
+ sourceAuthority: string;
73206
+ /** Format: date-time */
73207
+ observedAt: string | null;
73208
+ /** Format: date-time */
73209
+ validUntil: string | null;
73210
+ evidenceRef: string | null;
73211
+ snapshotHash: string | null;
73212
+ metadata: {
73213
+ [key: string]: unknown;
73214
+ };
73215
+ /** Format: date-time */
73216
+ createdAt: string;
73217
+ };
73218
+ }
73219
+ | {
73220
+ /** @enum {string} */
73221
+ state: 'NOT_FOUND';
73222
+ /** @enum {string|null} */
73223
+ result: null;
73224
+ }
73225
+ | {
73226
+ /** @enum {string} */
73227
+ state: 'REJECTED';
73228
+ /** @enum {string|null} */
73229
+ result: null;
73230
+ error: {
73231
+ code: string;
73232
+ /** @enum {string} */
73233
+ outcome: 'REJECTED';
73234
+ recovery: string;
73235
+ };
73236
+ };
73237
+ };
73238
+ };
73239
+ /** @description Default Response */
73240
+ 400: {
73241
+ headers: {
73242
+ [name: string]: unknown;
73243
+ };
73244
+ content: {
73245
+ 'application/json': {
73246
+ error: {
73247
+ code: string;
73248
+ message: string;
73249
+ requestId?: string;
73250
+ };
73251
+ };
73252
+ };
73253
+ };
73254
+ /** @description Default Response */
73255
+ 401: {
73256
+ headers: {
73257
+ [name: string]: unknown;
73258
+ };
73259
+ content: {
73260
+ 'application/json': {
73261
+ error: {
73262
+ code: string;
73263
+ message: string;
73264
+ requestId?: string;
73265
+ };
73266
+ };
73267
+ };
73268
+ };
73269
+ /** @description Default Response */
73270
+ 403: {
73271
+ headers: {
73272
+ [name: string]: unknown;
73273
+ };
73274
+ content: {
73275
+ 'application/json': {
73276
+ error: {
73277
+ code: string;
73278
+ message: string;
73279
+ requestId?: string;
73280
+ };
73281
+ };
73282
+ };
73283
+ };
73284
+ /** @description Default Response */
73285
+ 404: {
73286
+ headers: {
73287
+ [name: string]: unknown;
73288
+ };
73289
+ content: {
73290
+ 'application/json': {
73291
+ error: {
73292
+ code: string;
73293
+ message: string;
73294
+ requestId?: string;
73295
+ };
73296
+ };
73297
+ };
73298
+ };
73299
+ /** @description Default Response */
73300
+ 409: {
73301
+ headers: {
73302
+ [name: string]: unknown;
73303
+ };
73304
+ content: {
73305
+ 'application/json': {
73306
+ error: {
73307
+ code: string;
73308
+ message: string;
73309
+ requestId?: string;
73310
+ };
73311
+ };
73312
+ };
73313
+ };
73314
+ /** @description Default Response */
73315
+ 413: {
73316
+ headers: {
73317
+ [name: string]: unknown;
73318
+ };
73319
+ content: {
73320
+ 'application/json': {
73321
+ error: {
73322
+ code: string;
73323
+ message: string;
73324
+ requestId?: string;
73325
+ };
73326
+ };
73327
+ };
73328
+ };
73329
+ /** @description Default Response */
73330
+ 415: {
73331
+ headers: {
73332
+ [name: string]: unknown;
73333
+ };
73334
+ content: {
73335
+ 'application/json': {
73336
+ error: {
73337
+ code: string;
73338
+ message: string;
73339
+ requestId?: string;
73340
+ };
73341
+ };
73342
+ };
73343
+ };
73344
+ /** @description Default Response */
73345
+ 502: {
73346
+ headers: {
73347
+ [name: string]: unknown;
73348
+ };
73349
+ content: {
73350
+ 'application/json': {
73351
+ error: {
73352
+ code: string;
73353
+ message: string;
73354
+ requestId?: string;
73355
+ };
73356
+ };
73357
+ };
73358
+ };
73359
+ /** @description Default Response */
73360
+ 503: {
73361
+ headers: {
73362
+ [name: string]: unknown;
73363
+ };
73364
+ content: {
73365
+ 'application/json': {
73366
+ error: {
73367
+ code: string;
73368
+ message: string;
73369
+ requestId?: string;
73370
+ };
73371
+ };
73372
+ };
73373
+ };
73374
+ };
73375
+ };
73376
+ put?: never;
73377
+ post?: never;
73378
+ delete?: never;
73379
+ options?: never;
73380
+ head?: never;
73381
+ patch?: never;
73382
+ trace?: never;
73383
+ };
72741
73384
  }
72742
73385
  export type webhooks = Record<string, never>;
72743
73386
  export interface components {
@@ -1,4 +1,6 @@
1
1
  export { createContentFactoryClient } from './client.js';
2
+ export { getNativeClientVersion, checkNativeHttpVersion } from './client-version.js';
3
+ export { assessNativeCompatibility, planNativeUpdate, defaultUpdatePolicy, type NativeClientRelease, type NativeClientIdentity, type NativeRegistryRelease, type NativeCompatibility, type NativeUpdatePolicy, type NativeUpdatePlan, } from '../contracts/index.js';
2
4
  export { readingDocument } from '../contracts/index.js';
3
5
  export { programActivationRequirements } from '../contracts/index.js';
4
6
  export type { ProjectAccessView, ProjectAccessChange } from '../contracts/index.js';
@@ -3,6 +3,7 @@ export declare function verifyCapabilityDefinition(raw: unknown, name: string, e
3
3
  /** Per connection metadata only. A cache hit is never permission to execute. */
4
4
  export declare class CapabilityDefinitionCache {
5
5
  private readonly values;
6
+ clear(): void;
6
7
  remember(value: CapabilityDefinition): void;
7
8
  get(name: string, hash: string): {
8
9
  schemaVersion: 1;
@@ -2,6 +2,7 @@
2
2
  export declare function runNetworkCli(args: string[], env?: NodeJS.ProcessEnv, io?: {
3
3
  stdin?: AsyncIterable<string | Uint8Array>;
4
4
  notify?: (message: string) => void;
5
+ executablePath?: string;
5
6
  }, executable?: 'cf' | 'cf-agent'): Promise<{
6
7
  exitCode: number;
7
8
  envelope: {
@@ -4,7 +4,10 @@ import { uploadNativeProjectMedia, uploadNativeMaterial, type NativeMaterialUplo
4
4
  import type { BusinessDocumentInput, AgentSummaryInput, AgentSummary, CapabilityCall, BusinessSearchQuery, BusinessSearchPage, BusinessContentPageRead, BusinessContentPage, CapabilityQuery, CapabilityPage, AgentCapabilityPage, CapabilityDefinition, CapabilitySchemaRead, BusinessDocumentPage } from '../contracts/index.js';
5
5
  import { readNativeCapabilityDescriptor, readNativeCapabilitySchemaPage } from './schema-pages.js';
6
6
  import { inspectNativeTool, listNativeToolsPage, type NativeToolOptions, type NativeToolResult } from './operations.js';
7
+ import { readNativeServerVersion } from './updates/version.js';
7
8
  export interface NativeAgentClient {
9
+ getVersion(): ReturnType<typeof readNativeServerVersion>;
10
+ refreshVersion(): Promise<ReturnType<typeof readNativeServerVersion>>;
8
11
  readPackageFile(input: Parameters<typeof readNativePackageFile>[1]): ReturnType<typeof readNativePackageFile>;
9
12
  readProjectMediaFile(input: Parameters<typeof readNativeProjectMediaFile>[1]): ReturnType<typeof readNativeProjectMediaFile>;
10
13
  uploadProjectMedia(file: Parameters<typeof uploadNativeProjectMedia>[1]): ReturnType<typeof uploadNativeProjectMedia>;
@@ -32,4 +35,6 @@ export declare function withNativeAgentClient<T>(connection: {
32
35
  accessToken: string;
33
36
  }, action: (client: NativeAgentClient) => Promise<T>, options?: {
34
37
  timeoutMs?: number;
38
+ requireCompatibility?: boolean;
39
+ onVersion?: (version: ReturnType<typeof readNativeServerVersion>) => void;
35
40
  }): Promise<T>;
@@ -17,3 +17,6 @@ export type { CapabilitySchemaRead, CapabilitySchemaPage } from '../contracts/in
17
17
  export { uploadNativeProjectMedia, uploadNativeMaterial, type NativeMaterialUpload, } from './material-upload.js';
18
18
  export { readNativeProjectMediaFile, projectMediaFileQuerySchema } from './project-media.js';
19
19
  export { readNativePackageFile } from './package-files.js';
20
+ export { getNativeClientVersion } from './updates/version.js';
21
+ export { checkNativeUpdates } from './updates/registry.js';
22
+ export { assessNativeCompatibility, planNativeUpdate, defaultUpdatePolicy, type NativeClientRelease, type NativeClientIdentity, type NativeRegistryRelease, type NativeCompatibility, type NativeUpdatePolicy, type NativeUpdatePlan, } from '../contracts/index.js';